/* ACÓLITO SIMULATOR — style.css
 * Layout: coluna única de jogo (HUD superior · cena em Canvas · HUD inferior),
 * telas em painéis de pergaminho com moldura dourada, como um manuscrito iluminado.
 * Visual único e escuro (madeira e pedra de catedral), por escolha.
 */
:root {
  --gold: #C9A24D; --gold-l: #E6C877; --gold-d: #8C6A27;
  --cardinal: #8B2027; --wine: #651D32; --violet: #4B244A; --marian: #233F74;
  --ivory: #F5E9CF; --ivory-d: #E6D6B3; --umber: #241C19; --umber-2: #2F2420; --umber-3: #3A2D27;
  --ink: #2A1D17; --ink-soft: #5A463A;
  --f-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-body: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-pixel: 'Silkscreen', 'Courier New', monospace;
  --fs: 16px;
  color-scheme: dark;
}
:root.text-big { --fs: 19px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--umber);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(201,162,77,0.10), transparent 60%), repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px);
  color: var(--ivory); font-family: var(--f-body); font-size: var(--fs); line-height: 1.4;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 2px; }

#app { height: 100%; display: flex; flex-direction: column; align-items: center; position: relative;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* ---------------- HUD ---------------- */
.hud { width: 100%; max-width: 1200px; flex: none; }
#hud-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 8px max(12px, env(safe-area-inset-left, 0px)) 8px max(12px, env(safe-area-inset-right, 0px));
  background: linear-gradient(var(--umber-3), var(--umber-2)); border-bottom: 2px solid var(--gold-d);
  box-shadow: inset 0 -1px 0 rgba(230,200,119,0.25); }
.who { display: flex; gap: 8px; align-items: center; min-width: 0; }
#portrait { width: 44px; height: 54px; image-rendering: pixelated; background: var(--umber); border: 2px solid var(--gold); border-radius: 3px; }
.who-role { font-family: var(--f-display); font-weight: 700; font-size: 0.86em; letter-spacing: 0.08em; color: var(--gold-l); }
.who-name { font-size: 0.86em; color: var(--ivory-d); }
.carry { display: flex; align-items: center; gap: 4px; font-size: 0.82em; color: var(--ivory); }
#carry-icon { width: 11px; height: 20px; image-rendering: pixelated; }
.task { min-width: 0; background: var(--ivory); color: var(--ink); border: 2px solid var(--gold); border-radius: 4px; padding: 5px 10px;
  box-shadow: inset 0 0 0 1px rgba(140,106,39,0.35), 0 2px 0 rgba(0,0,0,0.35); }
.task-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78em; color: var(--ink-soft); }
.stage-label { font-family: var(--f-display); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { font-variant-numeric: tabular-nums; opacity: 0.7; }
.task-text { margin: 1px 0 0; font-size: 1.02em; line-height: 1.25; }
.task-text b { font-family: var(--f-display); color: var(--cardinal); letter-spacing: 0.04em; }
.task-where { margin: 1px 0 0; font-size: 0.84em; color: var(--ink-soft); }
.where-mark { color: var(--gold-d); }
.hud-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hbtn { display: inline-flex; align-items: center; gap: 5px; background: var(--umber); border: 1px solid var(--gold-d); color: var(--ivory);
  border-radius: 4px; padding: 6px 9px; cursor: pointer; font-size: 0.86em; min-height: 36px; }
.hbtn:hover { border-color: var(--gold-l); background: var(--umber-3); }
.hbtn .ico { font-family: var(--f-display); color: var(--gold-l); font-weight: 700; }
.hbtn.glow { border-color: var(--gold-l); box-shadow: 0 0 0 2px rgba(230,200,119,0.4); }
.hbtn[aria-pressed="true"] { background: var(--wine); }

#view-wrap { flex: 1 1 0; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
#view { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #120c0a; box-shadow: 0 0 0 2px var(--gold-d), 0 0 0 5px var(--umber-2), 0 0 0 6px rgba(230,200,119,0.3); touch-action: none; }

#hud-bottom { display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 6px max(12px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.team { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.chip { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 4px; border: 1px solid rgba(201,162,77,0.4); background: var(--umber-2);
  font-size: 0.8em; color: var(--ivory-d); }
