:root {
  --ink: #081827;
  --body-ink: #142233;
  --muted: #586879;
  --soft: #f4f8fb;
  --paper: #ffffff;
  --panel: #eefcf9;
  --line: #d7e2ec;
  --cyan: #0088ad;
  --cyan-dark: #06657f;
  --mint: #00a77b;
  --coral: #e9574f;
  --amber: #f4b331;
  --shadow: 0 18px 42px rgba(8, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body-ink);
  background: var(--soft);
  font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  font-weight: 900;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-logo.full-logo {
  width: auto;
  max-width: 220px;
  height: 46px;
  border-radius: 0;
}
.links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.links a {
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.1;
}
.header-actions a {
  padding: 8px 10px;
  border-radius: 8px;
}
.links a:hover,
.links a.active,
.header-actions a:hover,
.header-actions a.active {
  color: var(--cyan-dark);
  background: #e8f7fb;
}
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.lang-switch a { font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(8, 24, 39, .04);
}
.btn.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 136, 173, .2);
}
.menu-btn { display: none; }

.audit-hero {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 24, 39, .055) 1px, transparent 1px),
    linear-gradient(180deg, #eefcff 0%, #f7fafc 100%);
  background-size: 36px 36px, auto;
  border-bottom: 1px solid var(--line);
}
.audit-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 28px;
  align-items: stretch;
}
.audit-console {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}
.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 136, 173, .22);
  border-radius: 8px;
  background: #e8f7fb;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
}
.audit-console h1 {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}
.audit-console p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.audit-search {
  margin-top: 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfe;
}
.audit-search label {
  display: block;
  margin: 0 0 8px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
}
.audit-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.audit-search input {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}
.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.audit-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.audit-actions a:hover {
  color: var(--cyan-dark);
  border-color: #ccebf2;
  background: #e8f7fb;
}
.evidence-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.evidence-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.evidence-card span {
  color: #9fe8dd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.evidence-card b {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.08;
}
.evidence-card p {
  margin: 12px 0 0;
  color: #c6d5e3;
}
.signal-list {
  display: grid;
  gap: 10px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px;
}
.signal-list div {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfe;
}
.signal-list strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f7fb;
  color: var(--cyan-dark);
  font-size: 12px;
}
.signal-list span {
  color: var(--ink);
  font-weight: 850;
}
.signal-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.signal-list .risk {
  border-color: #ffd2ce;
  background: #fff8f7;
}
.signal-list .risk strong {
  color: var(--coral);
  background: #fff2f1;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}
.page-main { padding-top: 36px; }
section { margin-top: 46px; }
.app-download,
.decision-lab { margin-top: 34px; }

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 0;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #c6e7ee;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.download-panel-page {
  margin-top: 0;
  margin-bottom: 28px;
}
.download-copy {
  min-height: 260px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(0, 136, 173, .1), transparent 44%),
    linear-gradient(180deg, #ffffff, #f6fbfd);
}
.download-panel h2 {
  max-width: 680px;
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.08;
}
.download-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}
.apk-file {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.apk-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
}
.apk-file b {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.apk-file small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.download-action-card {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 26px;
  border-left: 1px solid #12334a;
  border-radius: 0;
  background: #081827;
  color: #fff;
}
.download-action-card span {
  color: #6ee7dc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.download-action-card strong {
  color: #fff;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.download-action-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.download-action-card li {
  position: relative;
  padding: 9px 10px 9px 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #edf8fb;
  font-size: 13px;
  font-weight: 800;
}
.download-action-card li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 13px;
  border-right: 3px solid #52dfc6;
  border-bottom: 3px solid #52dfc6;
  transform: translateY(-62%) rotate(45deg);
}
.download-action-card p {
  color: #c7d7e7;
  font-size: 13px;
}
.download-btn {
  width: 100%;
  margin-top: 2px;
  min-height: 48px;
  font-size: 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.14;
}
.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}
.lab-heading {
  max-width: 780px;
  margin-bottom: 18px;
}
.lab-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.1;
}
.lab-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}
.comparison-board {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.comparison-row {
  display: grid;
  grid-template-columns: 180px minmax(180px, .7fr) minmax(0, 1fr) 86px;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.comparison-row:last-child { border-bottom: 0; }
.comparison-row:hover { background: #f9fcfe; }
.comparison-row span {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
}
.comparison-row strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}
.comparison-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.comparison-row em {
  justify-self: end;
  min-width: 70px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e8f7fb;
  color: var(--cyan-dark);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.comparison-row.danger {
  background: #fffafa;
}
.comparison-row.danger em {
  background: #fff2f1;
  color: var(--coral);
}
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.workflow-strip div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #f9fcfe;
}
.workflow-strip b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--cyan);
  font-size: 13px;
}
.workflow-strip span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.feature-grid,
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card,
.guide-card,
.card,
.ask-box,
.question-thread,
.sidebar-card,
.content,
.panel,
.article-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(8, 24, 39, .06);
}
.feature-card,
.guide-card,
.card,
.sidebar-card,
.content {
  padding: 20px;
}
.feature-card h3,
.guide-card h3,
.card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}
.feature-card p,
.guide-card p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.feature-card:hover,
.guide-card:hover,
.card:hover,
.article-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.risk-card {
  border-color: #ffd2ce;
  background: #fffafa;
}
.badge.green {
  color: #08745c;
  border-color: #b9eee2;
  background: #eafbf7;
}
.badge.gold {
  color: #805500;
  border-color: #ffe0a6;
  background: #fff7df;
}
.badge.red {
  color: #ad332d;
  border-color: #ffd2ce;
  background: #fff2f1;
}

