:root {
  --bg: #131118;
  --surface: #1a1625;
  --surface-raised: #2d2640;
  --text: #f3eee3;
  --ink: #333333;
  --muted-strong: #e5e7eb;
  --muted: #d1d5db;
  --muted-soft: #9ca3af;
  --muted-on-paper: #4b5563;
  --border-dark: #374151;
  --primary: #6c5ce7;
  --accent: #9333ea;
  --positive: #22c55e;
  --white: #ffffff;
  --black: #000000;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-legal-h2: 1.35rem;
  --font-size-legal-h3: 1.08rem;
  --font-size-brand-mobile: clamp(var(--font-size-xl), 5vw, var(--font-size-4xl));
  --radius: 0.5rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-xl: 2rem;
  --control-min-height: 44px;
  --content-width: 1200px;
  --measure: 70ch;
}

body { font-size: var(--font-size-base); line-height: 1.625; }
h1, h2, h3 { line-height: 1.2; }

.ovo-bg-surface { background-color: var(--surface); }
.ovo-bg-raised { background-color: var(--surface-raised); }
.ovo-bg-home { background-color: var(--bg); }
.ovo-bg-paper { background-color: var(--text); }
.ovo-bg-primary { background-color: var(--primary); }
.ovo-bg-white { background-color: var(--white); }
.ovo-bg-positive { background-color: var(--positive); }
.ovo-bg-header { background-color: color-mix(in srgb, var(--surface) 95%, transparent); }
.ovo-bg-surface-strong { background-color: color-mix(in srgb, var(--surface) 80%, transparent); }
.ovo-bg-surface-half { background-color: color-mix(in srgb, var(--surface) 50%, transparent); }
.ovo-bg-surface-light { background-color: color-mix(in srgb, var(--surface) 30%, transparent); }
.ovo-bg-scrim { background-color: color-mix(in srgb, var(--black) 40%, transparent); }
.ovo-bg-white-faint { background-color: color-mix(in srgb, var(--white) 5%, transparent); }
.ovo-hover-bg-primary:hover { background-color: color-mix(in srgb, var(--primary) 80%, transparent); }
.ovo-hover-bg-white:hover { background-color: var(--white); }
.ovo-hover-bg-white-faint:hover { background-color: color-mix(in srgb, var(--white) 5%, transparent); }
.ovo-hover-bg-white-soft:hover { background-color: color-mix(in srgb, var(--white) 10%, transparent); }

.ovo-text { color: var(--text); }
.ovo-text-ink { color: var(--ink); }
.ovo-text-surface { color: var(--surface); }
.ovo-text-primary { color: var(--primary); }
.ovo-text-white { color: var(--white); }
.ovo-text-muted-strong { color: var(--muted-strong); }
.ovo-text-muted { color: var(--muted); }
.ovo-text-muted-soft { color: var(--muted-soft); }
.ovo-text-muted-on-paper { color: var(--muted-on-paper); }
.ovo-hover-text:hover { color: var(--text); }
.ovo-hover-text-surface:hover { color: var(--surface); }

.ovo-border-raised { border-color: var(--surface-raised); }
.ovo-border-light { border-color: var(--muted-strong); }
.ovo-border-dark { border-color: var(--border-dark); }
.ovo-border-white-faint { border-color: color-mix(in srgb, var(--white) 5%, transparent); }
.ovo-border-white-soft { border-color: color-mix(in srgb, var(--white) 10%, transparent); }
.ovo-hover-border-primary:hover { border-color: var(--primary); }

.ovo-gradient-surface { background-image: linear-gradient(to right, var(--surface), var(--surface-raised)); }
.ovo-gradient-accent { background-image: linear-gradient(to right, var(--primary), var(--accent)); }
.ovo-selection::selection,
.ovo-selection *::selection { background-color: var(--primary); color: var(--white); }
.ovo-shadow-primary { box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 50%, transparent); }
.ovo-shadow-white { box-shadow: 0 0 30px color-mix(in srgb, var(--white) 30%, transparent); }

