:root {
  --paper: #FFF3D1;
  --ink: #151515;
  --red: #FF4B3E;
  --blue: #2E6BFF;
  --yellow: #FFCB2E;
  --green: #2BD46B;
  --pink: #FF9BCB;
  --white: #FFFFFF;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --display: "Dela Gothic One", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 17px/1 var(--body); padding: 16px 24px; border: var(--line); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-white { background: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn[disabled] { cursor: progress; transform: none; box-shadow: var(--shadow); opacity: .85; }

/* Highlight stickers inside headings */
.hl { display: inline-block; border: var(--line); border-radius: 14px; padding: 0 .16em .06em; margin: .04em 0; box-shadow: 5px 5px 0 var(--ink); }
.hl-y { background: var(--yellow); color: var(--ink); transform: rotate(-2.5deg); }
.hl-b { background: var(--blue); color: var(--white); transform: rotate(1.5deg); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; }
.logo img { width: 44px; height: 44px; border: var(--line); border-radius: 12px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 700; }
.nav-links a:hover { text-decoration: underline 3px; text-underline-offset: 6px; }
.lang { display: flex; border: var(--line); border-radius: 10px; overflow: hidden; }
.lang-btn { background: none; border: 0; font-weight: 800; padding: 6px 10px; cursor: pointer; }
.lang-btn.active { background: var(--ink); color: var(--paper); }
.nav-cta { padding: 11px 18px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.sound-btn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border: var(--line); border-radius: 10px; cursor: pointer; padding: 0; transition: transform .12s; }
.sound-btn:hover { transform: rotate(-6deg); }
.sound-btn .ico-off, .sound-btn.off .ico-on { display: none; }
.sound-btn.off .ico-off { display: block; }
.sound-btn.off { background: var(--paper); color: #8A8170; }

/* Hero */
.hero { padding: 64px 0 76px; }
.hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6.4vw, 92px); line-height: .98; margin: 0 0 26px; letter-spacing: -.01em; }
.hero-lead { font-size: 20px; max-width: 520px; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.shot { position: relative; }
.frame { border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); transform: rotate(1.5deg); background: var(--ink); }
.frame img { aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
.sticker { position: absolute; border: var(--line); box-shadow: var(--shadow); font-weight: 800; }
.st-visits { top: -26px; left: -30px; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); display: grid; place-content: center; text-align: center; transform: rotate(-10deg); line-height: 1.05; padding: 0 14px; }
.st-visits b { font-family: var(--display); font-weight: 400; font-size: 34px; display: block; }
.st-hit { bottom: 26px; right: -22px; background: var(--white); border-radius: 999px; padding: 12px 20px; display: flex; align-items: center; gap: 10px; transform: rotate(3deg); max-width: 80%; }
.star { color: var(--red); font-size: 20px; line-height: 1; }

