/* SixCodex — GTA VI tracker. Single stylesheet, no external requests. */

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

:root {
  --bg:        #07070e;
  --bg-2:      #0d0d18;
  --panel:     #12121f;
  --panel-2:   #181828;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.18);
  --text:      #f3f3f8;
  --muted:     #9797ae;
  --dim:       #6e6e86;

  --pink:      #ff2e7e;
  --cyan:      #21e6ff;
  --amber:     #ffb340;
  --purple:    #8b45ff;
  --green:     #2ee6a8;

  --wrap:      1180px;
  --narrow:    760px;
  --radius:    14px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

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

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

/* Ambient glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(139,69,255,.20), transparent 60%),
    radial-gradient(50rem 35rem at 95% 0%, rgba(255,46,126,.16), transparent 60%),
    radial-gradient(45rem 30rem at 50% 110%, rgba(33,230,255,.08), transparent 60%);
}
body > * { position: relative; z-index: 1; }

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
  font-weight: 700; z-index: 999;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

/* ============================== HEADER ============================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,14,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 62px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; white-space: nowrap;
  display: inline-block; padding-block: .4rem;
}
.brand span {
  background: linear-gradient(92deg, var(--pink), var(--purple) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex; gap: .25rem; flex-wrap: wrap; margin-left: auto;
  font-size: .875rem; font-weight: 600;
}
.site-nav a {
  color: var(--muted); padding: .42rem .66rem; border-radius: 7px;
  text-decoration: none; white-space: nowrap; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255,46,126,.16); }

/* ============================== HERO ============================== */

.hero { padding: 3.4rem 0 2.2rem; }
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
  margin: 0 0 1rem; overflow-wrap: break-word;
}
.hero .lede {
  font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem);
  color: var(--muted); max-width: 62ch; margin: 0;
}
.grad {
  background: linear-gradient(95deg, var(--pink), var(--purple) 48%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================== COUNTDOWN ============================== */

.countdown {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,46,126,.13), rgba(139,69,255,.10) 45%, rgba(33,230,255,.08));
  padding: 1.5rem 1.3rem; margin: 2rem 0;
}
.countdown .cd-label {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 .9rem;
}
.cd-grid { display: flex; gap: .7rem; flex-wrap: wrap; }
.cd-unit {
  flex: 1 1 0; min-width: 64px; text-align: center;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem .35rem;
}
.cd-num {
  display: block; font-family: var(--mono);
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cd-word {
  display: block; font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--dim); margin-top: .3rem; font-weight: 700;
}
.cd-foot { margin: .95rem 0 0; font-size: .85rem; color: var(--muted); }
.cd-foot strong { color: var(--text); }

/* ============================== BADGES ============================== */

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .24rem .55rem; border-radius: 5px; white-space: nowrap;
  border: 1px solid currentColor; line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-confirmed { color: var(--green);  background: rgba(46,230,168,.10); }
.badge-rumour    { color: var(--amber);  background: rgba(255,179,64,.10); }
.badge-unknown   { color: var(--dim);    background: rgba(255,255,255,.04); }
.badge-new       { color: var(--pink);   background: rgba(255,46,126,.12); }

.kicker {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
  margin-bottom: .5rem;
}

/* ============================== TYPE ============================== */

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  line-height: 1.2; letter-spacing: -.02em; font-weight: 800;
  margin: 2.6rem 0 1rem; overflow-wrap: break-word;
}
h2.mt0 { margin-top: 0; }
h3 {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem);
  line-height: 1.3; font-weight: 700; margin: 1.9rem 0 .6rem; letter-spacing: -.01em;
}
h4 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .4rem; }

.prose p, .prose li { color: #dcdce6; }
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: #e6e6ef; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.lede { font-size: 1.1rem; color: var(--muted); }

.crumbs {
  font-size: .8rem; color: var(--dim); margin: 1.6rem 0 1.1rem;
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--dim); }

.meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .82rem; color: var(--dim);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .8rem 0; margin: 1.3rem 0 2rem;
}
.meta strong { color: var(--muted); font-weight: 600; }

