/* =====================================================
   SWEEP-STAKES-CASINO.WORLD — Design System
   Colors: Teal #0B3D52 | Coral #FF6B35 | Mint #4ECDC4
   Fonts: Playfair Display + DM Sans + Space Mono
   ===================================================== */

:root {
  --teal: #0B3D52;
  --teal-mid: #0F5470;
  --teal-light: #1A7A9A;
  --coral: #FF6B35;
  --coral-light: #FF8F65;
  --mint: #4ECDC4;
  --mint-dark: #2BA89F;
  --navy: #050D1A;
  --navy-mid: #0A1929;
  --navy-card: #0D2035;
  --white: #FFFFFF;
  --off-white: #F0F4F6;
  --muted: #8BA5B3;
  --border: rgba(78, 205, 196, 0.18);
  --shadow: 0 8px 32px rgba(5, 13, 26, 0.55);
  --r: 12px;
  --r-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--navy);
  color: var(--off-white);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--coral);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── TICKER ── */
.ticker {
  background: var(--teal);
  border-bottom: 1px solid var(--border);
  padding: .45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--mint);
  font-family: 'Space Mono', monospace;
  letter-spacing: .02em;
}

.tk-badge {
  background: var(--coral);
  color: #fff;
  padding: .18rem .55rem;
  border-radius: 4px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tk-badge.mint {
  background: var(--mint-dark);
}

/* ── HEADER ── */
.site-header {
  background: rgba(5, 13, 26, 0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: .01em;
}

.logo-name span {
  color: var(--coral);
}

.logo-tagline {
  font-size: .6rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Desktop nav */
.main-nav {
  list-style: none;
  display: flex;
  gap: .15rem;
}

.main-nav a {
  display: block;
  padding: .45rem .7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--mint);
  background: rgba(78, 205, 196, .07);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Locale switcher */
.locale-wrap {
  position: relative;
}

.locale-btn {
  background: rgba(78, 205, 196, .1);
  border: 1px solid var(--border);
  color: var(--mint);
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.locale-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 170px;
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow);
}

.locale-dropdown.open {
  display: block;
}

.locale-dropdown a {
  display: block;
  padding: .55rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  transition: background .15s, color .15s;
}

.locale-dropdown a:hover {
  background: rgba(78, 205, 196, .08);
  color: var(--mint);
}

/* CTA button */
.btn-cta {
  background: var(--coral);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--coral-light);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: .3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mob-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.mob-nav.open {
  display: flex;
}

.mob-nav a {
  padding: .65rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(78, 205, 196, .06);
  transition: color .2s;
}

.mob-nav a:last-child {
  border-bottom: none;
}

.mob-nav a:hover {
  color: var(--mint);
}

.mob-nav .btn-cta {
  margin-top: .75rem;
  text-align: center;
}

/* ── EDITORIAL HERO ── */
.editorial-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-mid);
}

.hero-img-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.55) saturate(1.2);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(5, 13, 26, .5) 50%, transparent 100%);
}

.hero-content-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 107, 53, .15);
  border: 1px solid rgba(255, 107, 53, .3);
  color: var(--coral);
  padding: .3rem .8rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-h1 em {
  font-style: normal;
  color: var(--mint);
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: var(--coral-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--mint);
  border: 1.5px solid var(--mint);
  padding: .7rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.btn-secondary:hover {
  background: rgba(78, 205, 196, .1);
}

/* KPI strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.kpi-card {
  background: rgba(13, 32, 53, .9);
  padding: 1.1rem 1rem;
  text-align: center;
}

.kpi-val {
  font-family: 'Space Mono', monospace;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  margin-bottom: .3rem;
}

.kpi-lbl {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ── SECTIONS ── */
.sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.sec-full {
  background: var(--navy-mid);
  padding: 3.5rem 0;
}

.sec-full .sec {
  padding-top: 0;
  padding-bottom: 0;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--coral);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sec-title .accent {
  color: var(--mint);
}

.sec-lead {
  color: var(--muted);
  font-size: .95rem;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── MAGAZINE 2-COL LAYOUT ── */
.mag-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ── CARDS ── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── COMPARISON CARDS (not a table) ── */
.comp-cards {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.comp-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .2s;
}

.comp-card:hover {
  border-color: var(--mint);
}

.comp-card.top {
  border-color: var(--coral);
  background: rgba(255, 107, 53, .05);
}

.comp-rank {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}

.comp-rank.gold {
  color: var(--coral);
}

.comp-name {
  font-weight: 600;
  font-size: .9rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp-bonus {
  font-size: .8rem;
  color: var(--mint);
  white-space: normal;
  word-break: break-word;
}

.comp-score {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--off-white);
  flex-shrink: 0;
}

/* ── DATA TABLE (styled) ── */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r);
}