.chip canvas { width: 18px; height: 22px; image-rendering: pixelated; }
.chip .chip-obj { opacity: 0.85; }
.chip.on { border-color: var(--gold-l); background: var(--umber-3); color: var(--ivory); }
.chip .badge { font-family: var(--f-display); font-weight: 700; color: var(--umber); background: var(--gold-l); border-radius: 3px; padding: 0 4px; font-size: 0.85em; }

/* Mensagens curtas */
.toasts { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(92%, 640px); }
.toast { background: var(--ivory); color: var(--ink); border: 2px solid var(--gold); border-radius: 4px; padding: 7px 14px; font-size: 1em; text-align: center;
  box-shadow: 0 3px 0 rgba(0,0,0,0.4); animation: toastIn 0.25s ease-out; max-width: 100%; }
.toast.lesson::before { content: '✦ '; color: var(--gold-d); }
.toast.gentle { border-color: var(--marian); }
.toast.gentle::before { content: '➜ '; color: var(--marian); }
.toast.help { border-color: var(--violet); background: #EFE3EE; }
.toast.out { opacity: 0; transition: opacity 0.4s; }
@keyframes toastIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.switch-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--wine); color: var(--ivory); border: 2px solid var(--gold);
  border-radius: 4px; padding: 6px 14px; font-family: var(--f-display); letter-spacing: 0.05em; font-size: 0.95em; text-align: center; max-width: 92%; }
.switch-banner kbd { font-family: var(--f-pixel); background: var(--umber); border: 1px solid var(--gold-d); padding: 0 5px; border-radius: 3px; }

