/* pikakasinotfi.com — Archetype 6 Amber bolt sprint / sticky-left TOC */
:root {
  --bg: #F7F4EF;
  --text: #1A1520;
  --accent-2: #0E7C7B;
  --primary-blue: #14212B;
  --accent-green: #F5A623;
  --light-green: #0E7C7B;
  --red-accent: #E08A00;
  --bg-dark: #14212B;
  --accent: #F5A623;
  --teal: #0E7C7B;
  --teal-deep: #0A5C5B;
  --siirto-yellow: #F5A623;
  --siirto-red: #E08A00;
  --slate: #14212B;
  --ink: var(--text);
  --paper: #FFFCF7;
  --surface: #FFFFFF;
  --mint: rgba(245, 166, 35, 0.14);
  --line: #E4D9C8;
  --muted: #6B645C;
  --cta: #F5A623;
  --cta-ink: #1A1520;
  --ok: #0E7C7B;
  --hot: #E08A00;
  --header-h: 5.1rem;
  --edge: clamp(1.25rem, 4vw, 3rem);
  --folio-w: 13.5rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(20, 33, 43, 0.1);
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --ui: "DM Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: #ffffff;
  background-image:
    radial-gradient(720px 360px at 90% -12%, rgba(245, 166, 35, 0.14), transparent 58%),
    linear-gradient(180deg, #fffdf9 0%, #ffffff 38%, #fffaf3 100%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.05rem;
  line-height: 1.68;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
button, .btn { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 12px;
  z-index: 90;
  background: var(--surface);
  padding: 8px 12px;
  border: 2px solid var(--teal);
}

/* —— Header —— */
/* Reserve header height before site.js injects chrome — kills CLS from deferred paint */
.chrome-slot {
  min-height: var(--header-h);
  display: block;
}
[data-ranking] {
  min-height: 42rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem var(--edge);
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(10, 17, 40, 0.35);
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-green), var(--accent-green), transparent);
  opacity: 0.85;
  animation: radar-scan 4.5s linear infinite;
  pointer-events: none;
}
@keyframes radar-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: min(28rem, 62%);
}
.brand-logo {
  object-fit: contain;
  object-position: left center;
  width: auto;
  max-height: 48px;
  height: 48px;
  height: 58px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: 0;
}
.brand-mark {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  font-size: clamp(0.92rem, 1.35vw, 1.15rem);
  line-height: 1.2;
  color: var(--siirto-yellow, #f5c518);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--cta);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-weight: 650;
}
.site-header > .mobile-header-cta { display: none !important; }
.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.15rem;
  flex-wrap: nowrap;
}
.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover,
.nav a.is-active {
  background: rgba(16, 185, 129, 0.2);
  color: #fff;
}
.badge-18 {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
}
.header-cta { margin-left: 0.5rem; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary,
.btn-play {
  background: var(--cta);
  color: var(--cta-ink);
}
.btn-primary:hover,
.btn-play:hover {
  background: #059669;
  color: var(--cta-ink);
}
.site-footer .btn-primary,
.site-footer .btn-play,
.site-footer a.btn-primary,
.site-footer a.btn-play {
  color: var(--cta-ink);
  background: var(--cta);
}
.site-footer .btn-primary:hover,
.site-footer a.btn-primary:hover {
  color: var(--cta-ink);
  background: #059669;
}
.btn.is-disabled,
.btn-play.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--surface);
  border: 1.5px solid rgba(255, 251, 247, 0.55);
}

/* —— Page + under-hero chips TOC —— */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--folio-w);
  gap: 1.35rem 1.5rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem var(--edge) 4.5rem;
  min-width: 0;
  align-items: start;
}
#main {
  min-width: 0;
  grid-column: 1;
}
.page-toc--rail-right,
.page-toc--chips,
.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  grid-column: 2;
  grid-row: 1 / span 3;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
  margin: 0;
  padding: 0.85rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-green);
  box-shadow: var(--shadow);
}
.page-toc__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.page-toc__label {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-toc__hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.page-toc__links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.page-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.35rem;
  border-radius: var(--radius-sm);
  background: transparent;
}
.page-toc__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.page-toc__link:hover {
  background: var(--mint);
  color: var(--teal-deep);
}
.page-toc__link:hover .page-toc__dot,
.page-toc__link.is-active .page-toc__dot {
  background: var(--teal);
}
.page-toc__link.is-active {
  background: var(--mint);
  color: var(--teal-deep);
}

