/* Coinsole website · SPDX-License-Identifier: AGPL-3.0-only */
@font-face { font-family: "Press Start 2P"; font-display: swap; src: url("fonts/PressStart2P.woff2") format("woff2"); }
@font-face { font-family: "Frisbee Pixel"; font-display: swap; src: url("fonts/FrisbeePixel.ttf"); }
@font-face { font-family: "Frisbee Pixel Outline"; font-display: swap; src: url("fonts/FrisbeePixelOutline.ttf"); }

/* painted cabinet side art: flat ultramarine, coin gold, marquee pink, play mint */
:root {
  --blue: #2b17c4; --blue-deep: #190b78; --ink: #0d0630;
  --gold: #ffc71f; --gold-deep: #b67600;
  --pink: #ff4d8d; --pink-deep: #b81e5c;
  --mint: #3ddc84; --white: #fffdf7; --soft: #cfc7ff;
  --pix: "Frisbee Pixel", "Press Start 2P", ui-monospace, monospace;
  --arcade: "Press Start 2P", ui-monospace, monospace;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 18px/1.6 var(--ui); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* headlines and text in the visitor's system font (San Francisco on a Mac); the pixel face is kept for the machine's sign and the moving bands */
.title { font-family: var(--ui); font-weight: 800; line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
h2.title { font-size: clamp(38px, 5.2vw, 76px); }
.pix { font-family: var(--pix); font-weight: 400; line-height: 1.18; letter-spacing: 0.02em; }

/* buttons: solid blocks that sink when pressed */
.btn { display: inline-block; text-decoration: none; font-weight: 800; background: var(--gold); color: var(--ink); border-radius: 12px; box-shadow: 0 6px 0 var(--gold-deep); transition: translate 0.08s, box-shadow 0.08s; }
.btn:hover { translate: 0 -2px; box-shadow: 0 8px 0 var(--gold-deep); }
.btn:active { translate: 0 5px; box-shadow: 0 1px 0 var(--gold-deep); }
.btn.small { font-size: 15px; padding: 7px 16px; box-shadow: 0 4px 0 var(--gold-deep); }
.btn.big { font-size: 20px; padding: 16px 30px; translate: var(--mx, 0px) calc(var(--my, 0px) + var(--press, 0px)); }
.btn.big:hover { --press: -2px; }
.btn.big:active { --press: 5px; }
.btn.big:hover, .btn.big:active { translate: var(--mx, 0px) calc(var(--my, 0px) + var(--press, 0px)); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 3px var(--white); }
.btn.ghost:hover, .btn.ghost:active { box-shadow: inset 0 0 0 3px var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--blue);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
/* light rays and a dot screen behind the machine */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 68%; top: 48%; width: 240vmax; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.07) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 12%, transparent 62%); mask: radial-gradient(closest-side, #000 12%, transparent 62%);
  /* the rays turn and breathe slowly; the pattern repeats every 15 degrees, so the turn loops without a jump */
  animation: rays-turn 11s linear infinite, rays-breathe 9s ease-in-out infinite alternate;
}
@keyframes rays-turn { to { rotate: 15deg; } }
@keyframes rays-breathe { from { scale: 0.94; opacity: 0.8; } to { scale: 1.12; opacity: 1; } }
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(rgba(13,6,48,0.55) 1.4px, transparent 1.8px) 0 0 / 9px 9px;
  -webkit-mask: linear-gradient(180deg, transparent 55%, #000); mask: linear-gradient(180deg, transparent 55%, #000);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px var(--pad) 18px; }
/* the coin leads; the name beside it is half its height */
.logo { --mark: clamp(56px, 5.4vw, 80px); display: flex; align-items: center; gap: calc(var(--mark) * 0.18); }
.logo .mark { width: var(--mark); height: var(--mark); image-rendering: pixelated; }
.logo .word { width: auto; height: calc(var(--mark) * 0.46); }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }

.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 68px); align-items: center; width: 100%; max-width: 1480px; margin: 0 auto; padding: 8px var(--pad) 48px; }
.pitch h1 { font-size: clamp(44px, 5.4vw, 86px); line-height: 1.02; letter-spacing: -0.028em; }
.lead { margin: 26px 0 30px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 20px; }
.fine { margin: 0; font-size: 14px; color: var(--soft); max-width: 34em; }
.on-touch { display: none; margin-top: 10px; color: var(--gold); }
.try { margin: 30px 0 0; font-weight: 700; color: var(--gold); }
.try .below { display: none; }