.ovo-size-sm { font-size: var(--font-size-sm); line-height: 1.25rem; }
.ovo-size-lg { font-size: var(--font-size-lg); line-height: 1.75rem; }
.ovo-size-xl { font-size: var(--font-size-xl); line-height: 1.75rem; }
.ovo-size-2xl { font-size: var(--font-size-2xl); line-height: 2rem; }
.ovo-size-3xl { font-size: var(--font-size-3xl); line-height: 2.25rem; }
.ovo-size-4xl { font-size: var(--font-size-4xl); line-height: 2.5rem; }

.ovo-main {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
}
.ovo-main :where(p, ul, ol) { max-width: var(--measure); }

.ovo-scores-panel { padding: var(--space-xl); }

#game-container,
.ovo-player-actions { max-width: 56rem; margin-inline: auto; }
[data-gf-cover][hidden], [data-gf-loading][hidden] { display: none; }
.ovo-player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-family: Inter, system-ui, sans-serif;
}
.ovo-player-actions button {
  min-height: var(--control-min-height);
  padding-inline: var(--space-md);
  border: 1px solid color-mix(in srgb, var(--white) 15%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.ovo-player-actions button:hover,
.ovo-player-actions [aria-pressed="true"] { background: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 640px) {
  .ovo-brand-title { font-size: var(--font-size-brand-mobile); line-height: 1.2; }
  .ovo-main :is(h1, h2).ovo-size-3xl { font-size: var(--font-size-2xl); line-height: 1.25; }
  .ovo-main [data-gf-fullscreen] { min-height: var(--control-min-height); }
  .ovo-scores-panel { padding: var(--space-md); }
  .ovo-scores-table { table-layout: fixed; font-size: var(--font-size-sm); }
  .ovo-scores-table :is(th, td) { padding-inline: var(--space-xs); overflow-wrap: anywhere; }
  .ovo-scores-table th:nth-child(2) { width: 40%; }
}

/* 法务页正文（只作用于 .legal-body 容器） */
.legal-body h2 { font-size: var(--font-size-legal-h2); font-weight: 700; margin: 1.6rem 0 .5rem; line-height: 1.3; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--font-size-legal-h3); font-weight: 600; margin: 1.2rem 0 .4rem; }
.legal-body p { margin: .6rem 0; }
.legal-body ul, .legal-body ol { margin: .6rem 0; padding-left: 1.5rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin: .3rem 0; }
.legal-body a { text-decoration: underline; }
.legal-body strong { font-weight: 600; }


.ovo-discussion-empty { display: none; }
[data-gf-comments][data-gf-empty] > .ovo-discussion-empty { display: block; }


/* ── 设计复审后的一轮：移动端导航、首屏播放器、正文排版 ── */
.ovo-nav-toggle { display: none; }

.ovo-home-intro { max-width: 720px; margin-inline: auto; padding: 2rem var(--space-md) 0; }
.ovo-home-intro p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 0 0 20px; max-width: 68ch; }
.ovo-intro-h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 800; color: var(--text); margin: 0 0 .75rem; overflow-wrap: break-word; }
.ovo-intro-h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--text); margin: 1.75rem 0 .5rem; }
.ovo-intro-lede { margin-bottom: .75rem !important; }
.ovo-intro-outro { margin-top: 1.5rem !important; }
.ovo-home-intro a { color: var(--muted-strong); text-decoration: underline; text-underline-offset: 2px; }
.ovo-home-intro a:hover { color: var(--white); }

.ovo-keys { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0 1.5rem; padding: 0; max-width: none; }
.ovo-keys li { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem; border-radius: .65rem; background-color: var(--surface); border: 1px solid var(--border-dark); font-size: .95rem; line-height: 1.55; color: var(--muted); }
.ovo-keys strong { color: var(--text); font-weight: 600; }
.ovo-key { flex: 0 0 auto; min-width: 2.5rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .45rem; border-radius: .45rem; background: var(--surface-raised); border: 1px solid var(--border-dark); box-shadow: 0 2px 0 color-mix(in srgb, var(--black) 35%, transparent); color: var(--text); font-size: .9rem; font-weight: 700; }

