@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/site/fonts/Inter-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* ───────────────────────── Design tokens ─────────────────────────
   The website shares the classic palette of the browser app: porcelain
   neutrals, royal indigo actions, rosé hearts and emerald accents. */
:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --raised: #eceff7;
  --ink: #0f1424;
  --muted: #4b5370;
  --soft: #6c7490;
  --accent: #3346d3;
  --accent-2: #5a2fd0;
  --rose: #d86c80;
  --emerald: #0e7a52;
  --gold: #f2c35c;
  --line: #e1e5f0;
  --night: #0b1022;
  --night-2: #151d3d;
  --white: #fff;
  --radius: 26px;
  --ease: cubic-bezier(.05, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.42, .64, 1);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .85);
  --shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 18px 44px -18px rgba(51, 70, 211, .22);
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  /* Legacy names used by older markup. */
  --paper: var(--bg);
  --felt: var(--accent);
  --lime: #dfe4ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 Inter, Arial, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
::selection { background: #dfe4ff; color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1, h2 { font-family: Inter, Arial, sans-serif; }
h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 26px; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
p { margin-bottom: 18px; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 60; top: 12px; left: 12px; padding: 12px 20px; color: var(--white); background: var(--ink); transform: translateY(-160%); border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

/* ───────────────────────── Living backdrop ───────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #f8f9fd 0%, var(--bg) 45%, #eef0fa 100%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora-1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -26vmax; background: radial-gradient(circle, rgba(51, 70, 211, .42), transparent 65%); animation: drift-1 26s ease-in-out infinite alternate; }
.aurora-2 { width: 54vmax; height: 54vmax; right: -20vmax; top: -8vmax; background: radial-gradient(circle, rgba(90, 47, 208, .3), transparent 65%); animation: drift-2 32s ease-in-out infinite alternate; }
.aurora-3 { width: 58vmax; height: 58vmax; left: 20vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(216, 108, 128, .26), transparent 65%); animation: drift-3 38s ease-in-out infinite alternate; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 20, 36, .09) 1px, transparent 1.2px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.spotlight { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(51, 70, 211, .1), transparent 70%); }
.has-pointer .spotlight { opacity: 1; }
@keyframes drift-1 { to { transform: translate(14vmax, 10vmax) scale(1.08); } }
@keyframes drift-2 { to { transform: translate(-12vmax, 16vmax) scale(.92); } }
@keyframes drift-3 { to { transform: translate(-16vmax, -8vmax) scale(1.1); } }

/* ───────────────────────── Header ───────────────────────── */
.site-header { position: sticky; top: 14px; z-index: 40; min-height: 72px; margin-top: 14px; padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 22px; border: 1px solid transparent; transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header.is-scrolled, html:not(.js) .site-header { background: var(--glass); border-color: var(--glass-line); box-shadow: 0 12px 40px -20px rgba(15, 20, 36, .28); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 24px/1.1 Inter, Arial, sans-serif; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; background: var(--gradient); color: var(--white); font: 900 21px/1 Inter, Arial, sans-serif; border-radius: 13px; letter-spacing: -.05em; box-shadow: 0 8px 20px -8px rgba(51, 70, 211, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.header-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.header-nav > a:not(.button) { position: relative; text-decoration: none; padding: 10px 14px; border-radius: 12px; color: var(--muted); transition: color .2s ease, background .2s ease; }
.header-nav > a:not(.button):hover { color: var(--ink); background: rgba(51, 70, 211, .07); }
.header-nav > a[aria-current="page"] { color: var(--ink); background: rgba(51, 70, 211, .09); }

/* ───────────────────────── Buttons & links ───────────────────────── */
.button { position: relative; isolation: isolate; overflow: hidden; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 15px 26px; background: var(--gradient); color: var(--white); font-size: 15px; font-weight: 700; line-height: 1.4; border: 0; border-radius: 16px; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(51, 70, 211, .8), inset 0 1px 0 rgba(255, 255, 255, .28); transition: transform .45s var(--spring), box-shadow .3s ease; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.button:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(51, 70, 211, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.button:hover::after { transform: translateX(120%); }
.button:active { transform: translateY(0) scale(.97); }
.button span { font-size: 19px; line-height: 1; transition: transform .45s var(--spring); }
.button:hover span { transform: translateX(4px); }
.button-small { min-height: 46px; padding: 11px 18px; gap: 10px; font-size: 14px; border-radius: 13px; }
.button-glow { animation: glow 4.5s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 14px 30px -14px rgba(51, 70, 211, .8), inset 0 1px 0 rgba(255, 255, 255, .28); } 50% { box-shadow: 0 18px 46px -12px rgba(90, 47, 208, .75), inset 0 1px 0 rgba(255, 255, 255, .28); } }
.button-lime { background: var(--white); color: var(--accent); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .5); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--accent); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.text-link:hover { background-size: 100% 1.5px; }
.text-link span { font-size: 18px; transition: transform .4s var(--spring); }
.text-link:hover span { transform: translate(3px, -1px); }
.eyebrow, .small-label { color: var(--accent); font-size: 11px; font-weight: 800; line-height: 1.5; letter-spacing: .18em; }
.small-label { color: var(--soft); }
.eyebrow { margin-bottom: 18px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 99px; background: rgba(51, 70, 211, .08); border: 1px solid rgba(51, 70, 211, .2); }
.pulse { position: relative; display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(51, 70, 211, .7); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.lead { font-size: 18px; line-height: 1.75; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.fine-print { color: var(--soft); font-size: 12.5px; line-height: 1.7; margin-top: 20px; margin-bottom: 0; max-width: 440px; }

/* ───────────────────────── Reveal on scroll ───────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-tilt] { transform-style: preserve-3d; }
.js [data-tilt].tilt-ready { transition: transform .5s var(--ease), box-shadow .4s ease, border-color .3s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 60%); }
[data-tilt]:hover::after { opacity: 1; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: 56px; padding-block: 66px 70px; }
.hero-copy h1 { max-width: 650px; font-size: clamp(50px, 5.4vw, 78px); }
.hero-copy h1 span { display: inline-block; font-size: clamp(58px, 6.2vw, 92px); background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 35%, var(--rose) 55%, var(--accent-2) 75%, var(--accent) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s ease-in-out infinite; padding-bottom: .06em; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-copy .lead { max-width: 540px; margin-bottom: 32px; }

/* ───────────────────────── Bluff mini game ───────────────────────── */
.game { position: relative; overflow: hidden; isolation: isolate; padding: 26px; border-radius: 32px; color: #eef1ff; background: radial-gradient(120% 90% at 0% 0%, #26307a 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #3d1d73 0%, transparent 60%), linear-gradient(160deg, var(--night-2), var(--night)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -36px rgba(51, 70, 211, .75), 0 0 0 1px rgba(15, 20, 36, .05); }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.game-glow { position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 158, 255, .45), transparent 65%); animation: drift-2 14s ease-in-out infinite alternate; }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 6px; color: #aeb9ff; font-size: 10.5px; font-weight: 800; letter-spacing: .2em; }
.game-label .pulse { background: #8c9eff; }
.game-title { margin: 0; color: var(--white); font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; }
.game-score { display: flex; gap: 8px; flex-shrink: 0; }
.game-score span { display: grid; justify-items: center; min-width: 64px; padding: 7px 10px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #aeb9ff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.game-score strong { color: var(--white); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.game-score strong.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); color: var(--gold); } }
.game-intro { margin: 12px 0 18px; max-width: 470px; color: rgba(238, 241, 255, .72); font-size: 14px; line-height: 1.6; }
.game-table { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 20px 16px; border-radius: 999px; background: radial-gradient(ellipse at 50% 30%, rgba(140, 158, 255, .2), transparent 70%), rgba(255, 255, 255, .035); border: 1px solid rgba(140, 158, 255, .28); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .02), inset 0 0 0 9px rgba(140, 158, 255, .1); }
.table-label { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 99px; background: var(--night-2); color: #8c9eff; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; white-space: nowrap; }
.table-cards { display: flex; gap: 10px; --cw: clamp(40px, 4.2vw, 54px); }
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; --cw: clamp(36px, 3.9vw, 50px); }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 8px 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; cursor: pointer; transition: transform .45s var(--spring), background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.seat:hover:not(:disabled) { transform: translateY(-6px); background: rgba(255, 255, 255, .09); border-color: rgba(140, 158, 255, .55); box-shadow: 0 18px 34px -18px rgba(140, 158, 255, .9); }
.seat:disabled { cursor: default; }
.seat.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 195, 92, .35), 0 18px 34px -20px rgba(242, 195, 92, .8); }
.seat-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--white); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--white); font-size: 12px; font-weight: 800; background: var(--avatar, var(--gradient)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.claim { position: relative; padding: 7px 12px; border-radius: 14px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6); transform-origin: 50% 100%; }
.claim::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.claim strong { color: var(--accent); font-size: 15px; }
.js .claim { animation: pop .6s var(--spring) both; animation-delay: calc(.45s + var(--i, 0) * .18s); }
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(8px); } }
.hand { display: flex; justify-content: center; }
.hand .flip + .flip { margin-left: calc(var(--cw) * -.28); }
.hand .flip:nth-child(1) { transform: rotate(-8deg) translateY(3px); }
.hand .flip:nth-child(3) { transform: rotate(8deg) translateY(3px); }
.truth { min-height: 20px; font-size: 12px; font-weight: 700; color: rgba(238, 241, 255, .65); opacity: 0; transform: translateY(-4px); transition: opacity .4s ease .8s, transform .4s ease .8s; }
.is-revealed .truth { opacity: 1; transform: none; }
.stamp { position: absolute; z-index: 3; top: -9px; right: -8px; padding: 4px 9px; border: 2.5px solid currentColor; border-radius: 10px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: rotate(12deg) scale(2.4); background: rgba(11, 16, 34, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.stamp-bluff { color: #ff8d9e; }
.stamp-honest { color: #5cd6a3; font-size: 10px; }
.is-revealed .stamp { animation: stamp .55s var(--spring) forwards; animation-delay: 1s; }
@keyframes stamp { to { opacity: 1; transform: rotate(12deg) scale(1); } }

/* Playing cards: a white face with corner index and a large suit, flipping
   in 3D between a patterned back and the face. */
.flip { display: block; width: var(--cw); aspect-ratio: 5 / 7; perspective: 600px; flex-shrink: 0; }
.js .flip { animation: deal .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes deal { from { opacity: 0; transform: translate(var(--fx, 0), -46px) rotate(-24deg) scale(.5); } }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--spring); transition-delay: var(--flip-delay, 0s); }
.flip.is-down .flip-inner { transform: rotateY(180deg); }
.face, .back { position: absolute; inset: 0; border-radius: 13%; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); }
.face { display: grid; place-items: center; background: linear-gradient(160deg, #fff 0%, #f1f3fb 100%); color: #17192a; border: 1px solid rgba(15, 20, 36, .1); }
.face.red { color: #d0344b; }
.face .rank { position: absolute; top: 7%; left: 10%; font-size: calc(var(--cw) * .27); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.face .rank-b { top: auto; left: auto; bottom: 7%; right: 10%; transform: rotate(180deg); }
.face svg { width: 46%; height: 46%; fill: currentColor; }
.face.is-picture svg { width: 26%; height: 26%; margin-top: 52%; }
.face .letter { position: absolute; top: 18%; line-height: 1; font-size: calc(var(--cw) * .44); font-weight: 900; letter-spacing: -.06em; }
.back { transform: rotateY(180deg); border: 2px solid #fff; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .22) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .13) 0 3px, transparent 3px 8px), linear-gradient(150deg, #4b5ef0, #5a2fd0); }
.back::after { content: "31"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: calc(var(--cw) * .26); font-weight: 900; letter-spacing: -.05em; }
.flip.is-key .face { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(242, 195, 92, .8); animation: key 1.2s ease-in-out 2; }
@keyframes key { 50% { transform: translateY(-5px); } }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.game-status { flex: 1 1 260px; margin: 0; min-height: 44px; color: rgba(238, 241, 255, .85); font-size: 13.5px; line-height: 1.55; }
.game-status strong { color: var(--white); }
.game-status.win strong { color: #5cd6a3; }
.game-status.lose strong { color: #ff8d9e; }
.game-actions { display: flex; gap: 8px; }
.game-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 0; border-radius: 13px; background: var(--white); color: var(--accent); font: 700 13.5px/1 Inter, Arial, sans-serif; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(140, 158, 255, .9); transition: transform .4s var(--spring), background .2s ease; }
.game-button:hover { transform: translateY(-2px); }
.game-button.ghost { background: rgba(255, 255, 255, .08); color: #dfe4ff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); }
.game-button[hidden] { display: none; }
.game.shake { animation: shake .5s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.confetti { position: absolute; z-index: 5; top: 45%; left: 50%; width: 8px; height: 12px; border-radius: 2px; background: var(--c); pointer-events: none; animation: confetti 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); opacity: 0; } }
.game-fallback { display: none; }
html:not(.js) .game-table, html:not(.js) .seats, html:not(.js) .game-score { display: none; }
html:not(.js) .game-fallback { position: relative; display: block; height: 240px; }
.art-card { position: absolute; width: 30%; height: auto; aspect-ratio: 5 / 7; object-fit: contain; top: 6%; left: 35%; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .4)); }
.card-left { transform: translateX(-60%) rotate(-15deg); }
.card-center { transform: translateY(-6%); z-index: 2; }
.card-right { transform: translateX(60%) rotate(15deg); z-index: 3; }

/* ───────────────────────── Marquee ───────────────────────── */
.marquee { overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .45); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(15, 20, 36, .45); }
.marquee svg { width: 22px; height: 22px; fill: var(--accent); flex-shrink: 0; }
.marquee svg:nth-of-type(4n+1), .marquee svg:nth-of-type(4n+3) { fill: var(--rose); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────────────────── Facts ───────────────────────── */
.facts-section { padding-block: 54px 10px; }
.facts { margin: 0; padding: 10px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.facts li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center; border-radius: 18px; transition: background .3s ease, transform .45s var(--spring); }
.facts li:hover { background: rgba(51, 70, 211, .06); transform: translateY(-3px); }
.facts li + li::before { content: ""; position: absolute; left: -5px; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.facts strong { font: 800 30px/1.15 Inter, Arial, sans-serif; letter-spacing: -.04em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); font-size: 12.5px; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding-block: 86px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; max-width: 680px; }
.section-heading > p { color: var(--muted); max-width: 340px; font-size: 14.5px; margin-bottom: 3px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 32px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mode-card:hover { border-color: rgba(51, 70, 211, .35); box-shadow: 0 30px 60px -28px rgba(51, 70, 211, .5); --lift: -6px; }
.card-number { display: inline-grid; place-items: center; width: 50px; height: 50px; color: var(--white); background: var(--gradient); border-radius: 16px; font: 800 18px/1 Inter, Arial, sans-serif; margin-bottom: 30px; box-shadow: 0 12px 24px -12px rgba(51, 70, 211, .9); transition: transform .5s var(--spring); }
.mode-card:hover .card-number { transform: rotate(-8deg) scale(1.08); }
.mode-card:nth-child(2) .card-number { background: linear-gradient(120deg, var(--accent-2), var(--rose)); }
.mode-card:nth-child(3) .card-number { background: linear-gradient(120deg, var(--emerald), #2a9d8f); }
.mode-card h3 { margin-bottom: 12px; font: 800 26px/1.2 Inter, Arial, sans-serif; letter-spacing: -.035em; }
.mode-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 26px; }
.mode-card .text-link { margin-top: auto; }

.quick-rules { display: grid; grid-template-columns: .9fr 1fr; gap: 100px; }
.quick-rules-copy > p:not(.eyebrow) { color: var(--muted); max-width: 470px; }
.value-card { max-width: 460px; margin: 29px 0 26px; padding: 24px 26px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: var(--shadow); }
.value-card .small-label { margin-bottom: 12px; }
.value-card dl { margin: 0; }
.value-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.value-card dl div:last-child { border: 0; }
.value-card dd { margin: 0; font-weight: 800; white-space: nowrap; color: var(--accent); }
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 30px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), var(--rose), transparent); opacity: .35; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 22px; padding: 0 0 34px; }
.step-number { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: 15px; font-weight: 800; box-shadow: var(--shadow); transition: transform .5s var(--spring), background .3s ease, color .3s ease; }
.steps li:hover .step-number { transform: rotate(-8deg) scale(1.1); background: var(--gradient); color: var(--white); }
.steps h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; padding-top: 9px; }
.steps p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 0; }

.variant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.variant-card { position: relative; overflow: hidden; display: flex; gap: 26px; align-items: flex-start; padding: 34px; border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.variant-mystery { background: linear-gradient(140deg, rgba(223, 228, 255, .9), rgba(255, 255, 255, .7)); }
.variant-lying { background: linear-gradient(140deg, rgba(252, 226, 232, .9), rgba(255, 255, 255, .7)); }
.variant-symbol { display: grid; place-items: center; flex-shrink: 0; width: 66px; height: 92px; background: var(--gradient); color: var(--white); border-radius: 12px; font: 800 44px/1 Inter, Arial, sans-serif; transform: rotate(-7deg); box-shadow: 0 18px 30px -14px rgba(51, 70, 211, .8), inset 0 0 0 3px rgba(255, 255, 255, .25); transition: transform .6s var(--spring); }
.variant-card:hover .variant-symbol { transform: rotate(4deg) translateY(-4px) scale(1.05); }
.variant-lying .variant-symbol { background: linear-gradient(140deg, var(--rose), var(--accent-2)); transform: rotate(7deg); box-shadow: 0 18px 30px -14px rgba(216, 108, 128, .9), inset 0 0 0 3px rgba(255, 255, 255, .25); }
.variant-lying:hover .variant-symbol { transform: rotate(-4deg) translateY(-4px) scale(1.05); }
.variant-card .small-label { margin-bottom: 9px; }
.variant-card h3 { font: 800 30px/1.2 Inter, Arial, sans-serif; letter-spacing: -.04em; margin-bottom: 12px; }
.variant-card p:last-child, .variant-card p:not(.small-label) { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.variant-card p:last-child { margin-bottom: 0; }

.faq-layout { display: grid; grid-template-columns: .7fr 1fr; gap: 100px; }
.faq-layout > div > p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; }
.faq-layout > div > p a { color: var(--accent); font-weight: 700; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 1px 2px rgba(15, 20, 36, .04); transition: box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.faq details:hover { border-color: rgba(51, 70, 211, .25); }
.faq details[open] { background: var(--surface); box-shadow: var(--shadow); border-color: rgba(51, 70, 211, .22); }
.faq summary { position: relative; padding: 20px 60px 20px 22px; cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 10px; background: rgba(51, 70, 211, .08); color: var(--accent); font-size: 20px; font-weight: 500; transition: transform .45s var(--spring), background .3s ease, color .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gradient); color: var(--white); }
.faq details p { margin: 0; padding: 0 30px 20px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.faq details[open] p { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

.end-section { padding-block: 30px 90px; }
.end-card { position: relative; overflow: hidden; isolation: isolate; padding: 56px; color: var(--white); background: radial-gradient(80% 120% at 0% 0%, #4b5ef0 0%, transparent 60%), radial-gradient(80% 120% at 100% 100%, #c2577a 0%, transparent 55%), linear-gradient(130deg, var(--accent), var(--accent-2)); border-radius: 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 40px 80px -40px rgba(51, 70, 211, .9); }
.end-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.end-card::after { content: "31"; position: absolute; z-index: -1; right: 4%; bottom: -24%; font-size: 260px; font-weight: 900; letter-spacing: -.08em; color: rgba(255, 255, 255, .08); line-height: 1; }
.end-card .eyebrow { color: #dfe4ff; }
.end-card h2 { margin-bottom: 12px; color: var(--white); }
.end-card p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.end-card .button { flex-shrink: 0; }

.site-footer { padding-block: 30px 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-small { font-size: 20px; gap: 10px; }
.brand-small .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.site-footer p { color: var(--soft); font-size: 12px; margin: 0; }
.site-footer nav { display: flex; gap: 22px; font-size: 13px; }
.site-footer nav a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
.site-footer nav a:hover { color: var(--accent); }

/* ───────────────────────── Rules guide ───────────────────────── */
.guide-main { padding-bottom: 88px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 30px; font-size: 12.5px; color: var(--soft); }
.breadcrumbs a { text-decoration: none; color: var(--accent); }
.guide-header { padding-block: 46px 58px; max-width: 940px; }
.guide-header h1 { font-size: clamp(50px, 6vw, 82px); }
.guide-header .lead { max-width: 770px; }
.guide-intro-note { color: var(--soft); font-size: 13px; max-width: 730px; margin-bottom: 0; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 76px; align-items: start; }
.guide-toc { position: sticky; top: 110px; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.guide-toc .small-label { margin-bottom: 12px; }
.guide-toc ol { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin-bottom: 2px; }
.guide-toc a:not(.button) { display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 13.5px; color: var(--muted); transition: background .2s ease, color .2s ease; }
.guide-toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.guide-toc li a:hover { color: var(--ink); background: rgba(51, 70, 211, .07); }
.guide-toc .button { font-size: 13px; gap: 12px; min-height: 46px; width: 100%; }
.prose { max-width: 860px; min-width: 0; }
.prose section { padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.prose section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.prose .eyebrow { margin-bottom: 13px; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); }
.prose h3 { margin-top: 30px; margin-bottom: 12px; font-weight: 800; font-size: 20px; }
.prose p, .prose li { color: var(--muted); line-height: 1.9; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul { margin: 20px 0; padding-left: 24px; }
.prose li { padding-left: 5px; margin-bottom: 13px; }
.prose li::marker { color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 27px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
caption { padding: 17px 22px; text-align: left; color: var(--soft); font-size: 12px; }
th, td { padding: 13px 22px; }
thead { background: #eef0fb; }
thead th { font-size: 12px; color: var(--accent); letter-spacing: .04em; }
tbody th { font-weight: 600; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(51, 70, 211, .04); }
tbody tr + tr { border-top: 1px solid var(--line); }
td { white-space: nowrap; }
.example-card, .rule-note { background: linear-gradient(140deg, rgba(223, 228, 255, .75), rgba(255, 255, 255, .7)); border: 1px solid var(--glass-line); padding: 24px 28px; border-radius: 20px; margin: 25px 0; box-shadow: var(--shadow); }
.example-card .small-label { margin-bottom: 12px; }
.example-card p:last-child, .rule-note p:last-child { margin-bottom: 0; }
.rule-note h3 { margin-top: 0; }
.guide-final .button { margin-top: 8px; }
.error-page { min-height: 65vh; padding-block: 60px 110px; max-width: 900px; text-align: center; }
.error-number { font: 900 clamp(110px, 16vw, 190px)/1 Inter, Arial, sans-serif; letter-spacing: -.08em; margin-bottom: 20px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.error-page h1 { font-size: clamp(42px, 5vw, 64px); }
.error-page .lead { max-width: 590px; margin-inline: auto; }
.error-page .actions { justify-content: center; margin-top: 30px; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .hero-copy h1 { max-width: 760px; }
  .hero-game { max-width: 680px; }
  .section { padding-block: 66px; }
  .mode-card { padding: 26px; }
  .quick-rules, .faq-layout { gap: 56px; }
  .guide-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 780px) {
  .nav-optional { display: none; }
  .hero { padding-block: 34px 50px; }
  .hero-copy h1 { font-size: clamp(42px, 8vw, 60px); }
  .hero-copy h1 span { font-size: clamp(52px, 10vw, 72px); }
  .hero-copy .lead { font-size: 17px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3)::before { display: none; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { max-width: 650px; margin: 16px 0 0; }
  .mode-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-number { margin-bottom: 20px; }
  .quick-rules, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .quick-rules-copy > p:not(.eyebrow), .value-card { max-width: 100%; }
  .variant-grid { grid-template-columns: 1fr; gap: 14px; }
  .variant-card { padding: 28px; }
  .end-card { padding: 36px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
  .guide-header { padding-block: 34px 40px; }
  .guide-layout { display: block; }
  .guide-toc { position: static; margin-bottom: 43px; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .prose section { padding-bottom: 38px; margin-bottom: 38px; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { top: 8px; margin-top: 8px; min-height: 60px; padding: 8px 8px 8px 12px; gap: 10px; border-radius: 18px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
  .header-nav { gap: 2px; font-size: 12.5px; }
  .header-nav > a:not(.button) { padding: 8px 9px; }
  .header-nav .button { min-height: 40px; padding: 9px 12px; font-size: 12.5px; gap: 7px; }
  .hero { padding-top: 26px; }
  .hero-copy h1 { font-size: 40px; letter-spacing: -.05em; }
  .hero-copy h1 span { font-size: 50px; }
  .eyebrow-pill { font-size: 9px; letter-spacing: .12em; padding: 6px 12px 6px 10px; }
  .lead, .hero-copy .lead { font-size: 16px; }
  .hero .actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero .button { width: 100%; }
  .game { padding: 18px 14px; border-radius: 26px; }
  .game-head { flex-direction: column; gap: 10px; }
  .game-score span { min-width: 58px; }
  .game-table { padding: 16px 12px 12px; }
  .table-cards { gap: 7px; --cw: 40px; }
  .seats { gap: 7px; --cw: 30px; }
  .seat { padding: 10px 4px 12px; gap: 8px; border-radius: 18px; }
  .seat-who { font-size: 12px; gap: 6px; }
  .avatar { width: 24px; height: 24px; font-size: 11px; }
  .claim { padding: 6px 9px; font-size: 11.5px; }
  .claim strong { font-size: 13px; }
  .stamp { top: -13px; right: -5px; padding: 2px 7px; font-size: 10px; }
  .stamp-honest { font-size: 9px; }
  .game-actions { width: 100%; }
  .game-actions .game-button { flex: 1; justify-content: center; }
  .marquee { padding-block: 16px; }
  .facts strong { font-size: 24px; }
  .facts span { font-size: 11.5px; }
  .section { padding-block: 50px; }
  .steps li { gap: 16px; }
  .steps::before { left: 19px; }
  .step-number { width: 40px; height: 40px; }
  .steps h3 { font-size: 18px; }
  .variant-card { padding: 24px 20px; gap: 18px; }
  .variant-symbol { width: 50px; height: 70px; font-size: 34px; }
  .variant-card h3 { font-size: 26px; }
  .end-section { padding-bottom: 56px; }
  .end-card { align-items: flex-start; flex-direction: column; gap: 26px; padding: 30px 24px; }
  .end-card h2 { font-size: 34px; }
  .site-footer nav { gap: 16px; flex-wrap: wrap; }
  .guide-header h1 { font-size: 50px; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .prose h2 { font-size: 31px; }
  .prose p, .prose li { font-size: 15px; }
  th, td { padding: 12px 14px; font-size: 12px; }
  caption { padding: 14px; }
  .example-card, .rule-note { padding: 22px; }
  .error-page { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