/* Marquee */
.marquee { background: var(--red); color: var(--white); border-top: var(--line); border-bottom: var(--line); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; }
.marquee-track { display: flex; width: max-content; animation: run 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: 26px; padding: 14px 0; white-space: nowrap; text-transform: uppercase; }
.marquee span::after { content: "✦"; margin: 0 26px; color: var(--yellow); }
@keyframes run { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section-games { padding-top: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1; margin: 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head p { margin: 0; font-weight: 500; max-width: 340px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stat { border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 24px 22px; container-type: inline-size; }
.stat:nth-child(odd) { transform: rotate(-1.2deg); }
.stat:nth-child(even) { transform: rotate(1deg); }
/* Sized to the tile (cqw), so a long number like "40 500" never runs into the edge */
/* nowrap: digits differ in width, so a counting value like "0,02 млрд" could wrap where "1,49 млрд" didn't */
.stat b { display: grid; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 17cqw, 52px); line-height: 1.02; margin-bottom: 10px; white-space: nowrap; }
.stat b > span { grid-area: 1 / 1; }
.stat b .count-final { visibility: hidden; }
.stat span { font-weight: 700; }
.s1 { background: var(--yellow); } .s2 { background: var(--pink); } .s3 { background: var(--blue); color: var(--white); } .s4 { background: var(--green); }

/* Games */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:nth-child(4n+1) { transform: rotate(-1.4deg); } .card:nth-child(4n+2) { transform: rotate(.9deg); }
.card:nth-child(4n+3) { transform: rotate(-.6deg); } .card:nth-child(4n) { transform: rotate(1.3deg); }
.card:hover, .card:focus-visible { transform: rotate(0) translate(-3px, -4px); box-shadow: 10px 10px 0 var(--ink); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; border-bottom: var(--line); border-radius: 15px 15px 0 0; background: #EADFC0; }
.card.is-hidden { display: none; }
.rank { position: absolute; top: -16px; left: -14px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--display); font-size: 19px; display: grid; place-items: center; border: 3px solid var(--paper); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; line-height: 1.25; }
.card small { display: block; font-weight: 500; opacity: .65; margin-bottom: 12px; }
.pill { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; background: var(--yellow); }
.more { text-align: center; margin-top: 56px; }

/* Join */
.join { background: var(--blue); color: var(--white); border-top: var(--line); border-bottom: var(--line); padding: 96px 0; }
.join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.join-text > p { font-size: 19px; margin: 26px 0 30px; max-width: 480px; }
.roles { display: flex; flex-wrap: wrap; gap: 12px; }
.role { background: var(--white); color: var(--ink); border: var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); }
.role:nth-child(3n) { transform: rotate(-3deg); } .role:nth-child(3n+1) { transform: rotate(2deg); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; max-width: 460px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.steps b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border: var(--line); font-family: var(--display); font-weight: 400; font-size: 15px; }
.form { background: var(--paper); color: var(--ink); border: var(--line); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); padding: 30px; }
.form h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 500 16px var(--body); color: var(--ink); border: var(--line); border-radius: 12px; padding: 13px 14px; background: var(--white); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: 4px 4px 0 var(--ink); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; margin-top: 6px; }
.form-error { min-height: 0; margin: 0; color: #C0261B; font-weight: 700; }
.form-error:not(:empty) { margin-bottom: 12px; }
.form.sent .btn { background: var(--green); color: var(--ink); }
.note { text-align: center; font-weight: 500; font-size: 14px; margin: 14px 0 0; opacity: .7; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 64px 0 40px; overflow: hidden; }
.bigword { font-family: var(--display); font-size: clamp(40px, 11.2vw, 150px); line-height: .9; margin: 0 0 40px; color: var(--yellow); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.foot-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot-links a { border-bottom: 2px solid var(--paper); }
.copy { background: none; border: 2px solid var(--paper); border-radius: 10px; padding: 6px 12px; font-weight: 800; color: var(--paper); cursor: pointer; }
.copy:hover { background: var(--paper); color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ===== Effects (fx.js toggles the fx-* classes on <html>) ===== */

/* Cursor (Kenney Cursor Pack, CC0): outlined arrow, pointing hand on anything
   clickable, and the hand balls into a fist while pressed. The 2x images keep
   edges crisp on high-density screens; the plain url() line is the fallback. */
.fx-cursor-fist, .fx-cursor-fist * {
  cursor: url("materials/cursor-arrow.png") 9 7, auto;
  cursor: image-set(url("materials/cursor-arrow.png") 1x, url("materials/cursor-arrow@2x.png") 2x) 9 7, auto;
}
.fx-cursor-fist :is(a, button, label, .card, .lang-btn), .fx-cursor-fist :is(a, button, label, .card) * {
  cursor: url("materials/cursor-point.png") 10 3, pointer;
  cursor: image-set(url("materials/cursor-point.png") 1x, url("materials/cursor-point@2x.png") 2x) 10 3, pointer;
}
.fx-cursor-fist.fx-pressing, .fx-cursor-fist.fx-pressing * {
  cursor: url("materials/cursor-fist.png") 10 3, pointer;
  cursor: image-set(url("materials/cursor-fist.png") 1x, url("materials/cursor-fist@2x.png") 2x) 10 3, pointer;
}
.fx-cursor-fist :is(input, textarea), .fx-cursor-fist.fx-pressing :is(input, textarea) { cursor: text; }

/* Animated cursor element (fx.js) replaces the image cursors once it's running */
.fx-cursor-js, .fx-cursor-js * { cursor: none !important; }
.fx-cursor-js :is(input, textarea) { cursor: text !important; }
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; will-change: transform; }
.fx-cursor.hidden { opacity: 0; }
.fx-cursor img { display: block; width: 32px; height: 32px; transform-origin: 50% 60%; }
/* Wind up, punch forward, settle */
.fx-cursor.punch img { animation: fx-punch .3s ease-out; }
@keyframes fx-punch {
  0% { scale: .82; rotate: 16deg; translate: 5px 5px; }
  35% { scale: 1.5; rotate: -14deg; translate: -6px -7px; }
  65% { scale: .94; rotate: 4deg; translate: 0 0; }
  100% { scale: 1; rotate: 0deg; translate: 0 0; }
}
.fx-bit-ring { position: fixed; z-index: 100; pointer-events: none; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid var(--ink); border-radius: 50%; animation: fx-ring .4s ease-out forwards; }
@keyframes fx-ring { from { scale: .2; opacity: 1; } to { scale: 1.3; opacity: 0; } }

.fx-bit-star, .fx-bit-word, .fx-bit-confetti { position: fixed; z-index: 100; pointer-events: none; }
.fx-bit-star { width: 14px; height: 14px; margin: -7px 0 0 -7px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: fx-star .55s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes fx-star { from { scale: .4; } to { translate: var(--dx) var(--dy); scale: 1.1; rotate: 140deg; opacity: 0; } }
.fx-bit-word { font: 400 22px var(--display); color: var(--ink); padding: 6px 12px 8px; border: var(--line); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; transform: translate(-50%, -125%) rotate(var(--r)); animation: fx-word .75s ease-out forwards; }
@keyframes fx-word { 0% { scale: .2; } 30% { scale: 1.15; } 45% { scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; translate: 0 -18px; } }
.fx-bit-confetti { width: 10px; height: 14px; margin: -7px 0 0 -5px; border: 2px solid var(--ink); border-radius: 2px; animation: fx-confetti 1.4s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes fx-confetti { 40% { translate: calc(var(--dx) * .7) var(--dy); } 100% { translate: var(--dx) calc(var(--dy) + 460px); rotate: var(--rot); opacity: 0; } }

/* Intro: the first screen assembles itself. Fill mode "backwards" leaves
   translate/rotate free afterwards for parallax and wobble. */
.fx-intro .nav { animation: fx-navdrop .5s ease-out backwards; }
.fx-intro h1 > span { display: inline-block; animation: fx-slap .65s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.fx-intro h1 > span:nth-of-type(1) { animation-delay: .1s; }
.fx-intro h1 > span:nth-of-type(2) { animation-delay: .24s; }
.fx-intro h1 > span:nth-of-type(3) { animation-delay: .36s; }
.fx-intro h1 > span:nth-of-type(4) { animation-delay: .5s; }
.fx-intro .hero-lead { animation: fx-rise .6s .65s ease-out backwards; }
.fx-intro .hero-ctas { animation: fx-rise .6s .78s ease-out backwards; }
.fx-intro .frame { animation: fx-drop .8s .25s cubic-bezier(.34, 1.4, .64, 1) backwards; }
.fx-intro .st-visits { animation: fx-pop .5s .95s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.fx-intro .st-hit { animation: fx-pop .5s 1.1s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.fx-intro .marquee { animation: fx-rise .6s 1.15s ease-out backwards; }
@keyframes fx-navdrop { from { translate: 0 -100%; } }
@keyframes fx-slap { from { opacity: 0; scale: 1.7; translate: 0 -24px; } }
@keyframes fx-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes fx-drop { from { opacity: 0; translate: 0 -90px; rotate: 9deg; } }
@keyframes fx-pop { from { scale: 0; } }

/* Hero art: slow camera push-in, plus a glare that sweeps across the frame now and then */
.fx-heroart .frame { position: relative; }
.fx-heroart .frame img { transform-origin: 58% 45%; animation: fx-kenburns 22s ease-in-out infinite alternate; }
/* Parallax shifts the art up to ~8px sideways and 3% of the frame height + 5px vertically; this overscan keeps the edges hidden. */
.fx-parallax .frame img { scale: 1.1; }
.fx-heroart .frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); translate: -130% 0; animation: fx-glare 7s 2.2s ease-in-out infinite; }
@keyframes fx-kenburns { from { scale: 1.1; } to { scale: 1.18; translate: -1.5% 1%; } }
@keyframes fx-glare { 0%, 72% { translate: -130% 0; } 100% { translate: 130% 0; } }

/* Idle wobble of the hero stickers */
.fx-wobble .st-visits { animation: fx-wobble 3.4s ease-in-out infinite; }
.fx-wobble .st-hit { animation: fx-wobble 4s .6s ease-in-out infinite reverse; }
.fx-intro.fx-wobble .st-visits { animation: fx-pop .5s .95s cubic-bezier(.34, 1.56, .64, 1) backwards, fx-wobble 3.4s 1.5s ease-in-out infinite; }
.fx-intro.fx-wobble .st-hit { animation: fx-pop .5s 1.1s cubic-bezier(.34, 1.56, .64, 1) backwards, fx-wobble 4s 1.7s ease-in-out infinite reverse; }
.fx-wobble .star { display: inline-block; animation: fx-spin 5s linear infinite; }
@keyframes fx-wobble { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes fx-spin { to { rotate: 360deg; } }

/* 3D tilt toward the cursor (fx.js sets --rx/--ry) */
.fx-tilt .card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-3px, -4px); transition: transform .1s, box-shadow .15s; }

/* Stat tiles land with a squash */
.fx-stomp .stat.reveal { transition: none; }
.fx-stomp .stat.reveal.in { animation: fx-stomp .6s cubic-bezier(.3, 1.5, .6, 1) backwards; }
.fx-stomp .stat:nth-child(2).in { animation-delay: .09s; }
.fx-stomp .stat:nth-child(3).in { animation-delay: .18s; }
.fx-stomp .stat:nth-child(4).in { animation-delay: .27s; }
@keyframes fx-stomp { 0% { opacity: 0; translate: 0 -70px; scale: 1.2; } 65% { opacity: 1; translate: 0 0; scale: 1.08 .9; } 82% { scale: .97 1.04; } 100% { scale: 1; } }

/* Headings bounce in letter by letter */
.fx-letter { display: inline-block; }
.fx-letters-go .fx-letter { animation: fx-letter .5s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i) * 35ms); }
@keyframes fx-letter { from { opacity: 0; translate: 0 .5em; rotate: 12deg; } }

/* Stat tiles: a one-off glare after landing, and they straighten up and lift on hover */
/* (transition re-declared on .reveal so it beats the stomp effect's "transition: none") */
.fx-tiles .stat, .fx-tiles .stat.reveal { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.fx-tiles .stat:nth-child(2) { --n: 1; } .fx-tiles .stat:nth-child(3) { --n: 2; } .fx-tiles .stat:nth-child(4) { --n: 3; }
.fx-tiles .stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); translate: -130% 0; }
.fx-tiles .stat.in::after { animation: fx-tile-glare 1s ease-in-out; animation-delay: calc(.7s + var(--n, 0) * .1s); }
/* Hover glare is a transition (not an animation) so it never replays the landing glare */
.fx-tiles .stat:hover::after { translate: 130% 0; transition: translate .8s ease-in-out; }
.fx-tiles .stat:hover { transform: rotate(0deg) translate(-3px, -4px); box-shadow: 10px 10px 0 var(--ink); }
.fx-tiles .stat:hover b { animation: fx-jiggle .45s ease-in-out; }
@keyframes fx-tile-glare { from { translate: -130% 0; } to { translate: 130% 0; } }
@keyframes fx-jiggle { 25% { rotate: -4deg; scale: 1.06; } 60% { rotate: 3deg; } 100% { rotate: 0deg; scale: 1; } }

/* Game cards are dealt in left to right, then the rank badge pops */
.fx-deal .card.reveal { transition: transform .15s, box-shadow .15s; }
.fx-deal .card:nth-child(4n+1) { --col: 0; } .fx-deal .card:nth-child(4n+2) { --col: 1; }
.fx-deal .card:nth-child(4n+3) { --col: 2; } .fx-deal .card:nth-child(4n) { --col: 3; }
.fx-deal .card.reveal.in { animation: fx-deal .65s cubic-bezier(.3, 1.35, .6, 1) backwards; animation-delay: calc(var(--col) * 90ms); }
.fx-deal .card.reveal.in .rank { animation: fx-pop .4s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--col) * 90ms + .4s); }
.fx-deal .card:hover .pill { animation: fx-jiggle .45s ease-in-out; }
@keyframes fx-deal { from { opacity: 0; translate: 0 70px; rotate: -10deg; scale: .85; } }

