:root {
  --night: #121110;
  --night-2: #1B1917;
  --night-3: #252220;
  --paper: #F1EDE4;
  --paper-2: #E4DED2;
  --ink: #161412;
  --ink-2: #5F5952;
  --mist: rgba(241, 237, 228, .62);
  --mist-2: rgba(241, 237, 228, .38);
  --line: rgba(241, 237, 228, .10);
  --gold: #E9B949;
  --gold-2: #F6D57E;
  --gold-ink: #9A6510;
  --red: #E5553A;
  --sh-1: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 4px rgba(0, 0, 0, .18);
  --sh-2: 0 1px 1px rgba(0, 0, 0, .22), 0 4px 10px rgba(0, 0, 0, .22), 0 14px 30px -10px rgba(0, 0, 0, .45);
  --sh-3: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -8px rgba(0, 0, 0, .55), 0 40px 80px -30px rgba(0, 0, 0, .6);
  --serif: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --italic: 'Newsreader', ui-serif, Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .55, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh; color: var(--paper);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(241, 237, 228, .07), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(233, 185, 73, .035), transparent 60%),
    var(--night);
  background-attachment: fixed;
  font: 400 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, p { margin: 0; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 14px; }
h1:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.dim { color: var(--mist-2); }

#app { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 0; }
.screen { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- stars ---------- */
.star { width: 16px; height: 16px; fill: rgba(241, 237, 228, .14); stroke: none; }
.star.on { fill: url(#gold); filter: drop-shadow(0 1px 2px rgba(233, 185, 73, .35)); }

/* ---------- buttons ---------- */
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); color: var(--paper);
  transition: transform .16s var(--ease), background-color .16s;
}
.icon-btn svg { margin-left: -2px; }
.icon-btn:active { transform: scale(.92); }
.btn {
  height: 56px; padding: 0 28px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 18px; letter-spacing: -.005em;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), opacity .2s, background-color .2s;
}
.btn:active { transform: scale(.96); }
.btn-gold {
  color: #2A1C04; min-width: 180px;
  background: linear-gradient(180deg, #FBDF8E, #ECB43E 60%, #D99A26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 70, 0, .25), 0 6px 18px -4px rgba(233, 185, 73, .45), var(--sh-1);
}
.btn-gold:disabled { background: var(--night-3); color: var(--mist-2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; transform: none; }
.btn-ghost { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); color: var(--paper); padding: 0 22px; }
.dock {
  position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: center; gap: 10px;
  padding: 28px 0 max(18px, env(safe-area-inset-bottom));
  margin: 8px calc(-1 * clamp(16px, 4vw, 40px)) 0;
  background: linear-gradient(to top, var(--night) 55%, rgba(18, 17, 16, 0));
}

/* ---------- map ---------- */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 4px; position: sticky; top: 0; z-index: 4; }
.map-head::before { content: ''; position: absolute; top: -20px; bottom: -18px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: linear-gradient(var(--night) 55%, rgba(18, 17, 16, 0)); }
.brand { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.03em; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; border-radius: 20px;
  background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px;
}
.pill .star { width: 18px; height: 18px; }
.map { position: relative; max-width: 620px; margin: 0 auto 40px; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; stroke-width: 3; }
.trail-base { stroke: rgba(241, 237, 228, .16); stroke-dasharray: .5 11; }
.trail-done { stroke: var(--gold); stroke-dasharray: .5 11; opacity: .8; }
.node-wrap { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.node {
  position: absolute; left: -48px; top: -40px; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s var(--ease);
}
.node-disc {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; position: relative;
  background: var(--night-3); box-shadow: 0 0 0 3px rgba(241, 237, 228, .85), var(--sh-2);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.node-disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 50% 45%; }
.node-label { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; line-height: 1; margin-top: 4px; text-shadow: 0 1px 8px var(--night); }
.node-stars { display: flex; gap: 1px; height: 15px; }
.node-stars .star { width: 15px; height: 15px; }
.node.is-current .node-disc { box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(233, 185, 73, .16), 0 0 34px rgba(233, 185, 73, .35), var(--sh-2); }
.node.is-current .node-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); animation: ping 2.2s var(--ease) infinite; }
.node.is-current .node-stars { display: none; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.45); } }
.node.is-locked { cursor: default; }
.node.is-locked .node-disc { box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); width: 64px; height: 64px; margin: 8px 0; background: var(--night-2); }
.node.is-locked .node-label { color: var(--mist-2); }
.node.is-locked .node-stars { display: none; }
.node-lock { width: 22px; height: 22px; color: rgba(241, 237, 228, .28); }
.node.nope { animation: nope .32s var(--ease); }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (hover: hover) and (pointer: fine) {
  .node:not(.is-locked):hover .node-disc { transform: translateY(-3px) scale(1.04); }
  .pcard:hover { transform: translateY(-2px); }
  .btn-gold:not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 70, 0, .25), 0 10px 26px -4px rgba(233, 185, 73, .6), var(--sh-1); }
  .icon-btn:hover, .btn-ghost:hover { background: #2E2A27; }
}
.node.is-new .node-disc { animation: unlock .7s var(--spring) .25s both; }
@keyframes unlock { from { transform: scale(.4); opacity: 0; } }
.node-stars.is-fresh .star.on { animation: pop .5s var(--spring) both; }
.node-stars.is-fresh .star:nth-child(2) { animation-delay: .1s; }
.node-stars.is-fresh .star:nth-child(3) { animation-delay: .2s; }
@keyframes pop { from { transform: scale(0); } }

