/* ==========================================================================
   SpinMatch — licensed iGaming comparison
   Motion policy: entrance fades and hover transitions only.
   No flashing, blinking or looping high-contrast animation anywhere.
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/cinzel-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* Cyrillic subset. Manrope ships as a single variable file, so one face covers
   every weight. The unicode-range means browsers fetch it only on pages that
   actually contain Cyrillic text, so the other six languages pay nothing. */
@font-face {
  font-family: "Manrope"; src: url("../assets/fonts/manrope-cyr.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0e14;
  --bg-raise: #0d1220;
  --panel: #10141f;
  --panel-2: #131a2b;
  --line: rgba(255, 215, 0, 0.14);
  --line-soft: rgba(232, 236, 246, 0.08);

  --gold: #ffd700;
  --gold-bright: #ffe873;
  --gold-deep: #b8860b;
  --green: #38d39f;
  --danger: #ff5470;

  --text: #eef1f8;
  --muted: #9aa4bc;
  --muted-2: #6f7891;

  --font-display: "Cinzel", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --wrap-narrow: 820px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.22; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1400; padding: 0.7rem 1.1rem;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.noscript-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.24);
  color: #d7dceb;
  font-size: 0.87rem;
  line-height: 1.62;
}
.noscript-note strong { color: var(--gold); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3.2rem, 7vw, 5.6rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-raise), var(--bg)); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-title { font: 700 clamp(1.5rem, 3.4vw, 2.15rem) / 1.22 var(--font-display); margin-top: 0.55rem; }
.section-lead { margin-top: 0.85rem; color: var(--muted); font-size: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.eyebrow svg { flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.86rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 0.94rem; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn svg { flex: none; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), #f0b429 52%, #c9940f);
  color: #231a02;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { border: 1px solid var(--line-soft); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 215, 0, 0.5); color: var(--gold); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.86rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.55rem; flex: none; }
.brand-gem { color: var(--gold); }
.brand-name { font: 700 1.12rem var(--font-display); letter-spacing: 0.05em; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub {
  color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding-left: 0.8rem; margin-left: 0.2rem; border-left: 1px solid var(--line-soft);
}
.nav { display: flex; gap: 1.15rem; margin-left: auto; flex-wrap: wrap; }
.nav a { font-size: 0.85rem; color: var(--muted); transition: color 0.18s ease; }
.nav a:hover { color: var(--gold); }

/* ---------- Language switcher ---------- */
/* A real dropdown, built from a button and a listbox rather than a <select>:
   the creative guidelines rule out form selects, and this keeps the picker a
   plain navigation control that degrades to "stay in English" without scripting. */
.lang-nav { display: flex; align-items: center; flex: none; }
.lang-select { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.03em; color: var(--text);
  padding: 0.46rem 0.6rem; border: 1px solid var(--line-soft); border-radius: 8px;
  background: rgba(16, 20, 31, 0.72); cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.lang-trigger:hover { border-color: var(--gold-deep); color: var(--gold-bright); }
.lang-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.lang-value { min-width: 4.9rem; text-align: left; }
.lang-caret {
  flex: none; width: 0.4rem; height: 0.4rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  transition: transform 0.18s ease;
}
.lang-trigger[aria-expanded="true"] .lang-caret { transform: translateY(0.08em) rotate(-135deg); }
.lang-menu {
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 70;
  min-width: 100%; margin: 0; padding: 0.3rem; list-style: none;
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--panel); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lang-option {
  padding: 0.44rem 0.62rem; border-radius: 6px; cursor: pointer;
  font-size: 0.76rem; color: var(--muted); white-space: nowrap;
  transition: color 0.14s ease, background 0.14s ease;
}
.lang-option:hover, .lang-option:focus-visible { color: var(--text); background: rgba(255, 215, 0, 0.08); }
.lang-option:focus-visible { outline: none; }
.lang-option[aria-selected="true"] { color: #0b0e14; background: var(--gold); }
.age-badge {
  flex: none; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.34rem 0.6rem; border-radius: 7px;
  color: #ffd9e1; background: rgba(255, 84, 112, 0.16); border: 1px solid rgba(255, 84, 112, 0.45);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.4rem);
  background-image:
    linear-gradient(180deg, rgba(11, 14, 20, 0.62) 0%, rgba(11, 14, 20, 0.84) 54%, var(--bg) 100%),
    url("../assets/hero-bg.webp");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 900px; }
.hero h1 {
  font: 700 clamp(1.95rem, 5.2vw, 3.25rem) / 1.14 var(--font-display);
  margin-top: 0.9rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #fff3b0 5%, var(--gold) 48%, #c9940f 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 1.15rem; color: #cfd6e6; font-size: clamp(1rem, 1.6vw, 1.1rem); max-width: 66ch; }
.hero-note { margin-top: 1.5rem; color: var(--muted-2); font-size: 0.82rem; max-width: 62ch; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: rgba(16, 20, 31, 0.72); border: 1px solid var(--line-soft);
  font-size: 0.83rem; color: var(--muted);
  backdrop-filter: blur(6px);
}
.chip svg { color: var(--gold); flex: none; }
.chip strong { color: var(--text); font-weight: 700; margin-right: 0.28rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem;
  margin-top: 1.6rem; color: var(--muted); font-size: 0.88rem;
}
.hero-stats i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-deep); }

/* ---------- Panel ---------- */
.panel {
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.72), rgba(16, 20, 31, 0.92));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.3rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ---------- Offer finder ---------- */
.finder-disclosure {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.95rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #d7dceb; font-size: 0.86rem; line-height: 1.6;
}
.finder-disclosure svg { color: var(--gold); flex: none; margin-top: 0.18rem; }
.finder-disclosure strong { color: var(--gold); }

.finder-q { margin-top: 1.8rem; }
.q-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.02rem; font-weight: 700; }
.q-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: rgba(255, 215, 0, 0.14); color: var(--gold);
  font-size: 0.78rem; font-weight: 800;
}

.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.95rem; }
.opt-btn {
  display: flex; flex-direction: column; gap: 0.35rem; text-align: left;
  padding: 1rem 1rem 1.05rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.55);
  border: 1px solid var(--line-soft);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.opt-btn:hover { border-color: rgba(255, 215, 0, 0.4); transform: translateY(-2px); }