/* ============================== CARDS / GRIDS ============================== */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color .18s, transform .18s, background .18s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.card h3 { margin: .15rem 0 .5rem; font-size: 1.08rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card:hover h3 a { color: var(--cyan); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.card .badge { align-self: flex-start; margin-bottom: .6rem; }

/* Feature card with gradient edge */
.card-feature {
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(255,46,126,.55), rgba(139,69,255,.4) 50%, rgba(33,230,255,.45)) border-box;
  border: 1px solid transparent;
}

/* ============================== LINK LIST ============================== */

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist li:first-child { border-top: 1px solid var(--line); }
.linklist a {
  display: block; padding: 1rem .2rem; color: var(--text);
  text-decoration: none; font-weight: 600; transition: padding-left .16s, color .16s;
}
.linklist a:hover { color: var(--cyan); padding-left: .5rem; text-decoration: none; }
.linklist small {
  display: block; font-weight: 400; color: var(--muted);
  font-size: .88rem; margin-top: .25rem; line-height: 1.5;
}

/* ============================== NEWS FEED ============================== */

.feed { list-style: none; margin: 0; padding: 0; }
.feed > li {
  display: grid; grid-template-columns: 8.6rem 1fr; gap: 1.1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.feed time {
  font-family: var(--mono); font-size: .74rem; color: var(--dim);
  letter-spacing: .02em; padding-top: .22rem; white-space: nowrap;
}
.feed h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.feed h3 a { color: var(--text); text-decoration: none; }
.feed h3 a:hover { color: var(--cyan); }
.feed p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.feed .badge { margin-bottom: .4rem; }
@media (max-width: 560px) {
  .feed > li { grid-template-columns: 1fr; gap: .4rem; }
  .feed time { padding-top: 0; }
}

/* ============================== VIDEO FACADE ============================== */

.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-2);
  background-image: linear-gradient(140deg, rgba(255,46,126,.30), rgba(139,69,255,.26) 48%, rgba(33,230,255,.22));
  margin: 1.4rem 0; cursor: pointer;
  display: block; padding: 0;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s, transform .3s; }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .8rem;
  background: linear-gradient(180deg, rgba(7,7,14,.15), rgba(7,7,14,.72));
  pointer-events: none;
}
.video-play .play-btn {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,46,126,.95); display: grid; place-items: center;
  box-shadow: 0 8px 34px rgba(255,46,126,.45);
  transition: transform .2s;
}
.video:hover .play-btn { transform: scale(1.09); }
.play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-play .v-title {
  font-weight: 700; font-size: .95rem; text-align: center;
  padding: 0 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.video-consent {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.4rem;
  background: var(--panel-2); text-align: center;
}
.video-consent p { margin: 0 0 .9rem; font-size: .9rem; color: var(--muted); max-width: 46ch; }
.video-caption { font-size: .84rem; color: var(--dim); margin: -.6rem 0 1.6rem; }

/* ============================== TABLES ============================== */

.table-scroll { overflow-x: auto; margin: 1.3rem 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 480px; }
caption { text-align: left; font-size: .83rem; color: var(--dim); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th, td { padding: .74rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.03); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.022); }

/* ============================== CALLOUTS ============================== */

.note, .warn {
  border-radius: var(--radius); padding: 1.05rem 1.2rem; margin: 1.5rem 0;
  border: 1px solid var(--line); background: var(--panel);
  border-left: 3px solid var(--cyan);
}
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.note p, .warn p { font-size: .93rem; }
.warn { border-left-color: var(--amber); background: rgba(255,179,64,.055); }