/* ---------- bar ---------- */
.bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 48px; }
.bar-mid { text-align: center; font-weight: 700; font-size: 15px; }
.bar-stars { display: flex; justify-content: flex-end; gap: 1px; }
.bar-stars .star { width: 14px; height: 14px; }

/* ---------- root card ---------- */
.tilt { perspective: 1000px; width: var(--cw); margin: 0 auto; touch-action: pan-y; }
.tilt-main { --cw: clamp(200px, 18.5vw, 236px); margin-top: 4px; }
@media (min-height: 900px) and (min-width: 700px) { .tilt-main { --cw: 264px; } }
.tilt-mini { --cw: clamp(140px, 17vw, 180px); }
.rcard {
  --r: calc(var(--cw) * .07);
  position: relative; width: var(--cw); aspect-ratio: 63 / 88; border-radius: var(--r); padding: calc(var(--cw) * .03);
  container-type: inline-size; isolation: isolate; overflow: hidden;
  background:
    linear-gradient(125deg, #F7DE92 0%, #C99A3A 18%, #F3E3B0 34%, #A9D3C8 50%, #CBB1E6 64%, #F0C866 80%, #B8862C 100%);
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transform-style: flat; will-change: transform; backface-visibility: hidden;
}
.rcard { transition: box-shadow .4s var(--ease); }
.rcard.is-live { box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 50px -10px rgba(0, 0, 0, .6), 0 0 40px -6px rgba(203, 177, 230, .35); }
.rcard-in {
  position: relative; height: 100%; border-radius: calc(var(--r) - var(--cw) * .03); background: var(--paper); color: var(--ink);
  padding: 4.6cqw 4.6cqw 4cqw; display: flex; flex-direction: column; gap: 2.8cqw; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(22, 20, 18, .14);
  background-image: radial-gradient(120% 80% at 50% 0%, #F7F4EE, var(--paper) 60%, #E9E3D7);
}
.rcard-top { display: block; min-width: 0; padding: 0 1cqw; }
.rcard-name { display: block; white-space: nowrap; font-family: var(--serif); font-weight: 800; font-size: 17cqw; line-height: .92; letter-spacing: -.02em; color: var(--ink); }
.rcard-dot { font-weight: 500; letter-spacing: -.02em; opacity: .9; }
.rcard-art {
  position: relative; flex: 1 1 0; min-height: 60cqw; border-radius: 3.2cqw; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 20, 18, .5), 0 0 0 1.2cqw var(--paper), 0 0 0 calc(1.2cqw + 1px) rgba(22, 20, 18, .16);
  margin: .6cqw 1.2cqw; isolation: isolate; transform: translateZ(0);
}
.rcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* holo: rainbow bands x glitter, colour-dodged onto the art */
.holo { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .16; pointer-events: none; overflow: hidden; filter: brightness(.62) contrast(1.6) saturate(1.5); will-change: opacity; }
.holo i { position: absolute; display: block; pointer-events: none; }
.holo-rb, .sheen-rb {
  left: -100%; top: -100%; width: 300%; height: 300%; will-change: transform;
  background: repeating-linear-gradient(115deg,
    hsl(2, 100%, 72%) 0%, hsl(48, 100%, 66%) 3.2%, hsl(110, 90%, 66%) 6.4%, hsl(180, 100%, 66%) 9.6%,
    hsl(228, 100%, 72%) 12.8%, hsl(290, 100%, 72%) 16%, hsl(2, 100%, 72%) 19.2%);
}
.holo-gl { inset: -12%; background: url(art/glitter.98d83481.webp) center / 34cqw 34cqw repeat; mix-blend-mode: multiply; will-change: transform; }
.holo-gl2 { background-size: 52cqw 52cqw; mix-blend-mode: screen; opacity: .7; }
/* faint foil sheen over the whole card face */
.sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; mix-blend-mode: overlay; opacity: .07; will-change: opacity; }
.sheen i { position: absolute; display: block; }
/* moving glare */
.glare { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; mix-blend-mode: overlay; opacity: 0; will-change: opacity; }
.glare-dot { position: absolute; display: block; left: -50%; top: -50%; width: 200%; height: 200%; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .45) 30%, rgba(0, 0, 0, .25) 75%, rgba(0, 0, 0, .35)); }
.rcard-mean { font-family: var(--italic); font-style: italic; font-weight: 500; font-size: 8cqw; line-height: 1.08; letter-spacing: -.01em; text-align: center; margin-top: .6cqw; text-wrap: balance; }
.rcard-foot { display: flex; justify-content: space-between; gap: 3cqw; font-size: max(8px, 3.9cqw); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); opacity: .75; border-top: 1px solid rgba(22, 20, 18, .12); padding-top: 2.2cqw; }

