/* Sleight — the Devil's table, after hours.
   Everything here is dressed in the game's own art (assets/img/game, assets/img/ui) at whole-pixel scale.
   Palette and rules: marketing/BRIEF.md. */

:root {
  --void: #110305;
  --void-2: #1a0609;
  --crimson: #6b1020;
  --crimson-shadow: #400a13;
  --crimson-rim: #8b152a;
  --ember: #e4551f;
  --ember-shadow: #9e3a14;
  --gold: #b08d2f;
  --gold-hi: #e2c469;
  --bone: #e9e0c9;
  --bone-shadow: #c9bfa6;
  --cyan: #5cf0ea;
  --text: var(--bone);
  --muted: #b3a58c;
  --rule: rgba(176, 141, 47, 0.35);

  --pixel: "Silkscreen", "Courier New", monospace;
  --serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --page: min(1180px, calc(100vw - 32px));
  --s: 2; /* game pixels → CSS pixels */
  color-scheme: dark;
}
@media (max-width: 640px) { :root { --s: 1.5; } }

* { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: transparent; /* the void is on html, so the Drain canvas shows through */
  color: var(--text);
  font: 400 1.18rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
.px, .px img, .sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ——— The Drain ——— */
#drain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; image-rendering: pixelated; }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, transparent 0 40%, rgba(17,3,5,.72) 78%, var(--void) 100%); }

/* ——— Type ——— */
.label, h1, h2, h3, nav, .stamp, .plate { font-family: var(--pixel); text-transform: uppercase; letter-spacing: .04em; font-weight: 400; }
h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1; margin: 0 0 .35em; color: var(--bone);
  text-shadow: 0 3px 0 var(--crimson-shadow), 0 0 24px rgba(228,85,31,.25); text-wrap: balance; }
h2 .gold { color: var(--gold-hi); }
h2 .ember { color: var(--ember); }
h3 { font-size: 1.15rem; margin: 0 0 .4em; color: var(--gold-hi); }
.label { font-size: .78rem; color: var(--gold); letter-spacing: .12em; }
.lede { font-size: clamp(1.2rem, 2.1vw, 1.45rem); color: var(--bone); max-width: 34em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.brass-rule { display: flex; align-items: center; gap: 12px; color: var(--gold); font-family: var(--pixel); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.brass-rule::before, .brass-rule::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }

.wrap { width: var(--page); margin: 0 auto; }
section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }

/* ——— The brass plate: the game's RailPlateTallDark, cut into caps, a finial and a stretchable middle ——— */
.plate {
  --ps: var(--s);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: calc(33px * var(--ps)); min-width: calc(84px * var(--ps));
  margin: 0; padding: 0 calc(30px * var(--ps)) calc(1px * var(--ps)) calc(31px * var(--ps));
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  color: var(--bone); font-size: calc(7px * var(--ps) + 2px);
  text-shadow: 0 2px 0 #000;
  background:
    url(img/ui/plate-f.png) center / calc(16px * var(--ps)) 100% no-repeat,
    url(img/ui/plate-m.png) 0 0 / calc(1px * var(--ps)) 100% repeat-x;
  background-origin: content-box; background-clip: content-box;
  image-rendering: pixelated;
  transition: transform .1s steps(2), filter .15s;
}
.plate::before, .plate::after { content: ""; position: absolute; top: 0; height: 100%; background-size: 100% 100%; image-rendering: pixelated; pointer-events: none; }
.plate::before { left: 0; width: calc(31px * var(--ps)); background-image: url(img/ui/plate-l.png); }
.plate::after { right: 0; width: calc(30px * var(--ps)); background-image: url(img/ui/plate-r.png); }
.plate:hover { color: var(--gold-hi); filter: brightness(1.12) drop-shadow(0 0 10px rgba(226,196,105,.35)); }
.plate:active { transform: translateY(2px); }
.plate.small { --ps: 1.5; }
@media (max-width: 640px) { .plate.small { --ps: 1.25; } }
.plate.lit { color: var(--ember); animation: lit 2.4s ease-in-out infinite; }
@keyframes lit { 50% { filter: brightness(1.15) drop-shadow(0 0 14px rgba(228,85,31,.55)); } }
.plate[aria-pressed="true"], .plate[aria-current] { color: var(--gold-hi); filter: brightness(1.2) drop-shadow(0 0 8px rgba(226,196,105,.4)); }
@media (prefers-reduced-motion: reduce) { .plate.lit { animation: none; } }

/* ——— Nav ——— */
.nav { position: sticky; top: 0; z-index: 30; background: linear-gradient(var(--void) 0 60%, rgba(17,3,5,0)); padding: 10px 0 16px; }
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.nav .home { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font-size: 1rem; }
.nav .home { gap: 8px; }
.nav .home img { image-rendering: pixelated; height: auto; display: block; }
.nav .home .mark { width: 28px; }            /* the Horned Ace at 1 px per cell */
.nav .home .word { width: 215px; }           /* the title face (LogoTitleWord) at its own pixel, never resampled */
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; font: 400 .74rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; }
.nav ul a { color: var(--muted); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--gold-hi); }
@media (max-width: 640px) { .nav ul { gap: 12px; font-size: .64rem; } .nav .plate, .nav li.wide, .nav .home .mark { display: none; } }