/* Fact rows: the confirmed / not confirmed system */
.facts { list-style: none; margin: 1.3rem 0; padding: 0; }
.facts > li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.facts > li:first-child { border-top: 1px solid var(--line); }
.facts .badge { flex: 0 0 auto; margin-top: .18rem; }
.facts .fact-body { flex: 1 1 auto; }
.facts .fact-body p { margin: 0; font-size: .95rem; color: #dcdce6; }
.facts .fact-src { display: block; font-size: .8rem; color: var(--dim); margin-top: .3rem; }
.facts .fact-src a { color: var(--dim); }
.facts .fact-src a:hover { color: var(--muted); }
@media (max-width: 560px) { .facts > li { flex-direction: column; gap: .45rem; } }

/* Timeline */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line-2); }
.timeline > li { position: relative; padding: 0 0 1.6rem .4rem; }
.timeline > li::before {
  content: ""; position: absolute; left: calc(-1.5rem - 6px); top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 4px rgba(255,46,126,.16);
}
.timeline > li:last-child::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(33,230,255,.16); }
.timeline .t-date { font-family: var(--mono); font-size: .78rem; color: var(--dim); display: block; margin-bottom: .2rem; }
.timeline .t-head { font-weight: 700; display: block; margin-bottom: .25rem; }
.timeline p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ============================== SOURCES ============================== */

.sources {
  margin: 3rem 0 0; padding: 1.3rem 1.4rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.022);
}
.sources h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.sources ol { margin: 0; padding-left: 1.2rem; font-size: .86rem; color: var(--muted); }
.sources li { margin-bottom: .5rem; line-height: 1.55; }
.sources .small { font-size: .8rem; color: var(--dim); margin: .9rem 0 0; }

/* ============================== FOOTER ============================== */

.site-footer {
  border-top: 1px solid var(--line); margin-top: 4rem;
  padding: 2.6rem 0 2rem; background: rgba(0,0,0,.28);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.site-footer h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { font-size: .88rem; color: var(--muted); }
.colophon {
  margin: 2.2rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--dim); line-height: 1.6;
}
.disclaimer-strip {
  font-size: .78rem; color: var(--dim); line-height: 1.6;
  background: rgba(255,179,64,.05); border: 1px solid rgba(255,179,64,.18);
  border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1.6rem;
}

/* ============================== CONSENT BANNER ============================== */

#consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  max-width: 640px; margin-inline: auto;
}
#consent p { margin: 0 0 .9rem; font-size: .86rem; color: var(--muted); line-height: 1.55; }
#consent .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); transition: background .15s, border-color .15s;
}
.btn:hover { background: rgba(255,255,255,.07); }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-primary:hover { background: #ff4b8e; }

/* ============================== UTIL ============================== */

.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

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

/* ============================== STAT TILES ============================== */

.stat-grid {
  display: grid; gap: .9rem; margin: 1.7rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
}
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1rem; text-align: center;
}
.stat b {
  display: block; font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.15rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
  background: linear-gradient(95deg, var(--pink), var(--purple) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; font-size: .8rem; color: var(--text); margin-top: .45rem; line-height: 1.35; font-weight: 600; }
.stat small { display: block; font-size: .72rem; color: var(--dim); margin-top: .3rem; line-height: 1.4; }

/* ============================== FIGURES ============================== */

.figure { margin: 1.9rem 0; }
.figure svg {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(139,69,255,.09), rgba(7,7,14,0) 60%), var(--panel);
}
.figure figcaption { font-size: .82rem; color: var(--dim); margin-top: .65rem; line-height: 1.55; }

/* ============================== WANTED STARS ============================== */

.stars { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin: .3rem 0 1rem; }
.stars svg { width: 26px; height: 26px; flex: 0 0 auto; }
.stars .on { fill: var(--amber); }
.stars .off { fill: none; stroke: var(--dim); stroke-width: 1.6; }
.stars .new { fill: var(--pink); }
.stars-label { font-size: .8rem; color: var(--muted); margin-left: .4rem; }

/* ============================== SPEC LIST ============================== */

.spec { list-style: none; margin: 1.4rem 0; padding: 0; }
.spec > li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.spec > li:first-child { border-top: 1px solid var(--line); }
.spec dt, .spec .k { color: var(--muted); font-weight: 600; }
.spec .v { color: #dcdce6; }
@media (max-width: 560px) { .spec > li { grid-template-columns: 1fr; gap: .2rem; } }

/* ============================== VIDEO GRID ============================== */

.video-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 1.6rem 0; }
.video-grid .video { margin: 0; }
.video-grid .video-caption { margin: .55rem 0 0; }