/* ---------- the machine ---------- */
.cab { position: relative; width: 100%; justify-self: center; /* never taller than the window */ max-width: min(860px, calc((100svh - 486px) * 1.78 + 44px)); min-width: 0; filter: drop-shadow(16px 18px 0 rgba(13,6,48,0.55)); }
@media (min-width: 981px) { .cab { min-width: min(100%, 520px); } }
.marquee {
  display: grid; place-items: center; height: 64px; margin: 0 16px; overflow: hidden; padding: 0 12px;
  background: linear-gradient(180deg, #ff7fae, var(--pink) 55%, #e0306f); border: 6px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0;
}
.marquee .pix { font-size: clamp(22px, 2.6vw, 36px); white-space: nowrap; text-shadow: 3px 4px 0 var(--ink); }
.cab.on .marquee { animation: lamp 0.7s steps(1) 1; }
@keyframes lamp { 0%, 30% { filter: brightness(0.35); } 40% { filter: brightness(1.25); } 50% { filter: brightness(0.6); } 60%, 100% { filter: none; } }

.bezel { background: var(--ink); padding: 16px 16px 10px; border-radius: 14px 14px 0 0; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cab.on .screen iframe { animation: poweron 0.45s ease-out 1; }
@keyframes poweron { 0% { clip-path: inset(49.6% 40% 49.6% 40%); filter: brightness(4); } 45% { clip-path: inset(49.4% 0 49.4% 0); filter: brightness(3); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.neon { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; box-shadow: inset 0 0 0 3px #8b5cf6, inset 0 0 28px rgba(139,92,246,0.65); }
.cab.on .neon { box-shadow: inset 0 0 0 3px var(--mint), inset 0 0 18px rgba(61,220,132,0.45); }
.attract { position: absolute; inset: 0; width: 100%; }
.attract img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.attract::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 60%, rgba(5,2,20,0.88)); }
.call { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6%; font: 400 clamp(11px, 1.5vw, 20px)/1.4 var(--arcade); text-transform: uppercase; color: var(--gold); text-shadow: 3px 3px 0 #000; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 55%, 100% { opacity: 0.15; } }
.resume { position: absolute; inset: 0; width: 100%; background: rgba(8,4,28,0.72); font: 400 clamp(10px, 1.3vw, 16px)/1.6 var(--arcade); text-transform: uppercase; color: var(--gold); }

.playbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; font-size: 13px; color: var(--soft); min-height: 42px; }
.playbar p { margin: 0; line-height: 1.4; }
.playbar div { display: flex; gap: 8px; flex: none; }
.playbar button { font-weight: 700; font-size: 13px; color: var(--white); padding: 4px 12px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); }
.playbar button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--white); }
.playbar button:disabled { opacity: 0.35; }

