/* Inttilista – Intti Pikseleinä -tyyli.
   Värit, fontti ja laatikot tulevat suoraan TikTok-sarjan renderöijästä (pixel-tiktok-kit/gfx.py). */

@font-face {
  font-family: "Pikseli";
  src: url("../fonts/pikseli.woff2") format("woff2"), url("../fonts/pikseli.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #0f1530;
  --bg-2: #141c3f;
  --night: #070b1c;
  --sky: #22305c;
  --dusk: #4c5592;
  --lilac: #9a7fb0;
  --peach: #e9a98f;
  --snow: #ddd5ea;
  --snow-hi: #f4f8fd;
  --menu: #1a2a6e;
  --menu-line: #5a6ac8;
  --ink: #111111;
  --text: #ebe8f4;
  --muted: #b3b8dc;
  --yellow: #ffe14d;
  --pink: #fe2c55;
  --green: #7be07b;
  --orange: #ffa64d;
  --red: #ff4a4a;
  --blue: #1a4fa0;
  --camo: #5f6e3c;
  --camo-d: #3c4622;
  --pixel: "Pikseli", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: 40px;
  --h2: 30px;
  --h3: 20px;
  --shell: 1180px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --h1: 60px; --h2: 40px; --gutter: 28px; } }
@media (min-width: 1100px) { :root { --h1: 70px; } }
@media (max-width: 379px) { :root { --h1: 30px; --h2: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.pixelated, .pixelated img, .sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; font-family: var(--pixel); }
.skip-link:focus { top: 12px; }
.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

/* ---------------------------------------------------------------- pixel type */
.px, h1, h2, .btn, .eyebrow, .chip, .pill {
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-synthesis: none;
}
/* caption look: 1 font-pixel #111 outline + drop shadow, like the videos */
.outline, h1, h2 {
  text-shadow:
    .1em 0 var(--ink), -.1em 0 var(--ink), 0 .1em var(--ink), 0 -.1em var(--ink),
    .1em .1em var(--ink), -.1em -.1em var(--ink), .1em -.1em var(--ink), -.1em .1em var(--ink),
    0 .2em #000, .1em .2em #000, -.1em .2em #000;
}
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
h1 { font-size: var(--h1); line-height: 1.15; color: #fff; }
h2 { font-size: var(--h2); line-height: 1.2; color: #fff; margin-bottom: 18px; }
h3 { font-size: 19px; line-height: 1.3; }
.hl { color: var(--yellow); }               /* the "current word" in captions */
.green { color: var(--green); } .orange { color: var(--orange); } .red { color: var(--red); } .pink { color: var(--pink); }

/* header pill, as at the top of every episode */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(10, 12, 24, .62);
  color: #fff; font-size: 20px; line-height: 1;
  padding: 8px 12px 6px;
}
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; line-height: 1; color: #fff;
  background: rgba(10, 12, 24, .62); padding: 8px 12px 6px; margin: 0 0 18px; }
.eyebrow b { color: var(--yellow); font-weight: 400; }

/* ---------------------------------------------------------------- retro menu box (SEURAUKSET) */
.box {
  position: relative;
  background: var(--menu);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px rgba(0, 0, 0, .55);
  padding: 22px;
}
.box::before { content: ""; position: absolute; inset: 4px; border: 2px solid var(--menu-line); pointer-events: none; }
.box-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: 20px/1 var(--pixel); text-transform: uppercase; color: #fff;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--menu-line); }
.box-title small { font-size: 20px; color: var(--muted); }
.box.dark { background: #10183d; }
.box.night { background: var(--night); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 12px 18px 10px;
  font-size: 20px; line-height: 1; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--pink);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px #000;
  cursor: pointer;
}
.btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px #000; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 4px var(--ink), 2px 2px 0 4px #000; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); }
.btn-ghost { background: rgba(10, 12, 24, .7); }
.btn-small { min-height: 40px; font-size: 20px; padding: 8px 12px 6px; border-width: 3px; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #000; }
.btn-small:hover { box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px #000; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 26px; }
.pulse { animation: pulse 1.2s steps(2) infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.chip { display: inline-block; font-size: 20px; line-height: 1; padding: 7px 10px 5px; background: rgba(255, 255, 255, .08); color: var(--muted); border: 2px solid var(--menu-line); }
button.chip { cursor: pointer; }
button.chip:hover { color: #fff; border-color: #fff; }
button.chip.active, button.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 #000; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 28, .94); border-bottom: 4px solid #000; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 20px/1 var(--pixel); }
.brand:hover { color: var(--yellow); }
.brand img { image-rendering: pixelated; }
.brand .head { width: 40px; height: 24px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 8px 8px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--yellow); }
.header-cta { margin-left: 8px; }
.header-discord { margin-left: 8px; }
.main-nav + .header-discord { margin-left: 12px; }
@media (min-width: 1200px) { .main-nav .nav-casino { display: none; } } /* "Katso lista" covers it on desktop */
.menu-button { display: none; margin-left: auto; width: 48px; height: 44px; background: var(--menu); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink); cursor: pointer; padding: 9px 9px; }
.menu-button i { display: block; height: 4px; background: #fff; margin: 4px 0; }
@media (max-width: 1199px) {
  .menu-button { display: block; }
  .header-cta { margin-left: 0; }
  .header-discord, .main-nav + .header-discord { margin-left: auto; }
  .menu-button { order: 5; margin-left: 0; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night); border-bottom: 4px solid #000; padding: 10px var(--gutter) 18px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px 12px; border-bottom: 2px solid #1b2550; }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* ---------------------------------------------------------------- dither bands */
.band { height: 64px; background-repeat: repeat-x; background-size: 16px 64px; image-rendering: pixelated; }
.band.short { height: 32px; background-size: 16px 32px; }
.band-snow-bg { background-image: url("../img/band-snow-bg.png"); }
.band-bg-snow { background-image: url("../img/band-bg-snow.png"); }
.band-bg-night { background-image: url("../img/band-bg-night.png"); }
.band-night-bg { background-image: url("../img/band-night-bg.png"); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #26325e url("../img/hero-dusk.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
  padding: 56px 0 190px;
}
.hero.night { background-image: url("../img/night.png"); background-color: var(--night); }
.snow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/snow.png") 0 0 / 540px 960px repeat;
  image-rendering: pixelated;
  animation: snowfall 26s linear infinite;
}
@keyframes snowfall { to { background-position: 40px 960px; } }
.hero-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { margin: 6px 0 20px; }
.hero-lead { font-size: 19px; max-width: 34em; color: #fff; background: rgba(10, 12, 24, .6); padding: 10px 14px; text-shadow: 0 2px 0 #000; }
.hero-lead strong { color: var(--yellow); }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.walker-track { position: absolute; left: 0; right: 0; bottom: 34px; height: 132px; z-index: 1; pointer-events: none; }
.walker {
  position: absolute; bottom: 0; left: 6%;
  width: 80px; height: 132px;
  background: url("../img/soldier-walk.png") 0 0 / 320px 132px no-repeat;
  image-rendering: pixelated;
  animation: walk .56s steps(4) infinite, patrol 22s linear infinite alternate;
}
@keyframes walk { to { background-position: -320px 0; } }
@keyframes patrol { to { left: calc(94% - 80px); } }
.walker-track .buddy { position: absolute; bottom: 0; width: 80px; height: 132px; image-rendering: pixelated; }
@media (min-width: 720px) {
  .hero { padding: 76px 0 240px; }
  .walker-track { bottom: 46px; height: 165px; }
  .walker, .walker-track .buddy { width: 100px; height: 165px; background-size: 400px 165px; }
  @keyframes walk { to { background-position: -400px 0; } }
}
@media (max-width: 719px) {
  .hero { background-image: url("../img/hero-dusk-tall.png"); }
  .hero.night { background-image: url("../img/night-tall.png"); }
}

/* hero picks box */
.picks { margin: 0; padding: 0; list-style: none; }
.pick { --pick-logo-width: 104px; --pick-logo-height: 72px; display: grid; grid-template-columns: 22px var(--pick-logo-width) minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 2px dashed rgba(90, 106, 200, .45); }
.pick:last-child { border-bottom: 0; }
.pick .cursor { width: 14px; height: 18px; visibility: hidden; color: #fff; font: 20px/1 var(--pixel); }
.pick:hover .cursor, .pick:focus-within .cursor { visibility: visible; animation: blink .5s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pick-name { min-width: 0; font: 20px/1.25 var(--pixel); text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.pick:first-child .pick-name { color: var(--yellow); }
.pick-bonus { font-size: 15px; line-height: 1.4; color: #fff; margin: 6px 0 0; }
.pick > div { min-width: 0; }
.pick-body { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; min-width: 0; }
.pick .btn { min-height: 40px; }
.pick .logo-tile,
.pick .logo-tile[data-brand="epicbet"] { width: var(--pick-logo-width); height: var(--pick-logo-height); aspect-ratio: auto; }
.pick .logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.pick .logo-tile[data-brand="epicbet"] img { padding: 6px; }
.meter { height: 6px; background: #0b1235; margin-top: 16px; position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--green); }
@media (max-width: 599px) {
  .pick { --pick-logo-width: 82px; --pick-logo-height: 68px; grid-template-columns: var(--pick-logo-width) minmax(0, 1fr); column-gap: 12px; }
  .pick .cursor { display: none; }
  .hero .btn-ghost { display: none; }
  .hero .box { padding: 18px; }
}
.ad-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* casino logo tile (pixel monogram on the brand colour) */
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 1; width: 56px;
  /* Keep intrinsic image sizes from expanding the grid beyond the tile. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background: var(--brand, var(--camo)); border: 3px solid var(--ink); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25);
  font: 20px/1 var(--pixel); color: #fff; text-transform: uppercase;
  text-shadow: .1em 0 var(--ink), -.1em 0 var(--ink), 0 .1em var(--ink), 0 -.1em var(--ink);
  overflow: hidden;
}
.logo-tile img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.logo-tile.big { width: 120px; height: 84px; aspect-ratio: auto; font-size: 30px; }
.logo-tile[data-brand="epicbet"] img { object-fit: contain; padding: 6px; }
.logo-tile[data-brand="ninja-casino"] { background: #2f323a; box-shadow: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-2); }
.section.night { background: var(--night); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.section-note { color: var(--muted); font-size: 14px; margin-top: 26px; }

.ad-strip { background: #000; border-block: 4px solid #000; }
.ad-strip .shell { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 10px 0 8px; font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); }
.ad-strip b { color: var(--yellow); font-weight: 400; }
.ad-strip a { color: var(--muted); }

/* list toolbar */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.list-tools label { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.list-tools select { font: 16px var(--sans); color: #fff; background: var(--menu); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink); padding: 8px 10px; min-height: 44px; }

/* casino cards */
.casino-list { display: grid; gap: 34px; }
.casino-card { display: grid; gap: 18px 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .casino-card { grid-template-columns: 64px 220px 1fr 220px; align-items: start; }
  .casino-card .card-detail { grid-column: 1 / -1; }
}
.rank-number { font: 40px/1 var(--pixel); color: var(--yellow); text-shadow: .1em 0 var(--ink), -.1em 0 var(--ink), 0 .1em var(--ink), 0 -.1em var(--ink), 0 .2em #000; }
.casino-card:not(:first-child) .rank-number { color: #fff; }
.casino-identity { display: flex; align-items: center; gap: 14px; }
@media (min-width: 900px) { .casino-identity { flex-direction: column; align-items: flex-start; } }
.casino-identity strong { font: 30px/1.05 var(--pixel); font-weight: 400; text-transform: uppercase; color: #fff; }
.card-head { display: flex; align-items: center; gap: 16px; }
.casino-card > *, .hero-grid > *, .routes > *, .tools > * { min-width: 0; }
@media (max-width: 899px) {
  .casino-card { padding: 18px; }
  .rank-number { font-size: 30px; }
  .casino-card .logo-tile.big { width: 96px; height: 68px; font-size: 20px; }
  .casino-identity strong { font-size: 20px; overflow-wrap: anywhere; }
  .casino-identity { flex-wrap: wrap; min-width: 0; gap: 10px 14px; }
  .casino-identity .lic { font-size: 10px; padding: 4px 5px 3px; }
}
@media (max-width: 599px) {
  .casino-card .card-kicker { display: none; }
}
@media (min-width: 900px) { .card-head { display: contents; } }
.bonus { background: #0b1235; border: 2px solid var(--menu-line); padding: 12px 14px; margin-bottom: 14px; }
.bonus small { display: block; font: 20px/1 var(--pixel); color: var(--green); text-transform: uppercase; margin-bottom: 8px; }
.bonus strong { display: block; font-size: 19px; line-height: 1.35; color: #fff; }
.bonus strong .hl, .pick-bonus .hl { color: var(--yellow); }
.bonus .terms { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.lic { display: inline-block; font: 20px/1 var(--pixel); text-transform: uppercase; padding: 6px 8px 4px; border: 2px solid var(--orange); color: var(--orange); white-space: nowrap; }
.lic.eu { border-color: var(--green); color: var(--green); }
.pick .lic { font-size: 10px; padding: 4px 5px 3px; border-width: 1px; vertical-align: 1px; margin-right: 4px; }
.pick-terms { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.stats div { background: #0b1235; border: 2px solid var(--menu-line); padding: 8px 10px 6px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 20px/1 var(--pixel); color: #fff; text-transform: uppercase; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.casino-copy h3 { color: #fff; margin-bottom: 8px; }
.casino-copy p { color: var(--muted); font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks li::before { content: "✓"; font: 20px/1 var(--pixel); color: var(--green); flex: none; margin-top: 1px; }
.card-actions { display: grid; gap: 18px; align-content: start; }
.card-actions .btn { width: 100%; }
.card-actions .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-actions .sub button { font: 20px/1 var(--pixel); text-transform: uppercase; background: transparent; color: var(--muted); border: 2px solid var(--menu-line); padding: 10px 6px 8px; cursor: pointer; min-height: 44px; }
.card-actions .sub button:hover { color: #fff; border-color: #fff; }
.card-actions .sub button.selected { background: var(--green); color: var(--ink); border-color: var(--ink); }
.card-actions .tc { font-size: 12px; color: var(--muted); margin: 0; }
.card-detail { display: none; gap: 22px; border-top: 2px solid var(--menu-line); padding-top: 18px; }
.casino-card.expanded .card-detail { display: grid; }
@media (min-width: 720px) { .casino-card.expanded .card-detail { grid-template-columns: repeat(3, 1fr); } }
.card-detail h4 { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; font-weight: 400; }
.card-detail ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); }
.card-detail p { font-size: 15px; color: var(--muted); }

/* compare tray + dialog */
.compare-tray { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 32px, 720px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.compare-tray[hidden] { display: none; }
.compare-tray .names { font-size: 15px; color: #fff; }
.compare-tray .names b { display: block; font: 20px/1 var(--pixel); color: var(--yellow); font-weight: 400; margin-bottom: 4px; }
.compare-tray .actions { display: flex; gap: 14px; align-items: center; }
.icon-btn { font: 20px/1 var(--pixel); background: transparent; color: #fff; border: 2px solid #fff; width: 40px; height: 40px; cursor: pointer; }
dialog.box { position: fixed; color: var(--text); max-width: min(100% - 32px, 860px); width: 100%; padding: 26px; }
dialog::backdrop { background: rgba(4, 6, 16, .8); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.compare-scroll { overflow-x: auto; margin: 10px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--menu-line); vertical-align: top; }
.compare-table th { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--yellow); font-weight: 400; }
.compare-table td:first-child { font: 20px/1.1 var(--pixel); text-transform: uppercase; color: var(--muted); }
.dialog-note { font-size: 13px; color: var(--muted); margin: 0; }

/* rules: kolme käskyä + checklist */
.orders { display: grid; gap: 28px; }
@media (min-width: 820px) { .orders { grid-template-columns: repeat(3, 1fr); } }
.order-num { font: 40px/1 var(--pixel); color: var(--yellow); display: block; margin-bottom: 14px; }
.orders h3 { color: #fff; margin-bottom: 10px; }
.orders p { color: var(--muted); font-size: 15px; margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 34px; } }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 2px dashed rgba(90, 106, 200, .45); }
.checklist li b { font: 20px/1 var(--pixel); color: var(--green); font-weight: 400; grid-row: span 2; }
.checklist li strong { font: 20px/1.1 var(--pixel); text-transform: uppercase; color: #fff; font-weight: 400; }
.checklist li span { font-size: 15px; color: var(--muted); }

/* series (TikTok) */
.series-head { display: grid; gap: 30px; align-items: end; margin-bottom: 40px; }
@media (min-width: 900px) { .series-head { grid-template-columns: 1fr auto; } }
.profile { display: flex; align-items: center; gap: 18px; }
.profile img { width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink); image-rendering: pixelated; }
.profile strong { display: block; font: 20px/1.2 var(--pixel); text-transform: uppercase; color: #fff; font-weight: 400; }
.profile span { color: var(--muted); font-size: 15px; }
.covers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 1000px) { .covers { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.cover { position: relative; display: block; scroll-snap-align: start; text-decoration: none; color: var(--text); background: #000; }
.cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; image-rendering: pixelated; }
.cover .pin { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font: 600 13px/1 var(--sans); padding: 6px 8px; border-radius: 3px; }
.cover .q { display: block; padding: 12px 12px 14px; font-size: 14px; line-height: 1.4; background: #0b0f22; min-height: 64px; }
.cover:hover img { filter: brightness(1.12); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.socials a { font: 20px/1 var(--pixel); text-transform: uppercase; color: #fff; text-decoration: none; border: 2px solid var(--menu-line); padding: 10px 14px 8px; background: rgba(255, 255, 255, .04); }
.socials a:hover { border-color: #fff; color: var(--yellow); }

/* tool teasers */
.tools { display: grid; gap: 34px; }
@media (min-width: 860px) { .tools { grid-template-columns: 1fr 1fr; } }
.tool-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
@media (min-width: 1100px) {
  .tools.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools.three .tool-card .art { width: 56px; }
  .tools.three .tool-card .art img { width: 56px; height: 92px; }
}
@media (max-width: 599px) {
  .tool-card h3 { font-size: 20px !important; }
  .tool-card .art { width: 56px; }
  .tool-card .art img { width: 56px; height: 92px; }
}
.tool-card h3 { font: 30px/1.1 var(--pixel); text-transform: uppercase; color: #fff; font-weight: 400; margin-bottom: 12px; }
.tool-card p { color: var(--muted); }
.tool-card .art { width: 110px; align-self: start; }
.tool-card .art img { width: 80px; height: 132px; image-rendering: pixelated; margin-left: auto; }
.tool-card .btn { margin-top: 6px; }
.mini-badge { width: 72px; }

/* move ranking */
.move-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .move-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .move-grid { grid-template-columns: repeat(3, 1fr); } }
.move-card .score { display: flex; align-items: baseline; gap: 10px; font: 40px/1 var(--pixel); color: var(--lvl, var(--green)); margin-bottom: 12px; }
.move-card .score small { font-size: 20px; color: var(--muted); }
.segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 16px; }
.segments i { height: 10px; background: #0b1235; }
.segments i.on { background: var(--lvl, var(--green)); }
.move-card h3 { color: #fff; font: 20px/1.15 var(--pixel); text-transform: uppercase; font-weight: 400; margin-bottom: 10px; }
.move-card p { color: var(--muted); font-size: 15px; }
.move-card .relief { color: #fff; font-size: 14px; border-top: 2px solid var(--menu-line); padding-top: 10px; margin: 0; }
.move-card .relief b { font: 20px/1 var(--pixel); color: var(--yellow); font-weight: 400; display: block; margin-bottom: 6px; }
.move-card.urgent { border-color: var(--red); }
.move-card.urgent .urgent-tag { position: absolute; top: -18px; right: 16px; background: var(--red); color: #fff; font: 20px/1 var(--pixel); padding: 6px 8px 4px; border: 3px solid var(--ink); }
.warning { border-left: 6px solid var(--orange); background: rgba(255, 166, 77, .08); padding: 14px 18px; margin: 0 0 36px; color: #fff; font-size: 15px; }
.glossary { display: grid; gap: 0; margin-top: 40px; }
@media (min-width: 720px) { .glossary { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.glossary div { padding: 12px 0; border-bottom: 2px dashed rgba(90, 106, 200, .45); }
.glossary b { font: 20px/1 var(--pixel); color: var(--yellow); font-weight: 400; display: block; margin-bottom: 6px; }
.glossary span { font-size: 14px; color: var(--muted); }

/* intake calendar */
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 36px; }
.countdown .num { font: 70px/1 var(--pixel); color: var(--yellow); }
.countdown .lbl { font: 20px/1.3 var(--pixel); text-transform: uppercase; color: #fff; }
.intakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 760px) { .intakes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .intakes { grid-template-columns: repeat(6, 1fr); } }
.intake { background: var(--snow-hi); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 #000; text-align: center; }
.intake .tab { background: var(--pink); color: #fff; font: 20px/1 var(--pixel); padding: 8px 4px 6px; border-bottom: 4px solid var(--ink); }
.intake .day { font: 40px/1 var(--pixel); padding: 16px 4px 6px; }
.intake p { font-size: 13px; margin: 0 0 12px; color: #333; }
.intake.next { outline: 4px solid var(--yellow); outline-offset: 4px; }
.durations { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 820px) { .durations { grid-template-columns: repeat(3, 1fr); } }
.durations .num { font: 70px/1 var(--pixel); color: var(--yellow); }
.durations .num small { font-size: 20px; color: #fff; margin-left: 8px; }
.durations p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* about */
.about-grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-grid h3 { font: 20px/1.15 var(--pixel); text-transform: uppercase; color: var(--yellow); font-weight: 400; margin-bottom: 10px; }
.about-grid p { color: var(--muted); font-size: 15px; margin: 0; }

/* discord */
.btn-discord { background: #5865f2; }
.discord-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 34px; border-color: #5865f2; }
.discord-cta h3 { font: 30px/1.15 var(--pixel); text-transform: uppercase; color: #fff; font-weight: 400; margin-bottom: 12px; }
.discord-cta p:not(.eyebrow) { color: var(--muted); max-width: 40em; margin-bottom: 20px; }
.discord-art { display: flex; align-items: flex-end; gap: 6px; }
.discord-art img { width: 60px; height: 99px; image-rendering: pixelated; }
@media (max-width: 719px) {
  .discord-cta { grid-template-columns: 1fr; }
  .discord-cta h3 { font-size: 20px; }
  .discord-art { display: none; }
}
.socials a.discord { border-color: #5865f2; background: rgba(88, 101, 242, .18); }

/* faq */
.faq { max-width: 900px; }
.faq details { border-bottom: 2px dashed rgba(90, 106, 200, .55); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 700; font-size: 18px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 30px/1 var(--pixel); color: var(--yellow); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); }
.footer-scene { height: 180px; background: url("../img/night.png") center bottom / cover; image-rendering: pixelated; border-bottom: 4px solid #000; position: relative; }
.footer-scene .sprite { position: absolute; bottom: 14px; width: 60px; height: 99px; }
.footer-top { display: grid; gap: 36px; padding: 50px 0 30px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-top p { color: var(--muted); font-size: 15px; margin-top: 16px; }
.footer-top h2 { font-size: 20px; text-shadow: none; color: var(--yellow); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--yellow); }
.age { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.age b { font: 20px/1 var(--pixel); background: var(--red); color: #fff; padding: 7px 8px 5px; font-weight: 400; border: 3px solid #fff; }
.footer-bottom { border-top: 2px solid #1b2550; padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--muted); }

/* ---------------------------------------------------------------- tool pages */
.hero.tool-hero { padding: 56px 0 210px; }
@media (min-width: 720px) { .hero.tool-hero { padding: 72px 0 260px; } }
.tool-hero p:not(.eyebrow) { max-width: 760px; }
.reading { max-width: 860px; }
.reading h2 { margin-top: 56px; }
.reading h2:first-child { margin-top: 0; }
.reading p, .reading li { color: var(--muted); }
.reading ol { padding-left: 22px; }
.reading strong { color: #fff; }
.crosslink { margin-top: 56px; }
.crosslink h2 { margin-top: 0; }

/* rank quiz */
.rank-quiz { max-width: 980px; margin-inline: auto; }
.quiz-modes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.quiz-modes button { font-family: var(--pixel); }
.quiz-status { display: flex; justify-content: space-between; gap: 14px; font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--menu-line); }
.quiz-status strong { color: var(--green); font-weight: 400; }
.quiz-stage { display: grid; gap: 30px; align-items: center; }
@media (min-width: 760px) { .quiz-stage { grid-template-columns: 220px 1fr; gap: 44px; } }
.rank-badge { width: 180px; margin-inline: auto; filter: drop-shadow(6px 6px 0 #000); }
.rank-badge svg { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.quiz-callout { font: 20px/1.2 var(--pixel); text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 54px; padding: 10px 14px; font: 600 17px/1.3 var(--sans); color: #fff; background: #0b1235; border: 3px solid var(--menu-line); cursor: pointer; }
.quiz-option span { font: 20px/1 var(--pixel); color: var(--ink); background: var(--yellow); padding: 6px 7px 4px; flex: none; }
.quiz-option:hover:not(:disabled) { border-color: #fff; }
.quiz-option:disabled { cursor: default; opacity: .7; }
.quiz-option.correct { border-color: var(--green); background: #12402a; opacity: 1; }
.quiz-option.correct span { background: var(--green); }
.quiz-option.wrong { border-color: var(--red); background: #4a1420; opacity: 1; }
.quiz-option.wrong span { background: var(--red); color: #fff; }
.quiz-feedback { margin: 18px 0 0; color: var(--muted); min-height: 1.6em; }
.quiz-feedback strong { color: #fff; }
.quiz-next { margin-top: 20px; }
.quiz-next[hidden] { display: none; }
.quiz-result-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 180 / 300; background: var(--camo-d); border: 4px solid var(--ink); text-align: center; }
.quiz-result-mark strong { font: 40px/1 var(--pixel); color: var(--yellow); font-weight: 400; }
.quiz-result-mark span { font: 20px/1 var(--pixel); color: #fff; }

/* task quiz */
.task-quiz { max-width: 900px; margin-inline: auto; }
.task-progress { display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); padding-bottom: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--menu-line); }
.task-progress strong { font-weight: 400; color: var(--green); }
.task-progress progress { appearance: none; width: 40%; height: 12px; border: 0; background: #0b1235; }
.task-progress progress::-webkit-progress-bar { background: #0b1235; }
.task-progress progress::-webkit-progress-value { background: var(--green); }
.task-progress progress::-moz-progress-bar { background: var(--green); }
.task-quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.task-quiz legend { font: 30px/1.2 var(--pixel); text-transform: uppercase; color: #fff; width: 100%; padding: 0; margin-bottom: 10px; }
@media (max-width: 600px) { .task-quiz legend { font-size: 20px; } }
.task-quiz legend:focus, .task-result-title:focus { outline: none; }
.task-quiz fieldset > p { color: var(--muted); }
.task-options { display: grid; gap: 10px; margin: 22px 0; }
.task-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-weight: 600; cursor: pointer; background: #0b1235; border: 3px solid var(--menu-line); }
.task-option:hover { border-color: #fff; }
.task-option:has(input:checked) { border-color: var(--yellow); background: #2a3170; box-shadow: inset 6px 0 var(--yellow); }
.task-option:has(input:focus-visible) { outline: 3px dashed var(--yellow); outline-offset: 3px; }
.task-option input { accent-color: var(--yellow); width: 20px; height: 20px; flex: none; }
.task-select-label { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); }
.task-options select { width: 100%; min-height: 54px; padding: 12px; font: 17px var(--sans); color: #fff; background: #0b1235; border: 3px solid var(--menu-line); }
.task-actions { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.task-actions [hidden] { display: none; }
.task-privacy { max-width: 900px; margin: 26px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
.task-result-title .eyebrow { margin-bottom: 12px; }
.task-result-title h2 { font-size: 30px; }
.task-result { background: #0b1235; border: 3px solid var(--menu-line); border-left: 8px solid var(--green); padding: 20px; margin: 22px 0; }
.task-result .eyebrow { background: none; padding: 0; color: var(--green); margin-bottom: 10px; }
.task-result h3 { font: 20px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow); font-weight: 400; margin-bottom: 12px; }
.task-result p, .task-result li { color: var(--muted); font-size: 15px; }
.task-result p strong { color: #fff; }
.task-notice { background: rgba(255, 166, 77, .1); border-left: 6px solid var(--orange); padding: 12px 16px; color: #fff; font-size: 15px; }
.task-route { font-size: 14px; }
.role-directory { display: grid; gap: 24px; margin-top: 26px; }
@media (min-width: 720px) { .role-directory { grid-template-columns: 1fr 1fr; } }
.role-directory article { padding: 20px; }
.role-directory h3 { font: 20px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow); font-weight: 400; margin-bottom: 10px; }
.role-directory p { font-size: 15px; color: var(--muted); }
.role-directory p strong { color: #fff; }
.location-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.location-links a { font: 20px/1 var(--pixel); text-transform: uppercase; text-decoration: none; color: #fff; border: 2px solid var(--menu-line); padding: 8px 10px 6px; }
.location-links a:hover { border-color: #fff; color: var(--yellow); }
.location-article { padding: 22px 0; border-bottom: 2px dashed rgba(90, 106, 200, .45); scroll-margin-top: 100px; }
.location-article h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.reading details { border-bottom: 2px dashed rgba(90, 106, 200, .55); padding: 16px 0; }
.reading summary { cursor: pointer; font-weight: 700; color: #fff; }
.task-quiz legend, .task-result-title, #testi, #peli { scroll-margin-top: 110px; }

/* ---------------------------------------------------------------- vinkit / pakkauslista */
.hero-countdown { margin: 34px 0 0; }
.hero-countdown .num { text-shadow: .1em 0 var(--ink), -.1em 0 var(--ink), 0 .1em var(--ink), 0 -.1em var(--ink), 0 .2em #000; }
.hero-countdown .lbl { background: rgba(10, 12, 24, .6); padding: 8px 10px 6px; }
.pack-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 34px; padding: 18px 22px; }
.pack-progress { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 14px; flex: 1 1 260px; }
.pack-progress .pack-label { font: 20px/1 var(--pixel); text-transform: uppercase; color: var(--muted); }
.pack-progress strong { font: 30px/1 var(--pixel); color: var(--yellow); font-weight: 400; }
.pack-progress .meter { grid-column: 1 / -1; margin-top: 6px; height: 10px; }
.pack-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.packlist { display: grid; gap: 30px; }
@media (min-width: 820px) { .packlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .packlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pack-group ul, .nolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pack-group label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 8px 4px; cursor: pointer; font-size: 15px; color: var(--muted); }
.pack-group label:hover { background: rgba(255, 255, 255, .05); }
.pack-group strong { color: #fff; }
.pack-group input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 3px solid #fff; background: #0b1235; box-shadow: 2px 2px 0 #000; cursor: pointer; display: grid; place-items: center; }
.pack-group input:checked { background: var(--green); border-color: var(--ink); }
.pack-group input:checked::after { content: "✓"; font: 20px/1 var(--pixel); color: var(--ink); transform: translateY(1px); }
.pack-group input:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 3px; }
.pack-group label:has(input:checked) strong { color: var(--green); text-decoration: line-through; text-decoration-thickness: 2px; }
.box-title small.red { color: var(--red); }
.no-go { margin-top: 34px; border-color: var(--red); }
.nolist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 8px 4px; font-size: 15px; color: var(--muted); }
.nolist b { font: 20px/1 var(--pixel); color: var(--red); font-weight: 400; }
.nolist strong { color: #fff; }
@media (min-width: 820px) { .nolist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; } }

@media print {
  .site-header, .site-footer, .hero, .band, .ad-strip, .pack-tools .pack-buttons, #ensimmainen-paiva, #kysymykset .faq, .compare-tray, .walker-track { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 0; }
  .section-head p, .pack-group label, .nolist li { color: #000; }
  .box { background: #fff; border: 2px solid #000; box-shadow: none; padding: 10px; break-inside: avoid; }
  .box::before { display: none; }
  .box-title, .box-title small, h2, .pack-group strong, .nolist strong, .pack-progress strong, .pack-progress .pack-label { color: #000 !important; text-shadow: none !important; }
  .eyebrow { background: none; color: #000; padding: 0; }
  .packlist { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack-group input { border-color: #000; background: #fff; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
}

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .35s steps(4), transform .35s steps(4); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
