/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #121212;
  --bg-2: #161616;
  --surface: #1E1E1E;
  --surface-2: #222222;
  --surface-3: #2A2A2A;
  --border: #2D2D2D;
  --border-hover: #3D3D3D;
  --glass: rgba(30, 30, 30, 0.85);

  --text: #FFFFFF;
  --text-2: #E0E0E0;
  --muted: #AAAAAA;
  --muted-2: #888888;

  --red: #E50914;
  --yellow: #FFC107;
  --green: #00E676;

  --glow-green: 0 0 18px rgba(0, 230, 118, 0.45);
  --glow-red: 0 4px 18px rgba(229, 9, 20, 0.35);

  --radius: 12px;
  --radius-sm: 4px;
  --header-h: 64px;
  --sidebar-w: 248px;
  --gutter: 24px;
  --t: 0.2s ease;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

@media (max-width: 767px) {
  :root { --header-h: 56px; --gutter: 16px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 76px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { color: var(--text); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .f { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: #121212;
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Shared elements: logo, buttons, badges
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  flex: none;
}
.logo__mark {
  padding: 5px 8px 6px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.35);
}
.logo__text { color: #fff; padding-left: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), border-color var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }

.btn--ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--border-hover); }

.btn--cta {
  background: var(--green);
  color: #0B0B0B;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.25);
}
.btn--cta:hover { background: #3DF094; box-shadow: 0 0 24px rgba(0, 230, 118, 0.55); }

.btn--dark { background: #121212; color: var(--yellow); }
.btn--dark:hover { background: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

.btn--outline-dark { border-color: rgba(18, 18, 18, 0.35); color: #121212; background: rgba(255, 255, 255, 0.18); }
.btn--outline-dark:hover { background: rgba(255, 255, 255, 0.35); border-color: #121212; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  transition: background-color var(--t), border-color var(--t), transform var(--t);
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-hover); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--live { color: var(--green); background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.35); }
.badge--live::before,
.live-dot {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.live-dot { display: inline-block; }
.badge--red { color: #FF4D57; background: rgba(229, 9, 20, 0.12); border-color: rgba(229, 9, 20, 0.4); }
.badge--yellow { color: var(--yellow); background: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.35); }
.badge--dark { color: var(--yellow); background: #121212; border-color: #121212; }

.age {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.age--lg { width: 44px; height: 44px; font-size: 14px; }

@keyframes pulse { 50% { opacity: 0.35; } }

/* ==========================================================================
   Header (sticky, glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 var(--gutter);
}

.header-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.header-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--t), color var(--t);
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.search { position: relative; flex: 1 1 200px; max-width: 360px; margin-left: auto; }
.search .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.7);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15); }

.header-actions { display: flex; gap: 8px; flex: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  flex: none;
  border-radius: 10px;
  transition: background-color var(--t);
}
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: width var(--t); }
.burger span:nth-child(2) { width: 70%; }
.burger:hover { background: rgba(255, 255, 255, 0.06); }
.burger:hover span:nth-child(2) { width: 100%; }

.search-toggle { display: none; }

/* ==========================================================================
   Layout + sidebar
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; display: flex; flex-direction: column; }

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(300px, 86vw);
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.sidebar-open .sidebar {
  transform: none;
  visibility: visible;
  transition: transform 0.28s ease;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.sidebar-open .overlay { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }

.sidebar__head { display: flex; align-items: center; justify-content: space-between; }

.sidebar__title {
  margin: 0 0 6px;
  padding: 0 12px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.side-menu { display: grid; gap: 2px; margin: 0 0 20px; padding: 0; list-style: none; }
.side-menu:last-child { margin-bottom: 0; }
.side-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--t), color var(--t);
}
.side-menu .icon { color: var(--muted-2); transition: color var(--t); }
.side-menu .badge { margin-left: auto; }
.side-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side-menu a:hover .icon { color: var(--yellow); }
.side-menu a.is-active { background: rgba(229, 9, 20, 0.1); color: #fff; }
.side-menu a.is-active .icon { color: var(--red); }
.side-menu a.is-active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--red);
}

.sidebar__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.sidebar__note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.4; }

/* ==========================================================================
   Main
   ========================================================================== */
.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1680px;
  padding: var(--gutter);
}

/* Promo banner */
.promo {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.35), transparent 45%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.035) 0 12px, transparent 12px 24px),
    var(--yellow);
  color: #121212;
}
.promo::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border: 34px solid var(--red);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}
.promo__body { position: relative; z-index: 1; }
.promo h1 {
  margin: 14px 0 10px;
  color: #121212;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.promo__lead { max-width: 56ch; margin: 0; color: #2A2200; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.promo__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promo__stats li {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.92);
}
.promo__stats b { color: var(--yellow); font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; line-height: 1.1; }
.promo__stats span { color: var(--muted); font-size: 12px; line-height: 1.3; }

/* Tabs: sticky, horizontal scroll, touch-friendly */
.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  background: rgba(18, 18, 18, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.tabs__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { flex: none; scroll-snap-align: start; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t), background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.tab:hover { transform: translateY(-2px); background: var(--surface-3); color: #fff; }
.tab.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--glow-red); }
.tab.is-active .live-dot { background: #fff; box-shadow: 0 0 8px #fff; }

/* Section heading */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted-2); font-size: 13px; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--t), background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-2px);
  background: #252525;
  border-color: var(--border-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.card--live:hover { border-color: rgba(0, 230, 118, 0.4); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 230, 118, 0.12); }