.data-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.data-tbl caption {
  text-align: left;
  padding: .5rem 0;
  color: var(--muted);
  font-size: .75rem;
  caption-side: top;
  margin-bottom: .5rem;
}

.data-tbl th {
  background: var(--teal);
  color: var(--mint);
  padding: .7rem 1rem;
  text-align: left;
  font-size: .72rem;
  letter-spacing: .05em;
  font-weight: 600;
  white-space: nowrap;
}

.data-tbl td {
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(78, 205, 196, .07);
  color: var(--muted);
  vertical-align: middle;
}

.data-tbl tr:hover td {
  background: rgba(78, 205, 196, .04);
}

.data-tbl .td-hl {
  color: var(--off-white);
  font-weight: 600;
}

.data-tbl .td-coral {
  color: var(--coral);
  font-weight: 700;
}

.data-tbl .td-mint {
  color: var(--mint);
  font-weight: 600;
}

.yes-mark {
  color: #34D399;
  font-weight: 700;
}

.no-mark {
  color: #F87171;
  font-weight: 700;
}

/* ── DONUT CHART (SVG) ── */
.donut-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.donut-wrap {
  text-align: center;
}

.donut-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: rgba(78, 205, 196, .12);
  stroke-width: 10;
}

.donut-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(.4, 0, .2, 1);
}

.donut-label {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  font-weight: 700;
  fill: var(--off-white);
  transform: rotate(90deg);
  transform-origin: center;
}

.donut-name {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .5rem;
}

.donut-val {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint);
}

/* ── LOLLIPOP CHART ── */
.lollipop-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.lollipop-entry {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lollipop-lbl {
  font-size: .8rem;
  color: var(--muted);
  width: 130px;
  flex-shrink: 0;
  text-align: right;
  padding-right: .5rem;
}

.lollipop-track {
  flex: 1;
  height: 2px;
  background: rgba(78, 205, 196, .12);
  border-radius: 2px;
  position: relative;
}

.lollipop-stem {
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  width: 0;
}

.lollipop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--navy);
  position: absolute;
  right: -6px;
  top: -5px;
}

.lollipop-entry.coral .lollipop-stem {
  background: var(--coral);
}

.lollipop-entry.coral .lollipop-dot {
  background: var(--coral);
}

.lollipop-num {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  color: var(--off-white);
  width: 55px;
  flex-shrink: 0;
}

/* ── STEPS (how-to) ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--border);
}

.step-item:last-child::before {
  display: none;
}

.step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-mid);
  border: 2px solid var(--mint);
  color: var(--mint);
  font-family: 'Space Mono', monospace;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}



.step-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: .3rem;
}

.step-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FAQ ACCORDION ── */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  background: var(--navy-card);
  border: none;
  cursor: pointer;
  color: var(--off-white);
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .2s;
}

.faq-q:hover {
  background: rgba(78, 205, 196, .06);
}

.faq-q.open {
  color: var(--mint);
}

.faq-icon {
  color: var(--mint);
  font-size: 1.1rem;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-q.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  background: var(--navy-mid);
}

.faq-a.open {
  max-height: 400px;
}

.faq-a-inner {
  padding: 1rem 1.2rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-a-inner a {
  color: var(--mint);
  text-decoration: underline;
}

/* ── BONUS CARD ── */
.bonus-card {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-card) 100%);
  border: 1px solid var(--mint);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 80px;
}

.bc-label {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.bc-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin-bottom: .25rem;
}