body[data-commercial="false"] .page,
body.author-page .page {
  grid-template-columns: minmax(0, 1fr);
}
body[data-commercial="false"] #main,
body.author-page #main {
  grid-column: 1;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  min-height: clamp(220px, 36vw, 340px);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(12, 18, 28, 0.94) 6%,
    rgba(15, 23, 42, 0.72) 48%,
    rgba(20, 33, 43, 0.45) 78%,
    rgba(245, 166, 35, 0.18) 100%
  );
}
.hero > :not(.hero-background) { position: relative; z-index: 2; }

/* —— Expert hero (Juho Aalto) —— */
.hero.hero--expert {
  min-height: clamp(280px, 42vw, 420px);
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.hero-expert {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(11rem, 0.72fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
}
.hero-expert__copy {
  min-width: 0;
}
.hero-expert__copy .lede {
  max-width: 46ch;
}
.hero-expert__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 252, 247, 0.72);
}
.hero-expert__meta a {
  color: var(--siirto-yellow);
  font-weight: 600;
  text-decoration: none;
}
.hero-expert__meta a:hover {
  color: #fff;
  text-decoration: underline;
}
.hero-expert__portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 17.5rem);
  text-align: center;
}
.hero-expert__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(245, 166, 35, 0.85);
  box-shadow:
    0 0 0 6px rgba(20, 33, 43, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.35);
  background: #2a3340;
}
.hero-expert__portrait figcaption {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-expert__portrait figcaption strong {
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-expert__portrait figcaption span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 252, 247, 0.78);
}

/* Tablet / wide phone: 2-col under H1 — text left, portrait right */
@media (max-width: 980px) and (min-width: 601px) {
  .hero.hero--expert {
    min-height: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
  }
  .hero-expert {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(8.5rem, 0.55fr);
    gap: 1rem 1.35rem;
    align-items: center;
  }
  .hero-expert__copy {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
  }
  .hero.hero--expert .hero-title,
  .hero-expert__copy .hero-title {
    max-width: none;
    margin: 0;
  }
  .hero-expert__copy .lede {
    max-width: none;
    margin: 0;
  }
  .hero-expert__copy .hero-cta {
    margin-top: 0.15rem;
  }
  .hero-expert__meta {
    margin-top: 0.35rem;
  }
  .hero-expert__portrait {
    justify-self: end;
    align-self: center;
    width: min(100%, 11.5rem);
    max-width: 11.5rem;
    margin: 0;
  }
  .hero-expert__portrait img {
    width: 100%;
    max-width: 11.5rem;
  }
  .hero-expert__portrait figcaption {
    text-align: center;
  }
}

/* Narrow mobile: H1 → lede → compact author row (photo + name + CTAs) */
@media (max-width: 600px) {
  .hero.hero--expert {
    min-height: 0;
    padding: 1.15rem 1rem 1.35rem;
    justify-content: flex-start;
  }
  .hero-expert {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "lede lede"
      "photo info"
      "photo cta"
      "meta meta";
    column-gap: 0.75rem;
    row-gap: 0.45rem;
    align-items: center;
    text-align: left;
  }
  .hero-expert__copy {
    display: contents;
  }
  /* Redundant with figcaption name on narrow */
  .hero-expert__copy .kicker {
    display: none;
  }
  .hero.hero--expert .hero-title,
  .hero-expert__copy .hero-title {
    grid-area: title;
    max-width: none;
    margin: 0;
    margin-bottom: 0.25rem;
  }
  .hero-expert__copy .lede {
    grid-area: lede;
    max-width: none;
    margin: 0 0 0.35rem;
  }
  .hero-expert__portrait {
    display: contents;
  }
  .hero-expert__portrait img {
    grid-area: photo;
    width: 4.25rem;
    height: 4.25rem;
    max-width: 4.25rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-width: 2px;
    box-shadow:
      0 0 0 3px rgba(20, 33, 43, 0.4),
      0 8px 18px rgba(0, 0, 0, 0.28);
    align-self: start;
  }
  .hero-expert__portrait figcaption {
    grid-area: info;
    margin: 0;
    text-align: left;
    min-width: 0;
  }
  .hero-expert__portrait figcaption strong {
    font-size: 1rem;
  }
  .hero-expert__portrait figcaption span {
    font-size: 0.78rem;
  }
  .hero-expert__copy .hero-cta {
    grid-area: cta;
    margin: 0;
    gap: 0.45rem;
    align-self: start;
  }
  .hero-expert__copy .hero-cta .btn-hero {
    padding: 0.5rem 0.85rem;
    font-size: 0.86rem;
  }
  .hero-expert__meta {
    grid-area: meta;
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
  }
}
.article-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.article-figure img { width: 100%; height: auto; display: block; }