.page-hero {
  color: var(--ink);
  background: linear-gradient(180deg, #e8f7fb, var(--soft));
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 42px;
}
.breadcrumb {
  margin-bottom: 10px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 850;
}
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}
.page-hero p {
  max-width: 800px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 330px;
  gap: 18px;
  align-items: start;
}
.panel { overflow: hidden; }
.panel-pad { padding: 20px; }
.content {
  color: var(--body-ink);
  overflow-wrap: anywhere;
}
.content h1,
.content h2,
.content h3 {
  color: var(--ink);
  line-height: 1.18;
}
.content h2 { margin-top: 0; }
.content p,
.content li { color: var(--muted); }
.content a { color: var(--cyan-dark); font-weight: 850; }
.notice {
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: #fff2f1;
  color: #8c2e29;
  padding: 14px;
}

.card-thumb,
.post-hero-image,
.qa-image {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card-thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.post-hero-image,
.qa-image { max-height: 430px; margin-bottom: 16px; }

.article-list { display: grid; gap: 12px; }
.article-row {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}
.article-thumb {
  width: 134px;
  height: 94px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.date {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 94px;
  border: 1px solid #ccebf2;
  border-radius: 8px;
  background: #e8f7fb;
  color: var(--cyan-dark);
  text-align: center;
  font-weight: 900;
}
.article-row h2,
.article-row h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}
.article-row p { margin: 0; color: var(--muted); }

.side-list,
.topic-list,
.related-list {
  display: grid;
  gap: 10px;
}
.side-list a,
.side-list div,
.related-list a {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfe;
}
.side-list b { display: block; margin-bottom: 3px; color: var(--ink); }
.side-list span { color: var(--muted); font-size: 13px; }

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap { overflow-x: auto; }
th {
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #e8f7fb;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eafbf7;
  color: #08745c;
  font-weight: 850;
  font-size: 12px;
}
.status.warn { background: #fff7df; color: #8a5c00; }
.status.risk { background: #fff2f1; color: #ad332d; }

.qa-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.qa-feed { display: grid; gap: 14px; }
.ask-box { padding: 16px; }
.ask-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cyan);
  font-weight: 900;
}
.ask-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9fcfe;
}
.ask-input input {
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
}
.qa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.qa-tab,
.topic-pill,
.action-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.qa-tab.active,
.topic-pill {
  color: var(--cyan-dark);
  border-color: #ccebf2;
  background: #e8f7fb;
}
.question-main { padding: 18px 18px 12px; }
.question-main h2 {
  margin: 10px 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}
.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.answer-card {
  border-top: 1px solid var(--line);
  padding: 16px 18px;
}
.answer-card p { color: var(--muted); }
.answer-card ul { color: var(--muted); }
.answer-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.qa-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
}
.sidebar-card h3 { margin: 0 0 10px; color: var(--ink); }
.topic-list a,
.related-list a { color: var(--body-ink); font-size: 14px; }
.contributor-note { margin: 0; color: var(--muted); font-size: 13px; }

