/* Title font: own copy in assets/fonts (Luckiest Guy, Apache License 2.0, LICENSE-LuckiestGuy.txt beside it).
   Every font: a Latin-subset WOFF2 first (fontTools pyftsubset, audit 26 Nov 2026; ~70% smaller), the full TTF as the fallback. */
@font-face { font-family: 'Luckiest Guy'; src: url('assets/fonts/LuckiestGuy-Regular.woff2') format('woff2'), url('assets/fonts/LuckiestGuy-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
/* Label font for the lobby / room (concept look): Cinzel, SIL OFL 1.1 (Cinzel-OFL.txt beside it), variable 400-900,
   from github.com/google/fonts ofl/cinzel. Self-hosted: the CSP allows fonts from 'self' only. */
@font-face { font-family: 'Cinzel'; src: url('assets/fonts/Cinzel-Variable.woff2') format('woff2'), url('assets/fonts/Cinzel-Variable.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }
/* Name font (boss OK 26 Nov 2026): Libre Baskerville, SIL OFL 1.1 (LibreBaskerville-OFL.txt beside it), variable 400-700,
   from github.com/google/fonts ofl/librebaskerville. Player names = bold italic, rank names = upright. */
@font-face { font-family: 'ArcName'; src: url('assets/fonts/LibreBaskerville-Italic-VF.woff2') format('woff2'), url('assets/fonts/LibreBaskerville-Italic-VF.ttf') format('truetype'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'ArcName'; src: url('assets/fonts/LibreBaskerville-VF.woff2') format('woff2'), url('assets/fonts/LibreBaskerville-VF.ttf') format('truetype'); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --bg: #0f1115;
  --panel: rgba(15, 17, 21, 0.82);
  --panel-solid: #161a21;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --red: #e5484d;
  --blue: #3b82f6;
  --gold: #f5b83d;
  --green: #3ecf8e;
  --btn: rgba(255, 255, 255, 0.1);
  --btn-on: rgba(255, 255, 255, 0.22);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; user-select: none; -webkit-user-select: none;
  touch-action: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- HUD ---------- */
/* The battle HUD (v3, FEATURES-BRIEF 41a) lives in hud.css; here only the layer itself. */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button { pointer-events: auto; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: radial-gradient(ellipse at top, rgba(40,48,66,.55), rgba(8,9,12,.92)); overflow-y: auto; }
.panel { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; width: min(760px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); max-height: 100%; overflow-y: auto; }
.panel.small { width: min(340px, 100%); text-align: center; display: flex; flex-direction: column; gap: 10px; }
h1 { margin: 0 0 10px; font-size: 34px; font-weight: 900; letter-spacing: .04em; text-align: center; line-height: 1; }
h1 span { color: var(--red); margin-left: 10px; }
h2 { margin: 4px 0 8px; font-size: 26px; }
.group { margin: 10px 0; }
.group.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lbl { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 10px 8px; border-radius: 10px; background: var(--btn); border: 1px solid var(--line); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; }
.seg button.on { background: var(--text); color: var(--bg); }
.kinds { display: flex; gap: 6px; }
.kind { flex: 1; padding: 6px 4px 8px; border-radius: 12px; background: var(--btn); border: 1px solid var(--line); text-align: center; }
.kind canvas { width: 100%; height: 46px; display: block; }
.kind b { display: block; font-size: 13px; }
.kind small { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; margin-top: 2px; }
.kind.on { border-color: var(--gold); background: rgba(245,184,61,.12); }
.start { width: 100%; padding: 14px; border-radius: 12px; background: var(--red); font-size: 18px; font-weight: 800; letter-spacing: .1em; margin-top: 6px; }
.ghost { width: 100%; padding: 12px; border-radius: 12px; background: var(--btn); border: 1px solid var(--line); font-weight: 700; }

#rotate { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 50; align-items: center; justify-content: center;
  text-align: center; font-size: 56px; }
#rotate p { font-size: 16px; color: var(--muted); }
@media (orientation: portrait) and (max-width: 700px) { #rotate { display: flex; } }
@media (max-height: 420px) {
  h1 { font-size: 26px; margin-bottom: 4px; }
  .group { margin: 6px 0; }
  .kind canvas { height: 34px; }
  .panel { padding: 10px 14px; }
  .start { padding: 10px; }
}

/* ---------- Online / 4 players ---------- */
/* player cards (.pcard, .pcard.mini, 3v3 / 4v4 .cards.grid + .pcard.tiny) and the turn queue #tq: hud.css */
#banner.sd { font-size: 40px; color: #ffdd57; text-shadow: 0 0 18px rgba(255,70,40,.9), 0 3px 0 #7a1200; letter-spacing: .1em; }
.inp { width: 100%; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 16px; }
.inp:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.inp.code { text-transform: uppercase; letter-spacing: .2em; text-align: center; font-weight: 700; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 110px 90px; gap: 6px; margin-top: 8px; }
.row3 .ghost { padding: 10px 6px; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.row2 .start { margin: 0; }
#netMsg { min-height: 18px; margin-top: 6px; color: var(--gold); font-size: 13px; text-align: center; }
#netMsg .net-retry { min-height: 44px; min-width: 88px; margin-left: 8px; padding: 0 14px; border-radius: 10px; border: 1px solid #d4a64a;
  background: rgba(30,18,50,.8); color: #ffe9a8; font: 700 13px/1 var(--serif, serif); letter-spacing: .08em; cursor: pointer; pointer-events: auto; }
.lobbyhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
#roomCode { font-size: 34px; font-weight: 900; letter-spacing: .2em; color: var(--gold); line-height: 1; }
#roomInfo { color: var(--muted); font-size: 13px; text-align: right; }
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.seat { border-radius: 12px; padding: 6px 8px; background: var(--btn); border: 1px solid var(--line); text-align: center; min-height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seat.red { border-left: 4px solid var(--red); }
.seat.blue { border-left: 4px solid var(--blue); }
.seat.empty { opacity: .55; border-style: dashed; }
.seat canvas { width: 90px; height: 40px; }
.seat b { font-size: 13px; }
.seat small { color: var(--muted); font-size: 11px; }
.seg button:disabled { opacity: .6; cursor: default; }
.start:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) {
html:not(.rot) .row3 { grid-template-columns: 1fr 1fr; }
 }

/* ---------- Accounts, rank, profile, leaderboard (phase 3) ---------- */
.menutop { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.menutop h1 { margin: 0; }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--btn);
  border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .04em; max-width: 100%; overflow: hidden; white-space: nowrap; }
#btnBoard { justify-self: end; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.cup { width: 14px; height: 12px; background: var(--gold); border-radius: 0 0 7px 7px; position: relative; display: inline-block; }
.badge { display: block; flex: none; }
.row2b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2b .start { margin-top: 6px; }
.start.ranked { background: linear-gradient(135deg, #7a2fb0, #3b82f6); }
.start.ranked.searching { background: var(--btn); border: 1px solid var(--gold); color: var(--gold); font-size: 15px; }
.start.sm { width: auto; padding: 8px 14px; font-size: 13px; margin: 0; }
#overResult { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
#overResult:empty { display: none; }
#overResult .lvup { color: var(--gold); font-weight: 800; }
.lvbar { position: relative; height: 16px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--line); overflow: hidden; flex: 1; }
.lvbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #3ecf8e, #2bb3a0); transition: width .6s; }
.lvbar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; }
.panel.prof, .panel.board { width: min(640px, 100%); }
.profhead { display: flex; align-items: center; gap: 12px; }
.profhead h2 { margin: 0; }
.grow { flex: 1; min-width: 0; }
.close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; flex: none; font-size: 18px; }
/* every pop-up (public/overlay.js): the title row with the X sticks to the top while the body scrolls */
.panel.ov-p { padding-top: 0 !important; }
.ov-head { position: sticky; top: 0; z-index: 5; background: var(--panel-solid); padding-top: 10px; padding-bottom: 6px; }
.ov-made { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ov-made h2 { flex: 1; margin: 0; padding-left: 52px; }
.panel:not(.small) > .ov-made h2 { padding-left: 0; }
#profName { font-size: 22px; font-weight: 800; }
#profTier, #lbSeason { color: var(--muted); font-size: 13px; }
.lvrow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.lvrow b { font-size: 13px; white-space: nowrap; }
#profMsg, #recMsg { color: var(--gold); font-size: 13px; min-height: 16px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 8px; }
.stats div { background: var(--btn); border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-align: center; }
.stats small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.stats .coins b { color: var(--gold); }
.recov { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.recov .ghost { padding: 9px; }
#recBox { margin-top: 6px; }
#recCode { display: block; font-size: 26px; letter-spacing: .25em; color: var(--gold); }
#recBox small { color: var(--muted); font-size: 11px; }
.recrow { display: grid; grid-template-columns: 1fr 90px 80px; gap: 6px; }
.recrow .inp { padding: 8px 10px; }
.lbhead, .lbrow { display: grid; grid-template-columns: 40px 30px 1fr 96px 56px 70px; gap: 6px; align-items: center; padding: 4px 8px; font-size: 13px; }
.lbhead { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
#lbList { max-height: 46vh; overflow-y: auto; }
.lbrow { border-radius: 8px; }
.lbrow:nth-child(odd) { background: rgba(255,255,255,.03); }
.lbrow.you { background: rgba(245,184,61,.12); outline: 1px solid rgba(245,184,61,.5); }
#lbYou .lbrow { margin-top: 6px; }
.lbrow .pos { font-weight: 800; font-variant-numeric: tabular-nums; }
.lbrow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbrow .nm small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.lbrow .tr { color: var(--muted); }
.lbrow .mm { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.lbrow .wl { color: var(--muted); font-size: 12px; text-align: right; }
.lbempty { color: var(--muted); padding: 16px; text-align: center; }
.seat .badge { margin-bottom: -4px; }
@media (max-height: 420px) {
  .chip { padding: 4px 8px; font-size: 11px; }
  #lbList { max-height: 52vh; }
  .stats b { font-size: 15px; }
}
@media (max-width: 640px) {
html:not(.rot) .stats { grid-template-columns: repeat(3, 1fr); }
html:not(.rot) .recov { grid-template-columns: 1fr; }
html:not(.rot) .lbhead, html:not(.rot) .lbrow { grid-template-columns: 34px 28px 1fr 50px 56px; }
html:not(.rot) .lbhead .tr, html:not(.rot) .lbrow .tr { display: none; }

}
/* star ladder */
.stars { color: var(--gold); letter-spacing: .05em; white-space: nowrap; font-weight: 700; }
.stars i { font-style: normal; color: rgba(255,255,255,.3); }
.lbrow .mm.stars { text-align: right; font-size: 12px; }
#profTier { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#profTier b { color: var(--text); }
.rankline { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.rankline .delta { font-weight: 800; color: var(--muted); }
.rankline .delta.up { color: var(--green); }
.rankline .delta.down { color: var(--red); }
.stats .best b { font-size: 13px; }
.lbhead, .lbrow { grid-template-columns: 40px 30px 1fr 110px 86px 64px; }
@media (max-width: 640px) {
html:not(.rot) .lbhead, html:not(.rot) .lbrow { grid-template-columns: 34px 28px 1fr 70px 56px; }
 }

/* ---------- Always landscape: a phone held upright gets the page turned sideways (html.rot from game.js) ---------- */
html.rot body { position: fixed; top: 0; left: 0; width: var(--appW); height: var(--appH);
  transform-origin: top left; transform: translateX(var(--appH)) rotate(90deg); }
html.rot canvas#game { width: 100%; height: 100%; }
html.rot #rotate { display: none !important; }
html.rot #lbList { max-height: 46vw; }
html.rot.short h1 { font-size: 26px; margin-bottom: 4px; }
html.rot.short .group { margin: 6px 0; }
html.rot.short .kind canvas { height: 34px; }
html.rot.short .panel { padding: 10px 14px; }
html.rot.short .start { padding: 10px; }

html.rot.short .chip { padding: 4px 8px; font-size: 11px; }
html.rot.short #lbList { max-height: 52vw; }
html.rot.short .stats b { font-size: 15px; }


/* ---------- Loading screen (manhwa style: hero, light rays, speed lines, slanted comic title) ---------- */
#boot { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: #140d2e; transition: opacity .4s; }
#boot.gone { opacity: 0; pointer-events: none; }
#boot .bootbg { position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image:
    radial-gradient(ellipse 80% 55% at 30% 100%, rgba(255,140,40,.55), transparent 70%),
    linear-gradient(170deg, #1b1446 0%, #4b2a7a 34%, #c8466a 62%, #ff9a3c 82%, #ffd27a 100%); }
/* spinning light rays behind the hero */
#boot .bootrays { position: absolute; left: 30%; top: 55%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,170,.20) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 42%); mask-image: radial-gradient(circle, #000 8%, transparent 42%);
  animation: bootSpin 40s linear infinite; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
/* manhwa speed lines from the edges */
#boot .bootspeed { position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 3deg at 30% 55%, rgba(255,255,255,.55) 0deg .35deg, transparent .35deg 4.7deg);
  -webkit-mask-image: radial-gradient(ellipse at 30% 55%, transparent 38%, #000 75%); mask-image: radial-gradient(ellipse at 30% 55%, transparent 38%, #000 75%);
  opacity: .5; animation: bootFlick .18s steps(2) infinite; }
@keyframes bootFlick { 50% { opacity: .35; transform: rotate(.6deg); } }
/* halftone dots, top right */
#boot .boothalf { position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.22) 1.4px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 45%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 45%); }
#bootHero { position: absolute; left: -2%; bottom: -4%; height: 104%; max-width: 62%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 14px rgba(255,200,90,.55)) drop-shadow(8px 12px 14px rgba(0,0,0,.55));
  animation: bootHeroIn .7s cubic-bezier(.2,1.3,.4,1) both, bootBob 3s ease-in-out .7s infinite; }
@keyframes bootHeroIn { from { transform: translateX(-30%) scale(.9); opacity: 0; } }
@keyframes bootBob { 50% { transform: translateY(-5px); } }
#bootShot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 10px #ffc94a); }
#boot.art #bootHero, #boot.art #bootShot, #boot.art .bootrays, #boot.art .bootspeed { display: none; }
#boot.art .bootbg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); }
#boot .bootmain { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: min(52%, 560px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
#boot.art .bootmain { right: 50%; transform: translate(50%, -50%); }
.bootburst { position: absolute; left: 50%; top: 30%; width: 120%; aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255,240,190,.55), rgba(255,170,60,.18) 45%, transparent 70%); pointer-events: none; }
#bootLogo { position: relative; width: 100%; max-height: 50vh; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
  animation: bootLogoIn .6s cubic-bezier(.2,1.6,.4,1) .2s both; }
#bootLogoSvg { position: relative; width: 100%; overflow: visible; animation: bootLogoIn .6s cubic-bezier(.2,1.6,.4,1) .2s both; }
@keyframes bootLogoIn { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.bootbar { position: relative; width: 82%; height: 14px; border-radius: 7px; background: rgba(10,6,30,.7); border: 2px solid #fff;
  overflow: hidden; box-shadow: 0 0 0 3px #1a0a2e, 0 4px 12px rgba(0,0,0,.5); transform: skewX(-12deg); }
.bootbar i { display: block; height: 100%; width: 0; transition: width .3s;
  background: repeating-linear-gradient(-45deg, #ffd44a 0 10px, #ffb326 10px 20px); box-shadow: 0 0 10px #ffc94a; }
#bootMsg { position: relative; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 0 3px #1a0a2e, 0 2px 4px #1a0a2e; min-height: 18px; letter-spacing: .04em; }
#bootGo { position: relative; padding: 11px 34px; border-radius: 10px; transform: skewX(-12deg);
  background: linear-gradient(#ffe27a, #ff9a1f 55%, #e86a0a); color: #2a1206; font: italic 900 18px "Arial Black", system-ui, sans-serif;
  letter-spacing: .1em; border: 3px solid #fff; box-shadow: 0 0 0 3px #1a0a2e, 0 6px 0 #1a0a2e, 0 10px 22px rgba(0,0,0,.5);
  animation: bootPulse 1.1s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: skewX(-12deg) scale(1.07); } }
#bootVer { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px #000; }
html.short #bootMsg { font-size: 12px; }

/* title logo: chunky game font, burst behind ARC, gold-trimmed ribbon behind BLASTER */
#bootLogoSvg text { font-family: 'Luckiest Guy', 'Arial Black', Impact, system-ui, sans-serif; font-size: 132px; letter-spacing: 3px; }
#bootLogoSvg text.lgB { font-size: 84px; letter-spacing: 4px; }
#bootLogoSvg .lgOut { fill: #1a0a2e; stroke: #1a0a2e; stroke-width: 16px; stroke-linejoin: round; }
#bootLogoSvg .lg1, #bootLogoSvg .lg2 { paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
#bootLogoSvg .lg1 { fill: url(#lgGold); }
#bootLogoSvg .lg2 { fill: url(#lgRed); }
#bootLogoSvg .lgShine { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5px; }
#bootLogoSvg .lgBurst { fill: url(#lgBurst); stroke: #1a0a2e; stroke-width: 6px; stroke-linejoin: round; transform-origin: 320px 95px;
  animation: lgBurstPulse 1.6s ease-in-out infinite; }
@keyframes lgBurstPulse { 50% { transform: scale(1.06) rotate(4deg); } }
#bootLogoSvg .lgRibbon { filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
/* update card: asks to use Wi-Fi before updating */
#updCard { position: relative; width: 100%; padding: 12px 16px; border-radius: 12px; text-align: center; color: #fff;
  background: rgba(20,10,46,.92); border: 2px solid #ffd44a; box-shadow: 0 0 0 3px #1a0a2e, 0 8px 22px rgba(0,0,0,.5); }
#updCard b { font: 900 20px 'Luckiest Guy', 'Arial Black', system-ui, sans-serif; color: #ffd44a; letter-spacing: .06em; }
#updCard p { margin: 6px 0 0; font-size: 13px; line-height: 1.35; }
#updCard strong { color: #7fe3ff; }
#updCard .warn { color: #ff8a80; font-weight: 800; }
#updCard small { display: block; margin-top: 4px; color: #c9bfe6; font-size: 11px; }
.updBtns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; }
.updBtns button { padding: 9px; border-radius: 9px; font-weight: 900; letter-spacing: .06em; }
#updLater { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
#updGo { background: linear-gradient(#ffe27a, #ff9a1f); color: #2a1206; border: 2px solid #fff; }
#boot.upd #bootLogoSvg, #boot.upd #bootLogo, #boot.upd .bootburst { display: none; }
/* Android Back hook (overlay.js): an invisible pop-up only the app's Back presses */
#backHook { position: fixed; inset: auto; left: 0; top: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; opacity: 0;
  pointer-events: none; background: none; z-index: -1; }
/* scrolling pop-ups: a dark gold scrollbar, never the browser's white one (audit 26 Nov 2026) */
.overlay, .overlay .panel { scrollbar-width: thin; scrollbar-color: rgba(255,214,120,.45) rgba(0,0,0,.25); }
.overlay::-webkit-scrollbar, .overlay .panel::-webkit-scrollbar { width: 8px; height: 8px; }
.overlay::-webkit-scrollbar-track, .overlay .panel::-webkit-scrollbar-track { background: rgba(0,0,0,.25); }
.overlay::-webkit-scrollbar-thumb, .overlay .panel::-webkit-scrollbar-thumb { background: rgba(255,214,120,.45); border-radius: 8px; }
/* the chat button goes quiet behind a pop-up and the VS screen (overlay.js sets body.ov-open) */
body.ov-open #chatBtn { opacity: .35; filter: grayscale(.6); pointer-events: none; }
/* SUDDEN DEATH banner: a dark outline so it reads over a bright sky */
#banner.sd { -webkit-text-stroke: 1.5px rgba(40,6,0,.9); paint-order: stroke fill; }
