@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/parkinsans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/parkinsans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/parkinsans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/parkinsans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/parkinsans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/parkinsans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/parkinsans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/parkinsans-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Layout: a title screen you can scroll. Full-bleed dusk scenes are the acts of a crossing;
   content sits on cream bubbles, stone and slab buttons, the way it does in the game (Lamplight). */
:root {
  color-scheme: dark;
  /* dusk, sky to sea */
  --night: #150a22;
  --dusk: #22123a;
  --plum: #351b4f;
  --wine: #4a2050;
  /* light sources */
  --cream: #fff4dc;
  --ink: #2a1838;
  --text: #f8ecdf;
  --muted: #cdb9d4;
  --faint: rgba(248, 236, 223, .62);
  --gold: #ffd25e;
  --gold-deep: #e7a21f;
  --points: #27b7ff;
  --factor: #ff4d3d;
  --ember-hi: #ff7c50; --ember-lo: #f2492a; --ember-lip: #b3321b;
  --sea-hi: #35d3c9; --sea-lo: #17a29d; --sea-lip: #0b6b6e;
  --bone-hi: #fffaf0; --bone-lo: #f6e3bd; --bone-lip: #c9a66a;
  --gold-hi: #ffd860; --gold-lo: #f2ad1c; --gold-lip: #b37608;
  --suit-H: #d7343c; --suit-D: #ea8417; --suit-C: #2b8a48; --suit-S: #253863;
  --hair: #d4ad55;
  --glass: rgba(26, 10, 34, .72);
  --soft: 0 22px 40px -16px rgba(10, 2, 14, .65);
  /* type: Parkinsans for everything, Onest only on card ranks (the game's lock) */
  --f-display: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-rank: "Onest", "Segoe UI", system-ui, sans-serif;
  --t-h2: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --t-lede: clamp(1.06rem, 1rem + .4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: .9rem;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--night); }
body { margin: 0; background: var(--night); color: var(--text); font: 500 var(--t-body)/1.55 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font: 700 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--text); max-width: 34em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }

/* ---------- slab buttons: same-hue gradient, a lip, a shine; lift on hover, squash on press ---------- */
.btn {
  --c: var(--gold-hi); --cd: var(--gold-lo); --lip: var(--gold-lip); --tc: #3a2006;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .78em 1.35em .82em; border: 0; border-radius: 20px; cursor: pointer;
  color: var(--tc); text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden;
  font: 800 1.12rem/1 var(--f-display); letter-spacing: .01em;
  background: linear-gradient(180deg, var(--c), var(--cd));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -6px 0 rgba(0,0,0,.08), 0 7px 0 var(--lip), 0 22px 34px -14px rgba(20,4,10,.6);
  transition: transform .16s cubic-bezier(.2,.9,.3,1.4), box-shadow .16s;
  margin-bottom: 7px;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -6px 0 rgba(0,0,0,.08), 0 10px 0 var(--lip), 0 30px 44px -14px rgba(20,4,10,.6); }
.btn:active { transform: translateY(6px) scale(.98, .95); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 1px 0 var(--lip), 0 8px 14px -6px rgba(20,4,10,.6); transition-duration: .05s; }
.btn::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0)); transform: translateX(-120%); }
.btn.shine::after { animation: shine 4.2s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(560%); } }
.btn[disabled], .btn[aria-disabled="true"] { filter: saturate(.35) brightness(.8); cursor: default; transform: none; }
.btn-ember { --c: var(--ember-hi); --cd: var(--ember-lo); --lip: var(--ember-lip); --tc: #fff; text-shadow: 0 3px 0 rgba(100,20,8,.25); }
.btn-sea { --c: var(--sea-hi); --cd: var(--sea-lo); --lip: var(--sea-lip); --tc: #fff; text-shadow: 0 3px 0 rgba(4,60,62,.25); }
.btn-bone { --c: var(--bone-hi); --cd: var(--bone-lo); --lip: var(--bone-lip); --tc: var(--ink); }
.btn-lg { min-height: 64px; padding: .9em 1.6em .95em; border-radius: 24px; font-size: 1.3rem; }
.btn-sm { min-height: 42px; padding: .55em 1em .6em; border-radius: 14px; font-size: 1rem; box-shadow: inset 0 2px 0 rgba(255,255,255,.42), 0 5px 0 var(--lip), 0 14px 22px -10px rgba(20,4,10,.6); margin-bottom: 5px; }
.btn .sub { display: block; margin-top: .3em; font: 700 .72rem/1 var(--f-body); letter-spacing: .02em; opacity: .9; text-shadow: none; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.price { display: inline-flex; align-items: center; gap: .3em; padding: .28em .55em .3em; border-radius: 11px; background: rgba(60,8,0,.22); font: 800 .95em/1 var(--f-display); }
.btn-bone .price, .btn:not(.btn-ember):not(.btn-sea) .price { background: rgba(60,30,0,.12); }
.coin-i { width: 1.05em; height: 1.05em; background: url("../assets/ui/coin-owl.webp") 50% 50%/contain no-repeat; filter: drop-shadow(0 1px 1px rgba(60,25,0,.35)); flex: none; }
.kbd { display: inline-block; padding: 3px 6px 4px; border-radius: 7px; background: rgba(0,0,0,.18); font: 800 .72rem/1 var(--f-body); letter-spacing: .03em; color: inherit; text-shadow: none; }
.textlink { color: var(--cream); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,210,94,.6); text-underline-offset: .2em; }
.textlink:hover { text-decoration-color: var(--gold); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.solid { background: rgba(21,10,34,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.8); }
.nav-in { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.nav-logo { flex: none; display: block; width: 116px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.nav.solid .nav-logo, .nav-logo:focus-visible { opacity: 1; transform: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--text); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255,244,220,.1); color: var(--cream); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; background: rgba(255,244,220,.1); color: var(--cream); transition: background .2s, transform .15s; }
.icon-btn:hover { background: rgba(255,244,220,.18); transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .on { display: none; } .icon-btn[aria-pressed="true"] .on { display: block; } .icon-btn[aria-pressed="true"] .off { display: none; }
.nav .btn { margin-bottom: 5px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-in > .icon-btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(620px, 92svh, 940px); display: flex; align-items: center; padding-block: calc(var(--nav-h) + 24px) 120px; overflow: hidden; }
.hero-art { position: absolute; inset: -3%; z-index: -2; will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21,10,34,.82) 0%, rgba(21,10,34,.55) 32%, rgba(21,10,34,0) 58%),
    linear-gradient(180deg, rgba(21,10,34,.5) 0%, rgba(21,10,34,0) 18%, rgba(21,10,34,0) 70%, var(--night) 100%); }
.hero-copy { display: grid; gap: 22px; justify-items: start; max-width: 680px; margin-right: auto; }
.hero h1 { width: min(500px, 88%); margin-left: -6px; animation: logo-in 1s cubic-bezier(.2,.9,.25,1.25) both; }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(10,2,14,.55)); }
@keyframes logo-in { 0% { transform: translateY(18px) scale(.86); } 100% { transform: none; } }
.hero .lede { text-shadow: 0 2px 18px rgba(21,10,34,.7); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 8px; border-radius: 999px; background: rgba(255,244,220,.12); color: var(--cream); font: 700 .86rem/1 var(--f-body); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; }
.fine { font-size: var(--t-small); color: var(--faint); }
.fine b { color: var(--cream); }
.desk-note { display: none; }
@media (max-width: 760px) { .desk-note { display: block; } }

