/* weasel/css/weasel.css - WEASEL TIME!'s page: the curtain, the door, the corner, the quest map and a chapter's road, the
 * story panels, a level's HUD, the result card and the sheets, laid over the 2D board (weasel/js/weasel-render.js).
 * Bright circus colours: gold, cherry red and slime green; the Horde's violet and toxic green (html[data-side]).
 *
 * The series' rules, kept from the first draw (docs/READABILITY.md): words never under 16 CSS px, every button 44 px or
 * more (48 on a touch screen), the World door keeps the bottom right of the door to itself, every edge steps in past an
 * iPhone's camera (env(safe-area-inset-*) and --sotc-edge-l/-r from js/friends.js), and the board's painting fills the
 * whole window at any shape (the founder's full-screen rule for phones held sideways, 2026-11-13). */
:root {
  --ink: #1A0E30;
  --glass: rgba(26, 12, 46, 0.82);
  --glass-2: rgba(44, 20, 70, 0.9);
  --line: rgba(255, 255, 255, 0.22);
  --text: #FFF7EA;
  --muted: #F0DFFF;
  --gold: #FFC83A;
  --a: #FF4E6A;
  --b: #7BE33A;
  --font: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif;
  --title-font: 'Arial Black', 'Trebuchet MS', Impact, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --edge-l: var(--sotc-edge-l, env(safe-area-inset-left, 0px));
  --edge-r: var(--sotc-edge-r, env(safe-area-inset-right, 0px));
  --tap: 48px;
}
html[data-side="horde"] { --a: #A35CFF; --b: #9CFF6B; }
@media (pointer: fine) { :root { --tap: 44px; } }

html, body { margin: 0; padding: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); overflow: hidden;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }

#board { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }
html[data-screen="play"] #board { cursor: crosshair; }