.card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18,11,9,0.86); }
.card-inner { text-align: center; padding: 18px 26px; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); max-width: 90%; }
.card-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3em, 3.2vw, 2.1em); color: var(--gold-l); letter-spacing: 0.04em; text-wrap: balance; }
.card-sub { margin-top: 6px; font-style: italic; color: var(--ivory-d); }
.fade { position: absolute; inset: 0; background: #0d0806; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.fade.on { opacity: 1; }

/* Controles de toque */
.touch { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 1; }
.dpad { position: relative; width: 132px; height: 132px; border-radius: 50%; touch-action: none; flex: none; user-select: none; -webkit-user-select: none; }
.dpad-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(58,45,39,0.9), rgba(36,28,25,0.95)); border: 2px solid var(--gold-d); }
.dpad-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--gold-d); border: 2px solid var(--gold-l); }
.dp { position: absolute; color: var(--gold-l); font-size: 14px; pointer-events: none; }
.dp.up { top: 6px; left: 50%; transform: translateX(-50%); } .dp.down { bottom: 6px; left: 50%; transform: translateX(-50%); }
.dp.left { left: 8px; top: 50%; transform: translateY(-50%); } .dp.right { right: 8px; top: 50%; transform: translateY(-50%); }
.touch-btns { display: flex; gap: 12px; align-items: center; }
.tbtn { border-radius: 50%; border: 3px solid var(--gold); background: var(--wine); color: var(--ivory); font-family: var(--f-display); font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tbtn.act { width: 104px; height: 104px; font-size: 0.82em; padding: 6px; line-height: 1.1; background: var(--cardinal); }
.tbtn.swap { width: 70px; height: 70px; font-size: 0.78em; background: var(--marian); }
.tbtn:active { filter: brightness(1.25); }
.tbtn[disabled] { opacity: 0.35; }

/* Modo paisagem em telas baixas: controles sobre a cena */
#app.overlay-controls #hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; max-width: none; }
#app.overlay-controls .team { display: none; }
#app.overlay-controls .touch { pointer-events: auto; }
#app.overlay-controls .touch > * { pointer-events: auto; }
#app.overlay-controls .dpad { opacity: 0.85; }
#app.overlay-controls .tbtn { opacity: 0.9; }

/* Tutorial */
.panel.tutorial { display: flex; gap: 22px; align-items: flex-start; }
.tut-host { flex: none; text-align: center; width: 200px; }
.tut-frame { background: linear-gradient(#D9CFC0, #BFB3A2); border: 3px solid var(--gold-d); border-radius: 4px; padding: 10px 8px 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
#tut-portrait { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.tut-name { margin: 8px 0 0; font-family: var(--f-display); font-weight: 700; color: var(--wine); letter-spacing: 0.04em; }
.tut-name span { display: block; font-family: var(--f-body, inherit); font-weight: 400; font-size: 0.78em; color: var(--ink-soft); letter-spacing: 0; }
.tut-body { flex: 1; min-width: 0; }
.tut-speech { position: relative; background: #FFFBF0; border: 2px solid var(--gold-d); border-radius: 6px; padding: 12px 14px; font-size: 1.05em; line-height: 1.45; margin: 6px 0 10px; min-height: 6.5em; }
.tut-speech::before { content: ''; position: absolute; left: -10px; top: 18px; border: 8px solid transparent; border-right-color: var(--gold-d); border-left: 0; }
.tut-show { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; min-height: 0; }
.tut-show figure { margin: 0; background: var(--umber); border: 2px solid var(--gold-d); border-radius: 3px; padding: 4px 6px; text-align: center; }
.tut-show canvas { display: block; margin: 0 auto; image-rendering: pixelated; }
.tut-show figcaption { font-size: 0.72em; color: var(--ivory); margin-top: 2px; max-width: 84px; }
@media (max-width: 640px) {
  .panel.tutorial { flex-direction: column; align-items: stretch; }
  .tut-host { width: auto; display: flex; gap: 12px; align-items: center; text-align: left; }
  .tut-frame { width: 96px; flex: none; }
  .tut-speech::before { display: none; }
}

/* Publicidade: só na tela inicial e no resumo, afastada dos botões */
.ad-box { margin: 0; min-height: 0; }
.ad-box.filled { margin-top: 28px; padding-top: 10px; border-top: 1px solid rgba(201,162,77,0.3); }
.ad-box.filled::before { content: 'Publicidade'; display: block; font-size: 0.7em; letter-spacing: 0.08em; color: var(--ivory-d); opacity: 0.7; margin-bottom: 4px; text-align: center; }
.ad-box.unfilled, .ad-box ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-box ins.adsbygoogle { min-height: 0; }

/* ---------------- Telas ---------------- */
.screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; z-index: 20;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.screen.dim { background: rgba(14,9,7,0.72); }
.screen[hidden] { display: none; }
.panel { background: var(--ivory); color: var(--ink); border-radius: 6px; padding: 22px 26px; max-width: 620px; width: 100%; margin: auto;
  border: 3px double var(--gold-d); box-shadow: 0 0 0 4px var(--umber), 0 0 0 6px var(--gold), 0 12px 40px rgba(0,0,0,0.6);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.5), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(140,106,39,0.18), transparent 60%); }
.panel.wide { max-width: 940px; }
.panel.narrow { max-width: 480px; }
.panel h2 { font-family: var(--f-display); font-weight: 700; color: var(--wine); margin: 0 0 6px; font-size: 1.5em; letter-spacing: 0.03em; text-wrap: balance; }
.panel h3 { font-family: var(--f-display); color: var(--cardinal); font-size: 1em; margin: 0 0 6px; letter-spacing: 0.04em; }
.panel .lead { font-size: 1.08em; }
.small-note { font-size: 0.86em; color: var(--ink-soft); margin: 4px 0 10px; }
.eyebrow { font-family: var(--f-display); font-size: 0.8em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px; }
.bul { padding-left: 1.1em; margin: 6px 0 10px; } .bul li { margin: 4px 0; }
.ref { font-size: 0.86em; color: var(--ink-soft); font-style: italic; }
.row-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.col-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mbtn { background: var(--umber); color: var(--ivory); border: 2px solid var(--gold-d); border-radius: 4px; padding: 10px 16px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.04em; font-size: 0.95em; min-height: 44px; }
.mbtn:hover { border-color: var(--gold-l); background: var(--umber-3); }
.mbtn.primary { background: var(--cardinal); border-color: var(--gold); }
.mbtn.primary:hover { background: #A0262E; }
.mbtn.small { font-size: 0.82em; padding: 8px 12px; min-height: 40px; }

/* Tela inicial */
.title-screen { background: linear-gradient(rgba(20,13,11,0.35), rgba(20,13,11,0.75)); }
.title-panel { text-align: center; max-width: 560px; width: 100%; margin: auto; padding: 26px 22px 18px; background: rgba(36,28,25,0.88);
  border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 0 0 5px rgba(36,28,25,0.9), 0 0 0 7px var(--gold-d), 0 14px 50px rgba(0,0,0,0.6); }
.title-orn { height: 10px; margin: 0 auto 10px; width: 70%; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--cardinal) 50%, var(--gold) 80%, transparent); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); }
.logo { font-family: var(--f-display); font-weight: 900; margin: 0; font-size: clamp(1.9em, 6.4vw, 3.1em); letter-spacing: 0.06em; color: var(--ivory); line-height: 1.05; text-shadow: 0 3px 0 var(--wine), 0 0 24px rgba(201,162,77,0.25); }
.logo-a { display: inline-block; color: var(--gold-l); font-size: 1.3em; background: var(--cardinal); padding: 0 0.12em; margin-right: 0.04em; border: 2px solid var(--gold); line-height: 1.05; text-shadow: none; }
.logo-sim { display: block; font-size: 0.5em; letter-spacing: 0.42em; color: var(--gold); margin-top: 4px; text-shadow: none; }
.tagline { font-style: italic; font-size: 1.15em; color: var(--gold-l); margin: 10px 0 4px; }
.title-panel .disclaimer { font-size: 0.9em; color: var(--ivory-d); margin: 4px auto 14px; max-width: 42ch; }
.menu { display: flex; flex-direction: column; gap: 8px; max-width: 340px; margin: 0 auto; }
.menu-row { display: flex; gap: 8px; } .menu-row .mbtn { flex: 1; }
.keys-hint { font-size: 0.78em; color: var(--ivory-d); opacity: 0.8; margin: 14px 0 0; }