.bc-sub {
  font-size: .8rem;
  color: var(--mint);
  margin-bottom: 1.2rem;
}

.bc-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bc-list li {
  font-size: .82rem;
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}

.bc-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.bc-cta {
  display: block;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  padding: .8rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s;
}

.bc-cta:hover {
  background: var(--coral-light);
}

.bc-note {
  font-size: .68rem;
  color: var(--muted);
  margin-top: .6rem;
}

/* ── SIDEBAR BOX ── */
.sidebar-box {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.sb-title {
  font-size: .72rem;
  color: var(--coral);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .8rem;
}

.sb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sb-list li {
  font-size: .82rem;
  color: var(--muted);
}

.sb-list a {
  color: var(--mint);
  text-decoration: none;
}

.sb-list a:hover {
  text-decoration: underline;
}

/* ── AUTHOR BOX ── */
.author-box {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  border-radius: var(--r);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--mint);
}

.author-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
}

.author-role {
  font-size: .75rem;
  color: var(--coral);
  margin-bottom: .4rem;
}

.author-bio {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SEO ARTICLE ── */
.seo-article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 2rem 0 .8rem;
}

.seo-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  margin: 1.4rem 0 .6rem;
}

.seo-article p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.seo-article a {
  color: var(--mint);
  text-decoration: underline;
}

.seo-article strong {
  color: var(--off-white);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-mid);
}

.page-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  filter: brightness(.45) saturate(1.1);
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, transparent 70%);
}

.page-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-hero-label {
  font-size: .7rem;
  color: var(--coral);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  margin-bottom: .4rem;
}

.page-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.page-h1 em {
  font-style: normal;
  color: var(--mint);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--mint);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--border);
}

/* ── RG BAR ── */
.rg-bar {
  background: var(--teal);
  border-top: 1px solid var(--border);
  padding: .55rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--muted);
}

