/* KasinoPay.fi — Telemetry / broadcast (#2 light-cold)
   design_run_id: kasinopay-fi-2026-08-10-001 */
:root {
  --bg: #e8eef2;
  --ink: #0b1c24;
  --surface: #f7fafc;
  --cta: #00a7a6;
  --cta-hover: #008f8e;
  --cta-fg: #ffffff;
  --rail: #1b4f72;
  --hairline: #c5d0d8;
  --muted: #4a606c;
  --ok: #0d7a5f;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 72rem;
  --max-wide: 96rem;
  --edge: clamp(1.75rem, 20vw, 18rem);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(11, 28, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 36, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rail);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--cta);
}

a.btn:hover,
a.btn-primary:hover,
a.btn-play:hover {
  color: var(--cta-fg);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--cta);
  z-index: 90;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.site-header.is-sticky {
  box-shadow: 0 8px 24px rgba(11, 28, 36, 0.08);
}
.site-header.is-sticky .brand-mark {
  font-size: 1.05rem;
}

.header-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0.85rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  max-width: min(62vw, 24rem);
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.7rem + 1.1vw, 1.35rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a[aria-current="page"] {
  color: var(--cta);
}

.btn,
.btn-primary,
.btn-play,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary,
.btn-play {
  background: var(--cta);
  color: var(--cta-fg);
  border-color: var(--cta);
}
.btn-primary:hover,
.btn-play:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--cta-fg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--rail);
  color: var(--ink);
}

/* Text-only first screen — no photo / decorative background */
.hero {
  position: relative;
  padding: 2.25rem 0 0.5rem;
  background: transparent;
  color: var(--ink);
}
.hero-inner {
  max-width: none;
  margin: 0 auto;
  width: 100%;
  padding-left: var(--edge);
  padding-right: var(--edge);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1.15rem;
  max-width: none;
  color: var(--ink);
}
.hero p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}
.hero ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}
.hero li {
  margin-bottom: 0.35rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--edge);
}
.wrap--wide {
  max-width: none;
  width: 100%;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.payment-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}
.payment-rail a {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
}
.payment-rail a:hover,
.payment-rail a[aria-current="page"] {
  border-color: var(--cta);
  color: var(--cta);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section + .section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.section p {
  margin: 0 0 1rem;
  max-width: none;
}
.section ul,
.section ol {
  max-width: none;
  padding-left: 1.2rem;
}
.section li {
  margin-bottom: 0.4rem;
}

.affiliate-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--rail);
  padding: 0.9rem 1rem;
}
.rank-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--rail);
  min-width: 2ch;
}
.rank-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}
.rank-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
}
.rank-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ok);
}
.rank-tc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.compare-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  white-space: nowrap;
}
.compare-table tbody tr:hover {
  background: color-mix(in srgb, var(--cta) 6%, var(--surface));
}
.compare-table .mono,
.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.btn-play--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}
.rank-list--compact {
  display: none;
}
@media (max-width: 720px) {
  .compare-wrap {
    display: none;
  }
  .rank-list--compact {
    display: flex;
  }
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 28, 36, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  border-color: var(--cta);
  color: var(--cta);
  transform: translateY(-2px);
}
.to-top[hidden] {
  display: none !important;
}

/* Ranking cards — vertical list of horizontal rows */
.rank-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.rank-card--row {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 0 rgba(11, 28, 36, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  will-change: transform;
}
.rank-card--row:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cta) 55%, var(--hairline));
  box-shadow:
    0 12px 28px rgba(11, 28, 36, 0.12),
    0 2px 0 color-mix(in srgb, var(--cta) 35%, transparent);
}
.rank-card--row:hover .rank-card__cta .btn-play {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 163, 163, 0.35);
}
.rank-card__cta .btn-play {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .rank-card--row,
  .rank-card__cta .btn-play {
    transition: none;
  }
  .rank-card--row:hover {
    transform: none;
  }
  .rank-card--row:hover .rank-card__cta .btn-play {
    transform: none;
  }
}
.rank-card__badge {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--rail);
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(11, 28, 36, 0.18);
}
.rank-card__brand {
  flex: 0 1 11rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 7rem;
}
.rank-card__brand img {
  max-height: 2.75rem;
  width: auto;
  object-fit: contain;
}
.rank-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.rank-card__stars {
  display: flex;
  gap: 0.1rem;
  line-height: 1;
}
.rank-card__star {
  color: color-mix(in srgb, var(--hairline) 70%, var(--muted));
  font-size: 0.85rem;
}
.rank-card__star.is-on {
  color: var(--cta);
}
.rank-card__features {
  flex: 1 1 14rem;
  list-style: disc;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
}
.rank-card__bonus {
  flex: 1 1 12rem;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.rank-card__bonus-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rail);
  margin-bottom: 0.2rem;
}
.rank-card__cta {
  flex: 0 0 auto;
  margin-left: auto;
}
.rank-card__cta .btn-play {
  width: auto;
  min-width: 7.5rem;
  border-radius: 999px;
  padding-inline: 1.35rem;
}
@media (max-width: 860px) {
  .rank-cards {
    gap: 0.85rem;
    max-width: 26rem;
    margin-inline: auto;
  }
  .rank-card--row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1rem 1.1rem 0.95rem;
  }
  .rank-card__badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    box-shadow: none;
    margin-inline: auto;
  }
  .rank-card__brand {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
  }
  .rank-card__brand img {
    max-height: 2.35rem;
    margin-inline: auto;
  }
  .rank-card__name {
    font-size: 1.05rem;
    width: 100%;
  }
  .rank-card__stars {
    justify-content: center;
  }
  .rank-card__features {
    flex: 0 0 auto;
    list-style: none;
    width: 100%;
    gap: 0.15rem;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 0;
    margin: 0;
  }
  .rank-card__features li {
    margin: 0;
    padding: 0;
  }
  .rank-card__bonus {
    flex: 0 0 auto;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0;
  }
  .rank-card__bonus-label {
    margin-bottom: 0.15rem;
  }
  .rank-card__cta {
    width: 100%;
    margin-left: 0;
    margin-top: 0.15rem;
    display: flex;
    justify-content: center;
  }
  .rank-card__cta .btn-play {
    width: 100%;
    max-width: 16rem;
    min-width: 0;
    padding: 0.7rem 1.1rem;
  }
}