.opt-btn svg { color: var(--gold); }
.opt-btn strong { font-size: 0.95rem; color: var(--text); }
.opt-btn span { font-size: 0.79rem; color: var(--muted); line-height: 1.45; }
.opt-btn.is-selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
}

.finder-result {
  margin-top: 1.9rem; padding-top: 1.7rem;
  border-top: 1px solid var(--line-soft);
}
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.result-badge {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(56, 211, 159, 0.12); border: 1px solid rgba(56, 211, 159, 0.35);
  color: var(--green); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.result-lic {
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  padding-left: 0.7rem; border-left: 1px solid var(--line-soft);
}
.result-name { font: 700 clamp(1.3rem, 3vw, 1.75rem) / 1.2 var(--font-display); margin-top: 0.9rem; }
.result-offer { margin-top: 0.4rem; color: var(--gold); font-size: 1.05rem; font-weight: 600; }
.result-terms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.7rem; margin-top: 1.3rem;
}
.result-terms > div {
  padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.5); border: 1px solid var(--line-soft);
}
.result-terms dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.result-terms dd { margin-top: 0.22rem; font-weight: 700; font-size: 0.95rem; }
.result-why { margin-top: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.result-fine { margin-top: 1.1rem; color: var(--muted-2); font-size: 0.8rem; line-height: 1.6; }

/* ---------- Bonus reality check ---------- */
.calc-controls { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; }
.calc-field { display: flex; flex-direction: column; gap: 0.7rem; }
.calc-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }

.range-row { display: flex; align-items: center; gap: 1rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff6cf; border: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff6cf; border: 3px solid var(--gold); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.range-value {
  min-width: 4.6rem; text-align: center; font-weight: 800; font-size: 1.02rem;
  font-variant-numeric: tabular-nums; color: var(--gold);
  padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  background: rgba(255, 215, 0, 0.08); border: 1px solid rgba(255, 215, 0, 0.22);
}

.mult-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mult-btn {
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(11, 14, 20, 0.55);
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.mult-btn:hover { border-color: rgba(255, 215, 0, 0.4); color: var(--text); }
.mult-btn.is-active { border-color: var(--gold); background: rgba(255, 215, 0, 0.12); color: var(--gold); }

.calc-out {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  margin-top: 1.9rem; padding-top: 1.7rem; border-top: 1px solid var(--line-soft);
}
.calc-stat {
  padding: 1.05rem 1.1rem 1.15rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.55); border: 1px solid var(--line-soft);
}
.calc-stat-label { display: block; font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); line-height: 1.45; }
.calc-stat-value {
  display: block; margin-top: 0.5rem; font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.calc-stat-sub { display: block; margin-top: 0.35rem; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.calc-stat-hero { border-color: rgba(255, 215, 0, 0.32); background: rgba(255, 215, 0, 0.07); }
.calc-stat-hero .calc-stat-value { color: var(--gold); }
.calc-stat-warn { border-color: rgba(255, 84, 112, 0.28); }
.calc-stat-warn .calc-stat-value { color: #ff8fa1; }

.calc-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(255, 84, 112, 0.06); border: 1px solid rgba(255, 84, 112, 0.22);
  color: #e2c6cc; font-size: 0.85rem; line-height: 1.62;
}
.calc-note svg { color: var(--danger); flex: none; margin-top: 0.2rem; }
.calc-note strong { color: #ffd9e1; }

/* ---------- Review method ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.review-card {
  padding: 1.25rem 1.3rem 1.35rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.5); border: 1px solid var(--line-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.review-card:hover { border-color: rgba(255, 215, 0, 0.3); transform: translateY(-2px); }
.review-num { font: 700 0.8rem var(--font-display); color: var(--gold-deep); letter-spacing: 0.1em; }
.review-card h3 { font-size: 0.98rem; margin-top: 0.45rem; }
.review-card p { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ---------- Tables ---------- */
.table-hint { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 0.7rem; }
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: rgba(16, 20, 31, 0.6);
  -webkit-overflow-scrolling: touch;
}
.cmp { min-width: 1080px; font-size: 0.85rem; }
.cmp caption { text-align: left; }
.cmp thead th {
  position: sticky; top: 0;
  background: #131a2b; color: var(--muted);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  text-align: left; padding: 0.85rem 0.72rem; white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}
.cmp tbody th, .cmp tbody td {
  padding: 0.9rem 0.72rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft); color: var(--muted);
}
.cmp tbody th { color: var(--text); font-weight: 700; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: rgba(255, 215, 0, 0.035); }
.op-cell { display: block; font-size: 0.92rem; }
.op-focus { display: block; margin-top: 0.22rem; font-size: 0.74rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0.04em; }
.cmp.pay { min-width: 880px; }

.table-note { margin-top: 1.1rem; color: var(--muted-2); font-size: 0.8rem; line-height: 1.65; max-width: 92ch; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.ext-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line-soft); color: var(--muted); font-size: 0.82rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.ext-link:hover { border-color: rgba(255, 215, 0, 0.45); color: var(--gold); }

/* ---------- Operator cards ---------- */
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1rem; }
.op-card {
  display: flex; flex-direction: column;
  padding: 1.4rem 1.45rem 1.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.6), rgba(16, 20, 31, 0.9));
  border: 1px solid var(--line-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.op-card:hover { border-color: rgba(255, 215, 0, 0.32); transform: translateY(-3px); }
.op-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.op-name { font: 700 1.18rem var(--font-display); }
.op-lic {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2);
}
.op-lic svg { color: var(--gold-deep); }
.op-score {
  flex: none; font-size: 1.35rem; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.op-score span { font-size: 0.72rem; color: var(--muted-2); font-weight: 600; }
.op-offer { margin-top: 1rem; color: var(--gold); font-weight: 700; font-size: 1rem; }
.op-desc { margin-top: 0.65rem; color: var(--muted); font-size: 0.87rem; line-height: 1.62; }
.op-terms {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
  margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--line-soft);
}
.op-terms dt { font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.op-terms dd { margin-top: 0.18rem; font-size: 0.87rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.op-actions { margin-top: 1.35rem; }
.op-actions .btn { width: 100%; }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.guide-card {
  padding: 1.4rem 1.45rem 1.5rem; border-radius: var(--radius-lg);
  background: rgba(11, 14, 20, 0.5); border: 1px solid var(--line-soft);
}
.guide-head { display: flex; align-items: center; gap: 0.7rem; }
.guide-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.24); color: var(--gold);
}
.guide-card h3 { font: 700 1.1rem var(--font-display); }
.guide-card > p { margin-top: 0.85rem; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.guide-tips { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.guide-tips li {
  position: relative; padding-left: 1.25rem;
  color: var(--muted); font-size: 0.85rem; line-height: 1.6;
}
.guide-tips li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep);
}
.guide-rg {
  display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1.1rem;
  padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
  background: rgba(255, 84, 112, 0.07); border: 1px solid rgba(255, 84, 112, 0.2);
  color: #e2c6cc; font-size: 0.8rem; line-height: 1.55;
}
.guide-rg svg { color: var(--danger); flex: none; margin-top: 0.15rem; }