/* ---------- level ---------- */
.stage { display: flex; flex-direction: column; align-items: center; }
.prompt { margin: 22px 0 16px; color: var(--mist); font-size: 16px; text-align: center; text-wrap: balance; }
.prompt b { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.12em; }
.hand { width: 100%; max-width: 660px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .pcard { min-height: 80px; } }
.pcard {
  --r: 18px;
  position: relative; min-height: 96px; padding: 14px 12px; border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: var(--paper); color: var(--ink);
  background-image: linear-gradient(180deg, #F7F4EE, var(--paper) 70%, #E8E2D6);
  box-shadow: inset 0 0 0 1px rgba(22, 20, 18, .1), inset 0 -2px 0 rgba(22, 20, 18, .08), var(--sh-2);
  transition: transform .22s var(--spring), box-shadow .2s var(--ease), background-color .2s;
  animation: deal .45s var(--ease) var(--d, 0ms) both;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
@keyframes deal { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.pc-part { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pc-part .hy { color: rgba(22, 20, 18, .35); font-weight: 400; margin: 0 .04em; }
.pc-mean { font-size: 13.5px; line-height: 1.2; color: var(--ink-2); }
.pc-tick {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; padding: 5px;
  background: linear-gradient(180deg, #FBDF8E, #E2A632); color: #2A1C04; box-shadow: 0 0 0 2px var(--night), var(--sh-1);
  transform: scale(0); transition: transform .25s var(--spring);
}
.pcard:active { transform: scale(.96); }
.pcard.is-sel {
  transform: translateY(-4px);
  background-image: linear-gradient(180deg, #FFF8E2, #FBEFCB 70%, #F2E0AE);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(233, 185, 73, .22), 0 10px 26px -6px rgba(233, 185, 73, .45), var(--sh-2);
}
.pcard.is-sel .pc-tick { transform: scale(1); }
.pcard.is-sel:active { transform: translateY(-4px) scale(.96); }

/* ---------- result ---------- */
.verdict { position: relative; display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; }
.big-stars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 76px; }
.bs .star { width: 56px; height: 56px; }
.bs:nth-child(2) .star { width: 72px; height: 72px; }
.bs .star.on { animation: starIn .6s var(--spring) both; animation-delay: calc(var(--k) * 180ms + 150ms); filter: drop-shadow(0 4px 14px rgba(233, 185, 73, .45)); }
@keyframes starIn { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--gold-2); opacity: 0; animation: fly .9s var(--ease) .75s both; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) scale(var(--s)); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0); } }
.score { font-family: var(--serif); font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: -.03em; margin-top: 10px; }
.best { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tally { display: flex; gap: 8px; margin: 16px 0 0; }
.tally div { display: grid; grid-template-columns: auto auto; grid-template-areas: 'n p' 'l l'; column-gap: 8px; align-items: baseline; padding: 10px 14px; border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 96px; }
.tally dt { grid-area: l; font-size: 13px; color: var(--mist-2); }
.tally dd { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.1; }
.tally dd.pts { grid-area: p; font-size: 14px; justify-self: end; }
.pts.up { color: var(--gold); }
.pts.dn { color: var(--mist-2); }
.tally div:nth-child(2) dd:not(.pts) { color: var(--paper); }

.tree { position: relative; max-width: 780px; margin: 26px auto 0; padding-bottom: 8px; }
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tree-lines path { fill: none; stroke-linecap: round; }
.trunk { stroke: var(--gold); stroke-width: 3; opacity: .85; }
.branch.on { stroke: var(--gold); stroke-width: 2.5; }
.branch.off { stroke: rgba(241, 237, 228, .22); stroke-width: 2; }
.tree-lines.in .branch.off { stroke-dasharray: 3 6 !important; stroke-dashoffset: 0 !important; transition: none !important; }
.knot.on { fill: var(--gold); }
.knot.off { fill: rgba(241, 237, 228, .3); }
.tree-root { display: flex; justify-content: center; position: relative; z-index: 1; }
.tree-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(36px, 14vw, 120px); margin-top: 34px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.col-r { padding-top: 54px; }
.wcard {
  position: relative; padding: 12px 14px 13px; border-radius: 16px; background: var(--paper); color: var(--ink);
  background-image: linear-gradient(180deg, #F7F4EE, var(--paper) 70%, #E9E3D7);
  box-shadow: inset 0 0 0 1px rgba(22, 20, 18, .1), var(--sh-2);
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.wcard.in { opacity: 1; transform: none; }
.w-word { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; padding-right: 22px; }
.w-word b { color: var(--gold-ink); font-weight: 700; }
.w-def { font-size: 14px; line-height: 1.3; color: var(--ink-2); margin-top: 4px; text-wrap: pretty; }
.w-mark { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: linear-gradient(180deg, #FBDF8E, #E2A632); color: #2A1C04; }
.w-tag { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 3px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(22, 20, 18, .22); }
.wcard.is-missed { background: var(--night-2); background-image: none; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .18); }
.wcard.is-missed.in { opacity: .82; }
.wcard.is-missed .w-word b { color: var(--gold); }
.wcard.is-missed .w-def { color: var(--mist); }
.wcard.is-missed .w-tag { color: var(--mist); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .25); }

.fakes { max-width: 780px; margin: 30px auto 0; text-align: center; }
.fakes h2 { font-size: 14px; font-weight: 700; color: var(--mist-2); margin-bottom: 12px; }
.fakes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--mist-2); font-family: var(--serif); font-size: 17px; }
.fchip s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(241, 237, 228, .35); }
.fchip.is-picked { background: rgba(229, 85, 58, .14); box-shadow: inset 0 0 0 1.5px rgba(229, 85, 58, .7); color: #FFD9CF; padding-left: 8px; }
.fchip.is-picked s { text-decoration-color: var(--red); }
.f-x { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; }
.dock-result { margin-top: 18px; }
.dock-result .btn-ghost[aria-label] { width: 56px; padding: 0; }

/* ---------- phone ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hand { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .pcard { min-height: 84px; padding: 11px 6px; --r: 15px; }
  .pc-part { font-size: clamp(17px, 5vw, 21px); }
  .pc-mean { font-size: 12px; }
  .pc-tick { width: 22px; height: 22px; top: -6px; right: -6px; padding: 4px; }
  .prompt { margin: 18px 0 14px; font-size: 15px; }
  .node { left: -44px; width: 88px; top: -36px; }
  .node-disc { width: 72px; height: 72px; }
  .node.is-locked .node-disc { width: 58px; height: 58px; margin: 7px 0; }
  .score { font-size: 52px; }
  .tally div { min-width: 0; padding: 9px 11px; }
  .tally dd { font-size: 19px; }
  .tree-cols { column-gap: 30px; }
  .col { gap: 12px; }
  .col-r { padding-top: 48px; }
  .wcard { padding: 10px 11px 11px; border-radius: 14px; }
  .w-word { font-size: 18px; padding-right: 18px; }
  .w-def { font-size: 13px; }
  .w-mark { width: 19px; height: 19px; top: 8px; right: 8px; padding: 3.5px; }
  .btn { height: 54px; font-size: 17px; }
  .btn-gold { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .wcard { opacity: 1; transform: none; }
}

/* map backdrop: the current level's art, dissolved into the night */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop img { position: absolute; left: 50%; top: 50%; width: max(120vw, 120vh); height: max(120vw, 120vh); transform: translate(-50%, -50%); object-fit: cover; filter: blur(28px) grayscale(1); opacity: .1; }
.backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 45%, rgba(18, 17, 16, .2), var(--night) 85%); }
.screen { position: relative; z-index: 0; }
.w-mark svg, .pc-tick svg, .f-x svg, .node-lock svg { display: block; width: 100%; height: 100%; }
.rcard-foot, .best, .w-tag, .tally dt { font-variant-ligatures: none; }