/* "Our hits" idle motion: halftone dots drift behind the cards, and the cards breathe */
.fx-bgdots .section-games { position: relative; overflow: hidden; }
.fx-bgdots .section-games > .wrap { position: relative; z-index: 1; }
/* Comic halftone dots drifting diagonally; the drift equals one dot period, so it loops seamlessly */
.fx-bgdots .section-games::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(21, 21, 21, .13) 2.2px, transparent 2.8px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); animation: fx-dots 5s linear infinite; }
@keyframes fx-dots { to { background-position: 28px 28px; } }
/* Cards breathe: a slight bob and sway, each on its own beat (after the deal-in, if that's on) */
.fx-cardbob .card:nth-child(5n+1) { --bob: 0; } .fx-cardbob .card:nth-child(5n+2) { --bob: 1; } .fx-cardbob .card:nth-child(5n+3) { --bob: 2; }
.fx-cardbob .card:nth-child(5n+4) { --bob: 3; } .fx-cardbob .card:nth-child(5n) { --bob: 4; }
.fx-cardbob .card:nth-child(odd) { --sway: 1; } .fx-cardbob .card:nth-child(even) { --sway: -1; }
/* The bob starts from rest (0 → -6px → 0), so it never jumps in; with the deal-in on,
   it waits until the card has landed — otherwise it would override the fly-in. */
