/* HEADS game UI. Loaded last: one arcade system for menus, hub and overlays.
   Everything is scoped under #shell .arena[data-venue] so it outranks the older layered sheets.
   Venue identity comes from the --venue-* variables defined in interface.css. */
@font-face{font-family:'Lilita One';src:url('assets/fonts/LilitaOne-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Alfa Slab One';src:url('assets/fonts/AlfaSlabOne-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#0a0f16;--display:'Lilita One','Arial Black',sans-serif;--body:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;--gold:#ffcf3f;--chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M2 1.5 9.5 8 2 14.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.arena[data-venue=estate]{--venue-muted:#b9c4cc;--venue-glow:#ff727533}
.arena[data-venue=community]{--venue-title:'Lilita One','Trebuchet MS',sans-serif;--venue-muted:#b3d8cb;--venue-glow:#96efb633}
.arena[data-venue=favela]{--venue-title:'Lilita One','Trebuchet MS',sans-serif;--venue-muted:#cfe3b0;--venue-glow:#ffdf3a33}
.arena[data-venue=academy]{--venue-title:'Lilita One','Trebuchet MS',sans-serif;--venue-muted:#b8cbe0;--venue-glow:#7fd3ff33}
.arena[data-venue=sunday]{--venue-title:'Alfa Slab One',Georgia,serif;--venue-muted:#d8c7a3;--venue-glow:#f3c87833}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The arena is the whole app: no website header or footer around it. */
html,body{height:100%}
html{background:radial-gradient(120% 80% at 50% -10%,#1d2c3c 0,#0c131c 55%,#05080c 100%) fixed}
body{background:transparent;font-family:var(--body);overflow:hidden}
/* The current ground, blurred, fills the space around the 10:7 arena (wide screens and phones). */
body::before{content:'';position:fixed;inset:-60px;z-index:-1;background:var(--backdrop,none) center/cover no-repeat;filter:blur(26px) brightness(.62) saturate(1.2);opacity:0;transition:opacity .6s}
body.has-backdrop::before{opacity:1}
body::after{content:'';position:fixed;inset:0;z-index:-1;background:radial-gradient(100% 100% at 50% 50%,#0000 55%,#0007 100%);pointer-events:none}
#shell{width:100%;height:100vh;height:100dvh;margin:0;padding:12px;display:grid;place-items:center}
#shell .arena{width:min(100%,calc((100dvh - 24px)*10/7));max-height:none;margin:0;border:0;border-radius:18px;box-shadow:0 0 0 3px #000c,0 0 0 6px #ffffff0d,0 30px 90px #000d}
#shell .arena:fullscreen{width:min(100vw,142.85vh);height:min(100vh,70vw);border-radius:0;box-shadow:none}
#shell .arena canvas{border-radius:inherit}

#shell .arena[data-venue]{
 font-family:var(--body);

 /* System controls: sound and fullscreen live inside the game, bottom-right. */
 .system-bar{position:absolute;right:10px;bottom:10px;z-index:8;display:flex;gap:7px}
 .system-button{width:36px;height:36px;padding:0;border-radius:10px;border:2px solid var(--ink);background:#101922e6;box-shadow:inset 0 2px 0 #ffffff1c,0 3px 0 var(--ink);opacity:.72;display:grid;place-items:center;transition:opacity .15s,transform .08s}
 .system-button:hover{opacity:1;transform:translateY(-1px)}.system-button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
 .system-button::before{content:'';width:20px;height:20px;background:#f2f4ee;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
 #sound{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")}
 #sound[data-muted=true]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='m16 9 6 6m0-6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")}
 #sound[data-muted=true]::before{background:#ff8d8d}
 #fullscreen{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

 /* Buttons: chunky, outlined, with a pressable base. */
 :is(.primary,.home-button,.secondary){font-family:var(--display);font-weight:400;text-transform:uppercase;letter-spacing:.05em;line-height:1;border:3px solid var(--ink);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;position:relative;transition:transform .08s,box-shadow .08s,filter .12s;cursor:pointer}
 :is(.primary,.home-button){min-height:50px;padding:12px 20px;font-size:19px;color:var(--venue-dark);background:var(--venue-accent);box-shadow:inset 0 3px 0 #ffffff70,inset 0 -5px 0 #00000030,0 5px 0 var(--ink),0 10px 16px #0007;text-shadow:0 1px 0 #ffffff50}
 :is(.primary,.home-button):hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.07);box-shadow:inset 0 3px 0 #ffffff70,inset 0 -5px 0 #00000030,0 7px 0 var(--ink),0 13px 18px #0007}
 :is(.primary,.home-button,.secondary):active:not(:disabled){transform:translateY(4px);box-shadow:inset 0 3px 0 #ffffff40,0 1px 0 var(--ink)}
 :is(.primary,.home-button,.secondary):disabled{filter:saturate(.25) brightness(.75);cursor:not-allowed;transform:none}
 .primary::after,.home-button::after{content:'';flex:none;width:11px;height:15px;background:currentColor;-webkit-mask:var(--chev) center/contain no-repeat;mask:var(--chev) center/contain no-repeat;float:none;opacity:.85;line-height:0}
 .secondary{min-height:44px;padding:10px 18px;font-size:16px;color:#e9eef0;background:linear-gradient(#34465a,#253445);box-shadow:inset 0 2px 0 #ffffff26,inset 0 -4px 0 #0004,0 4px 0 var(--ink)}
 .secondary:hover:not(:disabled){filter:brightness(1.15)}
 .text-button{font-family:var(--display);font-weight:400;letter-spacing:.06em;text-transform:uppercase;font-size:13px;color:var(--venue-muted);background:none;border:0;padding:12px 4px}
 .text-button:hover{color:var(--venue-text);text-decoration:none}

 /* Panels: venue plate with an ink outline, inner rim and a solid drop. */
 :is(.match-card,.career-card,.hub-float,.history-panel){background:var(--venue-pattern),linear-gradient(180deg,#ffffff0d,#0000 40%),var(--venue-panel);color:var(--venue-text);border:3px solid var(--ink);border-radius:16px;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--venue-border) 55%,transparent),inset 0 4px 0 #ffffff12,0 8px 0 #000b,0 22px 44px #000a}
 :is(.match-card,.career-card) h2{font-family:var(--venue-title);font-weight:400;letter-spacing:0;color:var(--venue-text);text-shadow:0 3px 0 var(--ink);line-height:1.05}
 .eyebrow{display:inline-block;font-family:var(--display);font-weight:400;font-size:12px;letter-spacing:.14em;line-height:1;color:var(--venue-dark);background:var(--venue-accent);padding:6px 10px 5px;border:2px solid var(--ink);border-radius:7px;box-shadow:0 3px 0 var(--ink);transform:rotate(-2deg);text-shadow:none}
 .overlay:not(.training-hub):not(.title-screen):not(.solid-menu){background:radial-gradient(circle at 50% 45%,#0a121b99,#05080cd9);backdrop-filter:blur(5px) saturate(.8)}
 :is(.match-card,.career-card,.history-panel,.editor-fields){scrollbar-width:thin;scrollbar-color:var(--venue-border) transparent}

 kbd{font-family:var(--display);font-weight:400;font-size:12px;color:#f3f1e8;background:linear-gradient(#3a4b5c,#26333f);border:2px solid var(--ink);border-bottom-width:4px;border-radius:7px;padding:3px 7px 2px;min-width:26px;display:inline-block;text-align:center}

 /* Title screen: floodlit night pitch behind the lockup. */
 .title-screen{background:radial-gradient(55% 45% at 12% -8%,#e8f3ff30,#0000 70%),radial-gradient(55% 45% at 88% -8%,#e8f3ff30,#0000 70%),linear-gradient(180deg,#0000 0 76%,#0008 100%),linear-gradient(180deg,#1e3044 0,#101b29 74%,#ffffff2b 74% calc(74% + 3px),#0000 0),repeating-linear-gradient(90deg,#1f5232 0 8%,#1a4a2c 8% 16%);padding:22px}
 .title-screen::before{content:'';position:absolute;left:50%;top:87%;width:46%;aspect-ratio:4.2;transform:translate(-50%,-50%);border:3px solid #ffffff26;border-radius:50%;z-index:-1}
 .title-screen::after{content:'';position:absolute;left:50%;top:74%;bottom:0;width:3px;transform:translateX(-50%);background:#ffffff26;z-index:-1}
 .home-eyebrow{font-family:var(--display);font-weight:400;font-size:13px;letter-spacing:.3em;color:#c9d6e2;margin-bottom:10px}
 .title-lockup h1{font-family:var(--display);font-weight:400;font-size:clamp(70px,17cqw,150px);letter-spacing:.01em;line-height:.9;color:#fff3d6;-webkit-text-stroke:7px var(--ink);paint-order:stroke fill;text-shadow:0 9px 0 var(--ink),0 20px 30px #000a}
 .title-lockup p{font-size:clamp(28px,5.4cqw,46px);color:#ff4c57;-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;text-shadow:0 4px 0 var(--ink);margin-top:2px}
 .home-actions{width:min(330px,52%);gap:13px}
 .home-button{justify-content:space-between;text-align:left;font-size:20px;min-height:54px;padding:12px 18px;border-bottom-width:3px}
 .home-campaign{background:#b9f04a}.home-quick{background:#55bbff}.home-help{background:#ffd23f}
 .home-new{background:#16212d;color:#cfd9e2;min-height:38px;font-size:14px;box-shadow:inset 0 2px 0 #ffffff14,0 3px 0 var(--ink);text-shadow:none}
 .home-new:hover:not(:disabled){box-shadow:inset 0 2px 0 #ffffff14,0 5px 0 var(--ink)}
 .home-controls{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:22px;font-family:var(--display);font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#b8c7d3}
 .home-controls span{display:flex;align-items:center;gap:5px}
 .home-player{filter:drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 16px 10px #0008)}

 /* Quick Match: picker grid with ground art. */
 .solid-menu{background:radial-gradient(70% 60% at 50% 0,var(--venue-glow),#0000 70%),radial-gradient(120% 100% at 50% 30%,#18232f,#0a1018)}
 .quick-card{width:min(660px,97%);padding:22px 24px 16px}
 .quick-card h2{font-size:34px;margin:12px 0 4px}
 .quick-card .screen-intro{color:var(--venue-muted);font-size:14px;margin:0 0 14px}
 .quick-card .choices{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0 0 12px}
 .field{display:flex;flex-direction:column;gap:6px;min-width:0}.field-ground{grid-column:1/-1}
 .field-label{font-family:var(--display);font-size:12px;letter-spacing:.16em;color:var(--venue-muted)}
 .picker{display:flex;gap:7px}
 .pick{flex:1;min-width:0;min-height:44px;padding:6px 8px;display:flex;align-items:center;justify-content:center;gap:7px;font-family:var(--display);font-weight:400;font-size:15px;letter-spacing:.03em;text-transform:uppercase;color:#cdd7df;background:linear-gradient(#1d2a37,#141e29);border:3px solid var(--ink);border-radius:10px;box-shadow:inset 0 2px 0 #ffffff12,inset 0 -4px 0 #0005,0 3px 0 var(--ink);cursor:pointer;transition:transform .08s,filter .12s,background-color .12s;white-space:nowrap}
 .pick svg{width:20px;height:20px;flex:none}
 .pick:hover:not(:disabled){filter:brightness(1.22);transform:translateY(-1px)}
 .pick:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #ffffff12,0 1px 0 var(--ink)}
 .pick[aria-checked=true]{color:var(--venue-dark);background:var(--venue-accent);box-shadow:inset 0 3px 0 #ffffff66,inset 0 -4px 0 #0003,0 3px 0 var(--ink),0 0 18px var(--venue-glow)}
 .picker.is-disabled{opacity:.38}.pick:disabled{cursor:not-allowed}
 .picker-ground .pick{height:96px;padding:0;align-items:flex-end;justify-content:stretch;overflow:hidden;background-color:#111;background-size:cover;background-position:center 60%;position:relative;color:#fff}
 .picker-ground .pick-label{width:100%;padding:22px 10px 7px;text-align:left;font-size:16px;background:linear-gradient(#0000,#000c 70%);text-shadow:0 2px 0 var(--ink)}
 .picker-ground .pick[aria-checked=true]{background-color:#111;box-shadow:0 0 0 3px var(--venue-accent),0 3px 0 3px var(--ink),0 0 22px var(--venue-glow)}
 .picker-ground .pick[aria-checked=true]::after{content:'';position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:7px;border:2px solid var(--ink);background:var(--venue-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%230a0f16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
 .picker-ground .pick:not([aria-checked=true]){filter:saturate(.55) brightness(.8)}
 .picker-ground .pick:not([aria-checked=true]):hover{filter:saturate(.9) brightness(1)}
 :is(.picker-weather,.picker-difficulty) .pick{flex-direction:column;gap:3px;min-height:52px;padding:5px 2px;font-size:12.5px;letter-spacing:.02em}
 .picker-difficulty .pick{flex-direction:column-reverse}
 .pips{display:flex;gap:2px;align-items:flex-end}.pips b{width:4px;border-radius:2px;background:currentColor;opacity:.25}.pips b:nth-child(1){height:7px}.pips b:nth-child(2){height:11px}.pips b:nth-child(3){height:15px}
 .pips[data-level='1'] b:nth-child(-n+1),.pips[data-level='2'] b:nth-child(-n+2),.pips[data-level='3'] b{opacity:1}
 .quick-card .quick-note{font-size:13px;color:var(--venue-muted);margin:4px 0;border:0;padding:0}
 .quick-card #quick-controls{border:0;padding-top:0;font-family:var(--display);letter-spacing:.04em;color:var(--venue-text)}
 .quick-card #quick-rules{margin-bottom:12px}
 .quick-card .primary{width:100%;background:var(--venue-accent);font-size:22px;min-height:54px}
 .quick-card .text-button{display:block;margin:6px auto 0}

 /* How to play. */
 .help-card{width:min(600px,97%);padding:22px 24px}
 .help-card h2{font-size:34px;margin:12px 0 14px}
 .help-controls{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;align-items:center;background:#0004;border:2px solid #0006;border-radius:12px;padding:14px 16px;margin:0 0 14px}
 .help-controls dt{display:flex;gap:4px;font-family:var(--display);font-weight:400;color:var(--venue-accent);font-size:16px;letter-spacing:.04em}
 .help-controls dd{margin:0;color:var(--venue-text);font-size:14px}
 .help-card p{color:var(--venue-muted);font-size:14px;line-height:1.55}
 .help-card p strong{font-family:var(--display);font-weight:400;letter-spacing:.04em;color:var(--venue-text)}
 .powerup-help{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 14px}
 .powerup-help li{background:#0004;border:2px solid #0007;border-radius:12px;padding:8px 10px;gap:10px;align-items:center}
 .powerup-help canvas{width:40px;height:40px;border-radius:10px;background:var(--venue-dark);border:2px solid var(--ink);box-shadow:inset 0 2px 0 #ffffff1a}
 .powerup-help span{font-size:12.5px;line-height:1.35;color:var(--venue-muted)}
 .powerup-help span strong{display:block;font-family:var(--display);font-weight:400;font-size:15px;letter-spacing:.04em;color:var(--venue-text);width:auto;margin-bottom:1px}
 .help-card .primary{width:100%;background:var(--venue-accent)}

 /* Pause and full time. */
 .match-card.compact{width:min(400px,92%);padding:26px 26px 18px;border-top:3px solid var(--ink)}
 .compact h2{font-size:38px;margin:14px 0 18px}
 .compact .primary{width:100%}.compact .secondary{width:100%;margin-top:12px}
 .result-score{font-family:var(--venue-title);font-weight:400;font-size:84px;letter-spacing:.02em;color:var(--venue-accent);-webkit-text-stroke:6px var(--ink);paint-order:stroke fill;text-shadow:0 7px 0 var(--ink);margin:4px 0 10px}
 #result-detail{font-family:var(--display);letter-spacing:.05em;text-transform:uppercase;font-size:14px;color:var(--venue-muted)}
 .performance-badge{font-family:var(--display);font-weight:400;border:2px solid var(--ink);box-shadow:inset 0 2px 0 #ffffff4d,0 2px 0 var(--ink);text-shadow:0 1px 0 #0006;border-radius:7px}

 /* Campaign editor. */
 #customise{background:radial-gradient(70% 60% at 50% 0,var(--venue-glow),#0000 70%),radial-gradient(120% 100% at 50% 30%,#18232f,#0a1018);backdrop-filter:none}
 .editor-card{padding:20px 22px;width:min(780px,100%);height:min(610px,100%)}
 .editor-fields{overflow-x:hidden}
 .editor-heading h2{font-size:32px}
 .player-stage{background:radial-gradient(ellipse at 50% 85%,var(--venue-glow),#0000 60%),var(--venue-dark);border:3px solid var(--ink);border-radius:14px;box-shadow:inset 0 0 0 2px #ffffff10,inset 0 -30px 40px #0005}
 .stage-label{font-family:var(--display);letter-spacing:.14em;font-size:11px;color:var(--venue-muted)}
 .name-label{font-family:var(--display);letter-spacing:.14em;font-size:12px;color:var(--venue-muted)}
 #player-name{font-family:var(--display);font-weight:400;font-size:20px;letter-spacing:.03em;color:var(--venue-text);background:var(--venue-dark);border:3px solid var(--ink);border-radius:10px;box-shadow:inset 0 3px 0 #0006}
 .editor-tabs{background:var(--venue-dark);border:3px solid var(--ink);border-radius:12px;padding:4px;gap:4px}
 .editor-tabs button{font-family:var(--display);font-weight:400;font-size:14px;letter-spacing:.08em;color:var(--venue-muted);border-radius:8px;min-height:36px}
 .editor-tabs button[aria-selected=true]{background:var(--venue-accent);color:var(--venue-dark);box-shadow:inset 0 2px 0 #fff6,0 2px 0 var(--ink)}
 .choice-heading span{font-family:var(--display);letter-spacing:.14em;font-size:12px;color:var(--venue-muted)}
 .choice-heading strong{font-family:var(--display);font-weight:400;font-size:14px;color:var(--venue-text)}
 .visual-option{background:linear-gradient(#1f2c39,#16212c);border:3px solid var(--ink);border-radius:12px;box-shadow:inset 0 2px 0 #ffffff12,0 3px 0 var(--ink);color:var(--venue-muted);font-family:var(--display)}
 .visual-option span{font-family:var(--display);font-size:14px;letter-spacing:.04em}
 .visual-option:hover{filter:brightness(1.2);border-color:var(--ink)}
 .visual-option[aria-pressed=true]{background:radial-gradient(ellipse at 50% 70%,var(--venue-glow),#0000 70%),var(--venue-dark);border:3px solid var(--venue-accent);padding:5px 3px 9px;color:var(--venue-text);box-shadow:0 0 0 2px var(--ink),0 0 18px var(--venue-glow)}
 .visual-option[aria-pressed=true]::after{border:2px solid var(--ink);border-radius:7px;width:20px;height:20px;line-height:16px;top:5px;right:5px}
 .colour-option{position:relative;border:3px solid var(--ink);box-shadow:inset 0 3px 0 #ffffff55,0 2px 0 var(--ink)}
 .colour-option:disabled:not([aria-pressed=true]){opacity:1;filter:saturate(.35) brightness(.55)}
 .colour-option:disabled:not([aria-pressed=true])::after{content:'';position:absolute;inset:0;margin:auto;width:12px;height:13px;background:#f3f1e8;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 13'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='1' y='6' width='10' height='7' rx='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 13'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='1' y='6' width='10' height='7' rx='2'/%3E%3C/svg%3E") center/contain no-repeat}
 .colour-option[aria-pressed=true]:disabled{opacity:1;cursor:default}
 .swatches{gap:12px;padding:6px 3px}.colour-option{width:34px;height:34px}
 .flag-option{width:46px;height:31px;border-radius:5px;background:center/cover no-repeat}
 #boot-unlock-note{font-family:var(--display);letter-spacing:.04em;font-size:14px;color:var(--venue-text);background:#0004;border:2px solid #0006;border-radius:10px;padding:10px 12px;margin:0 0 14px}
 .choice-options.tiles .visual-option canvas{width:100%;height:62px}
 .colour-option[aria-pressed=true]{outline:3px solid var(--venue-accent);outline-offset:2px}
 .editor-footer{border-top:2px dashed #ffffff1c}
 .editor-footer p{color:var(--venue-muted);font-size:13px}
 .creator-rating>span{font-size:12.5px;color:var(--venue-muted);line-height:1.35}
 .editor-footer .primary{font-size:18px;min-width:220px}
 #random-player{font-size:13px;color:var(--venue-accent)}

 /* Training hub: the same plates, kept compact over the pitch. */
 .training-toolbar strong{font-family:var(--venue-title);font-weight:400;font-size:18px;margin:0;letter-spacing:.01em;color:var(--venue-text);-webkit-text-stroke:0;text-shadow:0 2px 0 var(--ink)}
 .training-toolbar>div:first-child{background:var(--venue-pattern),var(--venue-panel);border:3px solid var(--ink);border-radius:11px;padding:3px 12px 4px 10px;box-shadow:inset 0 2px 0 #ffffff14,0 3px 0 var(--ink);display:flex;flex-direction:column;align-items:flex-start;gap:2px}
 .training-toolbar .eyebrow{font-size:10px;padding:4px 8px 3px;box-shadow:0 2px 0 var(--ink)}
 .training-actions .icon-button{font-family:var(--display);font-weight:400;font-size:12px;letter-spacing:.06em;color:var(--venue-text);background:linear-gradient(#2f4152,#1e2b38);border:2px solid var(--ink);border-radius:9px;box-shadow:inset 0 2px 0 #ffffff1f,0 3px 0 var(--ink);min-height:32px;padding:7px 11px}
 .training-actions .icon-button:hover{filter:brightness(1.18)}
 .training-actions .icon-button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
 .hub-float{border-width:3px;border-top-width:3px;border-radius:13px;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--venue-border) 45%,transparent),inset 0 3px 0 #ffffff12,0 5px 0 #000b}
 .hub-float h3{font-family:var(--venue-title);font-weight:400;font-size:18px;letter-spacing:.01em;color:var(--venue-text);text-shadow:0 2px 0 var(--ink)}
 .float-kicker,.upgrades-heading,.xp-heading{font-family:var(--display);font-weight:400;letter-spacing:.1em;text-transform:uppercase}
 .career-total{font-family:var(--display);font-weight:400;color:var(--venue-accent);-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;text-shadow:0 3px 0 var(--ink);letter-spacing:.02em}
 .training-count-label strong{font-family:var(--display);font-weight:400}
 .stat-row{border-radius:7px;border:0}
 .hub-float .stat-row strong{font-family:var(--display);font-weight:400;font-size:14px}
 .hub-float .stat-label{font-family:var(--display);font-weight:400;font-size:12px;letter-spacing:.04em}
 /* Tier colour lives on the bar; numbers stay readable and upgrades are always "go" green. */
 .hub-float .stat-row strong{color:var(--venue-text)!important}
 .hub-float .stat-row button{font-family:var(--display);font-weight:400;border:2px solid var(--ink);border-radius:7px;background:#b9f04a;color:#16240c;box-shadow:inset 0 2px 0 #fff8,0 2px 0 var(--ink);line-height:1}
 .upgrades-heading #training-points{color:#c8f56a}
 .hub-float .stat-row button:disabled{background:#2a3743;color:#6f818c;border:2px solid var(--ink);box-shadow:none;opacity:1}
 .xp-track{height:8px;border-radius:5px;background:#0006;border:2px solid var(--ink);box-sizing:content-box}
 .xp-track i{border-radius:3px;box-shadow:inset 0 2px 0 #fff6}
 .next-card .fixture{border:2px solid var(--ink);border-radius:7px;background:#0004;box-shadow:inset 0 2px 0 #ffffff10}
 .next-card .fixture-number{font-family:var(--display);font-weight:400}
 .next-card .fixture.current{background:var(--venue-dark);border-color:var(--venue-accent)}
 .next-card .primary{min-height:36px;font-size:14px;border-width:2px;box-shadow:inset 0 2px 0 #ffffff70,inset 0 -3px 0 #0003,0 3px 0 var(--ink)}
 .next-card #streak-count{font-family:var(--display);font-weight:400;border:2px solid var(--venue-accent);border-radius:6px}
 /* Short supporting lines use the display face at a readable size. */
 :is(.next-card .hub-message,.training-reward,.next-card #next-conditions,.training-count-label){font-family:var(--display);font-weight:400;letter-spacing:.03em;font-size:12px;line-height:1.3}
 .history-toggle{font-size:12px;color:var(--venue-accent);padding:6px 0 0}
 .float-heading .text-button{padding:4px 7px;font-size:11px;border:2px solid var(--ink);border-radius:7px;background:var(--venue-dark);margin:0}
 .history-panel{border-radius:16px;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--venue-border) 55%,transparent),inset 0 4px 0 #ffffff12,0 8px 0 #000b,0 22px 44px #000a,0 0 0 2000px #050a10c9}
 .history-heading h3{font-family:var(--venue-title);font-weight:400;font-size:28px;text-shadow:0 3px 0 var(--ink)}
 .history-row{font-family:var(--display);font-weight:400;letter-spacing:.03em}
 select:not([hidden]){appearance:none;-webkit-appearance:none;font-family:var(--display);font-weight:400;letter-spacing:.04em;color:var(--venue-text);background:var(--venue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5' fill='none' stroke='%23d8dee3' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/12px no-repeat;border:3px solid var(--ink);border-radius:10px;padding:9px 34px 9px 12px;box-shadow:inset 0 2px 0 #ffffff12,0 3px 0 var(--ink)}
 select option{background:#141e29;color:#eef2f4;font-family:var(--body)}
 .rating-star{background:#0008}.rating-star i{background:linear-gradient(#ffe27a,var(--gold) 55%,#e0a619)}

 /* Toasts and loading. */
 /* Notices sit bottom-left and leave room for the sound/fullscreen buttons. */
 .campaign-notice{left:12px;right:104px;bottom:12px;width:auto;font-family:var(--display);letter-spacing:.03em;border:3px solid var(--ink);border-radius:12px;box-shadow:0 5px 0 var(--ink),0 14px 30px #0009} .loading{font-family:var(--display);letter-spacing:.12em;font-size:20px;background:radial-gradient(circle at 50% 40%,#1c2a38,#0b1119)}
 .loading::before{content:'';width:46px;height:46px;margin:0 auto;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-4.7 4.5-1.5 2.8 3.8H-2.8L-4.5-1.5Z' fill='%23263329'/%3E%3Cg fill='%23263329'%3E%3Cpath d='M-2.7-11.3H2.7L1.6-8.1H-1.6Z'/%3E%3Cpath d='M-2.7-11.3H2.7L1.6-8.1H-1.6Z' transform='rotate(72)'/%3E%3Cpath d='M-2.7-11.3H2.7L1.6-8.1H-1.6Z' transform='rotate(144)'/%3E%3Cpath d='M-2.7-11.3H2.7L1.6-8.1H-1.6Z' transform='rotate(216)'/%3E%3Cpath d='M-2.7-11.3H2.7L1.6-8.1H-1.6Z' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat,radial-gradient(circle at 35% 30%,#fff,#e6e1d2 60%,#a8a190);border:3px solid var(--ink);box-shadow:0 5px 0 var(--ink);animation:heads-bounce .7s cubic-bezier(.3,0,.7,1) infinite alternate}
}
@keyframes heads-bounce{to{transform:translateY(-22px) rotate(160deg)}}

/* Arena-width layouts, matching interface.css breakpoints. */
@container (max-width:620px){
 #shell .arena[data-venue]{
  :is(.primary,.home-button){min-height:40px;font-size:15px;padding:9px 14px}
  .title-screen{padding:10px}.home-eyebrow{font-size:9px;margin-bottom:2px}.title-lockup{margin-bottom:10px}
  .title-lockup h1{font-size:13cqw;-webkit-text-stroke:5px var(--ink);text-shadow:0 6px 0 var(--ink)}.title-lockup p{font-size:5.4cqw;-webkit-text-stroke:4px var(--ink)}
  .home-button{min-height:34px;font-size:14px;padding:7px 14px}.home-new{min-height:28px;font-size:11px}.home-actions{gap:7px}
  .home-controls{display:none}kbd{font-size:10px;padding:2px 5px 1px;min-width:20px}
  .quick-card{padding:14px 16px 10px}.quick-card h2{font-size:26px;margin-top:8px}.quick-card .screen-intro{display:none}
  .quick-card .choices{gap:8px 10px}.picker-ground .pick{height:64px}.pick{min-height:36px;font-size:12px;gap:5px;padding:4px 5px}.pick svg{width:16px;height:16px}
  .picker-ground .pick-label{font-size:13px;padding:14px 7px 5px}.quick-card .primary{font-size:17px;min-height:42px}
  .quick-card h2,.quick-card .quick-note{display:none}.quick-card .eyebrow{margin-bottom:8px}.picker-ground .pick{height:54px}
  :is(.picker-weather,.picker-difficulty) .pick{min-height:42px;font-size:11px}.quick-card .text-button{padding:6px 4px 0}
  .quick-card #start{position:sticky;bottom:0;z-index:2;margin-top:10px}
  .compact h2{font-size:30px}.result-score{font-size:60px}
  .help-card h2{font-size:26px}.powerup-help{grid-template-columns:1fr}
  .training-toolbar strong{font-size:17px}.training-actions .icon-button{font-size:10px;padding:5px 8px;min-height:28px}
  .system-button{width:30px;height:30px}.system-button::before{width:16px;height:16px}
 }
}
@media(prefers-reduced-motion:reduce){#shell .arena[data-venue]{:is(.primary,.home-button,.pick,.system-button){transition:none}.loading::before{animation:none}}}