.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--yellow);
}
.card__icon .icon { width: 22px; height: 22px; }
.card--live .card__icon { color: var(--green); box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.3), 0 0 16px rgba(0, 230, 118, 0.15); }

.card__title { margin: 0; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.25; }
.card__text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}
.card__meta b { color: var(--yellow); font-size: 16px; font-weight: 800; }
.card__arrow { width: 18px; height: 18px; transition: transform var(--t), color var(--t); }
.card:hover .card__arrow { transform: translateX(3px); color: var(--yellow); }

/* ==========================================================================
   Article (long-form text) + table of contents
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }

.article-toc { display: none; }

@media (min-width: 1280px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .article-toc {
    position: sticky;
    top: calc(var(--header-h) + 88px);
    display: block;
    max-height: calc(100vh - var(--header-h) - 112px);
    overflow-y: auto;
    padding: 18px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    scrollbar-width: thin;
  }
}
.article-toc__title {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  transition: background-color var(--t), color var(--t);
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  width: 20px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color var(--t);
}
.article-toc a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.article-toc a.is-active { background: rgba(255, 193, 7, 0.08); color: #fff; }
.article-toc a.is-active::before { color: var(--yellow); }

.article {
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.prose > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.prose { color: var(--text-2); font-size: 17px; line-height: 1.75; }

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  display: flex;
  gap: 10px;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
.prose h3::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  flex: none;
  border-radius: 2px;
  background: var(--yellow);
}
.prose h2.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3em;
  margin-bottom: 0.2em;
  padding: 0;
  border: 0;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prose h2.kicker + h2 { margin-top: 0.2em; }
.prose h2.kicker--live { color: var(--green); }

.prose p { margin-top: 0; margin-bottom: 1.1em; }
.prose p.lead { color: #fff; font-size: 1.08em; }
.prose mark { padding: 0 4px; border-radius: 4px; background: rgba(255, 193, 7, 0.14); color: var(--yellow); font-weight: 700; }

.prose figure {
  margin-top: 28px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.prose figure img { width: 100%; }
.prose figure.figure--logo { max-width: 260px; padding: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.chips li:hover { transform: translateY(-2px); border-color: rgba(255, 193, 7, 0.5); color: var(--yellow); }

.steps { display: grid; gap: 10px; margin-bottom: 1.2em; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 16px;
  line-height: 1.55;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--yellow);
  color: #121212;
  font-size: 14px;
  font-weight: 900;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 40px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1632px; }
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer p { margin: 10px 0; }
.site-footer p a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin: -12px 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-muted { color: var(--muted-2); font-size: 13px; }

.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: transform var(--t), border-color var(--t), background-color var(--t);
}
.social a:hover { transform: translateY(-2px); border-color: var(--border-hover); background: var(--surface-3); }
.social svg { width: 22px; height: 22px; }

.store { display: inline-block; border-radius: 8px; transition: transform var(--t); }
.store:hover { transform: translateY(-2px); }
.store img { width: auto; height: 44px; }

.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.link-list a { display: flex; align-items: center; min-height: 44px; color: var(--text-2); transition: color var(--t); }
.link-list a:hover { color: var(--yellow); }

.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pay {
  display: grid;
  place-items: center;
  height: 40px;
  min-width: 64px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #F2F2F2;
}
.pay img { width: auto; height: 100%; max-width: 96px; object-fit: contain; }
.pay--text { border: 1px solid var(--border); background: var(--surface); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }

.footer-rg { display: flex; align-items: flex-start; gap: 14px; max-width: 900px; margin-top: 24px; }
.footer-rg p { margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 24px;
  padding: 16px 84px 0 0; /* keep clear of the floating bonus button */
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}
.footer-bottom a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin: -14px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Bonus button + modal
   ========================================================================== */
