/* 简洁之道：减少装饰、建立层级、一次只突出一个动作 */
:root { --ink:#1f2329; --sub:#737982; --line:#e8eaed; --soft:#f5f6f7; --accent:#d88a00; }
body { background:#eef0f2; }
.phone, .screen, .statusbar { background:#fff; color:var(--ink); }
.screen { padding-left:20px; padding-right:20px; }
* { box-shadow:none !important; }
.brand { gap:8px; }
.brand>b { width:30px; height:30px; border:0; border-radius:7px; background:var(--ink); color:#fff; font-size:13px; }
.brand strong { font-size:15px; letter-spacing:1px; }
.brand small { display:none; }
.private { padding:6px 9px; background:transparent; color:var(--sub); border:1px solid var(--line); }
.compact-hero { padding:32px 2px 20px; }
.compact-hero h1 { font-size:23px; font-weight:680; }
.compact-hero>div { font-size:11px; }
.continue { border:0; border-radius:10px; background:var(--soft); padding:14px; }
.continue-label { color:var(--sub); }
.continue-label b { color:#989da5; }
.seat-stack, .avatars { display:none; }
.progress { height:3px; background:#e2e4e8; }
.progress i { background:var(--ink); }
.section-title { margin-top:26px; }
.section-title strong { font-size:14px; }
.section-title small { display:none; }
.section-title button, .section-title a, .recent>b, .data-glance>b { color:var(--accent); }
.presets { gap:8px; }
.preset { min-width:116px; padding:12px; border-color:var(--line); border-radius:10px; background:#fff; }
.preset.selected { border-color:var(--ink); background:#fff; }
.preset i { width:28px; height:28px; margin-bottom:12px; border-radius:7px; background:var(--soft); color:var(--ink); }
.preset.selected i { background:var(--ink); color:#fff; }
.preset strong { font-size:12px; }
.preset small { font-size:8px; }
.primary { height:46px; border-radius:9px; background:var(--ink); color:#fff; }
.data-glance { padding:12px 2px; margin-top:10px; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; background:#fff; }
.data-glance strong { font-size:10px; }
.recent { display:none; }
.bottom { height:58px; background:#fff; border-color:var(--line); }
.bottom button { color:#92969e; font-size:10px; }
.bottom button i { display:none; }
.bottom button.selected { color:var(--ink); font-weight:650; }

/* 列表页只保留搜索、筛选、内容 */
.review-head { height:38px; }
.review-head>button:first-child,.game-head>button:first-child { width:30px; height:30px; border-radius:8px; background:var(--soft); }
.review-head>button:last-child,.share-btn { color:var(--accent); }
.format-search { height:38px; margin-top:15px; border-radius:8px; background:var(--soft); }
.format-filter { margin:12px 0 22px; }
.format-filter button { padding:6px 10px; border:0; border-radius:7px; background:transparent; }
.format-filter button.selected { background:var(--ink); color:#fff; }
.format-section-title { margin-bottom:5px; }
.format-list { border:0; border-radius:0; background:#fff; }
.format-list>button { min-height:61px; padding:9px 0; border-color:var(--line); }
.format-list>button:hover { background:#fff; }
.format-list>button>i { width:32px; height:32px; flex-basis:32px; border-radius:7px; background:var(--soft); color:var(--ink); }
.format-list>button strong { font-size:12px; }
.format-list>button>b { color:#9a9fa7; }

/* 表单页用留白分组，不叠加卡片 */
.field-label { margin-top:20px; }
.custom-name { height:42px; border-radius:8px; }
.custom-summary { margin-top:9px; padding:11px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.custom-summary i { background:transparent; color:#43855e; }
.custom-section-head { margin-top:24px; }
.role-editor, .rule-switches { border:0; border-radius:0; }
.role-row, .rule-switches label, .rule-choice { padding-left:0; padding-right:0; border-color:var(--line); }
.role-row>i { width:31px; height:31px; border-radius:7px; background:var(--soft); color:var(--ink); }
.role-row>i.wolf-role { background:#fff2f1; color:#c44943; }
.role-row>div button { border-radius:7px; background:var(--soft); }
.rule-switches label>i { right:0; }
.rule-choice{min-height:62px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.rule-choice>span{display:flex;flex-direction:column}.rule-choice>span b{font-size:12px}.rule-choice>span small{margin-top:3px;color:#898e98;font-size:9px}
.rule-choice>div{display:flex;padding:3px;border-radius:8px;background:var(--soft)}.rule-choice button{min-width:42px;padding:6px 9px;border-radius:6px;background:transparent;color:var(--sub);font-size:10px}.rule-choice button.selected{background:#fff;color:var(--ink);font-weight:650}
.custom-save { background:var(--ink); color:#fff; }

/* 数据和复盘减少容器层级 */
.stats-period { background:var(--soft); }
.personal-overview,.compare-card,.headtohead,.result { padding:15px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:#fff; }
.personal-overview { margin-top:12px; }
.opponent-select { margin-top:24px; }
.score-row>strong,.overview-metrics b,.headtohead>div b,.result-stats text { color:var(--ink); }
.compare-card>header i.mine,.metric>div i,.vote-result i { background:var(--ink); }
.headtohead p { background:var(--soft); }
.ai-banner { border:0; border-radius:9px; background:#fff7e8; }
.ai-star,.ai-banner>b { background:var(--ink); color:#fff; }
.result-stats { border-color:var(--line); }

/* 对局页降低视觉噪音 */
.phase { background:var(--soft); }
.phase i,.pulse { background:var(--ink); }
.table-glow,.inner-ring { border-color:#eceef1; }
.table-center,.center { border-color:var(--line); }
.speaker-num,.center strong,.summary-seat { color:var(--ink); }
.quick-summary,.last-note { border:0; background:var(--soft); }
.action-btn,.actions button { border-color:var(--line); border-radius:9px; }
.action-btn.vote,.actions .featured { background:var(--ink); border-color:var(--ink); color:#fff; }
.action-btn.vote view,.actions .featured i { color:#fff; }
.note-sheet,.ai-modal,.role-picker { border:0; }
.save-button,.ai-plan>i,.recommend-label { background:var(--ink); color:#fff; }
.tag.selected { border-color:var(--ink); color:var(--ink); background:#fff; }
/* H5 viewport guard: keep the phone canvas inside narrow mobile browsers. */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (max-width: 520px) {
  body {
    display: block !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .phone {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }

  body > * {
    max-width: 100vw !important;
  }
}

.data-empty {
  width: 100%;
  padding: 26px 12px;
  color: #9298a1;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  border: 1px dashed #e1e4e8;
  border-radius: 10px;
  background: #fafbfc;
}

.home-recent-list { display: grid; }
.home-recent-list .home-history { margin-top: 0; }
.continue[hidden] { display: none; }

/* Readability pass: one larger type step for real mobile use. */
body { font-size: 15px; }
button, input, textarea { font-family: inherit; }
.brand strong { font-size: 17px; }
.private, .continue-label { font-size: 12px; }
.compact-hero h1 { font-size: 30px; }
.compact-hero > div { font-size: 14px; line-height: 1.65; }
.continue-main strong, .home-section-head strong { font-size: 15px; }
.continue-main small, .home-section-head span, .home-history small { font-size: 11px; }
.home-history strong { font-size: 14px; }
.bottom button { font-size: 12px; }
.module-head strong, .review-head > strong { font-size: 17px; }
.module-head button, .review-head > button:last-child { font-size: 12px; }
.format-search input { font-size: 14px; }
.format-filter button { font-size: 12px; }
.format-section-title { font-size: 13px; }
.format-list > button strong { font-size: 14px; }
.format-list > button small { font-size: 11px; line-height: 1.55; }
.format-list > button > b { font-size: 11px; }
.field-label, .custom-section-head small, .custom-summary small { font-size: 11px; }
.custom-name { font-size: 15px; }
.role-row > span b, .rule-switches b, .rule-choice > span b { font-size: 13px; }
.role-row > span small, .rule-switches small, .rule-choice > span small { font-size: 11px; }
.game-head strong { font-size: 15px; }
.game-head small { font-size: 11px; }
.game-context-switcher header b, .board-title-row strong { font-size: 13px; }
.game-context-switcher header small, .board-title-row small { font-size: 10px; }
.quick-context-row > b, .game-context-switcher header button { font-size: 10px; }
.quick-day-tabs button, .quick-phase-tabs button, .game-view-tabs button { font-size: 11px; }
.sheriff-summary b, .badge-summary b { font-size: 12px; }
.sheriff-summary small, .badge-summary small, .sheriff-summary em, .badge-summary em { font-size: 10px; }
.board-filters button { font-size: 10px; }
.player-card > header b { font-size: 13px; }
.player-card > header small, .player-card > header > em { font-size: 10px; }
.player-facts > span { font-size: 10px; }
.player-card > p { font-size: 12px; line-height: 1.55; }
.vote-overview > header strong, .vote-round-overview article header b { font-size: 13px; }
.vote-overview > header small, .vote-round-overview article header small { font-size: 10px; }
.vote-round-overview article, .overview-groups p, .vote-round-bar button { font-size: 11px; }
.sheet header strong, .filter-modal header strong { font-size: 15px; }
.sheet header small, .control-label small { font-size: 10px; }
.tool-tabs button, .tags button, .event-types button { font-size: 12px; }
.sheet textarea { font-size: 14px; }
.only-me { font-size: 10px; }
.stats-period button { font-size: 11px; }
.time-summary small, .overview-metrics small, .radar-values small { font-size: 10px; }
.time-summary strong, .time-summary b { font-size: 12px; }
.personal-overview > small { font-size: 11px; }
.overview-metrics b { font-size: 17px; }
.profile-head strong { font-size: 20px; }
.profile-head small, .profile-section-head button { font-size: 11px; }
.profile-summary small, .review-membership small, .profile-menu span small { font-size: 10px; }
.profile-menu span b, .pending-review span b { font-size: 13px; }
.pending-review span small, .pending-review > em { font-size: 10px; }
.history-summary small, .history-tabs button, .history-list article header small,
.history-list article > p, .history-list footer span, .history-list footer button { font-size: 10px; }
.history-list article header b { font-size: 13px; }
.data-empty { font-size: 13px; }
