/* Wonderbound — protótipo. Âmbar quente sobre azul-noite; página de pergaminho. */
:root {
  --night: #0B1226;
  --night-2: #131C3A;
  --night-3: #1C2648;
  --ink: #2A2118;
  --ink-soft: #5A4B3A;
  --parch: #F1E3C4;
  --parch-2: #E6D2A8;
  --parch-3: #D7BE8C;
  --amber: #E8A33A;
  --amber-2: #F5C46B;
  --amber-deep: #9C5E12;
  --gold: #FFD56A;
  --cream: #FFF6E3;
  --whisper: #7FA8D9;
  --tale: #E9B44C;
  --legend: #C8433A;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { height: 100%; overscroll-behavior: none; }
body {
  margin: 0; height: 100%; min-height: 100dvh;
  background: var(--night);
  color: var(--cream);
  font: 400 16px/1.45 var(--font-body);
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.app {
  position: relative; height: 100dvh; width: 100%;
  max-width: 520px; margin: 0 auto;
  background:
    radial-gradient(120% 60% at 50% -10%, #2A3568 0%, transparent 60%),
    radial-gradient(80% 40% at 50% 110%, #22183A 0%, transparent 60%),
    var(--night);
  overflow: hidden;
}
.app::before { /* estrelas sutis */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 78% 9%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 40% 6%, #ffe6b0 60%, transparent), radial-gradient(1px 1px at 88% 30%, #fff 60%, transparent),
    radial-gradient(1px 1px at 25% 40%, #fff 60%, transparent), radial-gradient(1px 1px at 65% 22%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 8% 70%, #ffe6b0 60%, transparent), radial-gradient(1px 1px at 93% 76%, #fff 60%, transparent);
}

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.app[data-screen="title"] .screen-title { display: flex; }
.app[data-screen="game"] .screen-game { display: flex; }

/* ---------- botões ---------- */
.btn {
  position: relative; border: 0; cursor: pointer; border-radius: 14px;
  padding: 12px 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), filter .15s, box-shadow .2s, opacity .2s;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: default; filter: saturate(.4); }
.btn:disabled:active { transform: none; }
.btn-primary {
  color: #3A2408;
  background: linear-gradient(180deg, #FFDD8C 0%, var(--amber) 55%, #C77E1C 100%);
  box-shadow: 0 2px 0 #7A4A0E, 0 8px 22px rgba(232,163,58,.35), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-primary:active { box-shadow: 0 0 0 #7A4A0E, 0 4px 12px rgba(232,163,58,.25); }
.btn-secondary {
  color: var(--cream);
  background: linear-gradient(180deg, #2A3660, #1B2447);
  box-shadow: 0 2px 0 #0A0F22, inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(0,0,0,.35);
}
.btn-ghost {
  color: var(--parch-2); background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,235,190,.25);
}
.page .btn-ghost { color: var(--ink); background: rgba(0,0,0,.06); box-shadow: inset 0 0 0 1.5px rgba(156,94,18,.35); }
.btn-big { padding: 14px 22px; width: 100%; }
.btn-wide { width: 100%; }
.btn-title { font-size: 1.05rem; }
.btn-sub { font-family: var(--font-body); font-weight: 400; font-size: .8rem; opacity: .75; letter-spacing: 0; }
@media (hover:hover) and (pointer:fine) { .btn:not(:disabled):hover { filter: brightness(1.08); } }

.link { background: none; border: 0; padding: 6px 4px; color: var(--amber-2); font-family: var(--font-body); font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,196,107,.4); }
.link:active { opacity: .7; }
.link.small { font-size: .82rem; }
.page .link { color: var(--amber-deep); text-decoration-color: rgba(156,94,18,.4); }
.dot { color: rgba(255,255,255,.3); }

.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  color: var(--parch-2); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,235,190,.22);
  transition: transform .15s;
}
.icon-btn:active { transform: scale(.92); }

/* ---------- título ---------- */
.screen-title { align-items: center; justify-content: center; text-align: center; padding: calc(24px + var(--safe-t)) 28px calc(20px + var(--safe-b)); gap: 6px; }
.title-art { display: flex; gap: 10px; margin-bottom: 14px; }
.tglyph { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--night-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.4); animation: bob 3.2s ease-in-out infinite; }
.tglyph svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.tglyph:nth-child(2) { animation-delay: .3s } .tglyph:nth-child(3) { animation-delay: .6s } .tglyph:nth-child(4) { animation-delay: .9s } .tglyph:nth-child(5) { animation-delay: 1.2s }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }

.eyebrow { margin: 0; font-family: var(--font-display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-2); opacity: .85; }
.wordmark { margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 11vw, 3.1rem); letter-spacing: .02em; line-height: 1.05;
  background: linear-gradient(180deg, #FFF0C8 0%, var(--gold) 45%, #C9862B 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90,50,0,.6)) drop-shadow(0 10px 24px rgba(255,200,90,.25)); }
.tagline { margin: 4px 0 26px; font-style: italic; color: var(--parch-2); opacity: .85; }
.title-actions { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.title-links { margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.title-foot { position: absolute; bottom: calc(14px + var(--safe-b)); left: 0; right: 0; margin: 0; font-size: .72rem; opacity: .45; }

/* ---------- HUD ---------- */
.screen-game { padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.hud-top { display: flex; align-items: stretch; gap: 8px; padding: 10px 12px 6px; }
.plaque {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 12px; min-width: 0;
  background: linear-gradient(180deg, #1E2A52, #121A38);
  box-shadow: inset 0 0 0 1.5px rgba(232,163,58,.55), inset 0 0 0 3px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.4);
}
.plaque-wide { flex: 1.5; }
.plaque-label { font-family: var(--font-display); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-2); opacity: .85; }
.plaque-value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--cream); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plaque-value.big { font-size: 1.7rem; }
.plaque-value.bump { animation: bump .35s cubic-bezier(.2,1.2,.3,1); }
@keyframes bump { 0% { transform: scale(1) } 40% { transform: scale(1.22); color: var(--gold) } 100% { transform: scale(1) } }
.turn-pips { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 2px; }
.pip { width: 11px; height: 11px; border-radius: 50%; background: #1A2244; box-shadow: inset 0 0 0 1.5px rgba(232,163,58,.4); transition: all .3s; position: relative; }
.pip.lit { background: radial-gradient(circle at 40% 35%, #FFF3C4, var(--amber) 60%, #B26A12); box-shadow: 0 0 10px rgba(255,213,106,.9), 0 0 2px #fff; }
.pip.lit.pop { animation: pippop .5s cubic-bezier(.2,1.4,.3,1); }
@keyframes pippop { 0% { transform: scale(.5) } 60% { transform: scale(1.6) } 100% { transform: scale(1) } }

/* ---------- página / tabuleiro ---------- */
.stage { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; padding: 4px 10px 8px; }
.page {
  position: relative; width: 100%; display: flex; flex-direction: column; padding: 10px 10px 8px; border-radius: 6px 16px 16px 6px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18) 0, transparent 14px),
    radial-gradient(120% 100% at 30% 20%, var(--parch) 0%, var(--parch-2) 60%, var(--parch-3) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 40px rgba(120,80,20,.18);
}
.page::before { /* filete âmbar */
  content: ''; position: absolute; inset: 5px; border-radius: 4px 12px 12px 4px; pointer-events: none;
  border: 1.5px solid rgba(156,94,18,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.page::after { /* marcador vermelho */
  content: ''; position: absolute; top: -4px; right: -3px; width: 14px; height: 46px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, #A5203B, #7A1229); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.4);
}
.board-wrap { position: relative; width: min(100%, calc(100dvh - 300px)); aspect-ratio: 1 / 1; margin: 0 auto; flex: none; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #1A2140, #0F1530);
  box-shadow: inset 0 0 0 2px #7A4A0E, inset 0 0 0 3.5px rgba(245,196,107,.55), inset 0 0 30px rgba(0,0,0,.6);
}
.board { display: block; width: 100%; height: 100%; touch-action: none; }

.banner {
  position: absolute; left: 50%; top: 10px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  padding: 8px 22px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; white-space: nowrap;
  color: #3A2408; background: linear-gradient(180deg, #FFE9B0, var(--amber-2) 60%, #D89331);
  box-shadow: 0 2px 0 #7A4A0E, 0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .35s cubic-bezier(.2,1.2,.3,1), opacity .25s;
}
.banner.show { transform: translate(-50%, 0); opacity: 1; }
.banner.turn2 { background: linear-gradient(180deg, #FFF3C4, #FFD56A 60%, #E8A33A); }
.banner.turn3 { background: linear-gradient(180deg, #FFFFFF, #FFE9B0 50%, #FFB347); box-shadow: 0 2px 0 #7A4A0E, 0 0 30px rgba(255,213,106,.8), inset 0 1px 0 #fff; }
.hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 5px 12px; border-radius: 8px; background: rgba(11,18,38,.85); color: var(--parch-2); font-size: .78rem; font-style: italic; white-space: nowrap; pointer-events: none; }

/* ---------- HUD inferior ---------- */
.hud-bottom { flex: none; padding: 12px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.certain-row { display: flex; align-items: stretch; gap: 8px; min-height: 64px; }
.certain { flex: 1.2; min-height: 64px; }
.certain-note { font-size: .7rem; font-style: italic; color: var(--parch-2); opacity: .75; margin-top: 1px; text-align: center; line-height: 1.2; }
.plaque-dark { background: linear-gradient(180deg, #121A38, #0B1226); }
.keepsakes { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.keepsake-slot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #2A3660, #121A38); box-shadow: inset 0 0 0 1.5px rgba(232,163,58,.4); }
.keepsake-slot.empty { opacity: .45; background: radial-gradient(circle at 35% 30%, #E6D2A8, #D7BE8C); box-shadow: inset 0 0 0 1.5px rgba(156,94,18,.35); }
.keepsake-slot svg { width: 22px; height: 22px; fill: var(--amber-2); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.keepsake-card .keepsake-slot svg { fill: #9C5E12; }
.keepsake-slot .k-tip { position: absolute; bottom: calc(100% + 6px); right: 0; padding: 5px 9px; border-radius: 8px; background: rgba(11,18,38,.95); color: var(--parch-2); font-size: .72rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.keepsake-slot.show-tip .k-tip { opacity: 1; }

.progress { flex: 1.6; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 2px; }
.progress-bar { position: relative; height: 12px; border-radius: 8px; background: #0B1226; box-shadow: inset 0 0 0 1.5px rgba(232,163,58,.45), inset 0 2px 4px rgba(0,0,0,.6); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #C77E1C, var(--gold)); box-shadow: 0 0 12px rgba(255,213,106,.7); transition: width .25s ease-out; }
.progress-fill.over { background: linear-gradient(90deg, #FFD56A, #FFF6E3); }
.progress-mark { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); }
.progress-caption { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: .78rem; font-variant-numeric: tabular-nums; }
.progress-caption span:first-child { color: var(--gold); font-weight: 700; font-size: .95rem; }
.progress-caption span:last-child { opacity: .6; color: var(--ink); }

.controls { display: flex; gap: 8px; align-items: center; }
.controls .btn { padding: 12px 14px; }
.btn-turn { flex: 1; font-size: 1.05rem; }
.btn-turn.urge { animation: urge 1.1s ease-in-out infinite; }
@keyframes urge { 0%,100% { box-shadow: 0 2px 0 #7A4A0E, 0 8px 22px rgba(232,163,58,.35) } 50% { box-shadow: 0 2px 0 #7A4A0E, 0 8px 32px rgba(255,213,106,.85), 0 0 0 4px rgba(255,213,106,.25) } }

.controls-declare { flex-direction: column; gap: 6px; }
.declare-prompt { margin: 0; font-size: .85rem; font-style: italic; color: var(--ink-soft); text-align: center; }
.profiles { display: flex; gap: 8px; width: 100%; }
.profile {
  flex: 1; border: 0; cursor: pointer; border-radius: 14px; padding: 8px 6px 7px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--font-display); color: var(--cream); background: linear-gradient(180deg, #2A3660, #1B2447);
  box-shadow: 0 2px 0 #0A0F22, inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1.5px var(--pc, rgba(255,255,255,.15));
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s, opacity .25s;
}
.profile.whisper { --pc: var(--whisper); } .profile.tale { --pc: var(--tale); } .profile.legend { --pc: var(--legend); }
.profile:active { transform: scale(.95); }
.profile .p-name { font-weight: 700; font-size: .92rem; letter-spacing: .06em; }
.profile .p-mult { font-size: .8rem; color: var(--pc); font-weight: 700; }
.profile .p-hold { font-family: var(--font-body); font-size: .68rem; opacity: .7; }
.profile.declared { background: linear-gradient(180deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #000)); color: #fff; box-shadow: 0 2px 0 #0A0F22, 0 0 18px color-mix(in srgb, var(--pc) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.profile.declared .p-mult, .profile.declared .p-hold { color: #fff; opacity: .9; }
.profile.muted { opacity: .38; pointer-events: none; }
.profile.preview { box-shadow: 0 2px 0 #0A0F22, inset 0 0 0 2px var(--pc), 0 0 14px color-mix(in srgb, var(--pc) 50%, transparent); }

/* ---------- sheets ---------- */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.72); backdrop-filter: blur(3px); z-index: 20; animation: fade .25s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; padding: 10px 10px calc(10px + var(--safe-b)); animation: rise .38s cubic-bezier(.2,1.1,.3,1); max-height: 100%; overflow-y: auto; }
.sheet-tall .sheet-card { max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--parch-3) transparent; }
@keyframes rise { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.sheet-card {
  border-radius: 18px; padding: 20px 18px 16px; text-align: center; color: var(--ink);
  background: radial-gradient(120% 100% at 30% 0%, var(--parch) 0%, var(--parch-2) 70%, var(--parch-3) 100%);
  box-shadow: 0 -10px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.5), inset 0 0 0 4px rgba(156,94,18,.18);
}
.sheet-card .eyebrow { color: var(--amber-deep); }
.sheet-title { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.sheet-line { margin: 0 0 12px; color: var(--ink-soft); font-style: italic; }
.sheet-sub { margin: 10px 0 8px; font-size: .88rem; color: var(--ink-soft); }
.outcome-numbers { display: flex; justify-content: center; gap: 18px; margin: 6px 0 12px; }
.outcome-numbers > div { display: flex; flex-direction: column; align-items: center; }
.n-label { font-family: var(--font-display); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-deep); }
.n-value { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.n-value.gold { color: #9C5E12; font-size: 1.7rem; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sheet-card .btn-secondary { background: linear-gradient(180deg, #4A3A26, #2A2118); }
.sheet-card .btn-ghost { color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(90,75,58,.35); background: rgba(0,0,0,.04); }

.keepsake-cards { display: flex; gap: 8px; }
.keepsake-card {
  flex: 1; border: 0; cursor: pointer; border-radius: 14px; padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #FFF8E8, #EFDDB8); color: var(--ink); box-shadow: 0 2px 0 rgba(120,80,20,.35), inset 0 0 0 1.5px rgba(156,94,18,.35);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s;
}
.keepsake-card:active { transform: scale(.95); }
.keepsake-card.chosen { box-shadow: 0 2px 0 rgba(120,80,20,.35), inset 0 0 0 2.5px var(--amber), 0 0 18px rgba(232,163,58,.5); }
.keepsake-card .k-name { font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.keepsake-card .k-line { font-size: .74rem; color: var(--ink-soft); line-height: 1.3; }
.keepsake-card .keepsake-slot { background: radial-gradient(circle at 35% 30%, #FFF, #E6D2A8); box-shadow: inset 0 0 0 1.5px rgba(156,94,18,.4); }

.howto { text-align: left; padding-left: 20px; margin: 4px 0 8px; font-size: .9rem; line-height: 1.45; color: var(--ink); }
.howto li { margin-bottom: 8px; }
.howto b { color: #7A4A0E; }
.howto-formula { font-family: var(--font-display); font-size: .78rem; color: var(--ink-soft); margin: 4px 0 8px; letter-spacing: .04em; }

.ledger { text-align: left; font-size: .86rem; }
.ledger table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 4px 6px; border-bottom: 1px solid rgba(90,75,58,.2); }
.ledger th { font-family: var(--font-display); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); text-align: left; }
.ledger td.num { text-align: right; }
.ledger .empty { padding: 18px 0; text-align: center; color: var(--ink-soft); font-style: italic; }
.ledger .kpis { display: flex; gap: 10px; margin: 6px 0 10px; }
.ledger .kpi { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(0,0,0,.05); }
.ledger .kpi b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #7A4A0E; }
.ledger .kpi span { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }

.toast { position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 30; padding: 10px 16px; border-radius: 12px; background: #1E2A52; color: var(--cream); box-shadow: 0 8px 24px rgba(0,0,0,.5), inset 0 0 0 1px rgba(232,163,58,.5); font-size: .9rem; animation: rise .3s; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .tglyph, .btn-turn.urge, .pip.lit.pop { animation: none; }
}
@media (min-height: 800px) { .hud-bottom { padding-bottom: 14px; } }
@media (max-height: 700px) { .plaque-value { font-size: 1.05rem; } .plaque-value.big { font-size: 1.4rem; } .certain-row { min-height: 54px; } .controls .btn { padding: 9px 12px; } .board-wrap { width: min(100%, calc(100dvh - 268px)); } .hud-top { padding: 6px 12px 4px; } }