/* ——— iPhone 17 Pro ——— */
/* Body 0.477:1 around a 1320×2868 screen; bezel and band measured off the real phone. */
.iphone {
  --w: 340px;
  --band: calc(var(--w) * .014);
  --bezel: calc(var(--w) * .022);
  --metal: #c9652c; --metal-hi: #f3a06a; --metal-lo: #7a3413;  /* Cosmic Orange */
  position: relative; width: var(--w); max-width: 100%;
  padding: var(--band); flex: none;
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(135deg, var(--metal-hi), var(--metal) 18%, var(--metal-lo) 48%, var(--metal) 70%, var(--metal-hi) 96%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 40px 80px rgba(0,0,0,.75), 0 0 110px rgba(228,85,31,.18);
}
.iphone.deep { --metal: #2d3a55; --metal-hi: #6f7f9e; --metal-lo: #151c2c; }
.iphone.silver { --metal: #cfd0d4; --metal-hi: #f7f7f8; --metal-lo: #8d8f95; }
.iphone .glass {
  position: relative; padding: var(--bezel); background: #030303;
  border-radius: calc(var(--w) * .151);
  box-shadow: inset 0 0 0 1px #1a1a1a;
}
.iphone .screen {
  position: relative; aspect-ratio: 1320 / 2868; overflow: hidden; background: #000;
  border-radius: calc(var(--w) * .128);
  isolation: isolate;
}
.iphone .screen video, .iphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.iphone .island {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * .026); transform: translateX(-50%);
  width: 30%; height: calc(var(--w) * .082); border-radius: 999px; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.iphone .island::after { content: ""; position: absolute; right: 18%; top: 50%; width: 22%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2a3350, #07080d 60%); }
.iphone .screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 30%, transparent 70%, rgba(255,255,255,.03)); }
.iphone .key { position: absolute; width: calc(var(--w) * .012 + 1px); border-radius: 2px;
  background: linear-gradient(90deg, var(--metal-lo), var(--metal-hi) 45%, var(--metal)); }
.iphone .key.l { left: calc(var(--w) * -.009 - 1px); }
.iphone .key.r { right: calc(var(--w) * -.009 - 1px); background: linear-gradient(270deg, var(--metal-lo), var(--metal-hi) 45%, var(--metal)); }
.iphone .key.action { top: 18%; height: 5.2%; }
.iphone .key.up { top: 25.5%; height: 9%; }
.iphone .key.down { top: 36%; height: 9%; }
.iphone .key.side { top: 28%; height: 13.5%; }
.iphone .key.cam { top: 58%; height: 7.5%; width: calc(var(--w) * .008 + 1px); right: calc(var(--w) * -.005 - 1px); filter: brightness(.8); }
.iphone .mute { position: absolute; z-index: 4; right: 7%; bottom: 3.2%; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(20,12,12,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .15s, transform .1s; }
.iphone .mute:hover { background: rgba(60,20,20,.7); }
.iphone .mute:active { transform: scale(.94); }
.iphone .mute svg { width: 18px; height: 18px; }
.iphone .mute .on { display: none; }
.iphone .mute[aria-pressed="true"] .on { display: block; }
.iphone .mute[aria-pressed="true"] .off { display: none; }
.iphone.small { --w: 230px; }
@media (max-width: 640px) { .iphone { --w: min(300px, 80vw); } .iphone.small { --w: min(220px, 62vw); } }

/* ——— Hero ——— */
.hero { padding: 8px 0 60px; }
.hero .wrap > * { min-width: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .lede { margin-inline: auto; } .hero .ctas { justify-content: center; } }
.hero .lede { margin: 0 0 1.2em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hero .when { margin-top: 18px; }
.stage { display: grid; justify-items: center; gap: 18px; }
#hero-phone { --w: clamp(240px, calc((100svh - 240px) * .47), 340px); }
@media (max-width: 900px) { #hero-phone { --w: min(300px, 80vw); } }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

/* The lamp over the table */
.lamp { position: absolute; top: -10px; left: 50%; z-index: 1; width: calc(40px * 3); margin-left: calc(-20px * 3); pointer-events: none;
  transform-origin: 50% 0; animation: swing 7s ease-in-out infinite; }
.lamp .chain { width: calc(6px * 3); height: 60px; margin: 0 auto; background: url(img/game/LampChain.png) 0 0 / calc(6px * 3) calc(6px * 3) repeat-y; image-rendering: pixelated; }
.lamp .shade { display: block; width: 100%; image-rendering: pixelated; }
/* The light: a warm halo on the bulb and a soft cone falling onto the table, both blurred so no edge shows. */
.lamp .shade { position: relative; z-index: 2; filter: sepia(.25) saturate(1.3); }
.lamp .halo { position: absolute; z-index: 1; left: 50%; top: calc(60px + 38px * 3 * .78); width: 180px; height: 180px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,226,170,.55), rgba(255,170,90,.18) 38%, transparent 70%); filter: blur(6px); mix-blend-mode: screen;
  animation: flicker 5s steps(1) infinite; }
.lamp .cone { position: absolute; z-index: 0; left: 50%; top: calc(60px + 38px * 3 * .7); width: 760px; height: 620px; transform: translateX(-50%);
  filter: blur(26px); mix-blend-mode: screen; animation: flicker 5s steps(1) infinite; }
.lamp .cone::before { content: ""; position: absolute; inset: 0; clip-path: polygon(45% 0, 55% 0, 96% 100%, 4% 100%);
  background: linear-gradient(rgba(255,214,150,.3), rgba(255,170,90,.12) 45%, transparent 88%); }
@keyframes flicker { 0%, 61%, 66%, 100% { opacity: 1; } 62% { opacity: .82; } 64% { opacity: .93; } }
@keyframes swing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
@media (max-width: 900px) { .lamp { display: none; } }
@media (prefers-reduced-motion: reduce) { .lamp, .lamp .halo, .lamp .cone { animation: none; } }

/* The title lockup, from the game's own 1x pieces (279 × 115 title pixels) */
.lockup { --u: clamp(1px, calc((min(100vw, 1180px) - 40px) / 279 * .6), 2.4px);
  position: relative; width: calc(279 * var(--u)); height: calc(115 * var(--u)); margin: 70px 0 calc(8 * var(--u)); }
@media (max-width: 900px) { .lockup { --u: calc((100vw - 32px) / 279); margin: 10px auto 12px; max-width: 100%; } }
.lockup img { position: absolute; image-rendering: pixelated; }
.lockup canvas.marquee { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.lockup .mark { left: calc(111.5 * var(--u)); top: calc(-1 * var(--u)); width: calc(56 * var(--u)); clip-path: inset(0 0 calc(100% - 71 * var(--u)) 0); animation: loom 7s steps(1) infinite; }
.lockup .plate-img { left: 0; top: calc(61 * var(--u)); width: calc(279 * var(--u)); }
.lockup .word { left: calc(32 * var(--u)); top: calc(58 * var(--u)); width: calc(215 * var(--u)); }
.lockup .tag { left: calc(51 * var(--u)); top: calc(104 * var(--u)); width: calc(177 * var(--u)); }
.lockup .glint { position: absolute; left: calc(32 * var(--u)); top: calc(58 * var(--u)); width: calc(215 * var(--u)); height: calc(37 * var(--u));
  -webkit-mask: url(img/LogoTitleWord.png) 0 0 / 100% 100% no-repeat; mask: url(img/LogoTitleWord.png) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 40%, rgba(255,246,210,.85) 48%, transparent 56%) no-repeat; background-size: 300% 100%; background-position: 120% 0;
  animation: glint 6s steps(24) infinite 1.2s; mix-blend-mode: screen; }
@keyframes glint { 0%, 70% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
@keyframes loom { 0%, 88% { transform: translateY(0); } 89%, 95% { transform: translateY(calc(-2 * var(--u))); } }
@media (prefers-reduced-motion: reduce) { .lockup .glint, .lockup .mark { animation: none; } }

/* ——— Card sprites (CardFacesIvory: 13 × 4 of 64×90; CardBacksPainted: rows of 64×90) ——— */
.card { --cs: var(--s); --c: 0; --r: 0; display: inline-block; width: calc(64px * var(--cs)); height: calc(90px * var(--cs)); flex: none;
  background: url(img/game/CardFacesIvory.png) calc(-64px * var(--cs) * var(--c)) calc(-90px * var(--cs) * var(--r)) / calc(832px * var(--cs)) calc(360px * var(--cs)) no-repeat;
  image-rendering: pixelated; filter: drop-shadow(0 calc(3px * var(--cs)) 0 rgba(0,0,0,.45)); }
.card.back { background-image: url(img/game/CardBacksPainted.png); background-size: calc(832px * var(--cs)) calc(630px * var(--cs)); }

/* Cards drifting through the hero, like the trailer's flurries */
.flurry { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.flurry .card { position: absolute; top: -200px; --cs: 1.5; opacity: .85; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(0) rotate(var(--a0, -20deg)); } to { transform: translateY(calc(100vh + 400px)) rotate(var(--a1, 30deg)); } }
@media (prefers-reduced-motion: reduce) { .flurry { display: none; } }

/* ——— Tarot (TarotFront 160×240: name slot 48–112 × 7–20, window 22–138 × 36–192, foot slot 32–128 × 204–222) ——— */
.tarot { --ts: var(--s); position: relative; width: calc(160px * var(--ts)); height: calc(240px * var(--ts)); flex: none;
  background: url(img/game/TarotFront.png) 0 0 / 100% 100% no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.6)); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tarot.bone { background-image: url(img/game/TarotFrontBone.png); }
.tarot.ember { background-image: url(img/game/TarotFrontEmber.png); }
.tarot.back { background-image: url(img/game/TarotBack.png); }
.tarot:hover { transform: translateY(-10px) rotate(-1deg); }
.tarot .win { position: absolute; left: calc(22px * var(--ts)); top: calc(36px * var(--ts)); width: calc(116px * var(--ts)); height: calc(156px * var(--ts)); overflow: hidden; background: #0d0204; }
.tarot .win video, .tarot .win img.fill { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.tarot .win img.icon { position: absolute; left: 50%; top: 50%; width: calc(84px * var(--ts)); transform: translate(-50%, -50%); image-rendering: pixelated; }
.tarot .name, .tarot .foot { position: absolute; display: grid; place-items: center; font-family: var(--pixel); text-transform: uppercase; color: #2a1406; line-height: 1; text-align: center; }
.tarot .name { left: calc(48px * var(--ts)); top: calc(7px * var(--ts)); width: calc(64px * var(--ts)); height: calc(13px * var(--ts)); font-size: calc(5px * var(--ts) + 1px); }
.tarot .foot { left: calc(32px * var(--ts)); top: calc(204px * var(--ts)); width: calc(96px * var(--ts)); height: calc(18px * var(--ts)); font-size: calc(4px * var(--ts) + 2px); padding: 0 4px; }
.tarot.bone .name, .tarot.bone .foot { color: #3a2e22; }
.deck-row.cheats-row { gap: 14px; flex-wrap: nowrap; }
.cheats-row .tarot { --ts: 1.35; }
@media (max-width: 1240px) { .cheats-row .tarot { --ts: 1.1; } }
@media (max-width: 960px) { .cheats-row .tarot { --ts: .95; } }
@media (max-width: 760px) { .cheats-row .tarot { --ts: 1.5; } }
.deck-row { display: flex; gap: clamp(12px, 2vw, 26px); justify-content: center; flex-wrap: wrap; margin-top: 44px; }
@media (max-width: 760px) { .deck-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 10px 16px 24px; margin-inline: -16px; }
  .deck-row > * { scroll-snap-align: center; } }

/* ——— Feature rows: words beside a phone ——— */
.row { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 6vw, 80px); align-items: center; }
.row.flip { grid-template-columns: auto 1fr; }
.row.flip > .iphone { order: -1; }
@media (max-width: 820px) { .row, .row.flip { grid-template-columns: 1fr; justify-items: center; text-align: center; } .row.flip > .iphone { order: 0; } .row p { margin-inline: auto; } }
.row > * { min-width: 0; max-width: 100%; }
.row p { color: var(--muted); max-width: 32em; }
.row p em { color: var(--bone); }

/* The Devil's looks (DevilHeadSheet: 6 × 4 cells of 64) */
.head { --hs: var(--s); --c: 0; --r: 0; width: calc(64px * var(--hs)); height: calc(64px * var(--hs)); flex: none;
  background: url(img/game/DevilHeadSheet.png) calc(-64px * var(--hs) * var(--c)) calc(-64px * var(--hs) * var(--r)) / calc(384px * var(--hs)) calc(256px * var(--hs)) no-repeat; image-rendering: pixelated; }
/* ——— His cheats, each as its card: the kit art in a tarot window, the free three larger ——— */
.brass-rule.sub { margin: 36px auto 18px; max-width: 760px; font-size: .72rem; }
.cheat-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cheat { margin: 0; display: grid; justify-items: center; gap: 10px; width: min-content; }
.cheat .tarot { --ts: 1.5; }
.cheat-row.full .tarot { --ts: 1; }
.cheat .tarot { background-image: url(img/game/TarotFrontSilver.png); }   /* the game draws cheat cards in the silver frame */
.cheat .win.art { display: grid; place-items: center; background: #080102; }
.cheat .win.art > * { grid-area: 1 / 1; }
/* Behind the piece: the cheat at work (dimmed, so the piece reads), or its own swirl like the game's Collection. */
.cheat .win video.behind { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); }
.cheat .win canvas.card-drain { width: 100%; height: 100%; image-rendering: pixelated; }
.cheat .win::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, rgba(8,1,2,.75) 100%); }
.cheat .win img.kit { position: relative; z-index: 1; }
.cheat .win img.kit { position: static; transform: none; width: auto; height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); }
.cheat-row.free .kit { zoom: 3; }
.cheat-row.full .kit { zoom: 2; }
.cheat figcaption { font-size: .98rem; color: var(--muted); text-align: center; max-width: 16em; line-height: 1.35; }
.cheat-row.free figcaption { color: var(--bone); }
.cheat .fg { position: absolute; left: 50%; top: calc(170px * var(--ts)); transform: translateX(-50%); display: flex; align-items: center; gap: 5px;
  font: 400 .58rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--void); background: var(--gold); padding: 4px 8px 4px 6px; box-shadow: 1px 1px 0 #000; white-space: nowrap; width: max-content; }
.cheat .fg img { width: 9px; height: 9px; filter: brightness(0); image-rendering: pixelated; }
@media (max-width: 760px) { .cheat .tarot { --ts: 1.1; } .cheat-row.full .tarot { --ts: .9; } .cheat-row.free .kit { zoom: 2; } .cheat-row.full .kit { zoom: 1.5; } .cheat-row { gap: 12px; } }

/* ——— His slot machine ——— */
.slot-host { position: relative; display: grid; justify-items: center; gap: 12px; width: 460px; max-width: 100%; }
.slot-canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; touch-action: none; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.slot-result { display: grid; gap: 4px; justify-items: center; text-align: center; width: 100%; height: 5.2em; overflow: hidden; font: 400 .7rem/1.4 var(--pixel); text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.slot-result b { color: var(--gold-hi); font-weight: 400; }
.daily-clock { margin-top: 18px; }

/* A fanned hand of real cards */
.fan { display: flex; justify-content: center; padding: 20px 0 10px; }
.fan .card { --cs: calc(var(--s) * .75); margin: 0 calc(-14px * var(--cs)); transform-origin: 50% 120%; transition: transform .2s; }
.fan .card:nth-child(1) { transform: rotate(-16deg); } .fan .card:nth-child(2) { transform: rotate(-8deg) translateY(-6px); }
.fan .card:nth-child(3) { transform: rotate(0) translateY(-9px); } .fan .card:nth-child(4) { transform: rotate(8deg) translateY(-6px); }
.fan .card:nth-child(5) { transform: rotate(16deg); }
.fan .card:hover { transform: translateY(-22px) !important; }
.hands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 520px) { .hands-grid { grid-template-columns: 1fr; } }
.hand-name { text-align: center; }
.hand-name b { display: block; font: 400 1rem/1.2 var(--pixel); text-transform: uppercase; color: var(--gold-hi); }
.hand-name span { font-size: 1rem; color: var(--muted); }
.more-hands { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.row .more-hands { justify-content: flex-start; }
@media (max-width: 820px) { .row .more-hands { justify-content: center; } }
.more-hands li { font: 400 .68rem/1 var(--pixel); text-transform: uppercase; padding: .5em .7em; border: 1px solid var(--rule); color: var(--bone); background: rgba(107,16,32,.35); }

/* The Descent: each circle's gate with its dealer inside (Gate 128×160, head 64 at x 32, y 66) */
.gates { display: flex; gap: 6px; overflow-x: auto; padding: 30px max(16px, calc((100vw - 1180px) / 2)) 30px; scroll-snap-type: x proximity;
  -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 70%, transparent); }
.gate { --gs: var(--s); position: relative; width: calc(128px * var(--gs)); flex: none; scroll-snap-align: start; text-align: center; }
.gate .arch { position: relative; width: calc(128px * var(--gs)); height: calc(160px * var(--gs)); }
.gate .arch::before { content: ""; position: absolute; left: 22%; right: 22%; top: 36%; bottom: 4%; background: radial-gradient(ellipse at 50% 70%, var(--glow, rgba(228,85,31,.35)), #0b0204 70%); }
.gate .arch img { position: absolute; image-rendering: pixelated; }
.gate .arch .who { left: calc(32px * var(--gs)); top: calc(66px * var(--gs)); width: calc(64px * var(--gs)); transition: transform .3s steps(4); }
.gate .arch .fog { position: absolute; left: 20%; right: 20%; bottom: 3%; height: 28%; background: linear-gradient(transparent, #0b0204 75%); }
.gate .arch .stone { inset: 0; width: 100%; height: 100%; }
.gate .num { position: absolute; left: calc(50% - 19px * var(--gs)); top: calc(3px * var(--gs)); width: calc(38px * var(--gs)); height: calc(38px * var(--gs)); display: grid; place-items: center;
  font: 400 calc(8px * var(--gs)) var(--pixel); color: var(--gold-hi); z-index: 2; text-shadow: 0 2px 0 #000; }
.gate:hover .who { transform: translateY(calc(-4px * var(--gs))); }
.gate .plate { margin-top: 6px; }
.gate .rule { font-size: .92rem; color: var(--muted); margin: 8px 6px 0; line-height: 1.35; }
.gate .rule b { color: var(--bone); font-weight: 400; }
.gate.locked .arch::before { background: radial-gradient(ellipse at 50% 70%, rgba(40,6,10,.9), #050102 70%); }
.gate.locked .stone { filter: brightness(.55) saturate(.7); }
.gate.locked .who { filter: drop-shadow(0 0 1px rgba(228,85,31,.75)) drop-shadow(0 -2px 6px rgba(228,85,31,.25)); }
.gate.locked .lock { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; gap: 6px; }
.gate.locked .lock img { position: static; width: calc(9px * 3); height: calc(9px * 3); image-rendering: pixelated; filter: drop-shadow(1px 1px 0 #000); }
.gate.locked .lock span { font: 400 .62rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--void); background: var(--gold); padding: 4px 6px; box-shadow: 1px 1px 0 #000; white-space: nowrap; }
.gate.locked:hover .who { transform: none; }
.gate.locked .rule b { color: var(--muted); }

/* His machine (SlotCabinet 256×256) */
.slot { --ss: var(--s); position: relative; width: calc(256px * var(--ss) * .75); height: calc(256px * var(--ss) * .75); }
.slot img { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.countdown { font: 400 clamp(1.6rem, 4vw, 2.4rem)/1 var(--pixel); color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-shadow: 0 3px 0 var(--crimson-shadow); }

/* ——— Lineup ——— */
.lineup { padding: 0; }
.lineup .frame { position: relative; overflow: hidden; }
.lineup img.bg { width: 100%; display: block; object-fit: cover; object-position: 50% 30%; aspect-ratio: 21 / 9; max-height: 720px; }
.lineup .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--void), transparent 22%, transparent 70%, var(--void)); }
.lineup .caption { position: absolute; left: 0; right: 0; bottom: 8%; z-index: 2; text-align: center; }
@media (max-width: 700px) { .lineup img.bg { aspect-ratio: 4 / 3; object-position: 50% 80%; } .lineup .caption { position: relative; bottom: auto; margin-top: -10px; } }

/* ——— Gallery (the store screenshots) ——— */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 30px max(16px, calc((100vw - 1180px) / 2)); scroll-snap-type: x mandatory; scrollbar-color: var(--gold) transparent; }
.gallery img { height: min(560px, 70vh); width: auto; flex: none; scroll-snap-align: center; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }

/* Card-back ribbon between sections */
.ribbon { display: flex; justify-content: center; gap: 10px; padding: 8px 0; overflow: hidden; }
.ribbon .card { --cs: 1; }

/* ——— Closing ——— */
.closing { text-align: center; }
.closing .peek { position: relative; width: calc(64px * 3); height: calc(40px * 3); margin: 0 auto -8px; overflow: hidden; }
.closing .peek .head { --hs: 3; animation: peek 6s steps(1) infinite; }
@keyframes peek { 0%, 70% { transform: translateY(12px); } 71%, 86% { transform: translateY(0); } }
.closing .quote { font-family: var(--pixel); text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 3rem); color: var(--bone); line-height: 1.1; margin: 20px 0 .6em; }
.closing .quote span { color: var(--ember); }
.follow { display: flex; gap: 4px 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ——— Trailer lightbox ——— */
dialog.trailer { border: 3px solid var(--gold); padding: 0; background: #000; width: min(1100px, 94vw); box-shadow: 0 0 0 3px #3b2c0b, 0 40px 120px #000; }
dialog.trailer::backdrop { background: rgba(8,1,3,.88); }
dialog.trailer video { display: block; width: 100%; height: auto; }
dialog.trailer form { position: absolute; top: 8px; right: 8px; margin: 0; }

/* ——— Footer ——— */
footer { position: relative; padding: 260px 0 44px; margin-top: -120px; font-size: .95rem; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 8px #000; }
footer ul a { text-shadow: 0 2px 0 #000; }
footer .wrap { position: relative; z-index: 1; }
/* The game's fog (FogBandNode): dithered crimson smoke thickening to the foot, drifting a pixel at a time. */
.fog-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; min-height: 300px; pointer-events: none; overflow: hidden; z-index: 0; }
.fog-foot i { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.fog-foot .far { height: calc(70px * 4); background-size: calc(128px * 4) calc(70px * 4); opacity: .45; animation: drift 64s steps(128) infinite; }
.fog-foot .near { height: calc(56px * 4); background-size: calc(128px * 4) calc(56px * 4); opacity: .7; animation: drift 42.7s steps(128) infinite reverse; }
@keyframes drift { to { background-position: calc(128px * 4) 100%; } }
@media (max-width: 640px) { .fog-foot .far { background-size: calc(128px * 3) calc(70px * 3); height: calc(70px * 3); } .fog-foot .near { background-size: calc(128px * 3) calc(56px * 3); height: calc(56px * 3); } }
@media (prefers-reduced-motion: reduce) { .fog-foot i { animation: none; } }
footer .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font-family: var(--pixel); font-size: .74rem; text-transform: uppercase; }
footer ul a { color: var(--muted); text-decoration: none; }
footer ul a:hover { color: var(--gold-hi); }
footer .legal { flex-basis: 100%; font-size: .82rem; opacity: .75; }

/* ——— Documents (privacy, support, press) ——— */
.doc { padding: 40px 0 100px; }
.doc .wrap { max-width: 780px; }
.doc .sheet { position: relative; background: linear-gradient(rgba(26,6,9,.94), rgba(17,3,5,.96)); border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 3px #3b2c0b, 0 30px 80px rgba(0,0,0,.6); padding: clamp(24px, 5vw, 56px); }
.doc .sheet > .head { --hs: 1.5; position: absolute; right: clamp(16px, 4vw, 40px); top: calc(-64px * 1.5 + 14px); }
.doc h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; margin: 0 0 .2em; color: var(--bone); text-shadow: 0 3px 0 var(--crimson-shadow); }
.doc h2 { font-size: 1.25rem; text-shadow: none; color: var(--gold-hi); margin: 2em 0 .6em; }
.doc h3 { color: var(--bone); font-size: .95rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1em 0 1.6em; }
.doc th, .doc td { text-align: left; padding: .55em .6em; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-family: var(--pixel); font-size: .72rem; text-transform: uppercase; color: var(--gold); font-weight: 400; width: 34%; }
.doc .updated { font-family: var(--pixel); font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.doc .actions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 18px; }
details { border-bottom: 1px solid var(--rule); padding: .9em 0; }
details summary { cursor: pointer; font-family: var(--pixel); text-transform: uppercase; font-size: .88rem; color: var(--bone); list-style: none; display: flex; gap: 10px; }
details summary::before { content: "♠"; color: var(--ember); }
details[open] summary::before { content: "♥"; }
details summary::-webkit-details-marker { display: none; }
details p { margin: .8em 0 0; color: var(--muted); }
.grid-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 1em 0 2em; }
.grid-assets a { display: block; text-decoration: none; font-family: var(--pixel); font-size: .66rem; text-transform: uppercase; color: var(--muted); }
.grid-assets img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #0b0203; border: 1px solid var(--rule); margin-bottom: 6px; image-rendering: pixelated; }
.grid-assets img.cover { object-fit: cover; }
.videos { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.videos figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.videos figcaption { font: 400 .72rem/1.4 var(--pixel); text-transform: uppercase; color: var(--muted); text-align: center; }
.videos figcaption a { display: block; }
.wide-video { width: 100%; border: 2px solid var(--gold); display: block; background: #000; }

.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* His speech bubble (SpeechBubbleNode): a dark bubble whose bone outline re-jitters, an ember fringe, and letters
   that arrive one by one in chalk and bob. */
.speech { position: absolute; z-index: 5; left: 50%; top: 2%; transform: translate(-50%, -100%) scale(.85); opacity: 0; pointer-events: none;
  max-width: 300px; transition: opacity .2s, transform .12s ease-out; }
.speech.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.speech svg { position: absolute; inset: -8px -8px -20px -8px; width: calc(100% + 16px); height: calc(100% + 28px); overflow: visible; }
.speech .text { position: relative; padding: 12px 18px; font: 400 17px/1.35 Chalkduster, "Cabin Sketch", "Comic Sans MS", cursive; color: var(--bone); text-align: center; white-space: normal; width: max-content; max-width: 300px; }
.speech .text span { display: inline-block; opacity: 0; animation: letter .12s linear forwards, bob 1.1s ease-in-out infinite; }
@keyframes letter { from { opacity: 0; translate: 0 2px; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-1.5px) rotate(-3deg); } 75% { transform: translateY(1px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .speech .text span { animation: letter .01s forwards; } }

/* ——— Read the Devil: the game's rail across the page; now and then he comes up behind it, looks round, drums.
   Under it his felt, where cards go by; drag them down into your hand, but hold one too long and he takes it. ——— */
.rail-scene { --R: 3; --H: 4; position: relative; margin-top: 40px; overflow: hidden; }
@media (max-width: 760px) { .rail-scene { --R: 2; --H: 2.25; } }
.rs-top { position: relative; height: calc(37px * var(--R) + 150px); }
@media (max-width: 760px) { .rs-top { height: calc(37px * var(--R) + 90px); } }
.rail-scene .rs-light { position: absolute; left: 50%; top: 0; width: 70%; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255,214,150,.14), transparent 70%); }
.rail-scene .rs-rail { position: absolute; left: 0; right: 0; bottom: 0; height: calc(37px * var(--R)); z-index: 2;
  background: url(img/game/rail.png) 0 0 / calc(960px * var(--R)) 100% repeat-x; image-rendering: pixelated; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.rail-scene .rs-head { --hs: var(--H); position: absolute; left: 50%; margin-left: calc(-32px * var(--H)); z-index: 1;
  bottom: calc(37px * var(--R) - 64px * var(--H)); will-change: transform; }
.rail-scene .rs-head.flip { scale: -1 1; }
.rail-scene .rs-hand, .rail-scene .rs-snatch { --hs: var(--H); --c: 0; --r: 0; position: absolute; width: calc(64px * var(--H)); height: calc(64px * var(--H));
  background: url(img/game/DevilHandSheet.png) calc(-64px * var(--hs) * var(--c)) calc(-64px * var(--hs) * var(--r)) / calc(384px * var(--hs)) calc(256px * var(--hs)) no-repeat; image-rendering: pixelated; }
.rail-scene .rs-hand { z-index: 1; bottom: calc(37px * var(--R) - 64px * var(--H)); will-change: transform; }
.rail-scene .rs-hand.front { z-index: 3; filter: drop-shadow(calc(1px * var(--H)) calc(2px * var(--H)) 0 rgba(0,0,0,.45)); }
.rail-scene .rs-hand.rh { left: calc(84% - 32px * var(--H)); }
.rail-scene .rs-hand.lh { left: calc(16% - 32px * var(--H)); scale: -1 1; }
.rail-scene .rs-hand.gone { opacity: 0; }
.rail-scene .rs-call { position: absolute; left: 50%; bottom: calc(37px * var(--R) * .5); transform: translate(-50%, 50%); z-index: 4; --ps: 1.5; pointer-events: none; }
@media (max-width: 760px) { .rail-scene .rs-call { --ps: 1.1; font-size: 9px; } }


/* ——— His deal across the top of the page: cards swing by; grab one and hold it too long and his hand takes it ——— */
.deal { position: relative; height: 240px; overflow: visible; }
.deal .card { z-index: 4; }
.deal-hint { margin-top: 12px; font-size: 1rem; }
/* His felt, just under the rail: the house cloth with its gold lattice, fading into the dark */
.deal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,214,150,.10), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(176,141,47,.18) 0 2px, transparent 3px) 0 0 / 26px 26px,
    repeating-linear-gradient(45deg, rgba(176,141,47,.08) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(176,141,47,.08) 0 2px, transparent 2px 18px),
    #4a0d18;
  -webkit-mask: linear-gradient(#000, rgba(0,0,0,.6) 40%, transparent); mask: linear-gradient(#000, rgba(0,0,0,.6) 40%, transparent); }
.deal .card { position: absolute; left: 0; top: 0; --cs: 1.25; pointer-events: auto; cursor: grab; touch-action: none; will-change: transform; }
@media (max-width: 760px) { .deal { height: 170px; } .deal .card { --cs: .9; } }
.deal .card.held { cursor: grabbing; z-index: 5; filter: drop-shadow(0 14px 12px rgba(0,0,0,.6)); }
.deal .grab-hand { --hs: 3.5; --c: 0; --r: 3; position: absolute; left: 0; top: 0; z-index: 6; display: none; width: calc(64px * var(--hs)); height: calc(64px * var(--hs));
  background: url(img/game/DevilHandSheet.png) calc(-64px * var(--hs) * var(--c)) calc(-64px * var(--hs) * var(--r)) / calc(384px * var(--hs)) calc(256px * var(--hs)) no-repeat;
  image-rendering: pixelated; filter: drop-shadow(3px 7px 0 rgba(0,0,0,.5)); pointer-events: none; }
@media (max-width: 760px) { .deal .grab-hand { --hs: 2.4; } }
.deal .grab-hand.on { display: block; }
.deal .deal-speech { z-index: 7; }


/* ——— Hands poker forgot, played the way the table plays them: the tray, the plate, the count, the moment ——— */
.hand-stage { --cs: 1.25; position: relative; margin: 22px 0 6px; padding: 18px 12px 14px; border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 3px #3b2c0b, inset 0 0 80px rgba(0,0,0,.7), 0 20px 50px rgba(0,0,0,.5);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255,214,150,.14), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(176,141,47,.16) 0 2px, transparent 3px) 0 0 / 26px 26px,
    repeating-linear-gradient(45deg, rgba(176,141,47,.07) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(176,141,47,.07) 0 2px, transparent 2px 18px), #4a0d18; }
.hand-stage .card { --cs: 1.25; }
@media (max-width: 760px) { .hand-stage { --cs: .85; padding: 14px 6px 10px; } .hand-stage .card { --cs: .85; } }
.hand-stage.thud { animation: thud .14s steps(2); }
@keyframes thud { 50% { transform: translate(2px, 2px); } }
.hs-back { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; image-rendering: pixelated; }
.hs-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; image-rendering: pixelated; }
.hs-veil { position: absolute; inset: 0; background: #050102; opacity: 0; transition: opacity .25s steps(3); pointer-events: none; z-index: 1; }
.hand-stage.dark .hs-veil { opacity: .88; }
.hs-head { position: relative; z-index: 2; display: grid; justify-items: center; gap: 6px; min-height: 96px; }
.hs-plate { --ps: 1.5; opacity: 0; transform: scale(.8); transition: opacity .1s steps(2), transform .12s steps(2); pointer-events: none; }
.hs-plate.on { opacity: 1; transform: scale(1); }
.hs-plate.ring { animation: bump .2s steps(2); }
@keyframes bump { 50% { transform: scale(1.1); } }
.hs-count { font: 400 clamp(1.6rem, 4vw, 2.3rem)/1 var(--pixel); color: var(--bone); text-shadow: 3px 3px 0 var(--void); min-height: 1em; font-variant-numeric: tabular-nums; }
.hs-count.tick { transform: translateY(-2px); }
.hs-count .hs-mult { color: var(--ember); margin-left: .4em; display: inline-block; animation: stamp .18s steps(3); }
.hs-count.slam { color: var(--gold-hi); font-size: clamp(2.2rem, 6vw, 3.4rem); animation: stamp .22s steps(3); }
@keyframes stamp { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hs-tray { position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px; background: rgba(12,2,4,.35); border: 2px solid rgba(176,141,47,.6); }
.hs-slot { position: relative; width: calc(64px * var(--cs)); height: calc(90px * var(--cs)); }
.hs-slot .card { display: block; transition: transform .12s steps(2), filter .1s; }
.hs-slot .card.lift { transform: translateY(-10px); }
.hs-slot .card.dim { opacity: .25; transition: opacity .3s steps(3); }
.hs-slot .card.beat { transform: scale(1.12); }
.hs-pop { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 400 .9rem/1 var(--pixel); color: var(--gold-hi); text-shadow: 2px 2px 0 var(--void); animation: popup .5s steps(5) forwards; pointer-events: none; }
@keyframes popup { from { transform: translate(-50%, 6px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -18px); opacity: 1; } }
.hs-pip { position: absolute; left: 50%; top: 58%; z-index: 3; transform: translate(-50%, 40px) scale(.2); opacity: 0; pointer-events: none;
  font: 400 64px/1 var(--pixel); color: #E8506A; text-shadow: 4px 4px 0 #400A13, 0 0 18px rgba(232,80,106,.8); }
.hs-pip.rise { transition: transform .5s steps(6), opacity .2s steps(2); transform: translate(-50%, -30px) scale(1); opacity: 1; }
.hs-pip.stamp { transform: translate(-50%, -30px) scale(1.25); opacity: 1; }
.hs-pip.sink { transition: transform .45s steps(5), opacity .45s steps(5); transform: translate(-50%, 40px) scale(.2); opacity: 0; }
.hs-pick { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 16px; }
.hand-stage .hs-speech { left: 50%; top: 8px; transform: translate(-50%, -100%) scale(.85); z-index: 6; }
.hand-stage .hs-speech.show { transform: translate(-50%, -100%) scale(1); }