.deck {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 48px) 14px;
  background: linear-gradient(180deg, var(--pink) 0 72%, #e0306f); border: 6px solid var(--ink); border-top-width: 4px; border-radius: 0 0 22px 22px;
}
.cap { display: block; font-size: 12px; font-weight: 800; color: var(--ink); text-align: center; min-height: 19px; }
.stickwrap { justify-self: start; }
.stick { position: relative; width: 82px; height: 62px; margin: 0 auto; touch-action: none; cursor: grab; }
.stick::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 30px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 3px 0 #2d2170; }
.shaft { position: absolute; left: 37px; bottom: 14px; width: 8px; height: 32px; border-radius: 4px; background: linear-gradient(90deg, #8e8aa8, #f3f1ff, #77729a); transform-origin: 50% 100%; transition: transform 0.07s; }
.knob { position: absolute; left: 22px; top: -4px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff3c4 0 8%, var(--gold) 30%, var(--gold-deep) 90%); box-shadow: 0 4px 8px rgba(13,6,48,0.4); transition: translate 0.07s; }
.stick.l .knob { translate: -17px 5px; } .stick.l .shaft { transform: rotate(-28deg); }
.stick.r .knob { translate: 17px 5px; } .stick.r .shaft { transform: rotate(28deg); }
.stick.u .knob { translate: 0 -7px; } .stick.u .shaft { transform: scaleY(1.2); }
.stick.d .knob { translate: 0 15px; } .stick.d .shaft { transform: scaleY(0.55); }

.coinslot { position: relative; display: grid; place-items: center; padding: 11px 34px; border-radius: 14px; background: var(--ink); }
.plate { display: grid; place-items: center; width: 46px; height: 40px; border-radius: 8px; background: linear-gradient(160deg, #e9e6f6, #8d87b4); }
.slot { width: 7px; height: 28px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,0.45); }
.coinslot:hover .slot { box-shadow: 0 0 0 3px var(--gold), 0 0 12px var(--gold); }
.coin { position: absolute; left: 50%; top: 8px; width: 46px; height: 46px; margin-left: -23px; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.coinslot:hover .coin:not(.drop) { opacity: 1; translate: 0 -62px; animation: hover 0.9s steps(4) infinite alternate; }
@keyframes hover { to { translate: 0 -70px; } }
.coin.drop { animation: drop 0.7s linear 1 both; }
@keyframes drop {
  0%   { opacity: 1; translate: 0 -150px; scale: 1.5 1.5; }
  25%  { translate: 0 -100px; scale: 0.4 1.4; }
  45%  { translate: 0 -62px; scale: 1.2 1.2; }
  65%  { translate: 0 -30px; scale: 0.16 1; clip-path: inset(0); }
  85%  { opacity: 1; translate: 0 -2px; scale: 0.16 0.9; clip-path: inset(0 0 35% 0); }
  100% { opacity: 0; translate: 0 14px; scale: 0.16 0.6; clip-path: inset(0 0 100% 0); }
}

.pads { justify-self: end; display: flex; gap: clamp(10px, 1.6vw, 22px); }
.round { display: block; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 50%; font: 400 15px/1 var(--arcade); text-shadow: 2px 2px 0 rgba(0,0,0,0.35); box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,0.35); touch-action: none; user-select: none; -webkit-user-select: none; transition: translate 0.05s; }
.round.x { background: var(--blue); } .round.a { background: #14a95a; }
.round.held { translate: 0 5px; box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,0.35); filter: brightness(1.25); }

/* the games to choose from, as their icons; the sign above says which one is picked */
.picker { display: flex; justify-content: center; gap: 16px; margin: 18px 16px 0; }
.picker button { padding: 5px; border-radius: 14px; background: var(--ink); transition: translate 0.1s steps(2), box-shadow 0.1s; }
.picker img { width: clamp(48px, 7.4vh, 72px); aspect-ratio: 1; border-radius: 10px; image-rendering: pixelated; filter: brightness(0.75) saturate(0.85); transition: filter 0.15s; }
.picker button:hover img, .picker button:focus-visible img { filter: none; }
.picker button:hover { translate: 0 -3px; }
.picker button[aria-checked="true"] { translate: 0 -5px; box-shadow: 0 0 0 4px var(--gold); }
.picker button[aria-checked="true"] img { filter: none; }

/* big screen: the machine takes the whole window */
body.big { overflow: hidden; }
body.big .hero { isolation: auto; }   /* so the machine can sit above the rest of the page */
body.big .hero::before, body.big .hero::after { display: none; }
body.big .cab { position: fixed; z-index: 60; inset: 0; max-width: none; min-width: 0; filter: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 14px; background: radial-gradient(ellipse at 50% 45%, #2d1a78, var(--ink) 72%); }
body.big .marquee { flex: none; width: min(560px, 80%); border: 3px solid #b79bff; border-radius: 18px; background: #1c0f55; box-shadow: 0 0 28px #8b5cf6, inset 0 0 22px rgba(139,92,246,0.7); }
body.big .bezel { flex: none; width: min(100%, calc((100svh - 184px) * 1.78 + 32px)); border-radius: 22px; box-shadow: 0 0 0 3px #b79bff, 0 0 60px rgba(139,92,246,0.8); }
body.big .picker { display: none; }
body.big .deck { display: none; }

/* ---------- cabinet stripes between sections ---------- */
.stripes { height: 54px; background: linear-gradient(180deg, var(--pink) 0 33.4%, var(--white) 33.4% 41%, var(--blue) 41% 66.6%, var(--mint) 66.6% 74%, var(--ink) 74%); }
.stripes.flip { background: linear-gradient(180deg, var(--ink) 0 26%, var(--mint) 26% 34%, var(--blue) 34% 59%, var(--white) 59% 67%, var(--pink) 67%); }

/* ---------- your own games ---------- */
.games { background: var(--gold); color: var(--ink); padding: clamp(72px, 10vw, 140px) 0; }
.sub { margin: 20px 0 0; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.5; max-width: 32em; }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 40px; border-block: 5px solid var(--ink); }
.formats div { padding: 28px 28px 32px 0; }
.formats div + div { padding-left: 28px; border-left: 5px solid var(--ink); }
.formats dt { font-weight: 800; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.formats dd { margin: 0; max-width: 24em; font-weight: 500; }
.games .note { max-width: 40em; margin: 0 0 12px; }
.inlink { font-weight: 800; }

/* ---------- looks: the section takes the colour of the chosen look ---------- */
.looks { --a: #ffb000; --b: #100b03; --t: #fff6e0; background: var(--b); color: var(--t); padding: clamp(72px, 10vw, 140px) 0; transition: background-color 0.35s, color 0.35s; }
.looks[data-look="dark"] { --a: #3ddc84; --b: #04120a; --t: #eafff1; }
.looks[data-look="light"] { --a: #0070d1; --b: #e9eef7; --t: #0b1a36; }
.looks h2 { color: var(--t); }
.switch { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; padding: 6px; border-radius: 16px; box-shadow: inset 0 0 0 3px var(--a); }
.switch button { font-weight: 800; padding: 10px 24px; border-radius: 11px; }
.switch button[aria-checked="true"] { background: var(--a); color: var(--b); }
.detect { margin: 16px 0 0; min-height: 1.6em; font-weight: 600; color: var(--a); }
.shot { display: grid; margin: 34px auto 30px; max-width: 1120px; }
.shot img { grid-area: 1 / 1; width: 100%; border-radius: 18px; box-shadow: 0 0 0 3px var(--a), 0 34px 80px -30px var(--a); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.shot img.on { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.looks .note { margin: 0; max-width: 40em; }

/* ---------- big screen and tokens ---------- */
.room { background: var(--blue); padding: clamp(72px, 10vw, 140px) 0; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.tokens { margin-top: clamp(80px, 10vw, 140px); grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.tokens .text { order: 2; }
.feature h2.title { font-size: clamp(36px, 4.2vw, 62px); }
.feature p { max-width: 28em; font-size: 20px; }
.feature img { border-radius: 16px; box-shadow: 16px 18px 0 rgba(13,6,48,0.55); }
.reel { position: relative; border-radius: 16px; box-shadow: 16px 18px 0 rgba(13,6,48,0.55); rotate: 1.5deg; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 940; border-radius: 16px; background: #04120a; cursor: pointer; }
/* play at the left and sound at the right, inside the game screen (its place in the 1672 x 940 picture) */
.reelctl { position: absolute; left: 20.3%; right: 20.3%; bottom: 19.6%; display: flex; justify-content: space-between; padding: 0 7px 7px; pointer-events: none; }
.reelctl button { pointer-events: auto; transform: scale(calc(1 / var(--zoom, 1))); transform-origin: 0 100%; }
.reelctl button + button { transform-origin: 100% 100%; }
.reelctl button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(4,18,10,0.78); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3); }
.reelctl button:hover { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.reelctl svg { width: 14px; height: 14px; fill: currentColor; }
.reelctl .i-pause, .reelctl .i-on, .reel.playing .i-play, .reel.loud .i-off { display: none; }
.reel.playing .i-pause, .reel.loud .i-on { display: block; }
.feature.tokens img { rotate: -1.5deg; }

/* ---------- download ---------- */
.download { background: var(--ink); text-align: center; padding: clamp(72px, 10vw, 150px) 0 clamp(64px, 8vw, 110px); }
.download .spin { display: block; margin: 0 auto 34px; border-radius: 50%; }
.download .spin img { width: 112px; image-rendering: pixelated; animation: spin 2.4s steps(12) infinite; }
@keyframes spin { 0% { scale: 1 1; } 25% { scale: 0.08 1; } 50% { scale: 1 1; } 75% { scale: 0.08 1; } 100% { scale: 1 1; } }
.download .sub { margin: 22px auto 38px; }
.download .actions { justify-content: center; margin-bottom: 30px; }
.download .fine { margin: 6px auto; }
footer { background: var(--ink); padding: 0 0 34px; color: var(--soft); }
#pixelfoot { display: block; width: 100%; height: clamp(300px, 34vw, 470px); margin-bottom: 30px; image-rendering: pixelated; touch-action: pan-y; cursor: crosshair; }

/* ---------- smaller windows ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cab { max-width: 760px; }
  .try .beside { display: none; }
  .try .below { display: inline; }
  .feature, .feature.tokens { grid-template-columns: minmax(0, 1fr); }
  .feature.tokens .text { order: 0; }
}
@media (max-width: 720px) {
  .top nav a:not(.btn) { display: none; }
  .logo { --mark: 54px; }
  .formats { grid-template-columns: 1fr; }
  .formats div, .formats div + div { padding: 24px 0 26px; border-left: 0; }
  .formats div + div { border-top: 5px solid var(--ink); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stage { padding-inline: 14px; }
  .pitch { padding-inline: 6px; }
  .cab { filter: drop-shadow(6px 8px 0 rgba(13,6,48,0.55)); }
  .marquee { height: 52px; margin: 0 8px; }
  .cab .marquee::before { top: 2px; height: 4px; background-size: 14px 4px; }
  .cab .marquee::after { bottom: 2px; height: 4px; background-size: 14px 4px; }
  .marquee .pix { font-size: 20px; }
  .bezel { padding: 8px 8px 6px; }
  .playbar { flex-wrap: wrap; row-gap: 6px; }
  .deck { padding: 14px 10px 10px; gap: 6px; }
  .stick { scale: 0.92; }
  .coinslot { padding-inline: 24px; }
  .round { width: 48px; height: 48px; }
  .picker { margin: 14px 4px 0; gap: 18px; }
  .picker img { width: 64px; }
}
/* phones held sideways, in big screen: keep the touch controls */
@media (pointer: coarse) {
  .on-touch { display: block; }
  body.big .deck { display: grid; flex: none; width: min(100%, 620px); border-radius: 18px; padding-block: 8px; }
  body.big .bezel { width: min(100%, calc((100svh - 250px) * 1.78 + 16px)); }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  body.big .marquee { display: none; }
  body.big .bezel { width: min(100% - 260px, calc((100svh - 80px) * 1.78)); }
  body.big .deck { position: absolute; inset: auto 6px 6px; width: auto; background: none; border: 0; padding: 0; pointer-events: none; }
  body.big .deck > * { pointer-events: auto; }
  body.big .deck .coinslot { visibility: hidden; }
  body.big .cap { color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- loading screen ---------- */
.loader { display: none; }
.loading, .loading body { overflow: hidden; }
.loading .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--ink); }
.loader.built { background: transparent; }
.blocks { position: absolute; inset: 0; display: grid; overflow: hidden; }
.blocks i { background: var(--ink); scale: 1.03; }
.boot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(460px, 82vw); text-align: center; }
.boot p { margin: 0; }
.boot-coin { width: 112px; margin-bottom: 14px; image-rendering: pixelated; animation: spin 1.2s steps(8) infinite; }
.meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; width: 100%; padding: 6px; box-shadow: 0 0 0 4px var(--white); }
.meter i { height: 22px; background: rgba(255,255,255,0.1); }
.meter i.lit { background: var(--gold); box-shadow: inset 0 -6px 0 var(--gold-deep); }
.meter i.lit:nth-child(n+15) { background: var(--pink); box-shadow: inset 0 -6px 0 var(--pink-deep); }
.pct { font: 400 22px/1 var(--arcade); }
.loadline { font: 400 10px/1.8 var(--arcade); text-transform: uppercase; color: var(--mint); min-height: 18px; }

/* ---------- lights round the marquee ---------- */
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 6px;
  background: radial-gradient(circle, var(--white) 0 2.4px, transparent 3px) 0 0 / 18px 6px repeat-x;
  animation: bulbs 0.5s steps(1) infinite;
}
.marquee::before { top: 4px; }
.marquee::after { bottom: 4px; animation-direction: reverse; }
@keyframes bulbs { 50% { background-position: 9px 0; } }
.marquee .pix { display: block; }

/* ---------- pixel sprites floating in the hero ---------- */
.sprite { position: absolute; z-index: -1; pointer-events: none; }
.sprite svg, .sprite img { display: block; width: 100%; height: auto; filter: drop-shadow(5px 6px 0 rgba(13,6,48,0.45)); }

/* ---------- moving bands ---------- */
.bands { position: relative; z-index: 2; overflow: hidden; padding: 34px 0 38px; background: linear-gradient(180deg, var(--blue) 50%, var(--gold) 50%); }
.band { width: 108%; margin-left: -4%; padding: 10px 0; border-block: 5px solid var(--ink); color: var(--ink); overflow: hidden; }
.band.pink { background: var(--pink); rotate: -2deg; position: relative; z-index: 1; }
.band.mint { background: var(--mint); rotate: 1.4deg; margin-top: -14px; }
.track { display: flex; width: max-content; }
.run { display: flex; align-items: center; flex: none; }
.run span { font-family: var(--pix); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.2; white-space: nowrap; padding: 0 28px; }
.run img { width: clamp(24px, 2.6vw, 36px); image-rendering: pixelated; }

/* ---------- extras added by fx.js ---------- */
.formats .pic { display: block; width: 76px; height: 76px; margin-bottom: 18px; }
.formats .pic svg { width: 100%; height: 100%; }
.shot { position: relative; }
.wipe { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(16, 1fr); grid-template-rows: repeat(9, 1fr); pointer-events: none; border-radius: 18px; overflow: hidden; }
.wipe i { background: var(--a); opacity: 0; }
.bit { position: fixed; left: 0; top: 0; z-index: 90; width: 9px; height: 9px; pointer-events: none; }
.download { position: relative; overflow: hidden; }
.download > .wrap { position: relative; z-index: 1; }
.rain { position: absolute; top: -60px; width: 36px; image-rendering: pixelated; pointer-events: none; }
.fx .coin.drop { animation: none; }
.fx .cab.on .marquee { animation: lamp 0.7s steps(1) 1; }
.feature.big-screen { position: relative; }
.feature.big-screen .reel { position: relative; z-index: 2; }
.feature.big-screen.tall { min-height: 100vh; min-height: 100svh; align-content: center; }
.room:has(.tall) { padding-top: 0; }
.room:has(.tall) { padding-bottom: clamp(90px, 14vh, 170px); }
.room:has(.tall) .feature.tokens { margin-top: clamp(90px, 14vh, 170px); }
@media (max-width: 980px) { .sprite { display: none; } }
@media (prefers-reduced-motion: reduce) { .marquee::before, .marquee::after { animation: none; } }
@media (max-width: 560px) { @keyframes bulbs { 50% { background-position: 7px 0; } } }
/* short laptop screens: a tighter header leaves the machine more room */
@media (min-width: 981px) and (max-height: 800px) {
  .top { padding-block: 14px 6px; }
  .logo { --mark: 58px; }
  .cab { max-width: min(860px, calc((100svh - 428px) * 1.78 + 44px)); }
}

/* wide windows: the whole looks section fits on screen, centred, with the switch right above the picture */
@media (min-width: 981px) and (min-height: 640px) {
  .looks { height: 100vh; height: 100svh; padding: 0; display: grid; align-content: center; }
  .looks .wrap { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
  .looks h2.title { font-size: min(4vw, 6.4vh, 56px); }
  .looks .sub { max-width: none; margin-top: 6px; font-size: 18px; }
  .looks .switch { margin-top: 16px; }
  .looks .detect { margin-top: 8px; font-size: 15px; }
  .looks .shot { width: min(100%, calc((100svh - 300px) * 1.778)); margin: 14px auto 14px; }
  .looks .note { max-width: none; font-size: 14px; }
}

/* ---------- footer: the name and where to go, then the small print on its own pages ---------- */
.foot, .legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
footer .logo { --mark: 52px; }
footer nav { display: flex; flex-wrap: wrap; }
footer a { text-decoration: none; }
.foot nav { gap: 10px 30px; font-size: 17px; font-weight: 800; color: var(--white); }
.foot nav a { padding: 4px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 4px no-repeat; transition: background-size 0.2s steps(5), color 0.2s; }
.foot nav a:hover, .foot nav a:focus-visible { color: var(--gold); background-size: 100% 4px; }
.legal { margin-top: 30px; padding-block: 22px 0; font-size: 14px; position: relative; }
.legal::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 4px; background: repeating-linear-gradient(90deg, #2b1d7a 0 8px, transparent 8px 14px); }
.legal p { margin: 0; }
.legal nav { gap: 8px 22px; }
.legal a:hover { color: var(--gold); }
.legal p a { color: var(--white); }
@media (max-width: 720px) {
  .foot { flex-direction: column; align-items: flex-start; }
  .foot nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 44px; }
}

/* ---------- the small pages ---------- */
.doc { display: flex; flex-direction: column; min-height: 100vh; }
.docbar { background: var(--blue); }
.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 90px; }
.page h1.title { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 20px; }
.page h2 { margin: 42px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--gold); }
.page p { margin: 0 0 12px; }
.page ul { margin: 0; padding-left: 20px; }
.page li { margin-bottom: 8px; }
.page li::marker { color: var(--pink); }
.doc footer { border-top: 4px solid #2b1d7a; padding-top: 34px; }
/* the footer's links and small print line up with the block name above them */
footer .foot, footer .legal { width: min(var(--word, 1128px), 100% - 2 * var(--pad)); max-width: none; padding-inline: 0; }
footer .legal::before { left: 0; right: 0; }
@media (max-width: 560px) { .reelctl { padding: 0 4px 4px; } .reelctl button { width: 26px; height: 26px; border-radius: 7px; } .reelctl svg { width: 11px; height: 11px; } }

/* ---------- ways into the game pages ---------- */
.games h3 { margin: 6px 0 18px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.015em; }
.gamecards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 26px; padding: 0; list-style: none; }
.gamecards a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 14px; border-radius: 16px; background: var(--ink); color: var(--white); text-decoration: none; box-shadow: 0 6px 0 var(--gold-deep); transition: translate 0.1s steps(2), box-shadow 0.1s; }
.gamecards a:hover, .gamecards a:focus-visible { translate: 0 -4px; box-shadow: 0 10px 0 var(--gold-deep); }
.gamecards img { width: 64px; border-radius: 10px; image-rendering: pixelated; }
.gamecards span { display: block; font-size: 14px; line-height: 1.4; color: var(--soft); }
.gamecards b { display: block; font-size: 19px; color: var(--white); }
.playbar a { font-weight: 700; font-size: 13px; color: var(--white); text-decoration: none; padding: 2px 12px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); white-space: nowrap; }
.playbar a:hover { box-shadow: inset 0 0 0 2px var(--white); }
body.big .playbar a { display: none; }
@media (max-width: 720px) { .gamecards { grid-template-columns: 1fr; } }

/* ---------- a page for each game ---------- */
.game { --tint: #14234f; --glow: #7fcff6; background: #fffdf7; color: var(--ink); }
.game.meteor-run { --tint: #07051a; --glow: #4fd8ff; }
.game.pixel-serpent { --tint: #05110a; --glow: #3ddc84; }
.ghero { background: var(--tint); color: var(--white); padding-bottom: 26px; }
.gbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1480px; margin: 0 auto; padding: 16px var(--pad); }
.gbar .logo { --mark: 44px; }
.gbar .btn { justify-self: end; font-size: 15px; font-weight: 800; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; font: 400 11px/1 var(--arcade); text-transform: uppercase; text-decoration: none; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px var(--white), 0 6px 0 3px rgba(0,0,0,0.35); }
.back span { width: 10px; height: 14px; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 70% 100%, 70% 82%, 40% 82%, 40% 66%, 0 66%, 0 34%, 40% 34%, 40% 18%, 70% 18%, 70% 0); }
.back:hover { background: var(--gold); }
.game .reel.gscreen { rotate: 0deg; width: min(100% - 2 * var(--pad), 1280px, (100svh - 250px) * 1.7778); min-width: min(100% - 24px, 520px); margin: 4px auto 0; border-radius: 16px; box-shadow: 0 0 0 4px var(--glow), 0 0 50px -6px var(--glow); }
.game .reel video { aspect-ratio: 16 / 9; background: var(--tint); }
.game .reelctl { left: 0; right: 0; bottom: 0; padding: 0 14px 14px; }
.gtitle { display: flex; align-items: center; gap: 20px; width: min(100% - 2 * var(--pad), 1280px, (100svh - 250px) * 1.7778); min-width: min(100% - 24px, 520px); margin: 26px auto 0; }
.gtitle img { width: 72px; border-radius: 14px; image-rendering: pixelated; }
.gtitle h1.title { font-size: clamp(34px, 4.6vw, 60px); }
.gtitle p { margin: 4px 0 0; font-size: clamp(16px, 1.5vw, 20px); opacity: 0.85; }
.dither { height: 24px; background:
  linear-gradient(var(--tint) 0 0) 0 0 / 100% 8px no-repeat,
  conic-gradient(var(--tint) 25%, transparent 0 50%, var(--tint) 0 75%, transparent 0) 0 8px / 8px 8px repeat-x,
  conic-gradient(var(--tint) 25%, transparent 0) 0 16px / 8px 8px repeat-x; }
.article { flex: 1; padding: 34px var(--pad) 90px; }
.column { max-width: 720px; margin: 0 auto; }
.facts { margin: 0 0 44px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 7px 0; }
.facts dt { font: 400 10px/2.4 var(--arcade); text-transform: uppercase; }
.facts dd { margin: 0; }
.article a { font-weight: 600; }
.article .intro { margin: 0 0 28px; font-size: clamp(25px, 3vw, 36px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.article h2 { margin: 58px 0 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.015em; }
.article p { margin: 0 0 16px; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--pink); }
.gactions { margin-top: 30px; }
.article .gactions a { font-weight: 800; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: min(100vw - 2 * var(--pad), 1080px); margin-left: 50%; translate: -50% 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 12px; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--ink), 8px 10px 0 4px rgba(13,6,48,0.18); }
.shots figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; }
.tablewrap { overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article th, .article td { padding: 12px 10px 12px 0; text-align: left; vertical-align: middle; border-bottom: 3px solid rgba(13,6,48,0.12); }
.article thead th { font: 400 10px/1.8 var(--arcade); text-transform: uppercase; border-bottom-color: var(--ink); }
.article table.score td { text-align: right; font: 400 14px/1 var(--arcade); padding-right: 0; }
.article table.score thead th:last-child { text-align: right; padding-right: 0; }
kbd { display: inline-block; min-width: 30px; padding: 2px 8px; text-align: center; font: 600 14px/1.6 var(--ui); border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); }
.article .small { margin-top: 18px; font-size: 15px; }
.continue { display: grid; gap: 6px; margin-top: 70px; padding: 22px; border-radius: 18px; background: var(--ink); color: var(--white); }
.continue a { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 12px; text-decoration: none; }
.continue a:hover, .continue a:focus-visible { background: rgba(255,255,255,0.08); color: var(--gold); }
.continue img { width: 64px; border-radius: 10px; image-rendering: pixelated; }
.continue .next span { font-size: 14px; color: var(--soft); }
.continue .next b { display: block; font-size: 24px; color: var(--white); }
.continue .next:hover b { color: var(--gold); }
.continue .home { border-top: 3px solid rgba(255,255,255,0.12); border-radius: 0 0 12px 12px; padding-top: 18px; }
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; width: 100%; margin-left: 0; translate: none; }
  .gbar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 14px; }
  .gbar .logo { --mark: 34px; justify-self: center; }
  .back { padding-inline: 10px; font-size: 9px; }
  .gtitle { gap: 14px; }
  .gtitle img { width: 52px; }
  .facts div { grid-template-columns: 100px 1fr; }
}

/* from one page to another, the new one opens like a screen switching on (where the browser can) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { mix-blend-mode: normal; animation: page-out 0.3s steps(5) both; }
  ::view-transition-new(root) { mix-blend-mode: normal; animation: page-on 0.5s steps(8) both; }
}
@keyframes page-out { to { filter: brightness(0.15); } }
@keyframes page-on { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
