/* BigJoker — bigjokergame.com
   The game's own look: a violet lounge at night, gold for what matters,
   green for what starts a game. One page, drawn to be scrolled. */

:root {
  --deep: #0b0520;
  --night: #170b3a;
  --panel: #1f1150;
  --violet: #7c4dff;
  --lilac: #b7a6f2;
  --mist: #d9d0f7;
  --gold: #ffc53d;
  --gold-hi: #ffe27a;
  --gold-lo: #f59e0b;
  --green: #22b14c;
  --felt: #0f7a45;
  --line: rgba(156, 124, 255, 0.28);
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Set by the script: the pointer over the hero (-1..1) and how far the
     hero has been scrolled away (0..1). */
  --px: 0;
  --py: 0;
  --sy: 0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--deep);
  color: #fff;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip; /* (not "hidden": the showcase sticks to the screen as it is scrolled) */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--gold); color: #2b1200;
  font: 800 15px 'Nunito', sans-serif; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-solid {
  background: rgba(13, 6, 36, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__brand {
  font: 900 23px/1 'Fraunces', serif; letter-spacing: -0.01em; text-decoration: none;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s;
}
.nav.is-solid .nav__brand { opacity: 1; transform: none; }
.nav__brand b { font-weight: 900; color: var(--gold); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font: 800 15px 'Nunito', sans-serif; text-decoration: none; color: var(--mist);
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }
.lang {
  display: flex; padding: 3px; border-radius: 99px;
  background: rgba(20, 8, 56, 0.6); border: 1px solid var(--line);
}
.lang a {
  padding: 5px 11px; border-radius: 99px; text-decoration: none;
  font: 800 12.5px 'Nunito', sans-serif; letter-spacing: 0.04em; color: var(--lilac);
}
.lang a[aria-current='true'] { background: linear-gradient(#fff36a, #fcae14); color: #2b1200; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 99px; text-decoration: none; white-space: nowrap;
  font: 900 15px 'Nunito', sans-serif; color: #fff;
  background: linear-gradient(#3fd06a, #1c9a41);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #0f6a2c, 0 10px 24px rgba(34, 177, 76, 0.35);
  transition: transform 0.2s var(--spring), filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: grid; align-items: center; overflow: hidden;
  padding: 96px 0 84px;
}
.hero__bg {
  position: absolute; inset: -8%; z-index: -3;
  background: var(--night) center / cover no-repeat;
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px + var(--sy) * 90px), 0) scale(calc(1.04 + var(--sy) * 0.08));
  will-change: transform;
}
.hero::before {
  /* The room at night: darker at the edges, and into the page below. */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(11, 5, 32, 0) 30%, rgba(11, 5, 32, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 5, 32, 0.5) 0%, rgba(11, 5, 32, 0) 22%, rgba(11, 5, 32, 0) 62%, var(--deep) 100%);
}
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__rays {
  position: absolute; z-index: -1; left: 27%; top: 50%; width: 120vmin; aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0.1) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 72%);
  mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 72%);
  animation: spin 90s linear infinite;
  opacity: calc(1 - var(--sy) * 1.4);
}
@keyframes spin { to { rotate: 360deg; } }

.hero__in {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(16px, 4vw, 64px);
}

/* The fan: the five cards of a royal run in hearts, and the joker over
   them, as on the game's own first screen. */
.fan {
  --cw: clamp(104px, 13.2vw, 196px);
  position: relative; height: calc(var(--cw) * 2.5); perspective: 1200px;
  transform: translate3d(0, calc(var(--sy) * -70px), 0) rotate(calc(var(--sy) * -5deg));
  will-change: transform;
}
.fan__slot {
  position: absolute; left: 50%; bottom: 22%; width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 150%;
  transform: rotate(calc(var(--r) * (1 + var(--sy) * 0.9))) translateY(calc(var(--sy) * var(--out, 0px)));
  animation: fan-in 1.1s var(--spring) both;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}
