/* GTAWiki - GTA VI "Leonida" palette: plum night, violet -> magenta -> sunset gradient, cream text */
:root {
  --bg: #12021c;
  --bg-2: #190626;
  --surface: #210a35;
  --surface-2: #2b0f45;
  --line: rgba(185, 167, 227, 0.16);
  --line-2: rgba(185, 167, 227, 0.3);
  --text: #fff4ea;
  --muted: #cdbde8;
  --dim: #a593c9;
  --violet: #7b4bd6;
  --magenta: #e23d8e;
  --sunset: #f79a5b;
  --aqua: #5ed8da;
  --peach: #f7c8b8;
  --grad: linear-gradient(135deg, #7b4bd6 0%, #e23d8e 52%, #f79a5b 100%);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Nunito", "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8eeaeb; }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sunset); color: #220231; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap, .wrap-mid, .wrap-wide { margin-inline: auto; padding-inline: 16px; }
.wrap { max-width: 792px; }
.wrap-mid { max-width: 1132px; }
.wrap-wide { max-width: 1272px; }
@media (min-width: 720px) { .wrap, .wrap-mid, .wrap-wide { padding-inline: 24px; } }

.label, .kicker {
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  margin: 0 0 8px;
}
.kicker { color: var(--sunset); text-decoration: none; display: inline-block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font: 800 15px/1 var(--display);
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-small { padding: 10px 16px; font-size: 14px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 2, 28, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-word { font: 900 26px/1 var(--display); color: var(--text); letter-spacing: -0.01em; }
.brand-word b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-by { font: 700 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font: 800 15px/1 var(--display);
  padding: 10px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; }
.site-nav { margin-left: auto; }
.yt-sub {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: #ff0033; color: #fff; font: 800 14px/1 var(--display);
  padding: 10px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.yt-sub:hover { color: #fff; filter: brightness(1.1); }
.yt-icon { width: 18px; height: 13px; background: #fff; border-radius: 4px; position: relative; flex: none; }
.yt-icon::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; border-style: solid;
  border-width: 3px 0 3px 5px; border-color: transparent transparent transparent #ff0033;
}
.watch-cta {
  margin: 14px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--muted); font-size: 15px; line-height: 1.55;
}
.sub-cta { margin-top: 26px; }
@media (max-width: 939px) {
  .yt-sub { margin-left: auto; order: 2; padding: 10px 12px; }
  .nav-toggle { order: 3; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; border-radius: 10px; }
}

/* sections, grids, cards */
.block { margin-top: 48px; }
.section-title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { font-weight: 600; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; left: 10px; bottom: 10px; background: rgba(18, 2, 28, 0.82); color: var(--text);
  font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 21px; line-height: 1.18; margin-bottom: 8px; color: var(--text); }
.card-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.card-meta { color: var(--dim); font-size: 13px; margin: auto 0 0; }

.vcard a { color: inherit; text-decoration: none; display: block; }
.vcard-media { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.78); color: #fff; font: 700 12px/1 var(--mono); padding: 4px 6px; border-radius: 5px; }
.vcard-title { font-size: 17px; line-height: 1.25; margin: 10px 0 6px; color: var(--text); }
.vcard a:hover .vcard-title { color: var(--peach); }
.vcard-meta { color: var(--dim); font-size: 13px; margin: 0; }
.vcard-notes { color: var(--aqua); font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* home */
.home-intro { padding-top: 36px; }
.home-intro h1 { font-size: clamp(38px, 6vw, 64px); text-transform: lowercase; }
.home-intro p { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 18px; }
.home-hero { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 980px) { .home-hero { grid-template-columns: 1.8fr 1fr; } }
.feature { position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 340px; color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 2, 28, 0) 30%, rgba(18, 2, 28, 0.94) 100%); }
.feature-text { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; height: 100%; }
@media (min-width: 980px) { .feature, .feature-text { min-height: 420px; } .feature-text { padding: 32px; } }
.feature-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.feature-dek { color: var(--muted); max-width: 640px; margin: 0; }
.feature:hover .feature-title { color: var(--peach); }
.countdown-card {
  background: var(--surface); border-radius: 18px; padding: 26px; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.countdown-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.countdown-date { font: 900 26px/1.1 var(--display); margin-bottom: 14px; }
.countdown { margin: 0 0 6px; }
.cd-days { font: 900 84px/0.9 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown .cd-unit { font: 800 20px/1 var(--display); color: var(--muted); }
.countdown-platforms { color: var(--muted); margin-bottom: 18px; }
.countdown-card .btn { align-self: flex-start; }
.topics .topic {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px;
  border-radius: var(--radius); overflow: hidden; padding: 16px; text-decoration: none; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
}
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 2, 28, 0.1), rgba(18, 2, 28, 0.9)); }
.topic-name, .topic-count { position: relative; z-index: 1; }
.topic-name { font: 900 22px/1.1 var(--display); }
.topic-count { font: 700 12px/1.4 var(--mono); color: var(--peach); letter-spacing: 0.1em; text-transform: uppercase; }
.topic:hover img { opacity: 0.75; }
.about-strip { margin-bottom: 24px; }
.about-strip h2 { font-size: 26px; margin-bottom: 10px; }
.about-strip p { color: var(--muted); }

/* page heads */
.page-head { padding-top: 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; }
.page-head .dek { max-width: 720px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font: 700 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--peach); text-decoration: none; }
.dek { color: var(--muted); font-size: 19px; line-height: 1.5; }

/* article */
.draft-banner { background: var(--sunset); color: #220231; text-align: center; font-weight: 700; padding: 8px; margin: 0; }
.article-head { padding-top: 32px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 14px; }
.article-head .dek { margin-bottom: 14px; }
.byline { color: var(--dim); font-size: 14px; margin: 0; }
.byline a { color: var(--muted); }
.dot { margin: 0 8px; }
.article-hero { margin-top: 26px; }
.article-hero .figure, .article-hero .video { margin: 0; }
.article-layout { display: grid; gap: 40px; margin-top: 30px; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; }
  .toc-inline { display: none; }
}
.article-side { display: none; }
@media (min-width: 1100px) { .article-side { display: block; } }
.toc-side { position: sticky; top: 88px; border-left: 2px solid var(--line-2); padding-left: 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc-inline { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; }
.toc-inline summary { cursor: pointer; font: 700 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); }
.toc-inline ol { margin-top: 12px; }

.prose { font-size: 18px; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 22px; margin: 1.5em 0 0.5em; }
.prose h4 { font-size: 19px; margin: 1.3em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--sunset); }
.prose strong { color: #fff; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.2em 0; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px; background: var(--surface); border-radius: 12px;
  border-left: 5px solid var(--magenta); font-size: 20px; line-height: 1.55;
}
.prose blockquote p { margin: 0 0 0.5em; font-style: italic; }
.prose blockquote cite { display: block; font: 700 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--peach); font-style: normal; margin-top: 8px; }
.figure { margin: 1.8em 0; }
.figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.figure figcaption { color: var(--dim); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.figure .credit { display: inline-block; margin-left: 8px; font: 700 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.figure figcaption:has(.credit:only-child) .credit, .figure .credit:first-child { margin-left: 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font: 800 15px/1.3 var(--display); color: var(--text); }
.prose tr:last-child td { border-bottom: 0; }
.prose td.right, .prose th.right { text-align: right; }
.prose td.center, .prose th.center { text-align: center; }
.box { margin: 1.8em 0; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.box-title { font: 700 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); margin-bottom: 12px; }
.box ul, .box ol { margin-bottom: 0; }
.box p:last-child { margin-bottom: 0; }
.box-facts { font-size: 16px; line-height: 1.6; }
.box-facts li { margin-bottom: 0.6em; }
.box-note::before { background: var(--aqua); }
.box-warning::before { background: var(--sunset); }
.box-warning { background: #2a0d2e; }
.tag {
  display: inline-block; vertical-align: 0.12em; margin-right: 6px;
  font: 700 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 6px 3px; border-radius: 5px; white-space: nowrap;
}
.tag-official { background: var(--aqua); color: #12021c; }
.tag-reported { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--muted); }
.tag-rumor { background: transparent; color: var(--peach); border: 1px dashed var(--peach); padding: 3px 5px 2px; }

.video { margin: 0 0 1.8em; }
.video-play, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; overflow: hidden;
  background: #000; position: relative; padding: 0; cursor: pointer;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play .play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--grad); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform .15s ease;
}
.video-play .play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play { transform: scale(1.08); }
.video figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }

.sources { margin-top: 2.4em; padding-top: 0.4em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 22px; margin: 1em 0 0.6em; }
.sources ul { font-size: 15px; color: var(--muted); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 2.4em; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.6; }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0; color: var(--muted); }
.author-box .author-name { font: 900 18px/1.2 var(--display); color: var(--text); margin-bottom: 4px; }
.related { margin-top: 56px; }

/* countdown page */
.countdown-page { padding-top: 32px; text-align: center; }
.countdown-page .crumbs { justify-content: center; }
.countdown-page h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 8px; }
.countdown-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: 28px auto 12px; }
.countdown-big > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 6px; }
.countdown-big span { display: block; }
.countdown-big .cd-days, .countdown-big .cd-hours, .countdown-big .cd-mins, .countdown-big .cd-secs {
  font: 900 clamp(40px, 9vw, 86px)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countdown-big .cd-unit { font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.countdown-note { color: var(--dim); font-size: 14px; margin-bottom: 36px; }

/* footer */
.site-footer { margin-top: 72px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-about p { color: var(--muted); font-size: 15px; margin: 12px 0 16px; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-note p { color: var(--dim); font-size: 13px; line-height: 1.6; margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