.compare-wrap,
.rank-list--compact {
  display: none;
}

/* Generated article body — full width, small edge only via .wrap */
.prose--wide,
.prose--wide p,
.prose--wide ul,
.prose--wide ol,
.wrap--wide .section p,
.wrap--wide .section ul,
.wrap--wide .section ol {
  max-width: none;
  width: 100%;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.55rem;
}
.prose .ranking-block {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.prose .ranking-block > h3 {
  margin-top: 0;
}
.prose .ranking-block > em,
.prose .ranking-block > p em {
  display: block;
  margin-top: 0.75rem;
}
@media (max-width: 860px) {
  .prose .ranking-block {
    text-align: center;
  }
  .prose .ranking-block > h3,
  .prose .ranking-block .affiliate-note {
    text-align: center;
  }
  .prose .ranking-block .affiliate-note {
    max-width: 26rem;
    margin-inline: auto;
  }
}
.prose p {
  margin: 0 0 1rem;
  max-width: none;
}
.prose ul,
.prose ol {
  max-width: none;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 4px;
}
.prose .table-scroll:focus {
  outline: 2px solid color-mix(in srgb, var(--cta) 55%, transparent);
  outline-offset: 2px;
}
.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
  display: table;
  table-layout: auto;
  border: 0;
  background: transparent;
}
.prose .table-scroll table {
  margin: 0;
}
.prose table tr {
  display: table-row;
  width: auto;
}
.prose th,
.prose td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  white-space: nowrap;
}
.prose td:last-child,
.prose th:last-child {
  white-space: normal;
  min-width: 8rem;
}
.prose th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.prose th:first-child,
.prose td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 4px 0 8px rgba(11, 28, 36, 0.04);
}
.prose th:first-child {
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.prose td:first-child {
  font-weight: 600;
}
@media (max-width: 860px) {
  .prose .table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
    margin-inline: 0;
  }
  .prose table {
    min-width: 0;
    width: 100%;
    display: block;
    font-size: 0.92rem;
  }
  .prose table tr {
    display: block;
    width: auto;
    max-width: 26rem;
    margin: 0 auto 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    text-align: center;
  }
  .prose table tr:first-child {
    display: none;
  }
  .prose th,
  .prose td {
    display: block;
    width: 100%;
    border: 0;
    white-space: normal;
    text-align: center;
    padding: 0.28rem 0;
    position: static;
    background: transparent;
    box-shadow: none;
  }
  .prose th:first-child,
  .prose td:first-child {
    position: static;
    z-index: auto;
    background: transparent;
    box-shadow: none;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .prose td + td::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.05rem;
  }
  .prose table tr:has(td:nth-child(5)) td:nth-child(2)::before {
    content: "Nopeus";
  }
  .prose table tr:has(td:nth-child(5)) td:nth-child(3)::before {
    content: "Turvallisuus";
  }
  .prose table tr:has(td:nth-child(5)) td:nth-child(4)::before {
    content: "Yksityisyys";
  }
  .prose table tr:has(td:nth-child(5)) td:nth-child(5)::before {
    content: "Saatavuus";
  }
  .prose table tr:has(td:nth-child(3)):not(:has(td:nth-child(4))) td:nth-child(2)::before {
    content: "Alue";
  }
  .prose table tr:has(td:nth-child(3)):not(:has(td:nth-child(4))) td:nth-child(3)::before {
    content: "Voitot Suomessa";
  }
  .prose table tr:has(td:nth-child(4)):not(:has(td:nth-child(5))) td:nth-child(2)::before {
    content: "Minitalletus";
  }
  .prose table tr:has(td:nth-child(4)):not(:has(td:nth-child(5))) td:nth-child(3)::before {
    content: "Maksimitalletus";
  }
  .prose table tr:has(td:nth-child(4)):not(:has(td:nth-child(5))) td:nth-child(4)::before {
    content: "Kotiutusminimi";
  }
}
.prose em {
  color: var(--muted);
}
.prose a[href^="http"] {
  word-break: break-word;
}
.prose .faq {
  margin-top: 0.5rem;
  max-width: none;
}
.prose .faq .acc-item {
  border-bottom: 1px solid var(--hairline);
}
.prose .faq .acc-panel p {
  margin: 0;
  max-width: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.toc,
.page-toc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.1rem;
  margin: 1.5rem 0 2rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cta) 8%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--cta) 28%, var(--hairline));
  border-radius: 10px;
  box-shadow:
    0 10px 28px rgba(11, 28, 36, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: sticky;
  top: calc(var(--header-h) + 0.35rem);
  z-index: 40;
  backdrop-filter: blur(10px);
}
.page-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.page-toc__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-toc__hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-toc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.toc a,
.page-toc a,
.page-toc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 88%, #fff);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.page-toc__num {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--rail);
}
.toc a:hover,
.page-toc a:hover,
.page-toc__link:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--cta) 55%, var(--hairline));
  background: color-mix(in srgb, var(--cta) 14%, var(--surface));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 28, 36, 0.1);
}
.page-toc__link.is-active {
  color: #fff;
  border-color: var(--cta);
  background: var(--cta);
  box-shadow: 0 8px 18px rgba(0, 163, 163, 0.28);
}
.page-toc__link.is-active .page-toc__num {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .toc a,
  .page-toc a,
  .page-toc__link {
    transition: none;
  }
  .toc a:hover,
  .page-toc a:hover,
  .page-toc__link:hover {
    transform: none;
  }
}
@media (max-width: 860px) {
  .toc,
  .page-toc {
    display: none !important;
  }
}