/* Formulário de configurações */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
fieldset { border: 1px solid rgba(140,106,39,0.5); border-radius: 4px; padding: 8px 12px 10px; margin: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
fieldset.span2 { grid-column: 1 / -1; }
legend { font-family: var(--f-display); font-weight: 700; color: var(--wine); padding: 0 4px; font-size: 0.92em; }
legend small { font-family: var(--f-body); font-weight: 400; color: var(--ink-soft); }
fieldset label { display: flex; gap: 6px; align-items: center; }
select, textarea { font: inherit; color: var(--ink); background: #FFFBF0; border: 1px solid var(--gold-d); border-radius: 3px; padding: 6px; width: 100%; }
textarea { resize: vertical; color-scheme: light; }
input[type=checkbox], input[type=radio] { accent-color: var(--cardinal); width: 18px; height: 18px; }

/* Treino */
.train-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 8px; }
.train-btn { display: flex; gap: 10px; align-items: center; text-align: left; background: #FFFBF0; border: 2px solid var(--gold-d); border-radius: 4px; padding: 10px; cursor: pointer; color: var(--ink); }
.train-btn:hover { border-color: var(--cardinal); }
.train-btn canvas { width: 36px; height: 44px; image-rendering: pixelated; flex: none; }
.train-btn b { font-family: var(--f-display); color: var(--cardinal); display: block; }
.train-btn span { font-size: 0.86em; color: var(--ink-soft); }

/* Objetos */
.objects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.obj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; align-content: start; }
.obj-btn { background: #FFFBF0; border: 2px solid rgba(140,106,39,0.5); border-radius: 4px; padding: 6px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); font-size: 0.8em; text-align: center; }
.obj-btn canvas { width: 33px; height: 60px; image-rendering: pixelated; }
.obj-btn[aria-selected="true"] { border-color: var(--cardinal); background: #F8EBD0; }
.obj-detail { background: #FFFBF0; border: 1px solid rgba(140,106,39,0.5); border-radius: 4px; padding: 12px 14px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.obj-detail canvas { width: 88px; height: 160px; image-rendering: pixelated; flex: none; background: var(--umber); border: 2px solid var(--gold-d); border-radius: 3px; }
.obj-detail h3 { margin-top: 0; font-size: 1.15em; }
.obj-detail .who { display: block; font-size: 0.86em; color: var(--ink-soft); margin-bottom: 6px; }

/* Revisão e fontes */
.review-body, .sources-body { display: grid; gap: 10px; }
.rv-stage { border-left: 4px solid var(--gold); padding: 4px 0 4px 12px; }
.rv-stage h3 { margin-bottom: 2px; }
.rv-stage .ref { margin: 0 0 4px; }
.rv-stage li.helped::after { content: ' · com ajuda nesta partida'; color: var(--violet); font-size: 0.85em; }
.rv-stage li.done::after { content: ' · feito'; color: #2f5d3a; font-size: 0.85em; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.src-col { background: #FFFBF0; border: 1px solid rgba(140,106,39,0.5); border-radius: 4px; padding: 10px 12px; min-width: 0; }
.src-col h3 { display: flex; align-items: center; gap: 6px; }
.tag { font-family: var(--f-pixel); font-size: 0.7em; padding: 1px 5px; border-radius: 3px; color: var(--ivory); }
.tag.fund { background: var(--marian); } .tag.costume { background: var(--wine); } .tag.simpl { background: var(--violet); }
.src-col li { margin: 6px 0; font-size: 0.92em; }
.src-col li em { color: var(--ink-soft); font-size: 0.9em; }
.src-list li { margin: 5px 0; font-size: 0.92em; overflow-wrap: anywhere; }
.src-list a { color: var(--marian); }
.stage-table-wrap { overflow-x: auto; }
.stage-table { border-collapse: collapse; width: 100%; font-size: 0.84em; min-width: 640px; }
.stage-table th, .stage-table td { border: 1px solid rgba(140,106,39,0.45); padding: 4px 6px; text-align: left; vertical-align: top; }
.stage-table th { background: #F1E2C2; font-family: var(--f-display); font-size: 0.9em; }

/* Oração */
.prayer { text-align: center; }
.prayer-text { font-size: 1.25em; font-style: italic; color: var(--wine); line-height: 1.5; margin: 6px 0 12px; }
.prayer-text.big { font-size: 1.45em; }
.prayer .row-btns { justify-content: center; }

/* Resumo */
.aspects { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.aspect { background: #FFFBF0; border: 1px solid rgba(140,106,39,0.5); border-radius: 4px; padding: 10px 12px; }
.aspect b { font-family: var(--f-display); color: var(--wine); display: block; font-size: 0.95em; }
.pips { display: flex; gap: 4px; margin: 6px 0 3px; }
.pip { width: 22px; height: 10px; border: 1px solid var(--gold-d); background: transparent; transform: skewX(-18deg); }
.pip.on { background: var(--gold); }
.aspect .lvl { font-size: 0.9em; color: var(--ink); }
.sum-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.row-btns.wrap .mbtn { flex: 1 1 160px; }

/* Telas estreitas */
@media (max-width: 760px) {
  #hud-top { grid-template-columns: auto 1fr; gap: 8px; }
  .hud-btns { grid-column: 1 / -1; justify-content: space-between; }
  .hbtn { flex: 1; justify-content: center; padding: 5px 4px; font-size: 0.8em; }
  .objects { grid-template-columns: 1fr; }
  .team .chip-obj { display: none; }
  .panel { padding: 16px; }
}
@media (max-width: 460px) {
  .who-text .who-name { display: none; }
  #portrait { width: 34px; height: 42px; }
  .task-text { font-size: 0.94em; }
  .dpad { width: 118px; height: 118px; }
  .tbtn.act { width: 92px; height: 92px; }
  .who { grid-column: 1 / -1; }
  .who-text { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .task { grid-column: 1 / -1; }
  #hud-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .team { flex-wrap: nowrap; justify-content: center; }
  .team .chip-name { display: none; }
  .chip { padding: 3px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; } .fade { transition: none; }
}
:root.reduce-motion .toast { animation: none; }
:root.reduce-motion .fade { transition: none; }