.ovo-faq { max-width: 720px; margin: 2.5rem auto 0; padding: 0 var(--space-md); }
.ovo-faq-h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 700; color: var(--text); margin: 0 0 1.25rem; padding-top: 1.75rem; border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent); }
.ovo-faq-item { background-color: var(--surface); border-radius: .65rem; padding: .9rem 1.1rem; margin: 0 0 .6rem; }
.ovo-faq-item summary { position: relative; padding-left: 1.15rem; color: var(--text); font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.ovo-faq-item summary::-webkit-details-marker { display: none; }
.ovo-faq-item summary::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--muted-strong); font-size: 1rem; font-weight: 700; }
.ovo-faq-item[open] summary::before { content: "−"; }
.ovo-faq-item summary:hover { color: var(--white); }
.ovo-faq-item p { margin: .6rem 0 0 1.15rem; font-size: .975rem; line-height: 1.7; color: var(--muted); }

#game-overlay [data-gf-play] { background-image: linear-gradient(95deg, var(--primary), var(--accent)); color: var(--white); border: 1px solid color-mix(in srgb, var(--white) 30%, transparent); box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 55%, transparent); }

@media (max-width: 768px) {
  header { padding-block: .5rem !important; }
  header a img.h-16 { height: 2.5rem !important; }
  .ovo-brand-title { font-size: 1.375rem !important; line-height: 1.25 !important; }
  .ovo-nav { width: 100%; justify-content: flex-end; }
  .ovo-nav-toggle { display: inline-flex !important; align-items: center; gap: .4rem; min-height: var(--control-min-height); padding: .35rem 1rem; border: 1px solid color-mix(in srgb, var(--white) 16%, transparent); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--font-size-sm); font-weight: 600; }
  .ovo-nav-links { display: none !important; }
  .ovo-nav-open .ovo-nav-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 .9rem; width: 100%; padding-top: .5rem; }
  .ovo-nav-links a { padding: .6rem 0; border-bottom: 1px solid color-mix(in srgb, var(--white) 8%, transparent); }
  .game-container > .ovo-gradient-surface { padding: 14px 16px; }
  #fullscreenButton { min-height: 36px; padding: .3rem .8rem !important; font-size: 13px !important; }
  #fullscreenButton svg { width: 1rem; height: 1rem; margin-right: .35rem; }
  #game-container, #game-container > [data-gf-cover] { height: min(54vh, 380px) !important; }
  #game-overlay .w-32 { width: 4.5rem !important; height: 4.5rem !important; margin-bottom: 1rem !important; }
  #game-overlay .w-32 img { width: 3rem !important; height: 3rem !important; }
  #game-overlay [data-gf-play] { padding: .7rem 1.75rem !important; font-size: 1.05rem !important; }
  #game-overlay [data-gf-play] svg { width: 1.4rem; height: 1.4rem; }
  #game-overlay .hover\:scale-105:hover { transform: none; }
  .ovo-home-intro { padding-top: 1.5rem; }
  .ovo-intro-h2 { font-size: clamp(1.3rem, 6vw, 1.75rem); overflow-wrap: break-word; }
  .ovo-keys { grid-template-columns: 1fr; }
}


/* 对比度：半透明底换成实色深底，保证正文对比 > 4.5:1 */
.ovo-keys li span { color: var(--text); }
.ovo-faq-item p { color: var(--text); }


/* 第三轮复审后的收尾 */
.ovo-home-intro, .ovo-faq, .legal-body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.ovo-home-intro p { font-size: 1.05rem; }
#game-overlay [data-gf-play] { background-image: linear-gradient(95deg, var(--accent), var(--primary)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
#game-overlay [data-gf-play], #game-overlay [data-gf-play] * { color: var(--white); text-shadow: none; }
@media (max-width: 768px) {
  .game-container > .ovo-gradient-surface > div { flex-wrap: nowrap !important; }
  .game-container > .ovo-gradient-surface h2 { font-size: 1rem !important; white-space: nowrap; }
  #fullscreenButton { white-space: nowrap; }
}