/* ---- the loading curtain ---------------------------------------------------------------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 40%, #4A2380 0%, var(--ink) 72%); transition: opacity 0.5s ease; }
.curtain.is-gone { opacity: 0; }
.curtain-art { width: 132px; height: 132px; object-fit: contain; animation: bob 0.9s ease-in-out infinite alternate; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5)); }
@keyframes bob { from { transform: translateY(8px) scale(1, 0.94); } to { transform: translateY(-10px) scale(0.96, 1.04); } }
.curtain-title { margin: 0; font-family: var(--title-font); font-size: 30px; letter-spacing: 0.08em; color: var(--gold); text-align: center; }
.curtain-bar { width: min(280px, 70vw); height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.curtain-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--b), var(--gold), var(--a)); transition: width 0.4s ease; }
.curtain-line { margin: 0; color: var(--muted); font-size: 18px; }

/* ---- buttons and chips ------------------------------------------------------------------------------------------------- */
.btn { appearance: none; min-height: var(--tap); border: 1px solid var(--line); background: var(--glass-2); color: var(--text); border-radius: 14px;
  padding: 10px 18px; font-size: 18px; font-weight: bold; cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible, .chip:focus-visible, .hud-pause:focus-visible, .hud-power:focus-visible, .map-flag:focus-visible, .road-stop:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-ghost { background: var(--glass); }
.btn-go { border: 0; color: #2A1200; background: linear-gradient(135deg, var(--gold), #FFE9A8 50%, #FF9A3A); box-shadow: 0 6px 20px rgba(255, 180, 60, 0.4); }
.btn-play { position: relative; border: 0; min-height: 64px; padding: 14px 54px; font-size: 28px; letter-spacing: 0.14em; text-transform: uppercase; color: #2A1200;
  background: linear-gradient(135deg, var(--gold), #FFE9A8 45%, var(--a)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) inset, 0 10px 34px rgba(255, 120, 80, 0.45); }
.btn-play::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid var(--gold); opacity: 0.6; animation: halo 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 0.15; } }
.chip { appearance: none; min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); border-radius: 999px; padding: 6px 16px; font-size: 16px; font-weight: bold; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-sizing: border-box; }
.chip-acct { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-friends { border-color: rgba(255, 200, 58, 0.55); color: #FFE9A8; }
.chip-friends[aria-expanded="true"] { border-color: var(--gold); background: rgba(255, 200, 58, 0.22); }
.chip-side { padding: 4px 16px 4px 10px; cursor: default; }
.chip-side[role="button"] { cursor: pointer; }
.chip-side .side-badge__kick { font-size: 16px; letter-spacing: 0.02em; text-transform: none; opacity: 1; }
.chip-side .side-badge__name { font-size: 16px; letter-spacing: 0.1em; }

/* ---- the door ---------------------------------------------------------------------------------------------------------- */
.door { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; overflow-y: auto; overflow-x: hidden;
  box-sizing: border-box; padding: calc(72px + var(--safe-t)) calc(16px + var(--edge-r)) calc(122px + var(--safe-b)) calc(16px + var(--edge-l));
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(26, 10, 48, 0.72) 0%, rgba(26, 10, 48, 0.5) 50%, rgba(26, 10, 48, 0.15) 100%); }
.door-col { width: min(480px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin: auto 0; }
.door-kicker { margin: 0; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; font-size: 16px; font-weight: bold; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.door-title { margin: 0; font-family: var(--title-font); line-height: 0.95; font-size: clamp(46px, 13vw, 92px); letter-spacing: 0.02em; transform: rotate(-3deg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF1A0 30%, var(--gold) 58%, #FF7A2A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #6A1A3A) drop-shadow(0 0 22px rgba(255, 120, 200, 0.45)); }
.door-sub { margin: 0; font-size: 20px; line-height: 1.35; font-weight: bold; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); }
.door-best, .door-note { margin: 0; font-size: 18px; font-weight: bold; line-height: 1.35; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); }
.door-note { font-size: 16px; color: var(--muted); font-weight: normal; }
.door-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.door-copy { position: fixed; left: calc(14px + var(--edge-l)); bottom: calc(8px + var(--safe-b)); margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 13px; z-index: 21; pointer-events: none; }
@media (min-aspect-ratio: 5/4) {
  .door { justify-content: flex-start; padding: calc(70px + var(--safe-t)) calc(24px + var(--edge-r)) calc(24px + var(--safe-b)) calc(max(24px, 6vw) + var(--edge-l));
    background: linear-gradient(90deg, rgba(26, 10, 48, 0.82) 0%, rgba(26, 10, 48, 0.5) 40%, rgba(26, 10, 48, 0) 64%); }
  .door-col { align-items: flex-start; text-align: left; width: min(500px, 46vw); }
  .door-row { justify-content: flex-start; }
  .door-copy { left: auto; right: calc(110px + max(14px, env(safe-area-inset-right, 0px))); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 560px) {
  .door { padding-top: calc(10px + var(--safe-t)); padding-bottom: calc(28px + var(--safe-b)); }
  .door-col { gap: 8px; width: min(560px, 60vw); }
  .door-kicker, .door-note { display: none; }
  .door-title { font-size: clamp(34px, 11vh, 56px); }
  .btn-play { min-height: 54px; font-size: 22px; padding: 10px 40px; }
}
@media (max-aspect-ratio: 5/4) and (max-height: 700px) { .door-kicker, .door-note { display: none; } .door-col { gap: 10px; } }

/* ---- the corner -------------------------------------------------------------------------------------------------------- */
.corner { position: fixed; top: calc(12px + var(--safe-t)); right: calc(12px + var(--edge-r)); z-index: 45; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100vw - 24px - var(--edge-l) - var(--edge-r)); }
@media (max-width: 420px) { .corner { left: calc(12px + var(--edge-l)); justify-content: center; } .chip { padding: 6px 11px; } .chip-acct { max-width: 120px; } }
@media (min-aspect-ratio: 5/4) and (max-height: 560px) { .corner { flex-direction: column; align-items: flex-end; flex-wrap: nowrap; } }
@media (max-width: 360px) { .chip-side .side-badge__words { display: none; } .chip-side { min-width: var(--tap); padding: 4px 12px; } }

/* ---- the quest map ------------------------------------------------------------------------------------------------------ */
.map { position: fixed; inset: 0; z-index: 22; background: #20140A; display: flex; align-items: center; justify-content: center; }
/* the painting covers the window edge to edge; the flags stand on it where they were placed by eye */
.map-frame { position: absolute; inset: 0; overflow: hidden; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-flags { position: absolute; inset: calc(64px + var(--safe-t)) calc(16px + var(--edge-r)) calc(16px + var(--safe-b)) calc(16px + var(--edge-l)); }
.map-flag { appearance: none; position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; background: none; padding: 0; cursor: pointer; min-width: 88px; text-align: center; }
.map-flag__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--title-font); font-size: 24px; color: #2A1200;
  background: radial-gradient(circle at 40% 35%, #FFFFFF, var(--gold) 60%, #C87A10); border: 3px solid #6A2A10; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55); }
.map-flag__name { font-size: 16px; font-weight: bold; line-height: 1.15; padding: 2px 8px; border-radius: 8px; background: rgba(26, 12, 46, 0.86); max-width: 140px; }
.map-flag__stars { font-size: 16px; color: #FFE9A8; padding: 0 6px; border-radius: 6px; background: rgba(26, 12, 46, 0.7); }
.map-flag.is-won .map-flag__n { background: radial-gradient(circle at 40% 35%, #FFFFFF, var(--b) 60%, #2A8A10); }
.map-flag.is-locked .map-flag__n { background: radial-gradient(circle at 40% 35%, #DDD, #888 60%, #444); color: #222; }
.map-flag.is-locked .map-flag__name { opacity: 0.8; }
.map-flag:not(.is-locked):hover .map-flag__n { transform: scale(1.08); }
.map-bar { position: absolute; top: calc(10px + var(--safe-t)); left: calc(12px + var(--edge-l)); display: flex; align-items: center; gap: 12px; }
.map-title { margin: 0; font-family: var(--title-font); font-size: 24px; color: var(--gold); text-shadow: 0 3px 0 #5A1A10, 0 0 10px rgba(0, 0, 0, 0.7); }
@media (max-width: 520px) { .map-title { display: none; } .map-flag { min-width: 64px; } .map-flag__name { max-width: 96px; } .map-flag__n { width: 46px; height: 46px; font-size: 20px; } }
@media (max-height: 520px) { .map-flag__stars { display: none; } .map-flag__n { width: 44px; height: 44px; font-size: 20px; } }

/* ---- a chapter's road --------------------------------------------------------------------------------------------------- */
.road { position: fixed; inset: 0; z-index: 22; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--edge-r)) calc(12px + var(--safe-b)) calc(12px + var(--edge-l)); background: rgba(16, 6, 30, 0.45); }
.road-card { width: min(880px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 16px; border-radius: 22px; background: var(--glass); border: 2px solid rgba(255, 200, 58, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.road-head { display: flex; align-items: center; gap: 12px; }
.road-title { margin: 0; font-family: var(--title-font); font-size: 24px; line-height: 1.15; color: var(--gold); }
.road-teach { margin: 10px 0 14px; font-size: 18px; line-height: 1.35; color: var(--muted); }
.road-stops { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.road-stop { appearance: none; position: relative; min-height: 84px; border-radius: 18px; border: 2px solid var(--line); background: var(--glass-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; color: var(--text); }
.road-stop__n { font-family: var(--title-font); font-size: 24px; }
.road-stop__stars { font-size: 18px; color: var(--gold); letter-spacing: 0.05em; }
.road-stop__tag { font-size: 13px; font-weight: bold; color: #2A1200; background: var(--b); border-radius: 6px; padding: 0 6px; }
.road-stop__art { width: 52px; height: 52px; object-fit: contain; }
.road-stop--boss { border-color: rgba(255, 90, 110, 0.75); background: linear-gradient(180deg, rgba(120, 20, 40, 0.85), rgba(44, 20, 70, 0.9)); }
.road-stop.is-done { border-color: rgba(123, 227, 58, 0.7); }
.road-stop.is-next { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 58, 0.35), 0 0 18px rgba(255, 200, 58, 0.5); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.road-stop.is-locked { opacity: 0.5; cursor: default; }
@media (min-aspect-ratio: 5/4) and (max-height: 560px) { .road-stops { grid-template-columns: repeat(8, 1fr); } .road-stop { min-height: 64px; } .road-stop__art { width: 36px; height: 36px; } .road-teach { margin: 6px 0 8px; } }

/* ---- a story panel ------------------------------------------------------------------------------------------------------ */
.story { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box;
  padding: calc(16px + var(--safe-t)) calc(16px + var(--edge-r)) calc(20px + var(--safe-b)) calc(16px + var(--edge-l)); background: linear-gradient(180deg, rgba(16, 6, 30, 0.1), rgba(16, 6, 30, 0.7)); }
.story-card { width: min(820px, 100%); display: flex; align-items: flex-end; gap: 14px; padding: 16px; border-radius: 24px; background: #FFF7EA; color: #2A1430;
  border: 4px solid #2A1430; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45); animation: pop-in 0.3s ease-out; }
@keyframes pop-in { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.story-art { flex: none; width: 140px; height: 140px; object-fit: contain; margin-top: -60px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }
.story-art.is-crew { width: 180px; }
.story-words { flex: 1 1 auto; min-width: 0; }
.story-step { margin: 0; font-size: 14px; font-weight: bold; color: #7A5A90; text-transform: uppercase; letter-spacing: 0.12em; }
.story-name { margin: 2px 0 6px; font-family: var(--title-font); font-size: 22px; color: #C0302A; }
.story-who { font-family: var(--font); font-size: 16px; color: #7A5A90; font-weight: bold; }
.story-line { margin: 0 0 12px; font-size: 20px; line-height: 1.4; font-weight: bold; }
.story-row { display: flex; justify-content: flex-end; gap: 10px; }
.story .btn-ghost { background: #EADCF4; color: #2A1430; border-color: #B8A0C8; }
@media (max-aspect-ratio: 5/4) { .story-card { flex-direction: column; align-items: center; text-align: center; } .story-art { margin-top: -80px; } .story-row { justify-content: center; } }

/* ---- a level ------------------------------------------------------------------------------------------------------------ */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hud-top { position: absolute; top: calc(10px + var(--safe-t)); left: calc(12px + var(--edge-l)); right: calc(12px + var(--edge-r)); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hud-words { padding: 6px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); min-width: 0; max-width: min(520px, calc(100vw - 100px)); }
.hud-level { margin: 0; font-family: var(--title-font); font-size: 18px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-line { margin: 0; font-size: 16px; line-height: 1.3; }
.hud-score { font-weight: bold; font-size: 20px; color: #FFFFFF; font-variant-numeric: tabular-nums; margin-right: 6px; }
.hud-goal { color: var(--muted); }
.hud-pause { pointer-events: auto; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 233, 168, 0.75); background: var(--glass);
  display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.hud-pause span { width: 16px; height: 18px; border-left: 5px solid #FFE9A8; border-right: 5px solid #FFE9A8; box-sizing: border-box; }
.hud-boss { position: absolute; top: calc(80px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 32px - var(--edge-l) - var(--edge-r))); }
.hud-boss__bar { height: 14px; border-radius: 7px; background: rgba(0, 0, 0, 0.65); border: 2px solid rgba(255, 120, 140, 0.75); overflow: hidden; }
.hud-boss__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #FF4A6A, #FF9A5A); transition: width 0.25s ease; }
.hud-banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); margin: 0; width: max-content; max-width: calc(100vw - 40px - var(--edge-l) - var(--edge-r));
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 22px; border-radius: 18px; text-align: center;
  background: rgba(26, 12, 46, 0.88); border: 2px solid rgba(255, 200, 58, 0.6); animation: banner 2.6s ease forwards; }
.hud-banner__t { font-family: var(--title-font); font-size: 28px; line-height: 1.15; color: var(--gold); }
.hud-banner__s { font-size: 18px; line-height: 1.3; color: var(--muted); max-width: 460px; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); } 10% { opacity: 1; transform: translate(-50%, -50%); } 82% { opacity: 1; } 100% { opacity: 0; } }
.hud-foot { position: absolute; left: calc(12px + var(--edge-l)); bottom: calc(10px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hud-crew { pointer-events: auto; padding: 8px 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hud-meter-word { margin: 0; font-size: 16px; font-weight: bold; color: #FFE9A8; }
.hud-meter { width: 180px; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); overflow: hidden; }
.hud-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--b), var(--gold), var(--a)); transition: width 0.3s ease; }
.hud-powers { display: flex; gap: 6px; }
.hud-power { appearance: none; min-height: var(--tap); min-width: var(--tap); padding: 4px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--glass-2);
  font-size: 16px; font-weight: bold; cursor: pointer; }
.hud-power:disabled { opacity: 0.45; cursor: default; }
.hud-power--fire:not(:disabled) { border-color: #FF8A1E; }
.hud-power--rainbow:not(:disabled) { border-color: #FF4EC8; }
.hud-power--lightning:not(:disabled) { border-color: #3CC8FF; }
.hud-power[aria-pressed="true"] { background: var(--gold); color: #2A1200; box-shadow: 0 0 14px rgba(255, 200, 58, 0.8); }
.hud-swap { pointer-events: auto; }
/* held upright, the foot's panel stands left of the cannon in the board's own foot */
@media (max-aspect-ratio: 5/4) {
  .hud-foot { right: calc(12px + var(--edge-r)); flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hud-crew { flex-direction: row; align-items: center; gap: 8px; padding: 4px 8px; }
  .hud-meter-word { display: none; }
  .hud-meter { width: 72px; }
  .hud-power { padding: 4px 6px; }
  .hud-boss { top: calc(76px + var(--safe-t)); }
}
/* a computer or a phone held sideways: the words stand on the painting left of the board */
@media (min-aspect-ratio: 5/4) { .hud-words { max-width: min(300px, 26vw); } .hud-level { white-space: normal; } .hud-goal { display: block; } .hud-boss { left: calc(12px + var(--edge-l)); top: auto; bottom: calc(50% - 40px); transform: none; width: min(260px, 24vw); } }

/* ---- the result card ---------------------------------------------------------------------------------------------------- */
.result { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; box-sizing: border-box; overflow-y: auto;
  padding: calc(16px + var(--safe-t)) calc(16px + var(--edge-r)) calc(16px + var(--safe-b)) calc(16px + var(--edge-l)); background: rgba(16, 6, 30, 0.55); }
.result-card { width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 18px 20px; border-radius: 26px;
  background: var(--glass); border: 3px solid rgba(255, 200, 58, 0.7); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); animation: pop-in 0.35s ease-out; margin: auto 0; }
.result-art { width: 200px; max-width: 60%; height: auto; max-height: 160px; object-fit: contain; }
.result-sub { margin: 0; font-size: 16px; color: var(--muted); font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; }
.result-title { margin: 0; font-family: var(--title-font); font-size: 30px; line-height: 1.1; color: var(--gold); }
.result-stars { margin: 0; font-size: 44px; line-height: 1; color: var(--gold); letter-spacing: 0.08em; text-shadow: 0 3px 0 #6A2A10; }
.result-stars:empty { display: none; }
.result-score { margin: 0; font-size: 20px; font-weight: bold; }
.result-pay { margin: 0; font-size: 18px; line-height: 1.35; color: #D8FFB0; }
.result-pay:empty { display: none; }
.result-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
@media (max-height: 520px) { .result-art { max-height: 90px; } .result-card { gap: 4px; padding: 12px 16px; } .result-stars { font-size: 34px; } }

/* ---- the sheets (../js/room-ui.js dialogs) ------------------------------------------------------------------------------ */
.wz-sheet-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-how { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.wz-how__art { flex: none; width: 84px; height: 84px; object-fit: contain; }
.wz-how h3 { margin: 0 0 4px; font-size: 20px; }
.wz-how p { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.wz-how__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- the toast and the boot error --------------------------------------------------------------------------------------- */
.toast { box-sizing: border-box; position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); z-index: 80; max-width: calc(100vw - 40px); padding: 12px 18px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--line); font-size: 18px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.boot-error { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center;
  background: var(--ink); font-size: 18px; }
.boot-error__title { font-size: 24px; font-weight: bold; color: var(--gold); margin: 0; }
.boot-error a { color: var(--b); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