.faq .acc-item {
  border-bottom: 1px solid var(--hairline);
}
.faq button.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq button.acc-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.2rem;
  border-right: 2px solid var(--cta);
  border-bottom: 2px solid var(--cta);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq .acc-item.is-open button.acc-trigger::after {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}
.faq .acc-panel {
  display: none;
  padding: 0 0 1rem;
  color: var(--muted);
}
.faq .acc-item.is-open .acc-panel {
  display: block;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.tabs button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  border-color: var(--cta);
  color: var(--cta);
}
.tab-panel[hidden] {
  display: none;
}

.cta-band {
  margin: 3rem 0 0;
  padding: 2rem 1.25rem;
  background: var(--ink);
  color: #f7fafc;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}
.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 40ch;
  color: rgba(247, 250, 252, 0.85);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 3rem;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--edge);
}
.footer-brand {
  display: inline-flex;
  margin: 0 0 1rem;
}
.footer-brand img {
  display: block;
  width: min(14rem, 70vw);
  height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.disclaimer {
  font-size: 0.82rem;
  max-width: none;
}

.page-intro {
  padding: 2.5rem 1.25rem 0;
  max-width: var(--max);
  margin: 0 auto;
}
.page-intro .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.page-intro .brand-signal span {
  color: var(--cta);
}
.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: 0 0 0.75rem;
}

.author-byline {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.author-byline a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.author-byline a:hover {
  color: var(--cta);
}

.author-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  margin: 2rem 0 0;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(11, 28, 36, 0.06);
}
.author-avatar {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--cta) 12%, var(--surface));
}
.author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.author-card strong,
.author-card span {
  display: block;
}
.author-card strong a {
  color: var(--ink);
  text-decoration: none;
}
.author-card strong a:hover {
  color: var(--cta);
}
.author-card span {
  color: var(--rail);
  font-size: 0.88rem;
  font-weight: 600;
}
.author-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.author-card .author-verification {
  color: var(--ink);
  font-weight: 650;
}

.author-profile__intro {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  margin: 0 0 2rem;
}
.author-profile__intro > img {
  display: block;
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}
.author-profile .method-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.author-profile .method-list li {
  margin: 0.35rem 0;
}

@media (max-width: 860px) {
  .author-profile__intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-profile__intro > img {
    max-width: 12rem;
  }
  .author-card {
    grid-template-columns: 3.5rem 1fr;
    padding: 0.9rem;
  }
  .author-avatar {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 860px) {
  :root {
    --edge: clamp(0.875rem, 10vw, 9rem);
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }
  .brand {
    max-width: calc(100% - 5.5rem);
  }
  .brand-logo {
    width: 2.15rem;
    height: 2.15rem;
  }
  .site-nav {
    display: none;
    flex: 1 0 100%;
    position: static;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 0 0.25rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .rank-row {
    grid-template-columns: auto 1fr;
  }
  .rank-row .btn-play {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