/* Mid-article image as tip backdrop */
.article-figure--tip {
  position: relative;
  isolation: isolate;
  border: 0;
  box-shadow: var(--shadow);
  min-height: clamp(220px, 42vw, 360px);
}
.article-figure--tip > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.article-figure--tip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.92) 12%,
    rgba(15, 23, 42, 0.72) 48%,
    rgba(29, 78, 216, 0.45) 100%
  );
}
.article-tip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  min-height: inherit;
  padding: clamp(1.15rem, 3vw, 1.85rem);
  margin: 0;
  color: #fff;
  max-width: 36rem;
}
.article-tip__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--ui);
}
.article-tip p {
  margin: 0;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.45;
  color: rgba(255, 251, 247, 0.96);
  text-wrap: pretty;
}
.article-tip strong {
  font-weight: 700;
  color: #fff;
}
@media (max-width: 640px) {
  .article-figure--tip {
    min-height: 260px;
  }
  .article-tip {
    max-width: none;
  }
}
.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--siirto-yellow);
}
.hero .kicker { color: var(--siirto-yellow); }
.hero h1,
.hero .hero-title {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-title {
  position: relative;
  display: inline-block;
  padding-right: 2.4rem;
}
.hero-title__bolt {
  position: absolute;
  right: 0;
  top: 0.15em;
  width: 1.55rem;
  height: 2.1rem;
  background: linear-gradient(160deg, #FFD27A 0%, var(--accent) 45%, #E08A00 100%);
  clip-path: polygon(35% 0%, 100% 0%, 55% 42%, 100% 42%, 0% 100%, 40% 52%, 0% 52%);
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.55));
  animation: bolt-flash 2.8s ease-in-out infinite;
}
@keyframes bolt-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}
.hero-title__flags {
  display: inline-flex;
  gap: 0.35rem;
  margin-right: 0.45rem;
  vertical-align: middle;
  position: relative;
  top: -0.12em;
}
.fi-flag {
  display: inline-block;
  width: 1.35rem;
  height: 0.88rem;
  border-radius: 2px;
  background:
    linear-gradient(#003580, #003580) 38% 0 / 18% 100% no-repeat,
    linear-gradient(#003580, #003580) 0 38% / 100% 24% no-repeat,
    #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.kicker-bolt {
  display: inline-block;
  width: 0.7rem;
  height: 0.95rem;
  margin-right: 0.2rem;
  vertical-align: -0.05em;
  background: var(--accent);
  clip-path: polygon(35% 0%, 100% 0%, 55% 42%, 100% 42%, 0% 100%, 40% 52%, 0% 52%);
}
.lede {
  margin: 0 0 1.1rem;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 251, 247, 0.92);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.btn-hero {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.28);
}

.guide-links__lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 58ch;
}
.guide-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.guide-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  background-image: var(--guide-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
  color: #fff;
}
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(8, 14, 24, 0.55) 8%, rgba(8, 14, 24, 0.48) 48%, rgba(8, 14, 24, 0.72));
}
.guide-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
}
.guide-card p {
  margin: 0;
  flex: 1;
  color: rgba(255, 251, 247, 0.9);
  font-size: 0.95rem;
}
.guide-card .btn {
  align-self: flex-start;
  margin-top: auto;
  background: var(--cta);
  color: #0b1420;
  border: 0;
  font-weight: 800;
}
.guide-card .btn:hover { filter: brightness(1.05); }
@media (max-width: 900px) {
  .guide-card-grid { grid-template-columns: 1fr; }
  .hero .hero-title { max-width: none; }
}