.bonus-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 45;
  width: 60px;
  height: 80px;
}
.bonus-fab .bonus {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #FF2A35, var(--red));
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
  animation: bob 2.4s ease-in-out infinite;
  transition: transform var(--t), box-shadow var(--t);
}
.bonus-fab .bonus::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -10px;
  right: -10px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 3px 0 2px var(--yellow);
}
.bonus-fab .bonus::before {
  content: "R$";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.bonus-fab:hover .bonus { animation-play-state: paused; transform: translateY(-3px) rotate(-4deg); box-shadow: 0 10px 28px rgba(229, 9, 20, 0.6); }

.surprises { position: absolute; bottom: 72px; left: 50%; width: 0; height: 0; pointer-events: none; }
.fly {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  animation: fly 2.4s ease-in-out infinite;
}
.fly:nth-child(1) { --x: -18px; animation-delay: 1.5s; }
.fly:nth-child(2) { --x: -34px; animation-delay: 1.2s; }
.fly:nth-child(3) { --x: 6px;   animation-delay: 0.9s; }
.fly:nth-child(4) { --x: -10px; animation-delay: 1.8s; }
.fly:nth-child(5) { --x: 14px;  animation-delay: 0.3s; }
.fly:nth-child(6) { --x: -26px; animation-delay: 0.15s; }
.fly:nth-child(7) { --x: 20px;  animation-delay: 1.15s; }
.fly:nth-child(8) { --x: -4px;  animation-delay: 0.75s; }
.hearts { font-style: normal; }
.hearts::before { content: "\2665"; color: #FF4D57; font-size: 13px; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fly {
  0%   { opacity: 0; transform: translate(var(--x, 0), 0) rotate(12deg); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 0), -64px) rotate(-12deg); }
}

.bonus-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.bonus-modal[hidden] { display: none; }
.bonus-modal.is-open { opacity: 1; }
.bonus-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.bonus-modal__card {
  position: relative;
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 193, 7, 0.08);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s ease;
}
.bonus-modal.is-open .bonus-modal__card { transform: none; }
.bonus-modal__card:focus { outline: none; }
.bonus-modal__close { position: absolute; top: 10px; right: 10px; }
.bonus-modal__eyebrow { margin: 4px 0 0; color: var(--yellow); font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
.bonus-modal__card .btn--cta { font-size: 16px; min-height: 50px; }

.bonus-ticket {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 18px 0 20px;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #121212;
}
.bonus-ticket::before,
.bonus-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--surface);
}
.bonus-ticket::before { left: -10px; }
.bonus-ticket::after { right: -10px; }
.bonus-ticket__amount { font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.bonus-ticket__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small phones */
@media (max-width: 399px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "icon title badge" "icon text text" "icon meta meta";
    gap: 4px 12px;
    align-items: start;
  }
  .card__top { display: contents; }
  .card__icon { grid-area: icon; }
  .card__top .badge { grid-area: badge; }
  .card__title { grid-area: title; align-self: center; }
  .card__text { grid-area: text; }
  .card__meta { grid-area: meta; margin-top: 6px; padding-top: 8px; }
  .promo__stats { grid-template-columns: minmax(0, 1fr); }
  .promo__stats li { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .site-header__inner { gap: 8px; }
  .logo { font-size: 19px; }
  .header-actions .btn--ghost { display: none; }
  .header-actions .btn--cta { padding: 0 14px; font-size: 14px; }

  .search-toggle { display: inline-grid; margin-left: auto; }
  .search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    padding: 10px var(--gutter);
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear 0.2s;
  }
  .search .icon { left: calc(var(--gutter) + 14px); }
  .search-open .search { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
  .search-open .search-toggle { border-color: var(--yellow); color: var(--yellow); }

  .tabs__list {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }

  .card { padding: 14px; }
  .card__title { font-size: 15px; }
  .prose { font-size: 16px; }

  .bonus-fab { right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); transform: scale(0.85); transform-origin: bottom right; }
}

/* Header nav appears once there is room */
@media (max-width: 899px) {
  .header-nav { display: none; }
}

/* Tablet */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* Below desktop: burger + off-canvas sidebar */
@media (max-width: 1023px) {
  .burger { display: flex; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .search-toggle { display: inline-grid; margin-left: auto; }
  .search {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    width: 360px;
    max-width: none;
    margin: 8px 0 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear 0.2s;
  }
  .search .icon { left: 24px; }
  .search-open .search { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
  .search-open .search-toggle { border-color: var(--yellow); color: var(--yellow); }
}

/* Desktop (>= 1024px): permanent sidebar, 4-col grid */
@media (min-width: 1024px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

  .sidebar {
    position: sticky;
    top: var(--header-h);
    z-index: auto;
    width: auto;
    height: calc(100vh - var(--header-h));
    transform: none;
    visibility: visible;
    transition: none;
  }
  .sidebar__head { display: none; }
  .overlay { display: none; }

  .promo { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .promo__stats { grid-template-columns: minmax(0, 1fr); min-width: 220px; }

  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}

@media (min-width: 1280px) {
  .main, .site-footer { --gutter: 32px; }
}

/* Wide desktop: 6 columns */
@media (min-width: 1600px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (hover: none) {
  .card:hover, .btn:hover, .tab:hover, .chips li:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fly { display: none; }
}