.form { display: grid; gap: 12px; }
label { font-weight: 850; font-size: 14px; }
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--body-ink);
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

details {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfe;
}
details + details { margin-top: 10px; }
summary { cursor: pointer; color: var(--ink); font-weight: 850; }
details p { margin: 10px 0 0; color: var(--muted); }

footer {
  padding: 38px 20px;
  color: #d9e7f3;
  background: var(--ink);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, .7fr);
  gap: 24px;
}
footer h3,
footer h4 { margin: 0 0 10px; color: #fff; }
footer p,
footer a { color: #b7c8d8; font-size: 14px; }
footer a { display: block; margin: 7px 0; }
.footer-note {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #9badbd;
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.pagination a.active {
  border-color: rgba(0, 147, 182, .34);
  background: #e9f8fd;
  color: var(--brand);
}

.online-hero {
  padding: 42px 20px 28px;
  background:
    linear-gradient(90deg, rgba(234, 249, 252, .9), rgba(255, 255, 255, .72)),
    radial-gradient(circle at 80% 20%, rgba(0, 190, 170, .16), transparent 30%);
}

.online-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
}

.online-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.online-copy h1 {
  max-width: 760px;
  margin: 14px 0 14px;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.03;
}

.online-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.online-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mini-scoreboard {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #071a2b;
  color: #d9eef5;
  box-shadow: var(--shadow);
}

.mini-scoreboard div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.mini-scoreboard span {
  display: block;
  color: #7ee7ec;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-scoreboard b { display: block; margin-top: 6px; color: #fff; }

.online-game-shell {
  max-width: 1200px;
  margin: 34px auto;
  padding: 18px;
  border: 1px solid #f3c987;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 232, .96), rgba(238, 251, 250, .92)),
    radial-gradient(circle at 12% 8%, rgba(255, 153, 51, .18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(0, 112, 154, .16), transparent 30%);
  box-shadow: 0 22px 58px rgba(85, 64, 32, .14);
  position: relative;
}

.online-game-shell[hidden] { display: none; }

.online-game-shell.overlay-active .game-table,
.online-game-shell.overlay-active .game-controls {
  filter: blur(1.5px);
  opacity: .7;
  pointer-events: none;
}

.game-overlay {
  position: absolute;
  z-index: 2;
  inset: 72px 18px 76px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  background: rgba(248, 252, 253, .74);
  backdrop-filter: blur(7px);
}

.game-overlay[hidden] { display: none; }

.start-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf0, #fff),
    radial-gradient(circle at top right, rgba(255, 153, 51, .16), transparent 36%);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.start-panel::before,
.table-center::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9933, #fff2c2, #138808, #0083a3);
}

.start-panel strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.start-panel p {
  margin: 0;
  color: var(--muted);
}

.start-panel .btn {
  justify-self: center;
  min-width: 156px;
}

.game-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e8;
  color: #6b2d18;
  font-weight: 950;
  cursor: pointer;
}

.countdown-panel {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf0, #fff),
    radial-gradient(circle at top right, rgba(255, 153, 51, .16), transparent 36%);
  text-align: center;
}

.countdown-panel strong {
  color: var(--ink);
  font-size: 34px;
}

.countdown-panel strong b { color: var(--brand); }

.countdown-panel p {
  margin: 0;
  color: var(--muted);
}

.countdown-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5f2f6;
}

.countdown-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9933, #138808, #0083a3);
  transition: width .2s linear;
}

.online-game-shell:not(.counting) .countdown-panel { display: none; }
.online-game-shell.counting .start-panel { display: none; }
.online-game-shell:not(.overlay-active) .game-overlay { display: none; }

.online-game-shell.win {
  border-color: rgba(18, 164, 118, .62);
  box-shadow: 0 22px 54px rgba(18, 164, 118, .18);
}

.online-game-shell.lost {
  border-color: rgba(204, 55, 72, .54);
  box-shadow: 0 22px 54px rgba(204, 55, 72, .16);
}

.game-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.game-topline h2 { margin: 8px 0; color: var(--ink); font-size: 32px; }
.game-topline p { margin: 0; color: var(--muted); }