/* ---------- Accordions (glossary + FAQ) ---------- */
.glossary, .faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.5);
  border: 1px solid var(--line-soft);
  transition: border-color 0.18s ease;
}
.faq-item:hover { border-color: rgba(255, 215, 0, 0.26); }
.faq-item[open] { border-color: rgba(255, 215, 0, 0.34); background: rgba(255, 215, 0, 0.035); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; font-size: 0.95rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 14px; height: 14px; flex: none; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-mark::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-mark::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-item > p { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: 0.88rem; line-height: 1.68; }

/* ---------- Steps ---------- */
.steps-list { display: flex; flex-direction: column; gap: 0.75rem; }
.step-item {
  display: flex; gap: 1.05rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.5); border: 1px solid var(--line-soft);
}
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3); color: var(--gold);
  font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.step-item h3 { font-size: 1rem; }
.step-item p { margin-top: 0.45rem; color: var(--muted); font-size: 0.87rem; line-height: 1.65; }

/* ---------- Responsible play ---------- */
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.rg-card {
  padding: 1.25rem 1.3rem 1.35rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.5); border: 1px solid var(--line-soft);
}
.rg-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.22); color: var(--gold);
}
.rg-card h3 { font-size: 0.98rem; margin-top: 0.75rem; }
.rg-card p { margin-top: 0.45rem; color: var(--muted); font-size: 0.85rem; line-height: 1.62; }

.rg-warning {
  margin-top: 1.5rem; padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 84, 112, 0.06); border: 1px solid rgba(255, 84, 112, 0.26);
}
.rg-warning h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; color: #ffd9e1; }
.rg-warning h3 svg { color: var(--danger); flex: none; }
.rg-warning ul { margin-top: 0.9rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.4rem; }
.rg-warning li {
  position: relative; padding-left: 1.2rem;
  color: #e2c6cc; font-size: 0.86rem; line-height: 1.6;
}
.rg-warning li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--danger);
}
.rg-warning > p { margin-top: 1rem; color: #e2c6cc; font-size: 0.86rem; line-height: 1.65; }

.helpline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.7rem; margin-top: 1.5rem; }
.helpline {
  display: flex; flex-direction: column; gap: 0.28rem;
  padding: 1rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.55); border: 1px solid var(--line-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.helpline:hover { border-color: rgba(255, 215, 0, 0.42); transform: translateY(-2px); }
.helpline strong { font-size: 0.94rem; color: var(--gold); }
.helpline span { font-size: 0.79rem; color: var(--muted); line-height: 1.5; }

/* ---------- Editorial standards ---------- */
.std-body h3 { font: 700 1.08rem var(--font-display); margin-top: 1.8rem; }
.std-body h3:first-child { margin-top: 0; }
.std-body p { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.std-body ul { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.std-body li {
  position: relative; padding-left: 1.3rem;
  color: var(--muted); font-size: 0.88rem; line-height: 1.62;
}
.std-body li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep);
}
.std-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: 0.82rem;
}
.std-meta strong { color: var(--muted); font-weight: 700; }