.section {
  margin-top: 2.1rem;
  padding-top: 0.25rem;
}
.section h2,
.section h3,
.criteria h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--slate);
}
.section > .kicker,
.criteria .kicker { color: var(--teal-deep); }
.section p { margin: 0 0 0.9rem; max-width: 68ch; }

/* —— Ranking / transfer-row —— */
#rating,
#ranking {
  margin-top: 1.6rem;
}
.affiliate-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.rank-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.rank-card,
.rank-card--row,
.rank-card--ledger,
.rank-card--transfer,
.rank-card--scout {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 1.1rem 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}
.rank-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--cta);
}
.rank-card--scout {
  border-color: rgba(6, 182, 212, 0.35);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent 42%),
    var(--surface);
}
.rank-card--scout::before {
  background: linear-gradient(180deg, var(--light-green), var(--accent-green));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.rank-card--scout .rank-card__badge {
  background: var(--bg-dark);
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}
.rank-card--scout .rank-card__features li {
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary-blue);
}
.rank-card__badge {
  flex: 0 0 auto;
  position: static;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--slate);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.rank-card__brand {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  min-width: 14rem;
  padding-left: 0;
}
.rank-card__logo-link { display: block; flex-shrink: 0; line-height: 0; }
.rank-card__logo {
  width: 108px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.rank-card__id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}
.rank-card__name {
  margin: 0;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--slate);
}
.rank-card__stars { display: flex; gap: 1px; margin-top: 0; }
.rank-card__star { color: #c9d5d2; font-size: 0.85rem; }
.rank-card__star.is-on { color: var(--cta); }
.rank-card__features {
  flex: 1 1 10rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rank-card__features li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-deep);
}
.rank-card__pays {
  flex: 0 1 8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.rank-card__pays img {
  height: 28px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 2px 4px;
}
.rank-card__bonus {
  flex: 0 1 9rem;
  font-weight: 700;
  color: var(--slate);
  font-size: 0.95rem;
}
.rank-card__bonus-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rank-card__cta {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

/* —— Payments —— */
.pay-logos {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.pay-logo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  text-align: center;
}
.pay-logo img {
  margin: 0 auto 0.35rem;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.pay-logo figcaption,
.pay-logo__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 1rem 0 1.25rem;
}
.prose .content-table,
.content-table {
  display: table;
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose .content-table th,
.prose .content-table td,
.content-table th,
.content-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose .content-table th,
.content-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--mint);
}
.prose .content-table tr:last-child td,
.content-table tr:last-child td {
  border-bottom: 0;
}
.compare-table th:first-child,
.compare-table td:first-child {
  width: 2.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--teal-deep);
}
.compare-table a {
  font-weight: 700;
  text-decoration: none;
  color: var(--slate);
}
.compare-table a:hover { color: var(--teal-deep); text-decoration: underline; }
.pay-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.pay-table th,
.pay-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.pay-table th {
  background: var(--mint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.pay-table tr.is-current { background: rgba(255, 194, 10, 0.14); }
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}
.pay-method img {
  width: 52px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(10, 27, 74, 0.06);
}
.yes,
.cell-good {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ok);
  font-weight: 700;
}
.yes::before,
.cell-good::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.14);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cell-bad {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #9B3B3B;
  font-weight: 650;
}
.cell-bad::before {
  content: "–";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(155, 59, 59, 0.12);
  font-weight: 800;
  flex-shrink: 0;
}
.cell-mid {
  color: var(--muted);
  font-weight: 650;
}

