/* Gridline: mobile racing reviews */
:root {
  --bg: #0f1115;
  --bg-2: #14171d;
  --panel: #1a1e26;
  --panel-2: #222733;
  --line: #2c3240;
  --text: #eef1f5;
  --muted: #a3acba;
  --accent: #ff5a1f;
  --accent-hi: #ff7a45;
  --amber: #ffc93c;
  --ok: #3ddc84;
  --bad: #ff5d6c;
  --radius: 12px;
  --wrap: 1200px;
  --font-d: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-b: "Barlow", "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

h1, h2, h3 { font-family: var(--font-d); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }

p { margin: 0 0 1em; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  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: 12px; top: -60px;
  z-index: 200;
  background: var(--amber);
  color: #111;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 900px; }

.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { color: var(--text); }

.logo-mark { flex: none; }

.logo-text {
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .04em;
  line-height: 1;
}
.logo-text span { color: var(--accent); }

.logo-tag {
  display: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }

.site-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--accent); }

.ticker {
  overflow: hidden;
  background: var(--accent);
  color: #160800;
  font-family: var(--font-d);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 5px 0;
  animation: ticker 32s linear infinite;
}
.ticker-track span::before { content: "\25B8"; margin-right: 10px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-play { background: var(--accent); color: #160800; }
.btn-play:hover { background: var(--amber); color: #160800; transform: translateY(-2px); }
.btn-play span { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-play small { font-family: var(--font-b); font-size: 11px; font-weight: 600; letter-spacing: .08em; }

.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--text); background: rgba(15, 17, 21, .35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-small { min-height: 44px; font-size: 17px; padding: 8px 16px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 40px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 17, 21, .55) 0%, rgba(15, 17, 21, .82) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15, 17, 21, .85) 0%, rgba(15, 17, 21, .2) 100%);
}

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--accent); }

.hero-grid { display: grid; gap: 28px; }

.kicker {
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: #160800;
  padding: 2px 10px;
  margin-right: 8px;
  transform: skewX(-12deg);
}

.hero h1 {
  font-size: clamp(38px, 9vw, 76px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: .98;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  overflow-wrap: break-word;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.deck { font-size: clamp(17px, 2.2vw, 20px); color: #dfe4ec; max-width: 620px; }

.byline { color: var(--muted); font-size: 15px; }
.byline strong { color: var(--text); }

.hero-game {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.hero-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--accent), var(--shadow);
}

.hero-game-title { font-family: var(--font-d); font-size: 26px; font-weight: 800; margin: 0; line-height: 1.1; }
.hero-game-dev { margin: 0; color: var(--muted); font-size: 15px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.score-card {
  background: rgba(26, 30, 38, .92);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: end;
}

.score-ring { position: relative; width: 140px; height: 140px; margin: 0 auto 6px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--panel-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }

.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 800;
  font-style: italic;
  font-size: 46px;
}
.score-num small { font-size: 18px; color: var(--muted); margin-left: 2px; font-style: normal; }

.score-label { text-align: center; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.score-label strong { color: var(--ok); }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.facts div:nth-child(odd) { padding-right: 10px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.facts .muted { font-weight: 400; font-size: 13px; }

/* ---------- Review layout ---------- */
.layout { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 56px; }

.review { min-width: 0; }

.review-part { padding-top: 12px; margin-bottom: 18px; scroll-margin-top: 110px; }

.review h3 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sec-no {
  font-size: .6em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0 8px;
  border-radius: 6px;
  font-style: normal;
  flex: none;
}

.lead { font-size: 19px; color: #e6eaf1; }
.lead::first-letter {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 3.4em;
  float: left;
  line-height: .85;
  margin: 6px 10px 0 0;
  color: var(--accent);
}

.inline-shot { margin: 26px 0; }

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.shot-btn img { width: 100%; transition: transform .35s ease; }
.shot-btn:hover img { transform: scale(1.03); }
.shot-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.inline-shot figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 2px 0;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-top: 10px;
}

.callout {
  background: linear-gradient(135deg, rgba(255, 90, 31, .16), rgba(255, 201, 60, .08));
  border: 1px solid rgba(255, 90, 31, .45);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.callout p { margin: 0; }

.sidebar { display: grid; gap: 18px; align-content: start; }

.side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.side-title {
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 10px;
}

.toc { margin: 0; padding-left: 22px; }
.toc li { margin: 6px 0; }
.toc li::marker { color: var(--accent); font-weight: 700; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.side-score {
  font-family: var(--font-d);
  font-weight: 800;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
}
.side-score small { font-size: 20px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; scroll-margin-top: 70px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .02) 0 14px, transparent 14px 28px),
    #0b0d10;
}

.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  position: relative;
  padding-left: 18px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: .12em; bottom: .12em;
  width: 6px;
  background: var(--accent);
  transform: skewX(-12deg);
}
.section-head p { color: var(--muted); max-width: 680px; margin-bottom: 0; }

.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.g-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--panel);
}
.g-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }

.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  text-align: left;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}

/* ---------- Verdict ---------- */
.verdict-grid { display: grid; gap: 18px; }

.pc, .breakdown {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.pc h3, .breakdown h3 {
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-style: normal;
  font-size: 24px;
  color: #0b0d10;
}
.pros { border-top: 4px solid var(--ok); }
.cons { border-top: 4px solid var(--bad); }
.pros .pc-icon { background: var(--ok); }
.cons .pc-icon { background: var(--bad); }

.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); }
.pc li:first-child { border-top: 0; }
.pc li::before {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 9px; height: 9px;
  transform: rotate(45deg);
}
.pros li::before { background: var(--ok); }
.cons li::before { background: var(--bad); }

.breakdown { border-top: 4px solid var(--accent); }

.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.bar-label { font-weight: 600; }
.bar-val { font-family: var(--font-d); font-weight: 800; font-size: 20px; color: var(--amber); }
.bar {
  grid-column: 1 / -1;
  height: 10px;
  background: var(--panel-2);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 6px;
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}

.overall {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-d);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.overall strong { font-size: 44px; font-style: italic; color: var(--accent); margin-left: 8px; }
.overall small { color: var(--muted); font-size: 18px; }

/* ---------- Specs ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th {
  width: 38%;
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber);
  background: var(--panel);
}
.specs td { background: var(--bg); }

/* ---------- Tips ---------- */
.tips {
  list-style: none;
  counter-reset: tip;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tips li {
  counter-increment: tip;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 78px;
  min-height: 72px;
}
.tips li::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 16px; top: 16px;
  width: 46px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  color: #160800;
  background: var(--accent);
  transform: skewX(-10deg);
  border-radius: 4px;
}
.tips strong { color: var(--text); display: block; font-family: var(--font-d); font-size: 21px; line-height: 1.2; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item h3 { margin: 0; font-family: var(--font-b); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: 0;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}
.faq-q:hover { color: var(--amber); }

.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 2px;
  background: var(--accent);
  transition: transform .2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a { padding: 0 20px 18px; color: #d5dbe4; }
.faq-a p { margin: 0; }

/* ---------- Latest cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.card-link:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--text); }

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
}
.thumb-a { background: radial-gradient(circle at 70% 30%, #ff3fa4 0, transparent 45%), linear-gradient(135deg, #1b1446, #3a1d6e 60%, #0b0d10); }
.thumb-b { background: radial-gradient(circle at 30% 70%, #2ad3ff 0, transparent 45%), linear-gradient(135deg, #0b3a5c, #0f6f8f 60%, #0b0d10); }
.thumb-c { background: radial-gradient(circle at 60% 60%, #ffc93c 0, transparent 50%), linear-gradient(135deg, #6b3b12, #b06a22 60%, #2a1a0b); }
.thumb-d { background: repeating-linear-gradient(45deg, #fff 0 12px, #111 12px 24px); }
.thumb-d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 90, 31, .85), rgba(15, 17, 21, .7));
}

.card-score {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 1;
  background: var(--bg);
  color: var(--amber);
  font-family: var(--font-d);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  padding: 2px 10px;
  border-radius: 6px;
  border: 2px solid var(--accent);
}

.card-meta {
  padding: 14px 16px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-hi);
  font-weight: 700;
}
.card-title { padding: 6px 16px 18px; font-family: var(--font-d); font-weight: 700; font-size: 22px; line-height: 1.15; }

/* ---------- Legal ---------- */
.section-legal { background: var(--bg-2); border-top: 1px solid var(--line); }
.legal-grid { display: grid; gap: 28px; }
.legal { scroll-margin-top: 90px; font-size: 15px; color: #cfd5de; }
.legal h2 { font-size: 30px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0e; border-top: 4px solid var(--accent); padding-top: 44px; font-size: 15px; }

.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; }
.footer-about p { color: var(--muted); max-width: 440px; margin-top: 12px; }

.footer-title {
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 8px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a, .link-btn { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover, .link-btn:hover { color: var(--accent); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.to-top { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 12px;
}
.lightbox[hidden] { display: none; }

.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .97); }

.lb-figure { position: relative; margin: 0; max-width: 1280px; width: 100%; }
.lb-figure img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.lb-figure figcaption { text-align: center; padding-top: 12px; color: var(--text); font-weight: 600; }
.lb-count { color: var(--muted); font-weight: 400; margin-left: 8px; }

.lb-btn {
  position: absolute;
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  background: rgba(26, 30, 38, .9);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: var(--accent); color: #160800; border-color: var(--accent); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Consent ---------- */
.consent {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.consent[hidden] { display: none; }

.consent-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .72); }

.consent-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.consent-box:focus { outline: none; }

.consent-kicker {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: var(--accent);
  color: #160800;
  padding: 0 10px;
  transform: skewX(-12deg);
  margin-bottom: 10px;
}

.consent-box h2 { font-size: 32px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.consent-box h3 { font-family: var(--font-d); font-size: 26px; font-weight: 800; text-transform: uppercase; margin-top: 4px; }
.consent-box p { color: #d5dbe4; font-size: 16px; }

.consent-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }

.c-btn {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--text);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
}
.c-btn:hover { background: var(--text); color: var(--bg); }

.consent-prefs { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.consent-prefs[hidden] { display: none; }

.toggles { list-style: none; margin: 0; padding: 0; }
.toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.t-text { min-width: 0; }
.t-name { display: block; font-weight: 700; }
.t-desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch input:disabled { cursor: not-allowed; }
.slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #3a4150;
  border: 2px solid #59627a;
  transition: background .2s ease;
}
.slider::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:disabled + .slider { opacity: .6; }
.switch input:focus-visible + .slider { outline: 3px solid var(--amber); outline-offset: 3px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 350;
  transform: translate(-50%, 20px);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .consent-actions { grid-template-columns: repeat(3, 1fr); }
  .consent-box { padding: 30px 30px; }
  .tips { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .logo-tag { display: inline; }
  .verdict-grid { grid-template-columns: 1fr 1fr; }
  .breakdown { grid-column: 1 / -1; }
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-icon { width: 84px; height: 84px; }
}

@media (min-width: 960px) {
  body { font-size: 18px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; font-size: 17px; position: relative; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 2px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
  }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

  .hero { padding: 40px 0 72px; min-height: 640px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 48px; }

  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .sidebar { position: sticky; top: 110px; }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery li:first-child .g-item, .gallery li:first-child .g-item img { height: 100%; }
  .gallery li:last-child { grid-column: 1 / -1; }
  .gallery li:last-child .g-item img { aspect-ratio: 3 / 1; }

  .verdict-grid { grid-template-columns: 1fr 1fr 1.1fr; }
  .breakdown { grid-column: auto; }

  .cards { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 80px 0; }
}

@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .logo-text { font-size: 24px; }
  .tips li { padding-left: 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

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