@keyframes fan-in {
  from { transform: rotate(0deg) translateY(46vh); opacity: 0; }
  60% { opacity: 1; }
}
.fan__float {
  transform: translate3d(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 0.7px), 0)
    rotateY(calc(var(--px) * 7deg)) rotateX(calc(var(--py) * -6deg));
  transition: transform 0.5s var(--ease);
}
.fan__float img {
  width: 100%; border-radius: 9% / 6.4%;
  filter: drop-shadow(0 18px 22px rgba(4, 0, 20, 0.55));
  animation: bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
@keyframes bob { 50% { transform: translateY(-9px); } }
.fan__slot--joker {
  bottom: 7%; width: calc(var(--cw) * 1.06); margin-left: calc(var(--cw) * -0.53);
  transform-origin: 50% 100%; z-index: 2;
}
.fan__slot--joker img { filter: drop-shadow(0 26px 30px rgba(4, 0, 20, 0.7)); }

.hero__copy { position: relative; transform: translate3d(0, calc(var(--sy) * -46px), 0); opacity: calc(1 - var(--sy) * 1.5); }
.hero__copy::before {
  /* The lamp over the name. */
  content: ''; position: absolute; z-index: -1; left: -12%; right: -8%; top: -40%; height: 110%;
  background: radial-gradient(closest-side, rgba(124, 77, 255, 0.42), rgba(124, 77, 255, 0) 70%); pointer-events: none;
}

/* The name, lettered as in the game. */
.logo {
  position: relative; display: inline-block; margin: 0;
  font: 900 clamp(54px, 9.4vw, 148px) / 0.9 'Fraunces', serif; letter-spacing: -0.012em; white-space: nowrap;
  animation: rise 0.9s var(--ease) 0.15s both;
}
.logo__big, .logo__joker {
  /* A light passes through the letters now and then (the first layer),
     over their own colour (the second). */
  background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out 2.2s infinite;
}
.logo__big {
  background-image: linear-gradient(105deg, transparent 44%, #fff 50%, transparent 56%), linear-gradient(180deg, #fff 18%, #cdbcff 100%);
  filter: drop-shadow(0 0.045em 0 #3b1f9a) drop-shadow(0 0.12em 0.16em rgba(4, 0, 20, 0.6));
}
.logo__joker {
  position: relative; animation-delay: 2.45s;
  background-image: linear-gradient(105deg, transparent 44%, #fffbe6 50%, transparent 56%), linear-gradient(180deg, var(--gold-hi) 8%, var(--gold) 46%, var(--gold-lo) 100%);
  filter: drop-shadow(0 0.045em 0 #a04a05) drop-shadow(0 0.12em 0.16em rgba(4, 0, 20, 0.6));
}
@keyframes sheen { 0%, 70% { background-position: 150% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
/* A longer name (the Albanian one, three words) is set smaller, to stand
   as wide as the other; its gold word comes first, so the light does too. */
.logo--long { font-size: clamp(36px, 6.7vw, 106px); }
.logo--long .logo__joker { animation-delay: 2.2s; }
.logo--long .logo__big { animation-delay: 2.45s; }
.logo__o { position: relative; display: inline-block; }
.logo__crown {
  position: absolute; left: 50%; bottom: 79%; width: 0.52em; translate: -50% 0;
  filter: drop-shadow(0 0.02em 0 #a04a05);
  animation: crown 1s var(--spring) 1s both;
}
@keyframes crown { from { translate: -50% -1.2em; opacity: 0; rotate: -18deg; } }

.hero__tag {
  margin-top: 0.5em;
  font: 900 clamp(22px, 3vw, 40px) / 1.15 'Nunito', sans-serif; letter-spacing: -0.01em;
  animation: rise 0.9s var(--ease) 0.3s both;
}
.hero__tag em { font-style: normal; color: var(--gold); }
.hero__sub {
  margin-top: 14px; max-width: 34em; color: var(--mist); font-size: clamp(16px, 1.35vw, 19px);
  animation: rise 0.9s var(--ease) 0.42s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; animation: rise 0.9s var(--ease) 0.54s both; }
.store {
  position: relative; display: block; height: 56px; border-radius: 11px;
  transition: transform 0.25s var(--spring), filter 0.25s;
}
.store img { height: 100%; width: auto; }
a.store:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 12px 22px rgba(255, 197, 61, 0.3)); }
.store--soon img { opacity: 0.86; }
.store__soon {
  position: absolute; right: -10px; top: -15px; padding: 2px 9px; border-radius: 99px;
  background: linear-gradient(#fff36a, #fcae14); color: #2b1200;
  font: 900 10.5px/1.5 'Nunito', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.hero__note {
  margin-top: 16px; color: var(--lilac); font: 700 14px 'Nunito', sans-serif; letter-spacing: 0.02em;
  animation: rise 0.9s var(--ease) 0.64s both;
}

.hero__cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(217, 208, 247, 0.55);
  opacity: calc(1 - var(--sy) * 4);
}
.hero__cue::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- facts */

.facts {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -46px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(59, 33, 131, 0.82), rgba(22, 11, 56, 0.92));
  border: 1px solid rgba(255, 197, 61, 0.38);
  box-shadow: 0 30px 70px rgba(4, 0, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.fact { padding: 26px 18px 24px; text-align: center; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b {
  display: block; font: 900 clamp(34px, 4.4vw, 58px) / 1 'Fraunces', serif; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact span { display: block; margin-top: 8px; color: var(--mist); font: 800 14.5px/1.3 'Nunito', sans-serif; }

/* The four suits, huge and faint, drifting behind the sections. */
.suit {
  position: absolute; z-index: -1; font: 400 clamp(220px, 30vw, 460px) / 1 Georgia, serif; color: rgba(124, 77, 255, 0.09);
  transform: translate3d(0, calc(var(--par, 0) * 1px), 0) rotate(var(--turn, 0deg)); pointer-events: none; user-select: none;
}
.suit--a { left: -3%; top: 8%; --turn: -14deg; }
.suit--b { right: -2%; bottom: 2%; --turn: 12deg; color: rgba(255, 92, 122, 0.07); }
.suit--c { right: 2%; top: 4%; --turn: 10deg; color: rgba(34, 177, 76, 0.08); }
.suit--d { left: 1%; bottom: -6%; --turn: -9deg; color: rgba(255, 197, 61, 0.06); }

/* ------------------------------------------------------------- sections */

.section { position: relative; isolation: isolate; padding: clamp(54px, 7.2vw, 104px) 0; overflow-x: clip; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 13px 'Nunito', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: '♠'; font-size: 15px; letter-spacing: 0; }
.title {
  margin-top: 12px; max-width: 16em;
  font: 900 clamp(32px, 4.6vw, 62px) / 1.04 'Fraunces', serif; letter-spacing: -0.02em;
}
.title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 16px; max-width: 36em; color: var(--mist); font-size: clamp(17px, 1.4vw, 20px); }
.center { text-align: center; }
.center .title, .center .lead { margin-inline: auto; }

/* What comes into view comes in. */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- modes */

.modes {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(124, 77, 255, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 60%, rgba(255, 197, 61, 0.08), transparent 70%);
}
.modes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 88px; }
.mode {
  position: relative; padding: 104px 28px 34px; border-radius: 30px; text-align: center;
  background: linear-gradient(180deg, rgba(59, 33, 131, 0.72), rgba(22, 11, 56, 0.86));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(4, 0, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s;
}
.mode::after {
  /* A fine line of gold inside the edge, as on the game's panels. */
  content: ''; position: absolute; inset: 6px; border-radius: 25px; pointer-events: none;
  border: 1px solid rgba(255, 197, 61, 0.16);
}
.mode:hover {
  transform: perspective(900px) translateY(-10px) rotateX(calc(var(--ty, 0) * -7deg)) rotateY(calc(var(--tx, 0) * 9deg));
  border-color: rgba(255, 197, 61, 0.6); box-shadow: 0 40px 70px rgba(4, 0, 20, 0.6), 0 0 60px rgba(255, 197, 61, 0.12);
}
.mode::before {
  /* Light where the pointer is. */
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: radial-gradient(260px circle at calc(50% + var(--tx, 0) * 50%) calc(50% + var(--ty, 0) * 50%), rgba(255, 226, 122, 0.16), transparent 70%);
}
.mode:hover::before { opacity: 1; }
.mode__disc {
  position: absolute; left: 50%; top: -78px; width: 170px; margin-left: -85px;
  filter: drop-shadow(0 18px 24px rgba(4, 0, 20, 0.6));
  transition: transform 0.6s var(--spring);
}
.mode:hover .mode__disc { transform: translateY(-8px) scale(1.06) rotate(-3deg); }
.mode h3 { font: 900 27px/1.15 'Nunito', sans-serif; }
.mode p { margin-top: 10px; color: var(--mist); font-size: 16.5px; }

/* ------------------------------------------------------------- showcase */

.show { padding: 0; background: radial-gradient(70% 40% at 30% 30%, rgba(124, 77, 255, 0.16), transparent 70%); }
.show__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 72px); }
.show__stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; perspective: 1600px; }
.show__stage .title { font-size: clamp(30px, 3.7vw, 52px); margin-bottom: clamp(20px, 3.4vh, 40px); }
.phone {
  position: relative; width: 100%; aspect-ratio: 2622 / 1206; padding: 1.15%;
  border-radius: 5.2% / 11.2%;
  background: linear-gradient(145deg, #4a4270, #15102a 40%, #05030c);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 110px rgba(124, 77, 255, 0.22);
  transform: rotateY(calc(var(--tilt, 0) * 9deg)) rotateX(calc(var(--tilt, 0) * -3deg));
  transition: transform 0.6s var(--ease);
}
.phone__screen { position: relative; height: 100%; border-radius: 4.2% / 9.2%; overflow: hidden; background: #050310; }
.phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}
.phone__screen img.is-on { opacity: 1; transform: none; }
.phone__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.05) 100%);
}
.show__steps { padding: 8svh 0; }
.step { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s; }
.step.is-on { opacity: 1; }
.step__n {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  font: 900 23px 'Nunito', sans-serif; color: #2b1200;
  background: linear-gradient(#fff36a, #fcae14); box-shadow: 0 0 0 5px rgba(255, 197, 61, 0.16), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.step h3 { margin-top: 20px; font: 900 clamp(26px, 3vw, 40px) / 1.1 'Fraunces', serif; letter-spacing: -0.015em; }
.step p { margin-top: 12px; color: var(--mist); font-size: 18px; max-width: 24em; }

/* ------------------------------------------------------------------ how */

.how { background: linear-gradient(180deg, transparent, rgba(15, 122, 69, 0.1) 40%, transparent); }
.how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 44px; }
.rules { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rule {
  position: relative; padding: 20px 22px 20px 78px; border-radius: 22px;
  background: rgba(25, 12, 64, 0.62); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.rule::before {
  counter-increment: rule; content: counter(rule);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font: 900 18px 'Nunito', sans-serif; color: var(--gold); border: 2px solid rgba(255, 197, 61, 0.6);
}
.rule:hover { transform: translateX(6px); border-color: rgba(255, 197, 61, 0.55); background: rgba(40, 20, 96, 0.72); }
.rule h3 { font: 900 20px/1.2 'Nunito', sans-serif; }
.rule p { margin-top: 4px; color: var(--mist); font-size: 16px; }

/* The game's table: a wooden rim, the felt, cards laid in groups. */
.table {
  position: relative; padding: 16px; border-radius: 44px;
  background: linear-gradient(160deg, #8a5a2e, #4a2c14 55%, #2c190a);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 220, 160, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  transform: perspective(1400px) rotateX(calc(6deg - var(--lift, 0) * 6deg));
  transition: transform 1.2s var(--ease);
}
.table__felt {
  position: relative; border-radius: 30px; padding: clamp(18px, 3vw, 34px) clamp(14px, 2.4vw, 28px) clamp(14px, 2vw, 22px);
  background: radial-gradient(90% 80% at 50% 35%, #27a96d, #0f6b43 62%, #0a4a30);
  box-shadow: inset 0 0 0 2px rgba(255, 220, 140, 0.45), inset 0 0 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.table__name {
  position: absolute; inset: auto 0 34%; text-align: center; pointer-events: none;
  font: 900 clamp(34px, 6vw, 76px) / 1 'Fraunces', serif; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.07);
}
.melds { display: flex; justify-content: center; gap: clamp(12px, 2.4vw, 30px); min-height: calc(var(--mw) * 1.4 + 26px); --mw: clamp(50px, 6.7vw, 96px); }
.meld { position: relative; display: flex; padding: 6px; border-radius: 12px; }
.meld::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0); transition: border-color 0.5s 1.1s, background 0.5s 1.1s;
}
.table.is-live .meld::before { border-color: rgba(140, 255, 170, 0.55); background: rgba(140, 255, 170, 0.07); }
.meld img {
  width: var(--mw); border-radius: 9% / 6.4%; margin-left: calc(var(--mw) * -0.4);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translate3d(0, 150%, 0) rotate(14deg) scale(0.9);
}
.meld img:first-child { margin-left: 0; }
.table.is-live .meld img {
  opacity: 1; transform: none;
  transition: transform 0.75s var(--spring), opacity 0.3s;
  transition-delay: calc(var(--k) * 110ms);
}
.meld__pts {
  position: absolute; left: 50%; top: 100%; translate: -50% 4px; padding: 1px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.45); color: #9cffb5; font: 900 13px 'Nunito', sans-serif;
  opacity: 0; transition: opacity 0.4s calc(var(--k) * 110ms + 0.5s);
}
.table.is-live .meld__pts { opacity: 1; }
.rack {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px;
}
.rack__box {
  display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 18px; border-radius: 18px;
  background: linear-gradient(#1d7a4b, #0d4a2d); box-shadow: inset 0 0 0 2px rgba(255, 220, 140, 0.7), 0 8px 18px rgba(0, 0, 0, 0.4);
}
.rack__label { font: 900 13px 'Nunito', sans-serif; letter-spacing: 0.14em; color: #e8ffd9; }
.rack__num {
  min-width: 116px; padding: 5px 14px; border-radius: 11px; text-align: center;
  background: #06281a; box-shadow: inset 0 0 0 1.5px rgba(79, 165, 108, 0.8);
  font: 800 23px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; color: #fff; transition: color 0.3s;
}
.rack__num.is-open { color: #7cffa0; }
.rack__go {
  padding: 13px 26px; border-radius: 99px; font: 900 18px 'Nunito', sans-serif; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(#3d6b52, #24483a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 0 #173225;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.rack__go.is-open {
  color: #fff; background: linear-gradient(#49dc76, #1c9a41);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 0 #0f6a2c, 0 0 34px rgba(73, 220, 118, 0.6);
  animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat { 50% { transform: scale(1.06); } }

/* ---------------------------------------------------------------- names */
/* What the game is called elsewhere: a short band between two sections. */

.names { padding-block: clamp(20px, 3vw, 44px); }
.names .title { font-size: clamp(28px, 3.6vw, 46px); }
.names .lead { max-width: 44em; }
.names__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.names__list li {
  padding: 8px 18px; border-radius: 99px; font: 800 15px 'Nunito', sans-serif; color: var(--gold-hi);
  background: rgba(255, 197, 61, 0.08); border: 1px solid rgba(255, 197, 61, 0.42);
}

/* ---------------------------------------------------------------- rooms */

.rooms { overflow: hidden; }
.belt { display: flex; gap: 16px; width: max-content; padding: 8px 0; animation: belt 60s linear infinite; }
.belt--back { animation-direction: reverse; animation-duration: 72s; animation-delay: -17s; }
.rooms:hover .belt { animation-play-state: paused; }
@keyframes belt { to { transform: translate3d(-50%, 0, 0); } }
.belts { margin-top: 42px; display: grid; gap: 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.room {
  display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(59, 33, 131, 0.8), rgba(22, 11, 56, 0.9)); border: 1px solid var(--line);
}
.room__card {
  width: 46px; height: 64px; display: grid; place-items: center; border-radius: 8px; background: #fff;
  font: 800 22px/1 'Manrope', sans-serif; color: #d31f34; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); rotate: -5deg;
}
.room__card small { display: block; font-size: 15px; line-height: 1; }
.room--black .room__card { color: #16131f; }
.room--joker .room__card { background: linear-gradient(160deg, #fff, #ffe9a6); font-size: 13px; letter-spacing: 0.02em; color: #7a1fa8; }
.room b { display: block; font: 900 19px/1.1 'Nunito', sans-serif; white-space: nowrap; }
.room span { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--gold); font: 800 14.5px 'Nunito', sans-serif; }
.room span::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f5a81a 60%, #b86a00); box-shadow: 0 0 0 1.5px #8a4b00; }

/* ----------------------------------------------------------------- more */

.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.tile {
  padding: 28px 26px; border-radius: 26px; background: rgba(25, 12, 64, 0.62); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-6px); border-color: rgba(255, 197, 61, 0.5); }
.tile__ico {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px;
  background: linear-gradient(160deg, rgba(255, 226, 122, 0.22), rgba(245, 158, 11, 0.1)); border: 1px solid rgba(255, 197, 61, 0.45);
  color: var(--gold);
}
.tile__ico svg { width: 28px; height: 28px; }
.tile h3 { margin-top: 18px; font: 900 21px/1.2 'Nunito', sans-serif; }
.tile p { margin-top: 6px; color: var(--mist); font-size: 16px; }

/* ------------------------------------------------------------------ faq */

.faq__list { max-width: 840px; margin: 38px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: rgba(25, 12, 64, 0.62); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(255, 197, 61, 0.5); background: rgba(40, 20, 96, 0.7); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font: 900 19px/1.3 'Nunito', sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  font: 900 22px/1 'Nunito', sans-serif; color: var(--gold); border: 2px solid rgba(255, 197, 61, 0.5); transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 22px; color: var(--mist); }

/* ------------------------------------------------------------------ cta */

.cta { padding-bottom: clamp(54px, 7vw, 92px); }
.cta__box {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 44px; text-align: center;
  padding: clamp(56px, 8vw, 104px) 28px; border: 1px solid rgba(255, 197, 61, 0.45);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), inset 0 0 0 6px rgba(11, 5, 32, 0.5), inset 0 0 0 7px rgba(255, 197, 61, 0.16);
}
.cta__bg { position: absolute; inset: -12%; z-index: -2; background: var(--night) center / cover; transform: translate3d(0, calc(var(--par, 0) * 60px), 0) scale(1.08); }
.cta__box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 50% 40%, rgba(23, 11, 58, 0.5), rgba(11, 5, 32, 0.92)); }
.cta__icon {
  width: 128px; margin: 0 auto; border-radius: 29px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 70px rgba(255, 197, 61, 0.35);
  animation: bob 6s ease-in-out infinite;
}
.cta .title { margin: 30px auto 0; }
.cta .lead { margin-inline: auto; }
.cta .stores { justify-content: center; animation: none; margin-top: 34px; }
.cta__card { position: absolute; width: clamp(72px, 10vw, 150px); border-radius: 9% / 6.4%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.6)); z-index: -1; }
.cta__card--a { left: 4%; top: 12%; rotate: -18deg; transform: translate3d(0, calc(var(--par, 0) * -90px), 0); }
.cta__card--b { right: 5%; top: 20%; rotate: 14deg; transform: translate3d(0, calc(var(--par, 0) * -140px), 0); }
.cta__card--c { left: 12%; bottom: -6%; rotate: 9deg; transform: translate3d(0, calc(var(--par, 0) * -60px), 0); }
.cta__card--d { right: 13%; bottom: -8%; rotate: -11deg; transform: translate3d(0, calc(var(--par, 0) * -110px), 0); }

/* ------------------------------------------------------------------ get */
/* Where "Get the game" leads: a phone is sent on to its store before this
   is even drawn; what is seen here is for computers, and for the moment
   before a store opens. */

.get__main { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 40px 16px; overflow: hidden; }
.get__main .hero__bg { transform: scale(1.06); }
.get__main::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 80% at 50% 40%, rgba(23, 11, 58, 0.55), rgba(11, 5, 32, 0.95)); }
.get__box {
  width: min(560px, 100%); padding: clamp(34px, 6vw, 56px) clamp(20px, 5vw, 48px); border-radius: 40px; text-align: center;
  background: linear-gradient(180deg, rgba(59, 33, 131, 0.86), rgba(22, 11, 56, 0.94));
  border: 1px solid rgba(255, 197, 61, 0.45);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 6px rgba(11, 5, 32, 0.45), inset 0 0 0 7px rgba(255, 197, 61, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.get__box .cta__icon { width: 108px; border-radius: 25px; }
.get__box .title { margin: 26px auto 0; font-size: clamp(34px, 6vw, 52px); }
.get__box .lead { margin: 12px auto 0; }
.get__qr { margin-top: 26px; }
.get__code { width: 190px; margin: 0 auto; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 197, 61, 0.5); }
.get__code svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.get__qr p { margin-top: 14px; color: var(--lilac); font: 800 14.5px 'Nunito', sans-serif; }
.get__stuck { margin-top: 22px; color: var(--lilac); font: 800 14.5px 'Nunito', sans-serif; }
.get__box .stores { justify-content: center; animation: none; margin-top: 26px; }
.get__back { margin-top: 30px; font: 800 15px 'Nunito', sans-serif; }
.get__back a { color: var(--mist); text-decoration: none; }
.get__back a:hover { color: var(--gold); }
/* Each kind of device sees its own lines (with no script: everything). */
.is-ios .get__for:not(.get__for--ios), .is-android .get__for:not(.get__for--android), .is-desktop .get__for:not(.get__for--desktop) { display: none; }

/* --------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--lilac); font-size: 15px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot__brand { font: 900 26px/1 'Fraunces', serif; color: #fff; text-decoration: none; }
.foot__brand b { color: var(--gold); }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto; }
.foot__links a { text-decoration: none; font: 800 15px 'Nunito', sans-serif; color: var(--mist); }
.foot__links a:hover { color: var(--gold); }
.foot__note { margin-top: 26px; max-width: 62em; font-size: 14px; line-height: 1.6; }
.foot__made { margin-top: 14px; font: 700 14px 'Nunito', sans-serif; }
.foot__made a { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------- narrower */

@media (max-width: 980px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 84px; }
  .hero__cue { display: none; }
  .hero__in { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero__rays { left: 50%; top: 30%; }
  .fan { --cw: clamp(92px, 25vw, 150px); height: calc(var(--cw) * 2.2); }
  .hero__sub { margin-inline: auto; }
  .stores { justify-content: center; }
  .modes__grid { grid-template-columns: 1fr; gap: 100px; margin-top: 104px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .show { padding-top: 72px; }
  .show__grid { grid-template-columns: 1fr; gap: 0; }
  .show__stage { top: 60px; height: auto; padding: 14px 0 22px; z-index: 2; text-align: center; background: linear-gradient(180deg, var(--deep) 88%, rgba(11, 5, 32, 0)); }
  .show__stage .title { margin-inline: auto; margin-bottom: 16px; }
  .show__steps { padding: 3svh 0 7svh; }
  .step { min-height: 44svh; text-align: center; align-items: center; }
  .how__grid { grid-template-columns: 1fr; }
  .more__grid { grid-template-columns: 1fr 1fr; }
  .foot__links { margin-left: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .nav__in { gap: 10px; height: 60px; }
  .nav__brand { font-size: 20px; }
  .nav .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .lang a { padding: 5px 9px; }
  .cta__card--c, .cta__card--d { display: none; }
  .cta__card--a { left: -4%; top: 3%; }
  .cta__card--b { right: -4%; top: 6%; }
  .cta__box { padding-top: 76px; }
  .store { height: 50px; }
  .more__grid { grid-template-columns: 1fr; }
  .rack { flex-wrap: wrap; margin-top: 38px; }
  .table { padding: 11px; border-radius: 32px; }
  .table__felt { border-radius: 23px; }
  .faq summary { font-size: 17px; padding: 17px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .cta__box { border-radius: 30px; }
}

/* Development only (see site.js): the page at rest, for pictures. */
.is-still *, .is-still *::before, .is-still *::after { animation: none !important; transition: none !important; }
.is-still .reveal { opacity: 1; transform: none; }

/* For whoever asked their device for less motion: everything is there,
   nothing flies. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .meld img { opacity: 1; transform: none; }
  .meld__pts { opacity: 1; }
  .belt { flex-wrap: wrap; width: auto; justify-content: center; }
}