.age-badge {
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.rg-bar a {
  color: var(--mint);
  text-decoration: underline;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: .6rem;
  max-width: 280px;
}

.footer-col h5 {
  font-size: .72rem;
  color: var(--coral);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .8rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-col li a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-col li a:hover {
  color: var(--mint);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .74rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a {
  color: var(--mint);
  text-decoration: none;
}

/* ── UTILITIES ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════ */

/* ── 1024px: tablet ── */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .logo-link {
    flex: 1;
  }

  .bonus-card {
    position: static;
  }

  .mag-layout {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .donut-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 768px: phablet ── */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sec {
    padding: 2.5rem 1.2rem;
  }

  .sec-full {
    padding: 2.5rem 0;
  }

  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-tbl {
    min-width: 560px;
  }

  .lollipop-lbl {
    width: 90px;
    font-size: .73rem;
  }

  .hero-img-wrap {
    height: 220px;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .donut-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    gap: .8rem;
  }

  .rank-grid {
    grid-template-columns: 1fr !important;
  }

  .mag-layout {
    grid-template-columns: 1fr;
  }
}

/* ── 640px: mobile ── */
@media (max-width: 640px) {

  /* Header */
  .header-inner {
    height: 52px;
    padding: 0 1rem;
  }

  .logo-link {
    flex: 1;
  }

  .header-right .locale-wrap {
    display: none;
  }

  /* Ticker — compact */
  .ticker {
    padding: .3rem .75rem;
    font-size: .65rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .ticker>div {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .ticker>div:first-child span:nth-child(2) {
    display: none;
  }

  .ticker>div:last-child span:first-child {
    display: none;
  }

  /* Hero — центрируем */
  .hero-img-wrap {
    height: 195px;
  }

  .hero-content-bar {
    padding: 1.5rem 1rem 1.5rem;
    text-align: center;
  }

  .hero-label {
    font-size: .62rem;
    padding: .25rem .65rem;
  }

  .hero-h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: .75rem;
  }

  .hero-lead {
    font-size: .84rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  /* Buttons — full width */
  .hero-btns {
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: .75rem 1rem;
    font-size: .9rem;
  }

  .btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: .72rem 1rem;
    font-size: .88rem;
  }

  /* KPI strip */
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .kpi-card {
    padding: .9rem .5rem;
  }

  .kpi-val {
    font-size: 1.4rem;
  }

  .kpi-lbl {
    font-size: .62rem;
  }

  /* Section */
  .sec {
    padding: 2rem 1rem;
  }

  .sec-full {
    padding: 2rem 0;
  }

  .sec-title {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
  }

  .eyebrow {
    font-size: .62rem;
  }

  .sec-lead {
    font-size: .85rem;
  }

  /* Rank grid */
  .rank-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }

  .bonus-card {
    position: static;
    margin-top: 0;
  }

  /* Comp cards — mobile redesign */
  .comp-cards {
    gap: .6rem;
  }

  .comp-card {
    padding: .85rem .9rem;
    gap: .5rem;
    flex-wrap: nowrap;
  }

  .cc-left {
    gap: .55rem;
    flex: 1;
    min-width: 0;
  }

  .comp-name {
    font-size: .85rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .cc-sub {
    font-size: .68rem;
  }

  .cc-right {
    flex-direction: column;
    align-items: flex-end;
    gap: .1rem;
    flex-shrink: 0;
  }

  .comp-bonus {
    font-size: .72rem;
    white-space: nowrap;
  }

  .comp-score {
    font-size: .95rem;
  }

  .cc-claim {
    font-size: .7rem;
    padding: .25rem .55rem;
  }

  /* Donut */
  .donut-group {
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
  }

  .donut-svg {
    width: 84px;
    height: 84px;
  }

  .donut-val {
    font-size: .9rem;
  }

  .donut-name {
    font-size: .7rem;
  }

  /* Lollipop */
  .lollipop-lbl {
    width: 76px;
    font-size: .7rem;
  }

  .lollipop-num {
    width: 56px;
    font-size: .7rem;
  }

  /* Bonus card */
  .bonus-card {
    padding: 1.3rem 1.1rem;
  }

  .bc-amount {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .35rem;
    font-size: .7rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: .5rem 1rem;
    font-size: .68rem;
  }

  /* RG bar */
  .rg-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    font-size: .68rem;
    padding: .6rem 1rem;
  }

  /* Mob nav */
  .mob-nav {
    gap: 0;
  }

  .mob-nav a {
    padding: .8rem 1rem;
    font-size: .88rem;
    border-bottom: 1px solid rgba(78, 205, 196, .07);
  }

  .mob-nav .btn-cta {
    margin: .75rem 1rem .5rem;
    display: block;
    text-align: center;
    border-radius: 8px;
  }
}

/* ── 400px: small phones ── */
@media (max-width: 400px) {
  .header-inner {
    padding: 0 .75rem;
  }

  .hero-img-wrap {
    height: 170px;
  }

  .hero-h1 {
    font-size: 1.35rem;
  }

  .kpi-val {
    font-size: 1.25rem;
  }

  .comp-card {
    padding: .75rem .75rem;
  }

  .comp-name {
    font-size: .8rem;
  }

  .comp-bonus {
    font-size: .67rem;
  }

  .donut-svg {
    width: 76px;
    height: 76px;
  }

  .data-tbl {
    min-width: 440px;
  }

  .rank-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── COMP-CARD REFACTORED LAYOUT ── */
.comp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.cc-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
}

.cc-left>div:last-child {
  min-width: 0;
}

.cc-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}

.cc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  flex-shrink: 0;
}

.cc-total {
  font-size: .7rem;
  color: var(--muted);
}

.cc-claim {
  font-size: .76rem;
  background: var(--coral);
  color: #fff;
  padding: .3rem .7rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: .25rem;
  display: inline-block;
  transition: background .2s;
}

.cc-claim:hover {
  background: var(--coral-light);
}

/* ── RANK GRID ── */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* cc-sub single line fix */
.cc-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Claim button — consistent sizing */
.cc-claim {
  font-size: .73rem;
  background: var(--coral);
  color: #fff;
  padding: .28rem .65rem;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: .2rem;
  display: inline-block;
  line-height: 1.4;
  transition: background .2s;
}

/* Equal-height comp cards */
.comp-cards {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.comp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-height: 58px;
}

/* ─── VISUALLY HIDDEN (accessibility) ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}