.game-meter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-meter span {
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.game-meter b { display: block; color: var(--ink); font-size: 22px; }

.game-table {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 211, 120, .18), transparent 22%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, .08) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, rgba(8, 73, 92, .96), rgba(13, 125, 117, .92)),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.online-game-shell.win .game-table {
  background:
    radial-gradient(circle at center, rgba(255, 211, 120, .22), transparent 24%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, .08) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, rgba(6, 78, 63, .96), rgba(19, 136, 8, .84)),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
}

.online-game-shell.lost .game-table {
  background:
    radial-gradient(circle at center, rgba(255, 211, 120, .14), transparent 24%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, .08) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, rgba(96, 24, 48, .96), rgba(177, 48, 66, .88)),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
}

.opponent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.opponent-seat,
.player-seat,
.table-center {
  border: 1px solid rgba(255, 226, 158, .32);
  border-radius: 8px;
  background: rgba(2, 22, 31, .46);
  backdrop-filter: blur(4px);
}

.opponent-seat.winner,
.player-seat.winner {
  border-color: rgba(255, 211, 120, .92);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, .2), 0 16px 34px rgba(0, 0, 0, .24);
}

.opponent-seat {
  min-height: 124px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.opponent-seat strong,
.player-seat strong {
  color: #fff;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.opponent-seat span,
.player-seat span,
.table-center span {
  color: #ffe6a8;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}

.seat-cards,
.player-cards {
  display: flex;
  gap: 6px;
  min-height: 56px;
}

.table-center {
  width: min(460px, 100%);
  align-self: center;
  justify-self: center;
  padding: 20px;
  text-align: center;
}

.table-center::before { margin-bottom: 14px; }

.table-center b {
  display: block;
  margin: 8px 0;
  font-size: 28px;
  color: #fff;
}

.table-center p { margin: 0; color: #d8f8f4; }
.table-center p,
.table-center b {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .46);
}

.player-seat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.card-face {
  width: 64px;
  height: 88px;
  display: block;
  border: 1px solid rgba(3, 20, 31, .22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 48%, #f6f1e8 100%);
  color: #111827;
  font-weight: 950;
  text-shadow: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .24), inset 0 0 0 2px rgba(255, 255, 255, .82);
  font-size: 13px;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.card-face *,
.card-face::before,
.card-face::after {
  text-shadow: none;
}

.card-face.suit-red { color: #c9142d; }
.card-face.suit-black { color: #050b12; }
.card-face.suit-red .card-corner,
.card-face.suit-red .card-corner b,
.card-face.suit-red .card-corner i {
  color: #c9142d;
}

.card-face.suit-black .card-corner,
.card-face.suit-black .card-corner b,
.card-face.suit-black .card-corner i {
  color: #050b12;
}

.card-corner {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 20px;
  line-height: .86;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 950;
}

.card-corner b {
  display: block;
  font-weight: 950;
}

.card-corner i {
  display: block;
  font-style: normal;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.card-corner.top {
  top: 7px;
  left: 8px;
}

.card-corner.bottom {
  right: 8px;
  bottom: 7px;
  transform: rotate(180deg);
}

.card-face.back {
  background:
    radial-gradient(circle at center, rgba(255, 211, 120, .24), transparent 32%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, rgba(0, 112, 154, .96), rgba(19, 136, 8, .92));
  color: rgba(255, 255, 255, .82);
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.game-controls button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.round-recap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.round-recap[hidden] { display: none; }

.result-popover {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  width: min(620px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  border-width: 2px;
  animation: resultPop .18s ease-out;
}

.online-game-shell.win .result-popover { border-color: rgba(18, 164, 118, .68); }
.online-game-shell.lost .result-popover { border-color: rgba(214, 63, 69, .62); }

@keyframes resultPop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.result-badge {
  min-width: 104px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  background: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.result-badge.win { background: #0f9f72; }
.result-badge.lost { background: #cc3748; }

.round-recap strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.round-recap p {
  margin: 4px 0 0;
  color: var(--muted);
}

.chip-delta {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f8fb;
  color: var(--ink);
  text-align: center;
  font-size: 24px;
  font-weight: 950;
}

.chip-delta.win { color: #0f9f72; background: #e8fbf4; }
.chip-delta.lost { color: #cc3748; background: #fff0f1; }

.online-info-grid {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.online-side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.online-side-card h3 { margin: 0 0 12px; color: var(--ink); }
.online-side-card li { margin: 8px 0; color: var(--muted); }

@media (max-width: 980px) {
  .links {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 64px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .links.open { display: grid; }
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
  }
  .menu-btn { display: inline-flex; }
  .audit-shell,
  .online-hero-inner,
  .download-panel,
  .comparison-row,
  .feature-grid,
  .grid-3,
  .grid-4,
  .layout,
  .online-info-grid,
  .qa-shell,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .audit-shell { padding-top: 36px; }
  .audit-console { padding: 22px; }
  .comparison-row em { justify-self: start; }
  .download-copy { min-height: 0; }
  .download-action-card { border-left: 0; }
  .workflow-strip { grid-template-columns: 1fr 1fr; }
  .qa-sidebar { position: static; }
  .game-topline,
  .opponent-grid,
  .player-seat,
  .round-recap { grid-template-columns: 1fr; }
  .game-meter { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .nav { padding: 10px 12px; }
  .brand span:last-child {
    max-width: 178px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .audit-shell { padding: 24px 14px 28px; gap: 14px; }
  .audit-console h1 { font-size: 38px; }
  .online-copy h1 { font-size: 38px; }
  .audit-console p { font-size: 16px; }
  .audit-search div,
  .workflow-strip,
  .article-row,
  .ask-row,
  .search-form {
    grid-template-columns: 1fr;
  }
  main { padding-left: 14px; padding-right: 14px; }
  .section-head { display: block; }
  .evidence-card,
  .signal-list,
  .content,
  .panel-pad,
  .feature-card,
  .guide-card,
  .card { padding: 16px; }
  .article-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .date { min-height: 72px; }
  .online-hero { padding: 18px 12px 12px; }
  .online-copy { padding: 18px; }
  .online-copy h1 { font-size: 34px; line-height: 1.06; }
  .online-copy p { font-size: 15px; }
  .online-hero-actions .btn { width: 100%; justify-content: center; }
  .mini-scoreboard {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .mini-scoreboard div { padding: 12px; }
  .online-game-shell {
    margin: 18px auto;
    padding: 12px;
  }
  .game-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .game-overlay {
    inset: 58px 12px 66px;
    padding: 10px;
  }
  .start-panel {
    padding: 18px;
  }
  .start-panel strong { font-size: 26px; }
  .countdown-panel {
    min-height: 260px;
    align-content: center;
    padding: 18px;
  }
  .countdown-panel strong { font-size: 28px; }
  .game-topline h2 { font-size: 24px; }
  .game-topline p { font-size: 14px; }
  .game-meter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .game-meter span {
    min-width: 0;
    padding: 8px 10px;
  }
  .game-meter b { font-size: 20px; }
  .game-table {
    min-height: 0;
    gap: 10px;
    padding: 12px;
  }
  .opponent-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }
  .opponent-seat {
    min-width: 172px;
    min-height: 106px;
    padding: 10px;
    scroll-snap-align: start;
  }
  .table-center {
    padding: 14px;
  }
  .table-center b { font-size: 22px; }
  .table-center p { font-size: 13px; }
  .player-seat {
    gap: 10px;
    padding: 12px;
  }
  .seat-cards,
  .player-cards {
    min-height: 50px;
    gap: 5px;
  }
  .card-face { width: 52px; height: 72px; font-size: 14px; }
  .card-corner { min-width: 17px; font-size: 15px; }
  .card-corner i { font-size: 18px; }
  .card-corner.top { top: 6px; left: 7px; }
  .card-corner.bottom { right: 7px; bottom: 6px; }
  .game-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .game-controls .btn {
    min-height: 44px;
    padding: 10px 8px;
    justify-content: center;
    font-size: 14px;
  }
  .result-popover {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    text-align: center;
  }
  .result-badge {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }
  .round-recap strong { font-size: 18px; }
  .round-recap p { font-size: 13px; }
  .chip-delta {
    width: 100%;
    min-width: 0;
    font-size: 22px;
  }
  .online-info-grid,
  .content { margin-top: 18px; }
}
