/* Shared interface foundation. Scene positioning belongs in scene.css. */
:root {
  color-scheme: dark;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Silkscreen', 'Pixelify Sans', 'Courier New', monospace;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --bg: #080f22;
  --panel: #101e38;
  --panel2: #172a49;
  --line: #385781;
  --ink: #f4f1e9;
  --muted: #bbc8dc;
  --gold: #ffe2a3;
  --mint: #a3e4ba;
  --red: #ffb1a8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --content-width: 1300px;
  --control-height: 44px;
  --panel-shadow: 4px 4px 0 #030918;
  font: 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a, select, textarea { touch-action: manipulation; }
a { color: var(--gold); text-underline-offset: 4px; }
button { cursor: pointer; min-height: var(--control-height); min-width: var(--control-height); padding: 8px 14px; border: 2px solid var(--line); border-radius: 0; color: var(--ink); background: var(--panel2); line-height: 1.35; }
button:hover:not(:disabled) { border-color: var(--gold); background: #233c60; }
button:active:not(:disabled) { background: #2b4770; }
button:disabled { cursor: not-allowed; opacity: .5; }
button[aria-pressed='true'] { border-color: var(--gold); background: #3b3540; color: var(--gold); }
:where(button,a,select,textarea,input,summary):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
h1 { font: 600 clamp(32px,5vw,64px)/1.1 var(--pixel); letter-spacing: -.025em; }
h2 { font: 600 26px/1.25 var(--pixel); }
h3 { font: 600 21px/1.3 var(--pixel); }
p { line-height: 1.65; }
:where(p,blockquote,li,code) { overflow-wrap: anywhere; }
summary { cursor: pointer; padding-block: 10px; min-height: var(--control-height); }
select,textarea,input { border: 2px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 0; max-width: 100%; min-width: 0; padding: 10px 12px; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
textarea::placeholder { color: var(--muted); opacity: .9; }
form label { display: block; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(23px,2.6vw,40px)/1.15 var(--font-brand); letter-spacing: -1px; color: var(--gold); text-decoration: none; white-space: nowrap; }
.brand small { font: 14px/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }
.brand-mark { font-size: 30px; }
.brand-accent { color: inherit; }
.masthead { padding: 22px max(24px,calc((100% - var(--content-width))/2)); background: #0b1730; border-bottom: 2px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.masthead nav { display: flex; align-items: center; gap: 16px; font: 18px var(--pixel); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; }
.culture-flag { display: inline-flex; flex: none; vertical-align: middle; }
.culture-flag svg { display: block; }
.masthead .culture-flag svg { width: 48px; height: 32px; }
.page { max-width: var(--content-width); padding: 40px 24px 64px; margin: auto; }
.panel { padding: 28px; border: 2px solid var(--line); background: var(--panel); box-shadow: var(--panel-shadow); }
.eyebrow { font: 600 16px/1.4 var(--pixel); color: var(--gold); letter-spacing: .06em; }
.cursor { color: var(--gold); }
.section-title { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.section-title > div { min-width: 0; flex: 1; }
.section-title p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.section-number { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: #1e2e46; border: 2px solid var(--line); color: var(--gold); font: 20px var(--pixel); }
.primary-button,.take-floor { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; gap: 16px; background: #b93136; color: #fff7e9; border: 2px solid #ff9b81; box-shadow: 3px 3px 0 #60212d; font: 600 20px/1.2 var(--pixel); text-decoration: none; }
.primary-button:hover,.take-floor:hover:not(:disabled) { background: #d44040; border-color: #ffd3a6; }
.text-button,.evidence-shortcut { font: 15px/1.35 var(--font-body); }
.evidence-shortcut { flex: none; }
.empty { padding: 32px 20px; color: var(--muted); text-align: center; }
.empty > span { font-size: 32px; color: var(--gold); }
.empty h3 { margin: 12px 0; color: var(--ink); }
.empty p { max-width: 48ch; margin: auto; }
.statement { border-top: 1px solid var(--line); padding: 24px 0; scroll-margin-top: 24px; }
.statement-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.mini-avatar { width: 40px; height: 40px; flex: none; }
.post-kind { margin-left: auto; padding: 3px 9px; font-size: 12px; border: 1px solid var(--line); color: var(--gold); }
.post-body { margin: 16px 0; font: 16px/1.7 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.post-disclaimer { color: var(--muted); font: 12px/1.5 var(--font-body); }
.statement footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reply-ref { display: inline-block; margin-top: 12px; font-size: 14px; }
.feedback,.floor-feedback { color: var(--gold); font: 14px/1.5 var(--font-body); overflow-wrap: anywhere; }
.source-list { display: grid; }
.source { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.source > span { color: var(--gold); font: 18px var(--pixel); }
.source > div { flex: 1; min-width: 0; }
.source strong { font: 600 16px/1.5 var(--font-body); display: block; }
.source small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.source b { color: var(--gold); }
.source:hover strong { text-decoration: underline; }
.evidence-note { font: 14px/1.6 var(--font-body); color: var(--muted); margin-block: 12px; }
.quote { padding: 24px; border: 1px solid var(--line); background: #0c172b; margin-top: 24px; }
.quote blockquote { margin: 16px 0; border-left: 3px solid var(--gold); padding-left: 18px; color: var(--ink); font: 18px/1.75 var(--font-body); }
.quote > a { display: inline-block; padding-block: 8px; font-size: 14px; }
.translate-button { display: block; margin-top: 16px; color: var(--gold); width: 100%; }
.translation-warning { margin-top: 16px; padding: 18px; border: 2px solid #91733e; background: #302a23; color: #f8e5bd; font: 14px/1.65 var(--font-body); }
.translation-warning p { margin: 8px 0; }
.translation-warning small { font-size: 13px; }
.translation-warning details { border-top: 1px solid #725f42; margin-top: 12px; }
.fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.fact { min-width: 0; padding: 20px; border: 1px solid var(--line); }
.fact-number { display: block; color: var(--gold); font: 18px var(--pixel); margin-bottom: 10px; }
.fact h3 { margin-bottom: 12px; }
.fact p { font-size: 15px; color: var(--muted); }
.fact a { display: inline-block; margin-top: 12px; min-height: 44px; padding-top: 10px; font-size: 14px; }
.rationale { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.rationale p { margin-top: 12px; }
.lobby { min-height: calc(100svh - 250px); }
.lobby-hero { padding: 40px 0 48px; max-width: 850px; }
.lobby-hero h1 { margin: 20px 0; }
.lobby-hero > p { font: 20px/1.6 var(--font-body); margin-top: 16px; }
.lobby-hero .lobby-intro { font: 17px/1.75 var(--font-body); max-width: 68ch; color: var(--muted); }
.lobby-rooms,.lobby-note { margin-bottom: 28px; }
.lobby-room { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lobby-room > div { min-width: 0; }
.lobby-room h3 { margin: 14px 0; font-size: 32px; }
.lobby-room p { color: var(--muted); font-size: 16px; }
.lobby-room p + p { margin-top: 12px; }
.lobby-room .primary-button { flex: none; white-space: nowrap; }
.lobby-note h2 { margin-bottom: 16px; }
.lobby-note p { margin-top: 12px; max-width: 76ch; }
.site-footer { border-top: 2px solid var(--line); padding: 28px max(24px,calc((100% - var(--content-width))/2)); display: grid; gap: 12px; font: 14px/1.6 var(--font-body); color: var(--muted); }
.site-footer > span { font: 20px/1.4 var(--pixel); color: var(--gold); }
.site-footer small { font-size: 12px; }
.public-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.public-links a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.account-page { max-width: 880px; min-height: calc(100svh - 320px); }
.account-intro { padding-block: 24px 32px; }
.account-intro h1 { margin-block: 16px; }
.policy-updated { color: var(--muted); font-size: 14px; }
.policy-section { padding-block: 24px; border-top: 1px solid var(--line); }
.policy-section h2 { margin-bottom: 16px; }
.policy-section p + p,.signin-panel p + p { margin-top: 16px; }
.policy-section p,.signin-panel p { max-width: 72ch; }
.policy-help { margin-block: 16px 24px; }
.account-return { margin-block: 24px; }
.signin-panel { margin-bottom: 16px; }
.google-signin { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 360px; min-height: 56px; margin-block: 24px 16px; }
.social-logo { display: block; width: 32px; height: 32px; flex: none; }
.google-signin:disabled { opacity: 1; color: var(--muted); }
.signin-status { color: var(--gold); padding: 16px; border: 1px solid var(--line); background: var(--bg); margin-bottom: 24px; }
.dev-banner { padding: 12px 24px; background: #302a23; color: var(--gold); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 100; padding: 12px; background: var(--gold); color: #111; }
.skip-link:focus { top: 12px; }
.motion-paused * { animation: none !important; transition: none !important; }
@media (max-width: 700px) {
  .masthead { padding: 18px 16px; gap: 12px; }
  .brand { gap: 6px; font-size: 24px; }
  .brand-mark,.brand small { display: none; }
  .masthead nav { width: 100%; justify-content: space-between; }
  .page { padding: 28px 16px 40px; }
  .panel { padding: 20px; }
  .lobby-hero { padding: 16px 0 32px; }
  .lobby-hero > p { font-size: 18px; }
  .lobby-room { display: block; }
  .lobby-room .primary-button { display: flex; justify-content: space-between; margin-top: 24px; }
  .fact-grid { grid-template-columns: minmax(0,1fr); }
  .quote { padding: 16px; }
  .section-title { flex-wrap: wrap; gap: 12px; }
  .evidence-shortcut { margin-left: 52px; }
  .site-footer { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