/* Mid-article payment compare */
.content-table--pays th {
  background: linear-gradient(180deg, #FFE58A, var(--mint));
  color: var(--slate);
}
.content-table--pays td:first-child {
  min-width: 10rem;
}
.content-table--pays .pay-method img {
  width: 56px;
  height: 36px;
}

/* Deposit / how-to steps */
.deposit-steps {
  position: relative;
  margin: 1.25rem 0 1.6rem;
  padding: 1.15rem 0.35rem 0.35rem;
}
.deposit-steps__rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0.4rem 1rem;
  list-style: none;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--siirto-yellow) rgba(10, 27, 74, 0.12);
}
.deposit-steps__rail::-webkit-scrollbar { height: 7px; }
.deposit-steps__rail::-webkit-scrollbar-thumb {
  background: var(--siirto-yellow);
  border-radius: 999px;
}
.deposit-steps__item {
  position: relative;
  flex: 0 0 min(16.5rem, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.deposit-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: calc(2.3rem + 0.15rem);
  right: -0.85rem;
  height: 3px;
  background: linear-gradient(90deg, var(--siirto-yellow), rgba(255, 194, 10, 0.25));
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}
.deposit-steps__num {
  position: relative;
  z-index: 1;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cta-ink);
  background: var(--siirto-yellow);
  box-shadow: 0 0 0 4px rgba(255, 194, 10, 0.22);
}
.deposit-steps__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: var(--shadow);
  min-height: 7.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.deposit-steps__item:hover .deposit-steps__card {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 27, 74, 0.12);
}
.deposit-steps__card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.deposit-steps__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
@media (min-width: 981px) {
  .deposit-steps__rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
  }
  .deposit-steps__item { flex: none; }
  .deposit-steps[data-count="6"] .deposit-steps__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .deposit-steps[data-count="4"] .deposit-steps__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .table-scroll--pay { overflow: visible; }
  .pay-table { min-width: 0; }
  .pay-table thead { display: none; }
  .pay-table,
  .pay-table tbody { display: block; width: 100%; }
  .pay-table tr {
    display: grid;
    grid-template-columns: minmax(7rem, 0.85fr) 1fr 1fr;
    grid-template-areas:
      "method m1 m2"
      "method m3 m4"
      "method m5 m6";
    gap: 0.4rem 0.65rem;
    align-items: start;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid var(--line);
  }
  .pay-table td {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border: 0;
    padding: 0;
    font-size: 0.9rem;
  }
  .pay-table td:first-child { grid-area: method; align-self: center; }
  .pay-table td:nth-child(2) { grid-area: m1; }
  .pay-table td:nth-child(3) { grid-area: m2; }
  .pay-table td:nth-child(4) { grid-area: m3; }
  .pay-table td:nth-child(5) { grid-area: m4; }
  .pay-table td:nth-child(6) { grid-area: m5; }
  .pay-table td:nth-child(7) { grid-area: m6; }
  .pay-table td:nth-child(n+2)::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .pay-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* —— Slots lobby (MCP: categories + full art, TOC-aware cols) —— */
