/* The world owns the cinematic palette; reading surfaces stay opaque. */
.ga-shell { --ga-paper:#fffaf0; --ga-ink:#101b30; --ga-line:#c7cddd; }
.ga-shell[data-display=screen] { --ga-paper:#101b30; --ga-ink:#fffaf0; --ga-line:#4e6384; }
.ga-stage { background:#10152b; padding:16px; color:var(--ga-ink); }
.ga-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 12px; color:#fffaf0; }
.ga-shell .ga-heading h2 { margin:0; color:#fffaf0; font:700 22px var(--font-sans),sans-serif; }
.ga-heading>b { white-space:nowrap; font-size:16px; }
.ga-teams { display:grid; grid-template-columns:repeat(var(--teams),minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.ga-team { background:var(--ga-paper); border:1px solid var(--ga-line); border-top:4px solid var(--team); border-radius:12px; padding:10px; display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; color:var(--ga-ink); }
.ga-team strong { font-size:17px; font-weight:800; overflow-wrap:anywhere; line-height:1.25; }
.ga-number { background:var(--team); color:#10152b; border-radius:6px; padding:0 7px; font-weight:800; }
.ga-team>b { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; font-size:24px; line-height:1.15; }
.ga-team small,.ga-team>span:last-child { font-size:12px; font-weight:650; }
.ga-team .lb-tool { white-space:normal; font-size:13px; padding:7px; width:100%; justify-content:center; min-height:38px; }
.ga-team button[aria-pressed=true] { background:#143f36; color:#fff; border-color:#143f36; }
.ga-main { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr); gap:14px; min-height:360px; }
.ga-art { position:relative; overflow:hidden; border-radius:16px; min-height:360px; isolation:isolate; background:#13172e; }
.ga-backdrop { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; object-position:center; }
.ga-planet { position:absolute; left:23%; top:13%; width:53%; aspect-ratio:1; filter:drop-shadow(0 12px 14px #080b36); animation:ga-arrive .65s ease-out both; }
.ga-planet>svg,.ga-host>svg,.ga-event-art>svg { width:100%; height:100%; display:block; }
.ga-host { position:absolute; left:1%; bottom:20%; width:30%; aspect-ratio:1; }
.ga-fleet { position:absolute; width:100%; height:100%; inset:0; }
.ga-event-art { position:absolute; right:1%; top:12%; width:34%; aspect-ratio:1; animation:ga-arrive .7s ease-out both; }
.ga-panel { min-width:0; padding:22px; border:1px solid var(--ga-line); background:var(--ga-paper); border-radius:16px; color:var(--ga-ink); overflow:auto; }
.ga-panel p { font-size:14px; line-height:1.65; margin:8px 0; }
.ga-panel h3 { color:var(--ga-ink); font:800 25px/1.3 var(--font-sans),sans-serif; margin:10px 0; overflow-wrap:anywhere; }
.ga-kicker { font-weight:800; }
.ga-lot-preview { display:flex; align-items:center; justify-content:center; }
.ga-lot-preview>svg { flex-shrink:0; }
.ga-lot { border-bottom:1px solid var(--ga-line); padding-bottom:8px; }
.ga-lot>span { font-size:25px; font-weight:800; display:block; }
.ga-lot>strong { display:flex; align-items:baseline; gap:10px; font-size:40px; }
.ga-lot small { font-size:14px; }
.ga-question { font-size:32px; font-weight:750; line-height:1.45; overflow-wrap:anywhere; --question-image-height:280px; }
.ga-question img { max-height:var(--question-image-height); }
.ga-answer { margin-top:16px; border-top:2px solid var(--ga-line); padding-top:16px; font-size:23px; font-weight:700; }
.ga-bid-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:12px; }
.ga-bid-form label { display:flex; flex-direction:column; width:100%; gap:4px; font-size:18px; overflow-wrap:anywhere; }
.ga-bid-form input { width:100%; background:var(--ga-paper); color:var(--ga-ink); border:2px solid var(--ga-line); font-size:26px; }
.ga-bid-form p { color:var(--ga-ink); font-weight:750; }
.ga-verdict { padding-top:16px; }
.ga-value { font-size:60px; font-weight:850; }
/* Event reveal: the verdict, not the pre-auction odds, is what the room reads.
   Hide the odds line and keep the gain on one line so it never clips. */
.ga-shell[data-phase=event] .ga-lot p { display:none; }
.ga-shell[data-phase=event] .ga-verdict { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; padding-top:10px; }
.ga-shell[data-phase=event] .ga-verdict h3 { flex:1 1 100%; margin:0; }
.ga-shell[data-phase=event] .ga-value { font-size:52px; line-height:1.1; }
.ga-shell[data-phase=event] .ga-verdict p { margin:0; font-size:20px; font-weight:750; }
.ga-dock { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; padding:14px; border-top:1px solid var(--border); }
.ga-settings { border-top:1px solid var(--border); padding:18px; }
.ga-settings summary { cursor:pointer; font-size:16px; font-weight:700; }
.ga-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding-top:16px; align-items:end; }
.ga-fields label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:650; }
.ga-fields .input { width:100%; }
.ga-warning { padding:12px 18px; font-weight:700; }
.ga-final { position:relative; min-height:480px; grid-template-columns:32% minmax(0,1fr); gap:0; }
.ga-final .ga-art { border-radius:16px 0 0 16px; }
.ga-final .ga-planet { width:95%; top:8%; left:2%; }
.ga-final .ga-host { width:100%; left:0; bottom:17%; }
.ga-final .ga-fleet { display:none; }
.ga-final .ga-panel { border-radius:0 16px 16px 0; }
.ga-panel .ga-champions { font-size:28px; }
.ga-ranking { padding:0; margin:16px 0 0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ga-ranking li { border:1px solid var(--ga-line); border-left:5px solid var(--team); border-radius:10px; padding:12px; display:flex; gap:10px; align-items:center; min-width:0; }
.ga-ranking li>div { flex:1; min-width:0; }
.ga-ranking strong { font-size:18px; font-weight:800; overflow-wrap:anywhere; }
.ga-ranking small { display:block; font-size:13px; font-weight:650; margin-top:4px; }
.ga-ranking li>b:last-child { font-size:26px; }
.ga-rank { font-size:22px; }
.ga-dialog { width:min(900px,94vw); max-height:90dvh; border:1px solid var(--border); border-radius:18px; padding:24px; color:var(--ink); background:var(--surface); }
.ga-dialog::backdrop { background:#080e24b8; }
.ga-dialog>header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ga-dialog h2 { font-size:24px; }
.ga-dialog p { line-height:1.7; }
.ga-dialog fieldset { margin:14px 0; border:1px solid var(--border); border-radius:12px; padding:14px; }
.ga-editor-actions { display:flex; gap:10px; flex-wrap:wrap; padding-top:14px; }
.ga-present { position:fixed!important; inset:0; z-index:1000; width:100%; height:100dvh; border:0!important; border-radius:0!important; }
.ga-present .ga-settings { display:none; }
.ga-present .ga-stage { flex:1; min-height:0; display:flex; flex-direction:column; }
.ga-present .ga-main { flex:1; min-height:0; grid-template-columns:minmax(0,1.15fr) minmax(380px,1fr); }
.ga-present .ga-art { min-height:0; }
.ga-present .ga-panel { padding:18px; }
.ga-present .ga-question { font-size:clamp(32px,2.5vw,48px); --question-image-height:240px; }
.ga-present .ga-team strong { font-size:clamp(18px,1.5vw,29px); }
.ga-present .ga-team>b { font-size:clamp(26px,2vw,38px); }
.ga-present .ga-team small,.ga-present .ga-team>span:last-child { font-size:14px; }
.ga-present .ga-dock { flex-shrink:0; padding:10px; }
.ga-present .ga-final { grid-template-columns:28% minmax(0,1fr); }
.ga-present .ga-ranking { margin-top:10px; }
.ga-present .ga-ranking strong { font-size:clamp(19px,1.5vw,30px); }
.ga-present .ga-ranking li { padding:12px; }
/* Bidding must remain operable at 720px: compress the lot facts, not the
   input or the six team headers. The full instructions stay in How to play. */
.ga-present[data-phase=auction] .ga-lot { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; align-items:center; }
.ga-present[data-phase=auction] .ga-lot>strong { font-size:30px; }
.ga-present[data-phase=auction] .ga-lot>span { font-size:23px; }
.ga-present[data-phase=auction] .ga-lot p { margin:0; font-size:14px; }
.ga-present[data-phase=auction] .ga-lot+p { display:none; }
@keyframes ga-arrive { from { transform:translateY(12px) scale(.94); opacity:.1; } to { transform:none; opacity:1; } }
.ga-reduced * { animation:none!important; transition:none!important; }
@media(prefers-reduced-motion:reduce) { .ga-shell * { animation:none!important; transition:none!important; } }
@media(min-width:1600px) { .ga-present .ga-panel p { font-size:20px; } .ga-present .ga-lot>span { font-size:34px; } .ga-present .ga-panel h3 { font-size:36px; } .ga-present .ga-ranking small { font-size:18px; } }
@media(max-width:700px) {
  .ga-stage { padding:10px; }
  .ga-heading h2 { font-size:19px; }
  .ga-teams { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ga-team strong { font-size:18px; }
  .ga-main,.ga-final { display:flex; flex-direction:column; min-height:0; }
  .ga-art { min-height:240px; height:240px; }
  .ga-planet { width:45%; left:29%; top:3%; }
  .ga-host { width:27%; bottom:23%; }
  .ga-panel { padding:16px; max-height:none; }
  .ga-question { font-size:27px; }
  .ga-fields { grid-template-columns:1fr; }
  .ga-dock .sprout-primary { width:100%; min-width:0; }
  .ga-final .ga-art,.ga-final .ga-panel { border-radius:16px; }
  .ga-final .ga-planet { width:45%; left:45%; }
  .ga-final .ga-host { width:45%; left:4%; bottom:4%; }
  .ga-ranking { grid-template-columns:1fr; }
  .ga-present { overflow:auto; }
  .ga-present .ga-stage { flex:none; }
  .ga-present .ga-main { display:flex; }
  .ga-present .ga-art { min-height:240px; }
  .ga-present .ga-dock { position:sticky; bottom:0; background:var(--surface); }
}