.zeus-bubble { position: absolute; z-index: 2; left: var(--bx, 60%); top: var(--by, 14%); width: min(290px, 26vw); transform: translate(-100%, 0); cursor: pointer; text-align: left; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; border-radius: 24px; }
.zeus-bubble .bubble { --tail-x: 16%; }
.bubble { position: relative; display: block; padding: 14px 20px 16px; border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 24px 44px -16px rgba(0,0,0,.75); font: 600 1.05rem/1.32 var(--f-body); }
.bubble .who { display: block; margin-bottom: 4px; font: 800 .86rem/1 var(--f-display); letter-spacing: .03em; color: var(--whoc, #2b63c9); }
.bubble em { color: #c2401c; font-style: normal; }
.bubble b { font-weight: 800; }
.bubble::after { content: ""; position: absolute; top: 100%; left: var(--tail-x, 22%); width: 30px; height: 26px; margin-top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M2 0L9 31L38 0Z' fill='%23fff4dc'/%3E%3C/svg%3E") no-repeat 0 0/100% 100%; }
.bubble.tail-up::after { top: auto; bottom: 100%; margin: 0 0 -1px; transform: scaleY(-1); }
.bubble.tail-right::after { left: auto; right: var(--tail-x, 18%); transform: scaleX(-1); }
.bubble.tail-up.tail-right::after { transform: scale(-1, -1); }
.bubble .txt { display: block; min-height: 2.64em; }
.bubble.pop-in { animation: bubble-in .38s cubic-bezier(.2,.9,.3,1.4) both; transform-origin: var(--tail-x, 22%) 100%; }
@keyframes bubble-in { 0% { transform: scale(.6); } 100% { transform: none; } }
@media (max-width: 760px) { /* phones: the portrait painting sits under the nav at full width; the wordmark lands in its calm middle band */
  .hero { --art-top: calc(var(--nav-h) - 22px); --ah: min(150vw, 100svh); align-items: flex-end; padding-bottom: 110px; min-height: 0; }
  .hero-art { inset: auto; top: var(--art-top); left: 0; right: 0; height: var(--ah); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44px); mask-image: linear-gradient(180deg, transparent 0, #000 44px); }
  .hero-art img { object-position: 50% 0; }
  .hero-shade { inset: auto; top: 0; left: 0; right: 0; height: calc(var(--art-top) + var(--ah) + 2px);
    background: linear-gradient(180deg, rgba(21,10,34,0) 0, rgba(21,10,34,0) calc(var(--art-top) + var(--ah) * .5), rgba(21,10,34,.32) calc(var(--art-top) + var(--ah) * .64), rgba(21,10,34,.6) calc(var(--art-top) + var(--ah) * .86), var(--night) 100%); }
  .hero-copy { padding-top: calc(var(--art-top) + var(--ah) * .42 - var(--nav-h) - 24px); }
  .zeus-bubble { left: auto; right: 12px; top: calc(var(--art-top) + var(--ah) * .205); width: min(196px, 50vw); transform: none; }
  .zeus-bubble .bubble { --tail-x: 36%; }
  .bubble { font-size: .95rem; }
}

/* lamp flames on the paintings: a soft light that breathes, pinned to each painted flame */
.lamps { position: absolute; inset: 0; pointer-events: none; --ls: 1; }
.lamp { position: absolute; width: calc(46px * var(--ls)); height: calc(46px * var(--ls)); translate: -50% -55%; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,240,190,.9) 0 9%, rgba(255,186,90,.5) 26%, rgba(255,130,50,.16) 48%, rgba(255,120,40,0) 70%);
  animation: flicker var(--fd, 1.6s) ease-in-out var(--fdel, 0s) infinite alternate; }
.lamp.blue { background: radial-gradient(circle, rgba(230,244,255,.9) 0 9%, rgba(120,190,255,.5) 26%, rgba(90,150,255,.14) 48%, rgba(80,140,255,0) 70%); }
.lamp::after { content: ""; position: absolute; left: 50%; top: 92%; width: 18%; height: 150%; translate: -50% 0; border-radius: 50%; background: linear-gradient(180deg, rgba(255,196,110,.42), rgba(255,196,110,0)); filter: blur(calc(2px * var(--ls))); }
.lamp.blue::after { background: linear-gradient(180deg, rgba(150,200,255,.4), rgba(150,200,255,0)); }
@keyframes flicker { 0% { opacity: .62; scale: .86; } 35% { opacity: 1; scale: 1.06; } 62% { opacity: .78; scale: .94; } 100% { opacity: .96; scale: 1.1; } }
@media (max-width: 760px) { .hero .lamps { display: none; } }


/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.sec-head { display: grid; gap: 14px; justify-items: start; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p:not(.kicker) { font-size: var(--t-lede); color: var(--muted); max-width: 36em; }
.sec-head.center { justify-items: center; text-align: center; margin-inline: auto; }

/* ---------- the demo Trial: the game's own Trial screen (src/styles/lamp/trial.css) at its 1920 × 1080 board size,
   scaled to fit. Phones get the same parts stacked on a 1080 × 1900 board. Positions are the game's, in board pixels. ---------- */
.trial { padding-top: clamp(96px, 11vw, 150px); isolation: isolate; }
.trial-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.trial-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(.9) brightness(.42) blur(0); }
.trial-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(21,10,34,.4) 22%, rgba(40,14,20,.4) 70%, var(--night) 100%); }
.gs-wrap { --k: .6; position: relative; width: min(1680px, 100% - 2 * var(--gutter)); margin: 34px auto 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #3a1a14; outline: none;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,244,220,.1), 0 0 80px -10px rgba(255,120,50,.25); }
.gs-wrap:focus-visible { box-shadow: 0 0 0 3px var(--gold), 0 50px 90px -30px rgba(0,0,0,.9); }
.gs { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; transform: scale(var(--k)); color: #fff4dc; font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
.gs .shaker { position: absolute; inset: 0; }
.gs .sc { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gs .sc .bgimg { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: 50% 60%; filter: brightness(.76) saturate(1.08); }
.gs .grade { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 72% at 64% 44%, rgba(16,6,20,0) 40%, rgba(16,6,20,.62) 100%), linear-gradient(180deg, rgba(20,8,28,.5) 0%, rgba(20,8,28,0) 30%, rgba(20,8,28,0) 58%, rgba(14,6,14,.42) 100%); }
.gs .grade::after { content: ""; position: absolute; inset: 0; background: #5a2216; mix-blend-mode: multiply; opacity: .2; }
.gs .pool { position: absolute; left: -260px; top: -160px; width: 1060px; height: 1200px; background: radial-gradient(ellipse at 34% 42%, rgba(38,10,18,.64) 0%, rgba(38,10,18,.36) 42%, rgba(38,10,18,0) 70%); }
.gs .floor { position: absolute; left: 0; right: 0; top: 690px; bottom: 0; background: linear-gradient(180deg, rgba(44,12,16,0), rgba(44,12,16,.5) 390px); }

/* the host */
.gs .boss { position: absolute; z-index: 2; left: 944px; top: 194px; width: 640px; height: 640px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; animation: gs-breathe 5s ease-in-out infinite; }
.gs .boss img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
@keyframes gs-breathe { 0%,100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.006, 1.012); } }
.gs .boss.ouch { animation: gs-hurt .55s ease-out; }
@keyframes gs-hurt { 0% { transform: translateX(0); filter: brightness(1); } 12% { transform: translateX(-16px); filter: brightness(1.9) saturate(.6); } 35% { transform: translateX(12px); filter: brightness(1.3); } 60% { transform: translateX(-6px); } 100% { transform: translateX(0); filter: brightness(1); } }

/* left rail: the score story */
.gs .ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.gs .ui > * { pointer-events: auto; }
.gs .rail { position: absolute; left: 64px; top: 38px; width: 480px; text-shadow: 0 2px 14px rgba(30,6,12,.55); pointer-events: none; }
.gs .r-trial { font: 800 48px/1 var(--f-display); letter-spacing: .3px; white-space: nowrap; text-shadow: 0 4px 0 rgba(70,16,10,.35), 0 0 30px rgba(40,10,16,.5); }
.gs .r-where { margin-top: 10px; font: 600 20px/1.2 var(--f-body); color: rgba(255,244,220,.8); }
.gs .r-reward { display: flex; align-items: center; gap: 9px; margin-top: 12px; font: 600 19px/1 var(--f-body); color: rgba(255,244,220,.8); }
.gs .r-reward b { font: 800 24px/1 var(--f-display); color: #ffd25e; }
.gs .coin { display: inline-block; width: 24px; height: 24px; background: url("../assets/ui/coin-owl.webp") 50% 50%/contain no-repeat; filter: drop-shadow(0 2px 1px rgba(60,25,0,.35)); }
.gs .grudge { position: absolute; left: 64px; top: 202px; width: 470px; pointer-events: none; }
.gs .g-label { display: flex; align-items: center; gap: 12px; font: 700 19px/1 var(--f-body); color: rgba(255,244,220,.82); text-shadow: 0 2px 12px rgba(30,6,12,.6); }
.gs .g-face { width: 44px; height: 44px; border-radius: 50%; background: #ffb25a url("../assets/chars/hestia.webp") 50% 8%/200% no-repeat; box-shadow: 0 4px 12px -2px rgba(30,6,12,.55); }
.gs .g-num { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; height: 112px; white-space: nowrap; }
.gs .g-big { display: inline-block; font: 800 112px/1 var(--f-display); color: #fff4dc; font-variant-numeric: tabular-nums; text-shadow: 0 6px 0 rgba(96,22,10,.38), 0 0 44px rgba(255,120,60,.38); transform-origin: 20% 70%; }
.gs .g-big.hit { animation: gs-ghit .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes gs-ghit { 0% { transform: scale(1); } 20% { transform: scale(1.22); color: #fff; } 100% { transform: scale(1); } }
.gs .g-of { font: 800 32px/1 var(--f-display); color: rgba(255,244,220,.58); }
.gs .bar { position: relative; margin-top: 12px; width: 440px; height: 26px; border-radius: 99px; background: rgba(30,8,14,.6); box-shadow: inset 0 3px 8px rgba(0,0,0,.4); overflow: hidden; }
.gs .bar .ghost { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 99px; background: #fff1cf; transition: width .55s ease-out .5s; }
.gs .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 99px; background: linear-gradient(180deg, #ffb257 0%, #ff6a3a 55%, #e0401f 100%); box-shadow: inset 0 3px 0 rgba(255,255,255,.38); transition: width .5s cubic-bezier(.3,1.35,.5,1); }
.gs .g-note { margin-top: 10px; font: 600 18px/1.2 var(--f-body); color: rgba(255,244,220,.82); text-shadow: 0 2px 12px rgba(30,6,12,.6); }
.gs .g-note b { font-weight: 900; color: #fff4dc; }
.gs .readout { position: absolute; left: 64px; top: 462px; width: 520px; pointer-events: none; }
.gs .ro-name { display: flex; align-items: baseline; gap: 14px; height: 56px; white-space: nowrap; text-shadow: 0 4px 0 rgba(70,16,10,.32), 0 0 26px rgba(30,6,12,.55); transform-origin: 10% 70%; }
.gs .ro-name.say { animation: gs-namepop .4s cubic-bezier(.2,1.7,.4,1); }
@keyframes gs-namepop { from { transform: scale(.6); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.gs .hname { font: 800 54px/1 var(--f-display); }
.gs .hname.muted { font: 600 25px/56px var(--f-body); color: rgba(255,244,220,.72); text-shadow: 0 2px 12px rgba(30,6,12,.6); }
.gs .ro-lv { font: 700 20px/1 var(--f-body); color: #ffd25e; text-shadow: none; }
.gs .ro-row { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.gs .slab { position: relative; min-width: 176px; height: 108px; padding: 0 26px; border-radius: 28px; display: flex; align-items: center; justify-content: center; transition: filter .25s; }
.gs .slab.pts { background: linear-gradient(180deg, #52d2ff 0%, #22a3ef 60%, #1688da 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,40,90,.12), 0 8px 0 #0f5fa6, 0 0 50px rgba(39,183,255,.42), 0 22px 30px -14px rgba(0,20,60,.6); }
.gs .slab.fac { background: linear-gradient(180deg, #ff7a66 0%, #f2483a 60%, #de3226 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(90,0,0,.12), 0 8px 0 #9c1c15, 0 0 50px rgba(255,77,61,.42), 0 22px 30px -14px rgba(60,0,0,.6); }
.gs .slab.dim { filter: saturate(.3) brightness(.78); }
.gs .slab b { display: block; font: 800 68px/1 var(--f-display); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.16); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gs .slab i { position: absolute; left: 8px; top: -30px; font: 700 16px/1 var(--f-body); font-style: normal; letter-spacing: .4px; text-shadow: 0 2px 10px rgba(30,6,12,.7); }
.gs .slab.pts i { color: #a8e6ff; } .gs .slab.fac i { color: #ffb9ae; }
.gs .slab.hot { animation: gs-hot .5s ease infinite alternate; }
@keyframes gs-hot { from { filter: brightness(1); } to { filter: brightness(1.15) drop-shadow(0 0 22px rgba(255,150,60,.9)); } }
.gs .ro-x { font: 800 50px/1 var(--f-display); color: rgba(255,244,220,.85); text-shadow: 0 0 20px rgba(30,6,12,.6); }
.gs .bump { animation: bump .32s cubic-bezier(.2,.9,.3,1.4); }

/* Favors standing in the altar's sockets */
.gs .f-head, .gs .o-head { font: 700 18px/1 var(--f-body); color: rgba(255,244,220,.85); text-shadow: 0 2px 12px rgba(30,6,12,.65); white-space: nowrap; pointer-events: none; }
.gs .f-head { position: absolute; left: 600px; top: 26px; }
.gs .f-head span, .gs .o-head span { margin-left: 8px; font-weight: 900; color: rgba(255,244,220,.76); }
.gs .gledge { position: absolute; height: 44px; border-radius: 10px 10px 6px 6px; pointer-events: none;
  background: linear-gradient(180deg, #f4e6cd 0, #f4e6cd 18px, #dcc4a0 18px, #dcc4a0 21px, #ad8c6c 21px, #ad8c6c 35px, #8a6b52 35px);
  box-shadow: 0 12px 0 -5px rgba(40,10,24,.32), 0 24px 26px -12px rgba(20,4,10,.5); }
.gs .gledge.altar { left: 580px; top: 178px; width: 710px; height: 40px; }
.gs .f-row { position: absolute; left: 592px; top: 52px; z-index: 2; display: flex; gap: 14px; }
.gs .fslot { position: relative; width: 126px; height: 150px; flex: none; }
.gs .pad { position: absolute; left: 25px; right: 25px; bottom: 7px; height: 13px; border-radius: 50%; background: #d6bc93; box-shadow: inset 0 5px 0 #a8875f; }
.gs .sord { position: absolute; left: 0; right: 0; bottom: -9px; height: 13px; text-align: center; font: 800 13px/13px var(--f-display); letter-spacing: 1.5px; color: rgba(106,76,48,.82); text-shadow: 0 1px 0 rgba(255,248,232,.75), 0 -1px 0 rgba(84,58,34,.22); pointer-events: none; }
.gs .gfav { position: absolute; left: 5px; bottom: 14px; z-index: 1; width: 116px; height: 116px; padding: 0; border: 0; background: none; cursor: help; transition: transform .22s cubic-bezier(.3,1.8,.5,1); }
.gs .gfav img { width: 100%; height: 100%; object-fit: contain; translate: 0 5%; filter: drop-shadow(0 3px 2px rgba(50,25,10,.5)); transition: filter .2s; }
.gs .gfav:hover, .gs .gfav:focus-visible { transform: translateY(-18px) scale(1.08); z-index: 5; outline: none; }
.gs .gfav:hover img, .gs .gfav:focus-visible img { filter: drop-shadow(0 16px 10px rgba(30,8,14,.45)) drop-shadow(0 0 14px rgba(255,244,214,.9)) drop-shadow(0 0 28px rgba(255,190,90,.7)); }
.gs .gfav.fire { animation: gs-ffire .55s cubic-bezier(.2,1.6,.4,1); }
.gs .gfav.fire img { filter: drop-shadow(0 0 14px rgba(255,214,120,.95)) drop-shadow(0 0 34px rgba(255,96,60,.8)); }
@keyframes gs-ffire { 0% { transform: scale(1); } 30% { transform: scale(1.32) translateY(-12px); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
.gs .gtip { position: absolute; left: -6px; top: calc(100% + 34px); z-index: 80; width: 420px; padding: 20px 24px 22px; border-radius: 26px; background: rgba(36,12,30,.97); color: #fff4dc; text-align: left; font: 600 22px/1.35 var(--f-body); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 50px -18px rgba(0,0,0,.8); opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; pointer-events: none; }
.gs .gtip h4 { margin: 0 0 6px; font: 800 30px/1.1 var(--f-display); }
.gs .gtip .tag { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 9px; background: #e3a45c; color: #2a1406; font: 700 16px/1 var(--f-body); }
.gs .gtip .t-f { color: #ff8a7a; font-weight: 800; }
.gs .gtip .fl { display: block; margin-top: 10px; font-style: italic; color: rgba(255,244,220,.6); font-size: 19px; }
.gs .gfav:hover + .gtip, .gs .gfav:focus-visible + .gtip { opacity: 1; transform: none; }

/* top right: Offerings, obols */
.gs .topr { position: absolute; right: 40px; top: 26px; z-index: 6; display: flex; align-items: flex-start; gap: 26px; }
.gs .o-wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gs .gledge.mini { left: -14px; right: -14px; top: 105px; height: 30px; background: linear-gradient(180deg, #f4e6cd 0, #f4e6cd 12px, #dcc4a0 12px, #dcc4a0 14px, #ad8c6c 14px, #ad8c6c 24px, #8a6b52 24px); }
.gs .o-row { position: relative; z-index: 1; display: flex; gap: 6px; }
.gs .oslot { position: relative; width: 96px; height: 104px; }
.gs .oslot .pad { left: 20px; right: 20px; }
.gs .obols { display: flex; align-items: center; gap: 14px; padding: 30px 6px 0 4px; }
.gs .obols .coin { width: 46px; height: 46px; }
.gs .obols b { min-width: 34px; font: 800 56px/1 var(--f-display); color: #ffe08a; text-shadow: 0 4px 0 rgba(120,60,0,.4), 0 0 26px rgba(255,190,60,.45); }

/* speech */
.gs .sb { position: absolute; z-index: 70; display: block; padding: 18px 26px 20px; border-radius: 30px; background: #fff4dc; color: #2a1838; font: 600 24px/1.3 var(--f-body); box-shadow: 0 24px 44px -16px rgba(30,6,12,.75); }
.gs .sb .who { display: block; margin-bottom: 4px; font: 800 19px/1 var(--f-display); letter-spacing: .03em; color: var(--whoc, #2b63c9); }
.gs .sb .txt { display: block; min-height: 2.6em; }
.gs .sb em { color: #c2401c; font-style: normal; } .gs .sb b { font-weight: 800; }
.gs .sb .tail { position: absolute; width: 42px; height: 42px; fill: #fff4dc; }
.gs .sb.pop-in { animation: bubble-in .38s cubic-bezier(.2,.9,.3,1.4) both; }
.gs #pb { left: 1560px; top: 214px; width: 330px; --whoc: #d0541c; transform-origin: 0% 60%; }
.gs #pb .tail { left: -34px; top: 56px; transform: rotate(90deg); }
.gs #zb { left: 36px; top: 704px; width: 392px; transform-origin: 30% 120%; }
.gs #zb .tail { left: 120px; bottom: -30px; }
.gs .zeus { position: absolute; z-index: 2; left: -74px; top: 792px; width: 400px; height: 400px; padding: 0; border: 0; background: none; cursor: pointer; }
.gs .zeus img { width: 100%; height: 100%; object-fit: contain; display: block; animation: gs-peek 6s ease-in-out infinite; }
@keyframes gs-peek { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* the deck, the actions */
.gs .deckpile { position: absolute; left: 1494px; top: 844px; width: 124px; height: 174px; pointer-events: none; }
.gs .deckpile i { position: absolute; inset: 0; border-radius: 14px; background: #1d1c24 url("../assets/cards/back.webp") 50% 40%/cover no-repeat; box-shadow: 0 3px 0 #120f18, 0 16px 24px -12px rgba(0,0,0,.6); }
.gs .deckpile i::before { content: ""; position: absolute; inset: 6px; border-radius: 9px; box-shadow: 0 0 0 1.5px #e0bb62; }
.gs .deckpile i:nth-child(1) { transform: translate(6px, -6px); } .gs .deckpile i:nth-child(2) { transform: translate(-3px, -3px); }
.gs .deck-n { position: absolute; left: 1494px; top: 1030px; width: 124px; text-align: center; font: 800 24px/1 var(--f-display); color: #fff4dc; text-shadow: 0 2px 10px rgba(30,6,12,.8); pointer-events: none; }
.gs .deck-n span { color: rgba(255,244,220,.72); }
.gs .acts { position: absolute; left: 1652px; top: 810px; width: 240px; display: flex; flex-direction: column; gap: 18px; }
.gs .act { position: relative; z-index: 1; } .gs .act:first-child { z-index: 2; }
.gs .acts .btn { width: 100%; flex-direction: column; justify-content: center; gap: 7px; padding: 0 20px 6px; white-space: nowrap; letter-spacing: -.3px; border-radius: 26px; overflow: visible; }
.gs .acts .btn::after { display: none; }
.gs #playBtn { height: 108px; font-size: 32px; }
.gs #discBtn { height: 88px; font-size: 30px; }
.gs .acts .kbd { font: 800 12px/1 var(--f-body); padding: 3px 8px 4px; border-radius: 9px; background: rgba(40,0,0,.2); color: inherit; }
.gs .acts .btn[disabled] { filter: saturate(.25) brightness(.72); }
.gs .badge { position: absolute; right: -18px; top: -26px; z-index: 2; width: 50px; height: 50px; border-radius: 50%; background: #fff4dc; font: 800 30px/50px var(--f-display); text-align: center; box-shadow: 0 5px 0 rgba(90,30,20,.35), 0 10px 18px -6px rgba(0,0,0,.55); pointer-events: none; }
.gs .badge.pl { color: #d9401f; } .gs .badge.di { color: #0e8a86; }
.gs .badge.pl.last { background: #ff6a3a; color: #fff4dc; animation: gs-last 1.2s ease-in-out infinite; }
@keyframes gs-last { 0%,100% { box-shadow: 0 5px 0 rgba(120,30,10,.45), 0 10px 18px -6px rgba(0,0,0,.55); } 50% { box-shadow: 0 5px 0 rgba(120,30,10,.45), 0 10px 18px -6px rgba(0,0,0,.55), 0 0 26px 8px rgba(255,120,60,.75); } }
.gs .sortbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 700 20px/1 var(--f-body); color: #fff4dc; text-shadow: 0 2px 10px rgba(30,6,12,.8); }
.gs .sortbtn:hover { color: #ffd25e; }
.gs .sortbtn .kbd { font: 800 12px/1 var(--f-body); padding: 3px 8px 4px; border-radius: 7px; background: rgba(255,244,220,.14); }
.gs .hint { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 30; text-align: center; font: 700 16px/1 var(--f-body); color: rgba(255,244,220,.62); text-shadow: 0 2px 10px rgba(30,6,12,.9); pointer-events: none; opacity: 0; transition: opacity .2s; }
.gs .hint.on { opacity: 1; }

/* cards on the table: C+ stock at board size, flat and upright */
.gs .tbl { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.gs .tbl .card { --cw: 168px; --lift: 0px; position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(var(--x), calc(var(--y) + var(--lift))); transition: transform .34s cubic-bezier(.25,1.3,.45,1), filter .25s, opacity .3s; }
.gs .tbl .card:hover { --lift: -14px; }
.gs .tbl .card.sel { --lift: -34px; }
.gs .tbl .card.sel:hover { --lift: -46px; }
.gs .tbl .card.played, .gs .tbl .card.played:hover { --lift: 0px; cursor: default; }
.gs .tbl .card.sel .face { box-shadow: inset 0 .1em 0 #fff, 0 .18em 0 #d6bb86, 0 1.1em 1.7em -.8em rgba(20,8,12,.6), 0 0 1.4em .2em rgba(255,214,120,.5); filter: brightness(.9) saturate(.8); }
.gs .tbl .card.hit .face { animation: gs-chit .4s cubic-bezier(.2,1.8,.4,1); }
@keyframes gs-chit { 0% { transform: scale(1); } 35% { transform: scale(1.17); } 100% { transform: scale(1); } }
.gs .tbl .card.gone { opacity: 0; }
.gs .tbl .card .key { display: none; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font: 800 16px/1 var(--f-body); color: rgba(255,244,220,.55); text-shadow: 0 2px 8px rgba(30,6,12,.9); }
.gs .tbl .card.played .key { display: none; }

/* scoring juice, at board size */
.gs .gpop { position: absolute; z-index: 90; pointer-events: none; transform: translate(-50%, -50%); font: 800 56px/1 var(--f-display); white-space: nowrap; animation: pop-rise .9s cubic-bezier(.2,.8,.3,1) both; }
.gs .gpop.points { color: #effaff; text-shadow: 0 0 24px rgba(39,183,255,.9), 0 5px 0 #0f5fa6; }
.gs .gpop.factor { color: #fff2ee; text-shadow: 0 0 24px rgba(255,77,61,.9), 0 5px 0 #9c1c15; }
.gs .gpop.gold { color: #fff7d8; text-shadow: 0 0 24px rgba(255,199,64,.95), 0 5px 0 #a86f06; }
.gs .gpop.slam { font-size: 150px; animation: slam 1.3s cubic-bezier(.2,.9,.3,1) both; }
.gs .gorb { position: absolute; z-index: 92; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; background: #ff4d3d; box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 0 16px 5px rgba(255,255,255,.45); }
.gs .dmg { position: absolute; z-index: 93; pointer-events: none; transform: translate(-50%, -50%); white-space: nowrap; font: 800 140px/1 var(--f-display); color: #fff7e4; text-shadow: 0 7px 0 rgba(130,32,10,.45), 0 0 44px rgba(255,150,60,.95), 0 0 110px rgba(255,90,40,.75); }
.gs .gflash { position: absolute; inset: 0; z-index: 95; pointer-events: none; background: radial-gradient(60% 60% at 50% 45%, rgba(255,240,200,.8), rgba(255,200,120,0)); animation: flash .5s ease-out both; }

/* end of the Trial */
.gs .end { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 160px 60px; text-align: center; background: radial-gradient(ellipse at 50% 42%, rgba(40,10,16,.45), rgba(30,6,12,.86)); animation: fade-in .4s ease-out both; }
.gs .end.lose { background: radial-gradient(ellipse at 50% 42%, rgba(30,14,34,.5), rgba(14,6,20,.9)); }
.gs .end h3 { margin: 0; font: 800 150px/1 var(--f-display); color: #ffd25e; white-space: nowrap; text-shadow: 0 8px 0 rgba(120,50,0,.45), 0 0 60px rgba(255,170,50,.8); animation: gs-endin .7s cubic-bezier(.2,1.7,.4,1) both; }
.gs .end.lose h3 { font-size: 124px; color: #fff4dc; text-shadow: 0 8px 0 rgba(60,10,20,.5), 0 0 50px rgba(255,90,60,.5); }
@keyframes gs-endin { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.gs .end p { margin: 0; max-width: 1300px; font: 600 30px/1.35 var(--f-body); color: rgba(255,244,220,.9); text-shadow: 0 2px 12px rgba(20,4,10,.7); }
.gs .end p b { font: 800 34px/1 var(--f-display); color: #ffd25e; }
.gs .end p.sub { font-size: 24px; color: rgba(255,244,220,.75); }
.gs .end .row { display: flex; gap: 30px; margin-top: 22px; }
.gs .end .btn { min-height: 104px; padding: 0 44px 4px; font-size: 42px; gap: 18px; border-radius: 28px; }
.gs .end .btn .price { font-size: 30px; padding: 8px 14px; border-radius: 14px; }

/* phones: the same parts stacked on a 1080 × 1900 board */
.gs-wrap.tall { aspect-ratio: 1080 / 1900; width: calc(100% - 2 * var(--gutter)); border-radius: 22px; }
.tall .gs { width: 1080px; height: 1900px; }
.tall .gs .sc .bgimg { object-position: 62% 50%; }
.tall .gs .floor { top: 1100px; }
.tall .gs .rail { left: 48px; top: 40px; }
.tall .gs .r-trial { font-size: 54px; }
.tall .gs .r-where, .tall .gs .r-reward { font-size: 26px; }
.tall .gs .topr { right: 36px; top: 20px; }
.tall .gs .o-wrap { display: none; }
.tall .gs .obols { padding-top: 10px; }
.tall .gs .boss { left: 540px; top: 270px; width: 560px; height: 560px; }
.tall .gs #pb { left: 560px; top: 140px; width: 480px; font-size: 30px; }
.tall .gs #pb .tail { left: 150px; top: auto; bottom: -30px; transform: none; }
.tall .gs .grudge { left: 48px; top: 230px; }
.tall .gs .g-label { font-size: 26px; }
.tall .gs .g-note { font-size: 24px; }
.tall .gs .readout { left: 48px; top: 500px; }
.tall .gs .hname.muted { font-size: 30px; }
.tall .gs .f-head { left: 48px; top: 760px; font-size: 24px; }
.tall .gs .f-row { left: 60px; top: 790px; }
.tall .gs .gledge.altar { left: 36px; top: 916px; }
.tall .gs .zeus { left: -60px; top: 980px; width: 300px; height: 300px; }
.tall .gs #zb { left: 230px; top: 1000px; width: 800px; font-size: 30px; }
.tall .gs #zb .tail { left: -34px; bottom: auto; top: 50px; transform: rotate(90deg); }
.tall .gs .deckpile { display: none; }
.tall .gs .deck-n { left: 760px; top: 112px; width: 280px; text-align: right; font-size: 26px; }
.tall .gs .acts { left: 48px; top: 1748px; width: 984px; flex-direction: row; align-items: center; gap: 30px; }
.tall .gs .acts .act { flex: 1.2; } .tall .gs .acts .act + .act { flex: 1; }
.tall .gs #playBtn, .tall .gs #discBtn { height: 120px; font-size: 40px; }
.tall .gs .sortbtn { width: auto; flex: none; padding: 0 6px; font-size: 28px; }
.tall .gs .acts .kbd, .tall .gs .tbl .card .key { display: none; }
.tall .gs .gtip { width: 560px; font-size: 28px; }
.tall .gs .end { padding: 0 60px 120px; }
.tall .gs .end h3 { font-size: 110px; white-space: normal; }
.tall .gs .end.lose h3 { font-size: 96px; }
.tall .gs .end p { font-size: 34px; } .tall .gs .end p.sub { font-size: 28px; }
.tall .gs .end .row { flex-direction: column; gap: 24px; }
.tall .gs .hint { font-size: 24px; bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .gs *, .gs *::before, .gs *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; } }

/* ---------- card stock (also used by the crossing's step I) ---------- */
.card { --sc: var(--suit-S); --clay: url("../assets/cards/suit-S.webp"); --tint: linear-gradient(180deg, #dfe5fb, #aebdee);
  position: relative; flex: none; width: var(--cw); aspect-ratio: 150/210; font-size: calc(var(--cw) / 10.5); border: 0; padding: 0; background: none; cursor: pointer; color: var(--sc); }
.card[data-suit="H"] { --sc: var(--suit-H); --clay: url("../assets/cards/suit-H.webp"); --tint: linear-gradient(180deg, #ffe3d8, #f6b8a6); }
.card[data-suit="D"] { --sc: var(--suit-D); --clay: url("../assets/cards/suit-D.webp"); --tint: linear-gradient(180deg, #ffeacc, #f7c98e); }
.card[data-suit="C"] { --sc: var(--suit-C); --clay: url("../assets/cards/suit-C.webp"); --tint: linear-gradient(180deg, #dcf2e0, #a8d9b5); }
.card .face { position: absolute; inset: 0; border-radius: .9em; overflow: hidden; isolation: isolate;
  background: radial-gradient(130% 90% at 28% 8%, #fffdf7 0%, #fbf1da 55%, #f1deb8 100%);
  box-shadow: inset 0 .1em 0 #fff, inset 0 -.18em 0 rgba(160,110,50,.16), 0 .18em 0 #d6bb86, 0 1.1em 1.7em -.8em rgba(20,8,12,.6); transition: box-shadow .25s, filter .25s; }
.card .face::after { content: ""; position: absolute; inset: .42em; z-index: 1; border-radius: .55em; box-shadow: 0 0 0 max(1px, .07em) var(--hair); pointer-events: none; }
.card .idx { position: absolute; left: .62em; top: .85em; z-index: 3; display: flex; flex-direction: column; align-items: center; min-width: 2.2em; }
.card .idx b { font: 600 2.7em/.9 var(--f-rank); letter-spacing: -.05em; color: var(--sc); }
.card .idx i { width: 1.5em; height: 1.5em; margin-top: .3em; background: var(--sc); -webkit-mask: var(--clay) 50% 50%/contain no-repeat; mask: var(--clay) 50% 50%/contain no-repeat; }
.card .glyph { position: absolute; left: .7em; bottom: 1.65em; z-index: 2; width: 4.8em; height: 4.8em; background: var(--clay) 50% 50%/contain no-repeat; filter: drop-shadow(0 .18em .16em rgba(60,30,20,.28)); }
.card .glyph.ace { width: 5.5em; height: 5.5em; left: .65em; bottom: 1.6em; }
.card[data-suit="H"] .glyph { transform: scale(.9); } .card[data-suit="D"] .glyph { transform: scale(1.06); }
.card .court { position: absolute; left: 1.1em; right: 1.1em; top: 5.45em; bottom: 1.7em; z-index: 2; overflow: hidden; border-radius: 4.15em 4.15em .8em .8em; background: var(--tint); box-shadow: inset 0 .3em .7em rgba(60,20,10,.18); }
.card .court i { position: absolute; left: -8%; right: -8%; top: .75em; bottom: -1.7em; background: 50% 0/contain no-repeat; filter: drop-shadow(0 .2em .25em rgba(60,20,10,.25)); }
.card.scoring .face { box-shadow: inset 0 .1em 0 #fff, 0 .18em 0 #d6bb86, 0 1.1em 1.7em -.8em rgba(20,8,12,.6), 0 0 1.4em .25em rgba(82,210,255,.8); }
.card.dim { filter: brightness(.6) saturate(.6); }
.card.no .face { animation: wobble .3s; }
@keyframes wobble { 0%,100% { translate: 0; } 25% { translate: -9px; } 75% { translate: 9px; } }

/* ---------- shared bits (crossing step I and II use them too) ---------- */
.num { position: relative; flex: 1; display: grid; place-items: center; height: 76px; border-radius: 18px; color: #fff; font: 800 2.3rem/1 var(--f-display); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.num.pts { background: linear-gradient(180deg, #52d2ff 0%, #22a3ef 60%, #1688da 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,40,90,.12), 0 7px 0 #0f5fa6, 0 0 40px rgba(39,183,255,.4), 0 22px 30px -14px rgba(0,20,60,.6); }
.num.fac { background: linear-gradient(180deg, #ff7a66 0%, #f2483a 60%, #de3226 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(90,0,0,.12), 0 7px 0 #9c1c15, 0 0 40px rgba(255,77,61,.4), 0 22px 30px -14px rgba(60,0,0,.6); }
.bump { animation: bump .32s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
.tip { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 10px); width: 280px; padding: 14px 16px 15px; border-radius: 18px; background: rgba(30,10,30,.97); color: var(--cream); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 40px -14px rgba(0,0,0,.7); font-size: .95rem; line-height: 1.4; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s, transform .18s; text-align: left; }
.tip h4 { margin: 0 0 4px; font: 800 1.12rem/1.1 var(--f-display); }
.tip .tag { display: inline-block; margin-bottom: 8px; padding: 4px 7px; border-radius: 6px; background: #e3a45c; color: #2a1406; font: 700 .72rem/1 var(--f-body); }
.tip .fx { font-weight: 600; }
.tip .t-f { color: #ff8a7a; font-weight: 800; } .tip .t-p { color: #7fd6ff; font-weight: 800; } .tip .t-h { color: #ffe7b0; font-weight: 800; }
.tip .fl { margin-top: 8px; font-style: italic; color: rgba(255,244,220,.6); font-size: .86rem; }
.has-tip:hover > .tip, .has-tip:focus-visible > .tip, .has-tip:focus-within > .tip { opacity: 1; transform: none; }
@keyframes pop-rise { 0% { transform: translate(-50%, -30%) scale(.2); opacity: 0; } 18% { transform: translate(-50%, -60%) scale(1.25); opacity: 1; } 32% { transform: translate(-50%, -62%) scale(1); } 75% { transform: translate(-50%, -110%); opacity: 1; } 100% { transform: translate(-50%, -150%) scale(.8); opacity: 0; } }
@keyframes slam { 0% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } 16% { transform: translate(-50%, -50%) scale(.92); opacity: 1; } 26% { transform: translate(-50%, -50%) scale(1.05); } 80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -64%) scale(.94); opacity: 0; } }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.demo-note { margin-top: 18px; font-size: .86rem; color: var(--faint); text-align: center; }

/* ---------- the crossing, step by step: three painted windows joined by the route ---------- */
.steps { --sg: clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sg); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 30px; background: linear-gradient(180deg, #3a1a48, #24123a 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--soft); }
.scene { position: relative; height: 290px; }
.scene-bg { position: absolute; inset: 0; overflow: hidden; border-radius: 30px 30px 0 0; }
.scene-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.scene-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,10,34,.15) 0%, rgba(21,10,34,0) 40%, rgba(36,18,58,.55) 82%, #341848 100%); }
.step:hover .scene-bg img { transform: scale(1.05); }
.step-txt { display: grid; gap: 10px; align-content: start; padding: 24px 26px 28px; }
.step-txt .num-r { font: 800 .8rem/1 var(--f-display); color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.step-txt p { color: var(--muted); }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.step-tags li { padding: 7px 11px 8px; border-radius: 999px; background: rgba(255,244,220,.08); box-shadow: inset 0 0 0 1px rgba(255,244,220,.1); color: var(--cream); font: 700 .8rem/1 var(--f-body); }
/* I: a played pair over Hestia's Hearth */
.scene.trial .scene-bg img { object-position: 60% 60%; filter: brightness(.82); }
.mini-grudge { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(26,10,34,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 800 .82rem/1 var(--f-display); color: var(--cream); }
.mini-grudge .mg-face { width: 26px; height: 26px; border-radius: 50%; background: #ffb25a url("../assets/chars/hestia.webp") 50% 8%/200% no-repeat; }
.mini-grudge .mg-bar { position: relative; width: 74px; height: 9px; border-radius: 9px; background: rgba(0,0,0,.4); overflow: hidden; }
.mini-grudge .mg-bar i { position: absolute; inset: 0 20% 0 0; border-radius: 9px; background: linear-gradient(180deg, #ffb257, #e0401f); }
.mini-grudge small { font: 700 .74rem/1 var(--f-body); color: var(--faint); }
.mini-hand { position: absolute; left: 0; right: 0; top: 76px; display: flex; justify-content: center; gap: 10px; --cw: 88px; }
.mini-hand .card { cursor: default; }
.mini-hand .card:nth-child(-n+2) { transform: translateY(-12%); }
.mini-hand .card:nth-child(-n+2) .face { box-shadow: inset 0 .1em 0 #fff, 0 .18em 0 #d6bb86, 0 1.1em 1.7em -.8em rgba(20,8,12,.6), 0 0 1.4em .25em rgba(82,210,255,.8); }
.mini-hand .card:nth-child(3) { filter: brightness(.6) saturate(.6); }
.mini-score { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; }
.mini-score .num { width: 66px; height: 44px; flex: none; font-size: 1.45rem; border-radius: 12px; }
.mini-score .num.tot { width: 76px; background: linear-gradient(180deg, #ffe08a, #f2ad1c); color: #5a3400; text-shadow: 0 2px 0 rgba(255,255,255,.4); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 6px 0 #b37608, 0 0 34px rgba(255,199,64,.5), 0 18px 26px -12px rgba(60,30,0,.6); }
.mini-score .x { font: 800 1.15rem/1 var(--f-display); color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
/* II: Favors on a marble shelf at Hermes' harbour */
.scene.market .scene-bg img { object-position: 58% 50%; }
.altar-row { position: absolute; left: 6%; right: 6%; bottom: 46px; }
.altar-row .ledge-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(20,4,10,.5)); }
.altar-row .slots { position: absolute; z-index: 1; left: 2%; right: 2%; bottom: 62%; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.fav { position: relative; display: grid; justify-items: center; border: 0; padding: 0; background: none; cursor: help; }
.fav img { width: min(84px, 100%); height: auto; filter: drop-shadow(0 6px 6px rgba(40,10,0,.35)); transition: transform .2s cubic-bezier(.2,.9,.3,1.4); }
.fav:hover img, .fav:focus-visible img { transform: translateY(-6px) scale(1.08); }
.fav .n { position: absolute; bottom: -19px; font: 800 .66rem/1 var(--f-display); letter-spacing: .08em; color: rgba(106,76,48,.85); text-shadow: 0 1px 0 rgba(255,248,232,.75), 0 -1px 0 rgba(84,58,34,.22); }
.fav .tip { left: 50%; width: 250px; margin-left: -125px; }
.fav:first-child .tip { left: 0; margin-left: 0; } .fav:last-child .tip { left: auto; right: 0; margin-left: 0; }
/* III: the sea chart, the ferry, the eight stops */
.scene.voyage .scene-bg img { object-position: 58% 40%; transform: scale(1.18); animation: chart-drift 28s ease-in-out infinite alternate; }
.step:hover .scene.voyage .scene-bg img { transform: scale(1.18); }
@keyframes chart-drift { from { translate: -3% -2%; } to { translate: 3% 2%; } }
.ferry { position: absolute; z-index: 2; left: 8%; bottom: 66px; width: 128px; height: auto; filter: drop-shadow(0 8px 10px rgba(0,10,30,.55)); animation: bob 4.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1.2deg); } }
.route { position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 2; display: flex; justify-content: space-between; }
.route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed rgba(255,244,220,.45); }
.route span { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(21,10,34,.82); color: var(--cream); font: 800 .6rem/1 var(--f-display); box-shadow: 0 0 0 1.5px rgba(255,244,220,.35); }
.route span.on { background: var(--gold); color: #3a2006; }
/* what you collect on the way */
.kinds { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kinds li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(255,244,220,.05); box-shadow: inset 0 0 0 1px rgba(255,244,220,.07); transition: translate .25s cubic-bezier(.2,.9,.3,1.3), background .25s; }
.kinds li:hover { translate: 0 -3px; background: rgba(255,244,220,.09); }
.kinds img { width: 64px; height: 64px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.kinds b { display: block; font: 800 1rem/1.15 var(--f-display); color: var(--cream); }
.kinds span { display: block; margin-top: 3px; font-size: .88rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1100px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 560px) { .kinds { grid-template-columns: minmax(0, 1fr); } .scene { height: 260px; } .mini-hand { --cw: 78px; } }

/* ---------- hosts ---------- */
.hosts { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.host { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: 400px; border-radius: 26px; overflow: hidden; cursor: pointer; text-align: left; border: 0; padding: 0; width: 100%; color: inherit; font: inherit; background: var(--plum); box-shadow: var(--soft); transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .25s; }
.host { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.host:hover, .host:focus-visible { --ty: -6px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8), 0 0 0 2px color-mix(in srgb, var(--hc, #ffd25e) 70%, #ffd25e); }
.host .bg { position: absolute; inset: 0; z-index: -2; background: 50% 50%/cover no-repeat; filter: brightness(.72) saturate(.95); transition: transform .6s ease, filter .3s; }
.host:hover .bg { transform: scale(1.06); filter: brightness(.82); }
.host::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,10,34,.1) 0%, rgba(21,10,34,0) 40%, rgba(21,10,34,.92) 78%); }
.host .bust { align-self: end; justify-self: center; width: 84%; height: auto; margin-bottom: -34px; /* the bust runs on behind the caption and fades out: no hard waist cut */ -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 90%); mask-image: linear-gradient(180deg, #000 55%, transparent 90%); filter: drop-shadow(0 16px 20px rgba(0,0,0,.45)); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); transform-origin: 50% 100%; }
.host:hover .bust { transform: translateY(-6px) scale(1.03); }
.host .cap { position: relative; z-index: 1; padding: 0 18px 18px; display: grid; gap: 4px; text-shadow: 0 2px 10px rgba(21,10,34,.9); }
.host .rn { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 19px; background: rgba(21,10,34,.7); color: var(--gold); font: 800 .9rem/1 var(--f-display); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.host .nm { font: 800 1.35rem/1.05 var(--f-display); color: var(--cream); }
.host .pl { font: 700 .82rem/1.2 var(--f-body); color: var(--gold); }
.host .q { margin-top: 6px; font-size: .95rem; line-height: 1.38; color: var(--text); min-height: 2.76em; }
.host .q em { color: #ffb08a; font-style: normal; } .host .q b { color: var(--cream); }
.host .more { margin-top: 6px; font: 700 .76rem/1 var(--f-body); color: var(--faint); }
.also { margin-top: 18px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.also-c { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: end; padding: 16px 20px 0 8px; border-radius: 24px; background: linear-gradient(180deg, rgba(74,32,80,.5), rgba(34,18,58,.6)); box-shadow: var(--soft); cursor: pointer; border: 0; text-align: left; color: inherit; font: inherit; transition: transform .25s cubic-bezier(.2,.9,.3,1.3); }
.also-c:hover { transform: translateY(-4px); }
.also-c img { width: 120px; height: auto; align-self: end; }
.also-c div { padding-bottom: 18px; display: grid; gap: 4px; }
@media (max-width: 1080px) { .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .host { min-height: 380px; } }
@media (max-width: 640px) { .host { min-height: 330px; } .host .q { font-size: .88rem; } .host .nm { font-size: 1.15rem; } .also { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .hosts { grid-template-columns: minmax(0, 1fr); } .host { min-height: 360px; } }

/* ---------- screens: the game's own screens (frozen pages in public/screens/) on a monitor and a laptop drawn in CSS.
   Each frozen page fits its 1920 × 1080 stage to its frame, so the type stays sharp at any size. ---------- */
.showcase { display: grid; gap: 22px; }
.devices { position: relative; isolation: isolate; width: min(1120px, 100%); margin: 0 auto; }
.devices::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 0; bottom: -22px; height: 70px; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.devices::before { content: ""; position: absolute; z-index: -1; left: 10%; top: 4%; width: 64%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(255,150,80,.18), rgba(255,150,80,0)); filter: blur(30px); }
.monitor { position: relative; width: 76%; margin: 0; }
.mon-frame { position: relative; padding: 1.1%; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #1d1a25, #0e0c13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.16), 0 40px 70px -30px rgba(0,0,0,.9); }
.mon-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #1a1030; }
.gframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .45s ease-out; color-scheme: normal; }
.gframe.on { opacity: 1; }
.mon-hit { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mon-screen::after, .lap-screen::after { z-index: 1; content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 36%); }
.mon-hit:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 5px; }
.mon-chin { display: grid; place-items: center; height: clamp(16px, 2.6vw, 32px); border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #e6e3ec, #b8b3c2); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.12); }
.mon-chin i { width: 7px; height: 7px; border-radius: 50%; background: #8d8799; box-shadow: inset 0 1px 1px rgba(0,0,0,.35); }
.mon-neck { width: 14%; height: clamp(36px, 6vw, 80px); margin: 0 auto; background: linear-gradient(90deg, #99949f, #dedbe4 45%, #aea9b8); clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%); }
.mon-foot { width: 30%; height: clamp(7px, 1.1vw, 13px); margin: 0 auto; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #e4e1ea, #a6a1b1); box-shadow: 0 12px 18px -6px rgba(0,0,0,.7); }
.laptop { position: absolute; z-index: 2; right: 2.5%; bottom: 0; width: 35%; margin: 0; filter: drop-shadow(0 30px 28px rgba(0,0,0,.6)); }
.lap-lid { padding: 2.4% 2.4% 3%; border-radius: 14px 14px 3px 3px; background: linear-gradient(180deg, #1d1a25, #0e0c13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.18); }
.lap-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.lap-base { position: relative; width: 112%; margin-left: -6%; height: clamp(8px, 1.2vw, 15px); border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #edeaf2, #a8a3b3); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.lap-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 45%; border-radius: 0 0 6px 6px; background: rgba(0,0,0,.16); }
.mon-cap { min-height: 1.5em; text-align: center; font: 600 1.05rem/1.45 var(--f-body); color: var(--cream); text-wrap: balance; }
.mon-cap b { margin-right: .6em; color: var(--gold); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 18px 0 8px; border: 0; border-radius: 99px; background: rgba(255,244,220,.06); color: var(--muted); font: 700 .95rem/1 var(--f-body); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, translate .2s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s; }
.chip img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); transition: transform .2s cubic-bezier(.2,.9,.3,1.3); }
/* the art files carry different transparent padding; trim it by eye so every icon reads at the same size */
.chip img[src*="/items/"] { margin: -2px -3px; width: 46px; height: 46px; }
.chip img[src*="/ui/boat"] { width: 56px; height: 40px; margin-inline: -4px; }
.chip img[src*="/ui/coin-owl"] { width: 38px; height: 38px; margin: 1px; }
.chip img[src*="/cards/suit-"] { width: 38px; height: 38px; margin: 1px; }
.chip:hover { translate: 0 -2px; background: rgba(255,244,220,.11); color: var(--cream); }
.chip:hover img { transform: scale(1.08); }
.chip[aria-pressed="true"] { background: rgba(255,210,94,.13); color: var(--gold); box-shadow: inset 0 0 0 2px rgba(255,210,94,.7); }
@media (max-width: 900px) {
  .monitor { width: 100%; }
  .laptop { display: none; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .chip { flex: none; scroll-snap-align: start; }
}
dialog.lightbox { width: min(1600px, 96vw, (94vh - 66px) * 16 / 9); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 22px; background: var(--night); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(10,4,16,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox[open] { animation: lb-in .32s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lb-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-screen { position: relative; aspect-ratio: 16 / 9; background: #1a1030; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.lb-bar p { flex: 1; min-width: 0; font-weight: 700; }
.lb-bar .icon-btn { width: 42px; height: 42px; }

/* ---------- buy: Hermes' stall at the harbour; the offer is a cream ware card, as in the game's Market ---------- */
.buy { overflow: hidden; }
.stall { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); border-radius: 38px; overflow: hidden; background: #3a1840; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 50px 80px -34px rgba(0,0,0,.85); }
.stall-bg { position: absolute; inset: 0; z-index: -1; }
.stall-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 55%; }
.stall-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,12,40,.05) 0%, rgba(30,12,40,.1) 45%, rgba(30,12,40,.55) 70%, rgba(30,12,40,.7) 100%), linear-gradient(180deg, rgba(21,10,34,.25), rgba(21,10,34,0) 30%, rgba(21,10,34,0) 70%, rgba(21,10,34,.5)); }
.stall::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 30%), rgba(255,200,120,.12), rgba(255,200,120,0) 60%); opacity: 0; transition: opacity .4s; }
.stall:hover::after { opacity: 1; }
/* the scene sizes itself from its own width, so the counter, Hermes and the coin keep their places at any size */
.stall-scene { position: relative; min-height: 600px; container-type: inline-size; }
.counter { position: absolute; z-index: 2; left: 0; bottom: -1px; width: 100cqw; height: auto; filter: drop-shadow(0 -6px 18px rgba(20,4,10,.35)); }
.stall .hermes { position: absolute; z-index: 1; left: 4cqw; bottom: 17cqw; width: 50cqw; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); transform-origin: 50% 100%; animation: hermes-idle 5.5s ease-in-out infinite; }
@keyframes hermes-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(-.6deg); } }
.stall .big-coin { position: absolute; z-index: 3; left: 39.5cqw; bottom: 19.5cqw; width: 21cqw; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: url("../assets/ui/coin-owl.webp") 50% 50%/contain no-repeat; filter: drop-shadow(0 10px 8px rgba(40,10,0,.55)); transition: transform .25s cubic-bezier(.2,.9,.3,1.4); transform-origin: 50% 100%; }
@keyframes coin-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.stall .big-coin:hover { transform: scale(1.05); }
.stall .big-coin:active { transform: scale(.95); }
.big-coin::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 60%) -200% 0/250% 100% no-repeat; -webkit-mask: url("../assets/ui/coin-owl.webp") 50% 50%/contain no-repeat; mask: url("../assets/ui/coin-owl.webp") 50% 50%/contain no-repeat; animation: coin-shine 5s ease-in-out 1s infinite; }
@keyframes coin-shine { 0%, 60% { background-position: 200% 0; } 85%, 100% { background-position: -100% 0; } }
.hermes-bubble { position: absolute; z-index: 4; left: 24cqw; bottom: calc(17cqw + 50cqw * .98); width: min(270px, 46cqw); --whoc: #7a3fb0; }
.hermes-bubble .bubble { font-size: .95rem; --tail-x: 8%; }
/* the ware card */
.ware { position: relative; z-index: 3; align-self: center; display: grid; gap: 20px; justify-items: start; margin: 40px 40px 40px 0; padding: 34px 36px 32px; border-radius: 32px; color: var(--ink);
  background: radial-gradient(120% 90% at 20% 0%, #fffaf0 0%, #fbf0d8 60%, #f3e2bf 100%); box-shadow: inset 0 2px 0 #fff, inset 0 -6px 0 rgba(160,110,50,.14), 0 10px 0 #c9a66a, 0 40px 60px -24px rgba(10,2,14,.75); }
.ware::before { content: ""; position: absolute; inset: 10px; border-radius: 24px; box-shadow: 0 0 0 1.5px rgba(212,173,85,.55); pointer-events: none; }
.ware .kicker { color: #c2401c; }
.ware h2 { color: var(--ink); font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.price-big { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-big .coin-i { width: 64px; height: 64px; filter: drop-shadow(0 6px 6px rgba(80,40,0,.35)); }
.price-big b { font: 800 clamp(3.2rem, 2.4rem + 3vw, 4.6rem)/.9 var(--f-display); color: #e2581e; text-shadow: 0 5px 0 #a8380f; letter-spacing: -.02em; }
.price-big span:last-child { color: #6a4c5a; font-weight: 700; line-height: 1.25; }
.ware .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ware .ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: #4a3550; font-weight: 600; }
.ware .ticks svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #17a29d; color: #fff; margin-top: 1px; }
.ware .ticks b { color: var(--ink); }
.ware .fine { color: #6a4c5a; }
.ware .fine .textlink { color: var(--ink); text-decoration-color: rgba(194,64,28,.5); }
@media (max-width: 1000px) {
  .stall { grid-template-columns: minmax(0, 1fr); }
  .stall-scene { min-height: 0; height: min(96vw, 560px); }
  .stall-bg::after { background: linear-gradient(180deg, rgba(21,10,34,.2), rgba(21,10,34,0) 30%, rgba(30,12,40,.4) 52%, rgba(30,12,40,.82) 75%); }
  .ware { margin: 0 16px 16px; padding: 28px 24px 26px; }
  .hermes-bubble { left: 28cqw; width: min(260px, 62cqw); }
  .hermes-bubble .bubble { font-size: .88rem; padding: 11px 16px 13px; }
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 20px; background: rgba(255,244,220,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: background .2s; }
.faq details[open] { background: rgba(255,244,220,.1); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font: 800 1.12rem/1.3 var(--f-display); color: var(--cream); border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); border-radius: 2px; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); max-width: 44em; display: grid; gap: 10px; }
.faq .a b { color: var(--cream); }

/* ---------- finale ---------- */
.finale { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(520px, 70vw, 820px); padding-block: 90px; text-align: center; }
.finale-art { position: absolute; inset: 0; z-index: -2; }
.finale-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(21,10,34,.35) 22%, rgba(21,10,34,.2) 50%, rgba(21,10,34,.75) 100%); }
.finale .wrap { display: grid; gap: 22px; justify-items: center; align-self: start; padding-top: clamp(20px, 5vw, 70px); }
.finale h2 { max-width: 15em; text-shadow: 0 4px 30px rgba(10,2,14,.75); }

/* ---------- footer: the ferry sails on along a band of Greek key ---------- */
.foot { position: relative; padding: 0 0 36px; background: linear-gradient(180deg, #120821 0%, #0d0618 100%); color: var(--faint); font-size: .95rem; }
.foot-sea { position: relative; height: 120px; overflow: hidden; background: linear-gradient(180deg, var(--night) 0%, #1a0f30 52%, #16243f 52.5%, #10182c 100%); }
.foot-sea::before { content: ""; position: absolute; left: 0; right: 0; top: 52%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(255,244,220,.06) 0 2px, transparent 2px 9px); }
.foot-sea::after { content: ""; position: absolute; left: 0; right: 0; top: calc(52% - 1px); height: 2px; background: linear-gradient(90deg, rgba(255,190,110,0), rgba(255,190,110,.55) 30%, rgba(255,190,110,.55) 70%, rgba(255,190,110,0)); }
.foot-boat { position: absolute; z-index: 1; left: 0; top: 14px; width: 210px; animation: sail 70s linear infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
@keyframes sail { from { transform: translateX(-240px); } to { transform: translateX(calc(100vw + 40px)); } }
.foot-boat-in { display: block; width: 100%; height: auto; animation: bob 4.2s ease-in-out infinite; }
.meander { height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M0 15.5h20.5V2.5H3.5v9.5h13V6.5H8' fill='none' stroke='%23d4ad55' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") 0 50%/24px 18px repeat-x; opacity: .5; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; padding-top: 52px; padding-bottom: 44px; }
.foot-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.foot-brand .foot-logo img { width: 190px; height: auto; }
.foot-brand p { max-width: 26em; color: var(--muted); line-height: 1.5; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.foot-h { margin-bottom: 14px; font: 800 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a:not(.studio) { color: var(--text); text-decoration: none; font-weight: 700; transition: color .2s; }
.foot-col a:not(.studio):hover { color: var(--gold); }
.foot-col .studio { margin-bottom: 12px; }
.foot-col small { display: block; font-size: .88rem; line-height: 1.45; color: var(--faint); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 22px; border-top: 1px solid rgba(255,244,220,.08); font-size: .85rem; }
.foot-base span { color: var(--faint); }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: rgba(255,244,220,.07); color: var(--cream); font-weight: 700; text-decoration: none; transition: background .2s, translate .2s; }
.to-top:hover { background: rgba(255,244,220,.14); translate: 0 -2px; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .foot-sea { height: 96px; } .foot-boat { width: 160px; } }

/* ---------- sticky buy bar (phones) ---------- */
.buybar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; gap: 12px; background: rgba(21,10,34,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -12px 30px -16px rgba(0,0,0,.8); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.9,.3,1.1); }
.buybar.show { transform: none; }
.buybar img { width: 92px; height: auto; }
.buybar p { flex: 1; min-width: 0; font-size: .82rem; color: var(--muted); line-height: 1.25; }
.buybar .btn { margin-bottom: 5px; }
@media (max-width: 760px) { .buybar { display: flex; } .foot { padding-bottom: 120px; } }

/* ---------- reveal on scroll: only for things below the first screen, from a visible resting state ---------- */
.rv.pre { opacity: 0; transform: translateY(26px); }
.rv.pre.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }

/* ---------- juice: kept calm (the game's owner found springy motion too shaky); transform and opacity only ---------- */
/* scroll progress: a gold thread under the nav */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--ember-hi), var(--gold)); box-shadow: 0 0 12px rgba(255,190,90,.6); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav.solid .progress { opacity: 1; }
/* the section you are in */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); }
.nav-links a[aria-current="true"] { color: var(--cream); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
/* hero copy settles in after the wordmark */
.hero .lede, .hero .cta-row, .hero .chip, .hero .desk-note { animation: rise-in .8s cubic-bezier(.2,.8,.2,1) both; }
.hero .lede { animation-delay: .22s; } .hero .cta-row { animation-delay: .36s; }
.hero .chip { animation-delay: calc(.5s + var(--i, 0) * .07s); }
.hero .chip:nth-child(2) { --i: 1; } .hero .chip:nth-child(3) { --i: 2; } .hero .chip:nth-child(4) { --i: 3; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cue { position: absolute; left: 50%; bottom: 30px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; color: var(--cream); background: rgba(255,244,220,.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rise-in .8s 1s both, cue 2.8s ease-in-out 1.8s infinite; transition: background .2s; }
.cue:hover { background: rgba(255,244,220,.2); }
.cue svg { width: 22px; height: 22px; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 760px) { .cue { display: none; } }
/* lamps light one after another */
.lamp { transform: scale(1); transition: transform .7s cubic-bezier(.2,1.5,.4,1) calc(var(--li, 0) * 110ms); }
.lamps.unlit .lamp { transform: scale(0); transition: none; }
/* section heads: a gold rule draws in, the heading rises word by word */
.sec-head .kicker { display: inline-flex; align-items: center; gap: 10px; }
.sec-head .kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; transform-origin: 0 50%; }
.rv.pre .kicker::before { transform: scaleX(0); }
.rv.pre.in .kicker::before { transform: none; transition: transform .7s cubic-bezier(.2,.8,.2,1) .15s; }
.wsplit .w { display: inline-block; }
.rv.pre .wsplit .w, .rv.pre.wsplit .w { opacity: 0; transform: translateY(.42em); }
.rv.pre.in .wsplit .w, .rv.pre.in.wsplit .w { opacity: 1; transform: none; transition: opacity .5s ease, transform .65s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0s) + .06s + var(--wi, 0) * 50ms); }
/* the crossing: cards are dealt, Favors land on the altar, the route lights up */
.mini-hand .card:nth-child(2) { --i: 1; } .mini-hand .card:nth-child(3) { --i: 2; }
.rv.pre .mini-hand .card { opacity: 0; translate: 0 46px; rotate: calc(-10deg + var(--i, 0) * 10deg); }
.rv.pre.in .mini-hand .card { opacity: 1; translate: 0 0; rotate: 0deg; transition: opacity .35s, translate .6s cubic-bezier(.2,1.25,.4,1), rotate .6s cubic-bezier(.2,1.25,.4,1); transition-delay: calc(.3s + var(--i, 0) * .1s); }
.rv.pre .mini-score .num { opacity: 0; scale: .5; }
.rv.pre.in .mini-score .num { opacity: 1; scale: 1; transition: opacity .3s .7s, scale .5s cubic-bezier(.2,1.5,.4,1) .7s; }
.rv.pre.in .mini-score .num.fac { transition-delay: .82s; }
.rv.pre .altar-row .fav { opacity: 0; translate: 0 -34px; }
.rv.pre.in .altar-row .fav { opacity: 1; translate: 0 0; transition: opacity .3s, translate .55s cubic-bezier(.3,1.45,.5,1); transition-delay: calc(.35s + var(--i, 0) * .08s); }
.rv.pre .route span { scale: 0; }
.rv.pre.in .route span { scale: 1; transition: scale .45s cubic-bezier(.2,1.6,.4,1) calc(.3s + var(--i, 0) * 70ms); }
.route span.on { animation: dot-glow 2.6s ease-in-out infinite; }
@keyframes dot-glow { 0%, 100% { box-shadow: 0 0 10px rgba(255,210,94,.6); } 50% { box-shadow: 0 0 22px 4px rgba(255,210,94,.9); } }
/* tilt and glare under the pointer (hosts) */
.host::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,240,214,.16), rgba(255,240,214,0) 55%); opacity: 0; transition: opacity .3s; }
.host:hover::after { opacity: 1; }
/* buy box: a warm light follows the pointer; the obol drops in with one spin */
.rv.pre.in .big-coin { animation: coin-drop 1.1s cubic-bezier(.3,.9,.4,1) .25s backwards; }
@keyframes coin-drop { 0% { opacity: 0; transform: translateY(-90px) rotateY(0); } 40% { opacity: 1; } 70% { transform: translateY(6px) rotateY(340deg); } 100% { transform: none; } }
/* buttons catch the light once on hover */
.btn:not(.shine):hover::after { animation: shine-once .8s ease-out; }
@keyframes shine-once { from { transform: translateX(-120%); } to { transform: translateX(560%); } }
/* fact sheet: a bento of the game's own objects; still a plain <dl> underneath for readers and crawlers */
.facts { display: grid; gap: 14px; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(168px, auto);
  grid-template-areas: "price genre genre players" "price voyage voyage plays" "collect collect challenge made"; }
.fact { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px 24px 24px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(74,32,80,.55), rgba(34,18,58,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,244,220,.05), var(--soft); transition: translate .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .25s; }
.fact:hover { translate: 0 -4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,210,94,.22), 0 26px 44px -18px rgba(10,2,14,.75); }
.fact dt { margin-bottom: 10px; font: 700 .76rem/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.fact dd { margin: 0; font: 700 1.1rem/1.38 var(--f-display); color: var(--cream); max-width: 15em; }
.fact dd b { color: var(--gold); font-variant-numeric: tabular-nums; }
/* art lives in the dd (a dl only takes dt and dd) and sits behind the text inside the tile's own stacking context */
.fact .art { position: absolute; z-index: -1; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); transition: transform .5s cubic-bezier(.2,.9,.3,1.3); }
.fact:hover .art { transform: translateY(-4px) rotate(-2deg); }
.f-genre { grid-area: genre; } .f-price { grid-area: price; } .f-plays { grid-area: plays; } .f-players { grid-area: players; }
.f-voyage { grid-area: voyage; } .f-collect { grid-area: collect; } .f-challenge { grid-area: challenge; } .f-made { grid-area: made; }
/* price: the obol, large */
.f-price { justify-content: flex-end; background: radial-gradient(90% 60% at 50% 22%, rgba(255,199,64,.28), rgba(255,199,64,0) 70%), linear-gradient(180deg, #5a2650, #2a1440); }
.f-price .art { left: 50%; top: 24px; width: min(170px, 62%); margin-left: calc(min(170px, 62%) / -2); animation: coin-hover 3.6s ease-in-out infinite; }
.f-price dd { font-size: 1rem; color: var(--muted); }
.f-price dd b { display: block; margin-bottom: 6px; font: 800 3.4rem/.9 var(--f-display); color: var(--gold); text-shadow: 0 5px 0 #8a5806, 0 0 30px rgba(255,199,64,.35); }
/* genre: the four clay suits */
.f-genre .art { right: 18px; top: 50%; display: flex; gap: 6px; translate: 0 -50%; }
.f-genre .art img { width: 54px; height: 54px; }
.f-genre .art img:nth-child(odd) { translate: 0 -8px; }
/* players: the Keeper, alone at the oar */
.f-players .art { right: -26px; bottom: -40px; width: 150px; }
.f-players dd { max-width: none; white-space: nowrap; }
/* voyage: the ferry on the dusk sea */
.f-voyage { background: linear-gradient(180deg, rgba(74,32,80,.55) 0%, rgba(34,18,58,.7) 55%, #1d3550 100%); }
.f-voyage::after { content: ""; position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, rgba(53,211,201,0), rgba(23,162,157,.22)), repeating-linear-gradient(180deg, rgba(255,244,220,.07) 0 2px, transparent 2px 10px); }
.f-voyage .art { right: 22px; bottom: 6px; width: 230px; animation: bob 4.2s ease-in-out infinite; }
.f-voyage dd { max-width: 11em; }
/* collect: a row of Favors and consumables on the marble shelf */
.f-collect .art { right: 22px; bottom: 20px; width: min(320px, 52%); display: grid; }
.f-collect .art span { display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6%; margin-bottom: -6px; }
.f-collect .art span img { width: 22%; height: auto; }
.f-collect .art > img { width: 100%; height: auto; }
.f-collect dd { max-width: 10em; }
/* challenge: a Divine Trial */
.f-challenge .art { right: -12px; bottom: -12px; width: 116px; }
.f-challenge dd { max-width: 7em; }
/* plays on: keyboard and mouse */
.f-plays .art { right: 18px; top: 18px; width: 64px; color: rgba(255,244,220,.34); filter: none; }
.f-plays dd { max-width: 8.4em; }
/* made by: the studio badge (petrol mark on amber, as approved for the studio) */
.f-made dd { display: grid; gap: 12px; }
.studio { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.studio .mb { font: 600 1.25rem/1 var(--f-rank); letter-spacing: -.01em; }
.mb-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #f2a33a; box-shadow: inset 0 -4px 0 #b8691f, 0 0 0 2px #173036, 3px 4px 0 #173036; }
.mb-badge i { width: 64%; height: 68%; background: #173036; -webkit-mask: url("../assets/ui/mythic-brain.webp") 50% 50%/contain no-repeat; mask: url("../assets/ui/mythic-brain.webp") 50% 50%/contain no-repeat; }
.f-made small { font: 600 .9rem/1.35 var(--f-body); color: var(--muted); }
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "price genre" "price players" "voyage voyage" "collect collect" "plays challenge" "made made"; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(140px, auto); grid-template-areas: "price" "genre" "players" "voyage" "collect" "plays" "challenge" "made"; }
  .f-price { min-height: 300px; }
  .f-genre .art { position: static; translate: none; margin-top: 16px; }
  .f-genre .art img { width: 46px; height: 46px; }
  .f-voyage, .f-collect { min-height: 200px; }
  .f-voyage .art { width: 150px; right: 16px; bottom: 4px; }
  .f-voyage dd, .f-collect dd { max-width: 9.5em; }
  .f-collect .art { width: 44%; right: 16px; bottom: 16px; }
}
.facts-sec { padding-bottom: clamp(48px, 6vw, 80px); }

/* FAQ answers slide open where the browser can animate to auto */
:root { interpolate-size: allow-keywords; }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .38s cubic-bezier(.2,.8,.2,1), content-visibility .38s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
/* scroll-linked depth on the big paintings */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .finale-art { scale: 1.1; animation: drift-y linear both; animation-timeline: view(); }
    .trial-bg img { scale: 1.12; animation: drift-y linear both; animation-timeline: view(); }
    @keyframes drift-y { from { translate: 0 -4.5%; } to { translate: 0 4.5%; } }
  }
}

/* ---------- particles over everything ---------- */
#fx { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv.pre { opacity: 1; transform: none; }
}