.slots-lobby {
  background: #0F172A;
  color: #FFFbf7;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow: visible;
}
.slots-lobby .kicker { color: var(--siirto-yellow); }
.slots-lobby h2 { color: #fff; margin: 0 0 0.4rem; font-family: var(--display); }
.slots-lobby > p { color: rgba(255, 251, 247, 0.78); max-width: 54ch; margin: 0; }
.slots-lobby__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 1.15rem;
}
.slots-lobby__tab {
  appearance: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  background: var(--cta);
  color: var(--cta-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.slots-lobby__tab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.slots-lobby__tab.is-active {
  background: #fff;
  color: var(--cta-ink);
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 3px 0 rgba(245, 166, 35, 0.45);
}
.slots-lobby__grid {
  --slot-cols: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--slot-cols), minmax(0, 1fr));
  gap: 1rem 0.9rem;
  overflow: visible;
}
.slots-lobby__grid[data-toc="top"] { --slot-cols: 4; }
.slots-lobby__grid[data-toc="side"] { --slot-cols: 3; }
.slots-lobby__item[hidden] { display: none !important; }
.slot-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  border-radius: 0.75rem;
  transition: transform 0.2s ease;
  transform-origin: center center;
}
.slot-tile.is-disabled { opacity: 0.72; cursor: default; }
.slot-tile:hover,
.slot-tile:focus-visible {
  transform: scale(1.05);
  z-index: 3;
  color: #fff;
}
.slot-tile:active { transform: scale(1.08); }
.slot-tile__media {
  display: block;
  overflow: visible;
  border-radius: 0.85rem;
  background: #1C2028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
  padding: 0.4rem;
}
.slot-tile__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.55rem;
  transform: none !important;
}
.slot-tile__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0 0.15rem;
  color: #fff;
}
@media (max-width: 980px) {
  .slots-lobby__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) rgba(255, 255, 255, 0.12);
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.15rem 0.25rem 0.55rem;
  }
  .slots-lobby__tabs::-webkit-scrollbar { height: 6px; }
  .slots-lobby__tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
  }
  .slots-lobby__tabs::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 999px;
  }
  .slots-lobby__grid,
  .slots-lobby__grid[data-toc="top"],
  .slots-lobby__grid[data-toc="side"] {
    --slot-cols: 2 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot-tile,
  .slots-lobby__tab { transition: none; }
  .slot-tile:hover,
  .slot-tile:focus-visible,
  .slot-tile:active { transform: none; }
}

/* legacy slot-grid kept for safety */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.slot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.slot-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--mint);
}
.slot-card figcaption {
  padding: 0.45rem 0.55rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--slate);
}

/* —— FAQ —— */
.faq {
  margin-top: 2rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--slate);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--teal);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

/* —— Author —— */
.author-card .kicker {
  color: var(--teal-deep);
}
.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--teal);
}
.author-card > a {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: block;
  line-height: 0;
  width: 80px;
  height: 80px;
}
.author-card img {
  display: block;
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: var(--mint);
  flex-shrink: 0;
}
.author-card > div {
  min-width: 0;
  flex: 1 1 auto;
}
.author-card h3 { margin: 0 0 0.35rem; font-family: var(--display); }
.author-card p { margin: 0; }
.author-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}
/* Guard: never squeeze bio into the portrait column */
.hero.author-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 0;
  justify-content: center;
  align-items: center;
}
.author-hero__text {
  min-width: 0;
}
.author-hero__text .lede,
.author-hero .lede {
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 0;
}
.author-hero .kicker {
  color: var(--teal-deep);
  margin: 0 0 0.35rem;
}
.author-hero img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
  background: var(--mint);
  box-shadow: 0 12px 28px rgba(20, 33, 43, 0.18);
}
.author-hero--juho img {
  width: min(42vw, 220px);
  height: min(42vw, 220px);
}
.author-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  max-width: none;
  color: var(--ink);
}
.hero.author-hero h1 {
  max-width: none;
  color: var(--surface);
}
.hero.author-hero .lede {
  color: rgba(255, 251, 247, 0.92);
}
.hero.author-hero .kicker {
  color: var(--siirto-yellow);
}