.fx-cardbob .card.reveal.in { animation: fx-bob calc(4s + var(--bob) * .5s) ease-in-out infinite; animation-delay: calc(var(--bob) * .35s); }
.fx-cardbob.fx-deal .card.reveal.in { animation: fx-deal .65s cubic-bezier(.3, 1.35, .6, 1) backwards, fx-bob calc(4s + var(--bob) * .5s) ease-in-out infinite; animation-delay: calc(var(--col) * 90ms), calc(.75s + var(--col) * 90ms + var(--bob) * .35s); }
.fx-cardbob .card:hover { animation-play-state: paused; } /* holds still under the 3D tilt */
@keyframes fx-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -6px; rotate: calc(.6deg * var(--sway)); } }

/* "Hiring" section */
.fx-join .join { position: relative; overflow: hidden; }
.fx-join .join-row { position: relative; z-index: 1; }
.fx-shape { position: absolute; z-index: 0; pointer-events: none; opacity: .18; translate: -50% -50%; animation: fx-float calc(9s + var(--i) * 1.7s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2.3s); }
.fx-shape-star { background: var(--white); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.fx-shape-ring { border: 14px solid var(--white); border-radius: 50%; }
.fx-shape-dot { background: var(--yellow); border-radius: 50%; opacity: .3; }
.fx-shape-plus { background: var(--white); clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%); }
@keyframes fx-float { from { transform: translateY(-18px) rotate(-12deg); } to { transform: translateY(18px) rotate(14deg); } }
.fx-join .join .hl-y { animation: fx-wobble 3.2s ease-in-out infinite; }
.fx-join .role:nth-child(1) { --i: 0; } .fx-join .role:nth-child(2) { --i: 1; } .fx-join .role:nth-child(3) { --i: 2; }
.fx-join .role:nth-child(4) { --i: 3; } .fx-join .role:nth-child(5) { --i: 4; } .fx-join .role:nth-child(6) { --i: 5; }
.fx-join .join-text.in .role { animation: fx-chip .45s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i) * 70ms + .25s); }
/* Hover is a transition: swapping the animation would replay the pop-in on mouse-out */
.fx-join .role { transition: translate .15s, scale .15s, rotate .15s; }
.fx-join .role:hover { translate: 0 -5px; scale: 1.06; rotate: 3deg; }
@keyframes fx-chip { from { opacity: 0; scale: .3; rotate: -20deg; } }
/* Steps: a dashed trail draws down, then each number lights up in turn */
.fx-join .steps { position: relative; }
.fx-join .steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 3px dashed var(--yellow); transform-origin: top; scale: 1 0; }
.fx-join .join-text.in .steps::before { animation: fx-trail .9s .7s ease-out forwards; }
.fx-join .steps li { position: relative; }
.fx-join .steps b { position: relative; z-index: 1; } /* numbers sit on top of the trail */
.fx-join .steps li:nth-child(1) { --i: 0; } .fx-join .steps li:nth-child(2) { --i: 1; }
.fx-join .steps li:nth-child(3) { --i: 2; } .fx-join .steps li:nth-child(4) { --i: 3; }
.fx-join .join-text.in .steps li { animation: fx-step-in .4s ease-out backwards; animation-delay: calc(var(--i) * .22s + .7s); }
.fx-join .join-text.in .steps b { animation: fx-pop .4s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i) * .22s + .8s); }
@keyframes fx-trail { to { scale: 1 1; } }
@keyframes fx-step-in { from { opacity: 0; translate: -18px 0; } }
.fx-join .form.reveal { transition: none; }
.fx-join .form.reveal.in { animation: fx-form-in .75s cubic-bezier(.3, 1.3, .6, 1) backwards .15s; }
@keyframes fx-form-in { from { opacity: 0; translate: 80px 10px; rotate: 7deg; } }
.fx-join .field label { transition: translate .2s; }
.fx-join .field:hover label { translate: 4px 0; }
.fx-join .field:focus-within label { translate: 6px 0; }
/* Fields lift like stickers: a little on hover, more while typing */
.fx-join .field :is(input, textarea) { transition: translate .15s, box-shadow .15s, background-color .2s; }
.fx-join .field :is(input, textarea):hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); }
.fx-join .field :is(input, textarea):focus { translate: -3px -3px; box-shadow: 6px 6px 0 var(--ink); background-color: #FFFBEA; }

/* Footer wordmark: letters rise in, hop on hover, squash when punched */
.fx-footer .bigword { display: flex; }
.fx-footer .bigword span { display: inline-block; opacity: 0; translate: 0 .5em; transition: opacity .4s, translate .6s cubic-bezier(.34, 1.56, .64, 1), color .2s; transition-delay: calc(var(--i) * 60ms); }
.fx-footer .bigword.fx-go span { opacity: 1; translate: 0 0; }
.fx-footer .bigword.fx-risen span { transition-delay: 0s; transition-duration: .2s; }
.fx-footer .bigword.fx-go span:hover { translate: 0 -.12em; color: var(--pink); transition-delay: 0s; transition-duration: .2s; }
.fx-footer .bigword span.fx-hit { animation: fx-squash .4s ease-out; }
@keyframes fx-squash { 0% { scale: 1.25 .7; } 45% { scale: .9 1.15; } 70% { scale: 1.05 .95; } 100% { scale: 1; } }
.fx-footer .foot-links a { border-bottom-color: transparent; background: linear-gradient(var(--paper), var(--paper)) left bottom / 0 2px no-repeat; transition: background-size .3s; }
.fx-footer .foot-links a:hover, .fx-footer .foot-links a:focus-visible { background-size: 100% 2px; }

/* Scroll-driven marquee: fx.js moves the track itself */
.fx-marquee .marquee-track { animation: none; }

/* Demo panel (?demo) */
.fx-panel { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 300px; background: var(--white); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); font: 500 14px var(--body); }
.fx-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: var(--line); font-family: var(--display); font-size: 16px; }
.fx-panel-head b { font-weight: 400; }
.fx-panel-head button { border: 2px solid var(--ink); background: var(--yellow); border-radius: 8px; width: 28px; height: 28px; font-weight: 800; cursor: pointer; }
.fx-panel-body { padding: 8px 14px 14px; max-height: 62vh; overflow: auto; }
.fx-panel.collapsed .fx-panel-body { display: none; }
.fx-panel label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.fx-panel input { accent-color: var(--red); width: 16px; height: 16px; }
.fx-panel-label { margin: 8px 0 2px; font-weight: 800; }
.fx-panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fx-panel-actions button { border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); padding: 5px 9px; font-weight: 700; cursor: pointer; }
.fx-panel-note { color: #C0261B; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero-row, .join-row { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .stats, .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { margin: 18px 10px 0; }
  .st-visits { left: -14px; width: 124px; height: 124px; }
  .st-visits b { font-size: 28px; }
  .st-hit { right: -8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 14px; height: 68px; }
  .logo { font-size: 17px; }
  .logo img { width: 38px; height: 38px; }
  .nav-cta { display: none; }
  .stats, .games, .row2 { grid-template-columns: 1fr; }
  .section, .join { padding: 72px 0; }
  .section-games { padding-top: 0; }
  .form { padding: 22px; }
  .fx-panel { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .marquee span { font-size: 20px; }
  .st-hit { font-size: 14px; padding: 10px 14px; }
}