/* ---------- Closing ---------- */
.closing {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-raise));
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing h2 { font: 700 clamp(1.5rem, 3.6vw, 2.2rem) / 1.2 var(--font-display); }
.closing p { margin-top: 0.9rem; color: var(--muted); font-size: 0.98rem; max-width: 66ch; margin-inline: auto; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080a10;
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 2.2rem;
}
.rg-banner {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem 1.4rem; border-radius: var(--radius-lg);
  background: rgba(255, 84, 112, 0.06); border: 1px solid rgba(255, 84, 112, 0.26);
}
.rg-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 12px; background: var(--danger); color: #fff;
  font-weight: 800; font-size: 0.95rem;
}
.rg-banner h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; color: #ffd9e1; }
.rg-banner h2 svg { color: var(--danger); flex: none; }
.rg-banner p { margin-top: 0.5rem; color: #e2c6cc; font-size: 0.86rem; line-height: 1.65; }
.rg-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.rg-banner a:hover { color: var(--gold-bright); }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
  margin-top: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-soft);
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h4 {
  font-size: 0.76rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.2rem;
}
.footer-col a { font-size: 0.85rem; color: var(--muted); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer { margin-top: 1.8rem; color: var(--muted-2); font-size: 0.79rem; line-height: 1.7; max-width: 100ch; }
.footer-compliance {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem;
}
.footer-compliance span {
  font-size: 0.74rem; color: var(--muted);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
}
.footer-copy { margin-top: 1.4rem; color: var(--muted-2); font-size: 0.79rem; }

/* ---------- Entrance animation (one-shot, never looping) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.fx { animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: var(--d, 0s); }

/* ---------- Language-specific type ---------- */
/* Cinzel is a Latin-only display face and Manrope carries no CJK glyphs, so
   each non-Latin language swaps in a stack that keeps the same visual rhythm
   instead of falling back to tofu boxes. */
html[lang="ru"] {
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
html[lang="ja"] {
  --font-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", "Manrope", sans-serif;
}
html[lang="ko"] {
  --font-display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --font-body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", "Manrope", sans-serif;
}
html[lang="ja"] body, html[lang="ko"] body { line-height: 1.78; }
/* Translated nav labels run longer than the English ones and would otherwise
   push the sticky bar to three rows. Tighten the nav instead of letting it
   grow; the header keeps its height in every language. */
html:not([lang="en"]) .nav { gap: 0.78rem; }
html:not([lang="en"]) .nav a { font-size: 0.8rem; }
/* Latin-script languages other than English need slightly tighter display
   tracking, because Cinzel's wide caps are tuned for English headlines. */
html[lang="fr"] .section-title, html[lang="es"] .section-title,
html[lang="it"] .section-title, html[lang="ru"] .section-title { letter-spacing: -0.005em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* Below this width the bar cannot hold the brand, the section nav, the
     switcher and the badge at once. The nav steps aside; the page keeps its
     own in-page links and footer navigation. */
  .nav { display: none; }
  .lang-nav { margin-left: auto; }
  .age-badge { margin-left: 0.5rem; }
  .brand-sub { display: none; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid, .rg-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-out { grid-template-columns: repeat(2, 1fr); }
}

/* The tagline is the widest fixed item in the bar, and the translated ones run
   long enough to squeeze the nav into four rows. English keeps it. */
@media (max-width: 1440px) {
  html:not([lang="en"]) .brand-sub { display: none; }
}

@media (max-width: 900px) {
  .calc-controls { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rg-warning ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 60px; gap: 0.8rem; }
  .hero { background-image: linear-gradient(180deg, rgba(11, 14, 20, 0.7) 0%, rgba(11, 14, 20, 0.88) 55%, var(--bg) 100%), url("../assets/hero-bg.webp"); }
}

@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; row-gap: 0.45rem; padding-bottom: 0.55rem; }
  .lang-trigger { font-size: 0.68rem; padding: 0.4rem 0.5rem; }
  .lang-value { min-width: 4.2rem; }
  .opt-grid { grid-template-columns: 1fr; }
  .review-grid, .rg-grid { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .op-terms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .rg-banner { flex-direction: column; }
  .result-actions .btn { width: 100%; }
  .table-hint { font-size: 0.76rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fx { animation: none; opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .closing-actions, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