/* —— Footer —— */
.site-footer {
  margin-top: 3rem;
  padding: 2rem var(--edge) 2.5rem;
  background: var(--slate);
  color: rgba(255, 251, 247, 0.88);
}
.site-footer a { color: var(--siirto-yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
.footer-logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.footer-logo {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  max-width: min(18rem, 100%);
  margin-bottom: 0.85rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
.footer-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.85rem;
}
.footer-author__photo {
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 999px;
  overflow: hidden;
}
.footer-author__photo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}
.footer-author__meta {
  min-width: 0;
  font-size: 0.95rem;
}
.footer-author__meta p { margin: 0.15rem 0 0; opacity: 0.9; }
.footer-email a {
  color: var(--siirto-yellow) !important;
  font-weight: 700;
  word-break: break-all;
}
.footer-col .footer-nav,
.footer-col .footer-legal,
.site-footer .footer-legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}
.footer-col .footer-nav a,
.footer-col .footer-legal a,
.site-footer .footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.site-footer h4 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  color: var(--surface);
}
.footer-disclaimer {
  max-width: 1180px;
  margin: 1.75rem auto 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 251, 247, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.footer-disclaimer h4 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.footer-disclaimer p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 251, 247, 0.78);
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: #FFFbf7; }
.legal-line {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  font-size: 0.82rem;
  color: rgba(255, 251, 247, 0.55);
  border-top: 1px solid rgba(255, 251, 247, 0.12);
  padding-top: 1rem;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--surface);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .rank-card,
  .slot-card,
  .pay-logo {
    animation: rise 0.55s ease both;
  }
  .rank-card:nth-child(2) { animation-delay: 0.04s; }
  .rank-card:nth-child(3) { animation-delay: 0.08s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  .page-toc__link.is-active .page-toc__dot {
    box-shadow: 0 0 0 4px rgba(0, 163, 161, 0.2);
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  html { scroll-padding-left: 0; }
  .page {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0.75rem;
  }
  #main { grid-column: 1; }
  /* TOC stays a .page sibling (no JS relocation) — compact chips above content */
  .page-toc--leftfolio,
  .page-toc--rail-right,
  .anchor-nav,
  .page-toc--mobile {
    position: relative;
    top: auto;
    margin: 0 0 0.75rem;
    max-height: none;
    grid-column: 1;
    grid-row: auto;
  }
  .page-toc__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .page-toc__link {
    grid-template-columns: auto auto;
    background: var(--mint);
    padding: 0.35rem 0.6rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    right: var(--edge);
    top: calc(var(--header-h) - 0.25rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 14rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .header-cta { display: none; }
  /* Narrow/tablet chrome: logo + Valikko only — long mid CTA was a
     wrapping circle that overlapped the logo. Primary CTA lives in hero. */
  .site-header {
    gap: 0.5rem;
    overflow: hidden;
  }
  .brand {
    flex: 0 1 auto;
    max-width: min(52vw, 14rem);
    min-width: 0;
  }
  .brand-logo {
    height: 44px;
    max-width: 100%;
    width: auto;
  }
  .brand-mark {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.25rem;
  }
  .site-header > .mobile-header-cta {
    display: none !important;
  }
  .nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }
  .rank-card,
  .rank-card--row,
  .rank-card--ledger,
  .rank-card--transfer,
  .rank-card--scout {
    flex-wrap: wrap;
    text-align: center;
    padding-top: 1.15rem;
  }
  .rank-card__badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
  }
  .rank-card__brand {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .rank-card__id { align-items: center; }
  .rank-card__features { display: none; }
  .rank-card__pays {
    flex: 1 1 100%;
    justify-content: center;
  }
  .rank-card__bonus {
    flex: 1 1 100%;
    text-align: center;
  }
  .rank-card__cta {
    flex: 1 1 100%;
    margin-left: 0;
  }
  .rank-card__cta .btn { width: 100%; }
  .pay-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col .footer-nav,
  .footer-col .footer-legal,
  .site-footer .footer-legal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pay-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-mark {
    font-size: 0.8rem;
    max-width: 7.5rem;
  }
  .footer-col .footer-legal,
  .site-footer .footer-legal {
    grid-template-columns: 1fr 1fr;
  }
  .author-hero { grid-template-columns: 1fr; }
  .author-card {
    gap: 0.85rem;
  }
  .author-card > a,
  .author-card img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 200px; }
}
/* legal-footer-chrome + footer-all-devices */
.site-footer {
  overflow-x: clip;
  max-width: 100%;
  padding-bottom: 4.5rem;
}
.site-footer .footer-logo-link,
.site-footer a.footer-logo-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.site-footer .footer-logo {
  height: clamp(56px, 10vw, 96px);
  width: auto;
  max-width: min(18rem, 100%);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
.site-footer .footer-col .footer-nav,
.site-footer .footer-col .footer-legal,
.site-footer .footer-legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.site-footer .footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 1rem;
  overflow-wrap: anywhere;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer .legal-line {
  font-size: max(0.95rem, 1em);
  opacity: 1;
}

/* BEGIN legal-page-layout */
body[data-legal-page="true"] .page {
  display: block;
  grid-template-columns: none;
  width: 100%;
  max-width: min(1240px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  min-width: 0;
}
body[data-legal-page="true"] .page > main,
body[data-legal-page="true"] .page > #main {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
}
body[data-legal-page="true"] .content-layout--legal {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  box-sizing: border-box;
  padding: 2.5rem var(--edge, clamp(1.25rem, 4vw, 3rem)) 4rem;
}
/* TOC-shell sites: `.page` already has ~24px side pad — keep a modest extra
   so hero/prose match commercial `.hero { padding: 48px }` rhythm. */
body[data-legal-page="true"] .page .content-layout--legal {
  padding-left: var(--legal-edge, 1.5rem);
  padding-right: var(--legal-edge, 1.5rem);
}
body[data-legal-page="true"] .hero {
  padding: clamp(3.5rem, 8vw, 7rem) var(--edge, clamp(1.25rem, 4vw, 3rem)) clamp(2.4rem, 5vw, 4rem);
  box-sizing: border-box;
}
body[data-legal-page="true"] .page > main > .hero,
body[data-legal-page="true"] .page > #main > .hero {
  padding-left: var(--legal-edge, 1.5rem);
  padding-right: var(--legal-edge, 1.5rem);
}
body[data-legal-page="true"] .hero h1 {
  max-width: min(22ch, 100%);
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}
body[data-legal-page="true"] .hero .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green, #0d7c3a);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-legal-page="true"] .hero > p {
  max-width: 48rem;
  color: var(--muted, #5d6f63);
}
body[data-legal-page="true"] .article > .section.prose,
body[data-legal-page="true"] main > .section.prose {
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
  max-width: 48rem;
}
body[data-legal-page="true"] .section.prose h2 {
  margin: 0 0 1rem;
  color: var(--ink, #173523);
}
body[data-legal-page="true"] .section.prose h3 {
  margin: 1.6rem 0 0.75rem;
}
body[data-legal-page="true"] .section.prose p,
body[data-legal-page="true"] .section.prose li {
  overflow-wrap: break-word;
  color: var(--ink, #173523);
}
body[data-legal-page="true"] .section.prose a {
  color: var(--green-deep, #07572a);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
body[data-legal-page="true"] .legal-back {
  margin-top: 1.5rem;
}
/* END legal-page-layout */
/* BEGIN footer-all-devices */
/* legal-footer-chrome */
.site-footer {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) max(4.5rem, env(safe-area-inset-bottom));
}
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}
.site-footer .footer-grid,
.site-footer .footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  min-width: 0;
}
.site-footer .footer-grid:has(> .footer-links) {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .site-footer .footer-links,
  .site-footer .footer-grid:not(:has(> .footer-links)) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  }
}
.site-footer .footer-brand,
.site-footer .footer-col,
.site-footer .footer-legal,
.site-footer .footer-note,
.site-footer .footer-disclaimer,
.site-footer .legal-line {
  min-width: 0;
  max-width: 100%;
}
.site-footer .footer-logo,
.site-footer .brand--footer,
.site-footer .footer-brand > a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  text-decoration: none;
}
.site-footer .footer-logo img,
.site-footer .brand img,
.site-footer img.footer-logo {
  width: auto;
  height: clamp(56px, 10vw, 96px);
  max-width: min(20rem, 100%);
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
.site-footer img {
  max-width: 100%;
  height: auto;
}
.site-footer .footer-logo img,
.site-footer .brand img,
.site-footer img.footer-logo {
  height: clamp(56px, 10vw, 96px);
}
.site-footer a {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}
@media (max-width: 719px) {
  .site-footer a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}
.site-footer .footer-note,
.site-footer .footer-disclaimer,
.site-footer .legal-line,
.site-footer p {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 72rem;
  overflow-wrap: anywhere;
  opacity: 1;
}
.site-footer .footer-col,
.site-footer .footer-legal {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  min-width: 0;
  max-width: 100%;
}
.site-footer .footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* END footer-all-devices */
