/* ==========================================================
   Stacks Productions - shared styles
   ========================================================== */
:root {
  --bg: #0a0f1a;
  --surface: #121a2b;
  --surface-2: #1a2438;
  --line: #27334d;
  --text: #f2f6fb;
  --muted: #a8b6cc;
  --hot: #5b8cff;
  --hot-dark: #4a76e8;
  --cyan: #38d6c4;
  --amber: #8a6bff;
  --radius: 10px;
  --max: 1160px;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #7fe6da; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: auto; }
.brand .brand-wide { height: 28px; }
.brand .brand-stacked { display: none; height: 38px; }
.brand:hover { opacity: .9; }
.nav-links { list-style: none; display: flex; gap: .25rem; margin: 0 0 0 auto; padding: 0; order: 2; }
.nav-links a {
  display: block; padding: .5rem .55rem; border-radius: 6px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--hot); border-radius: 6px 6px 0 0; }
.nav-actions { display: flex; align-items: center; gap: .5rem; order: 3; }
.cart-link {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: .45rem .8rem; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; font-size: .95rem;
}
.cart-link:hover { border-color: var(--hot); color: var(--text); }
.cart-count { background: var(--hot); color: #fff; border-radius: 999px; min-width: 1.4rem; padding: 0 .4rem; text-align: center; font-size: .85rem; }
.nav-toggle { display: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1280px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; flex-direction: column; width: 100%; order: 3; margin: 0; padding-bottom: .6rem; }
  .nav-actions { order: 2; }
  .nav-links.open { display: flex; }
  .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--hot); border-radius: 6px; }
}
/* Phones: keep logo, name, Cart and Menu on one row */
@media (max-width: 480px) {
  .nav { gap: .5rem; }
  .brand .brand-wide { display: none; }
  .brand .brand-stacked { display: block; }
  .nav-actions { gap: .35rem; }
  .cart-link { padding: .4rem .65rem; }
  .nav-toggle { padding: .4rem .6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 2px solid transparent; border-radius: 8px;
  padding: .7rem 1.3rem; font: 700 1rem var(--font-body); cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--hot); color: #fff; }
.btn-primary:hover { background: var(--hot-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-small { padding: .5rem .9rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- Hero with editing timeline ---------- */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 52ch; }

.timeline {
  position: relative; margin-top: 3.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1rem 1rem 4.2rem; overflow: hidden;
}
.timeline .ruler {
  position: absolute; left: 4.2rem; right: 1rem; top: 0; height: 1.6rem;
  background: repeating-linear-gradient(to right, var(--line) 0 2px, transparent 2px 5%);
  -webkit-mask: linear-gradient(to bottom, #000 0 40%, transparent 40%);
  mask: linear-gradient(to bottom, #000 0 40%, transparent 40%);
}
.track { position: relative; height: 2.6rem; margin-bottom: .55rem; background: rgba(255,255,255,.03); border-radius: 6px; }
.track-label { position: absolute; left: -3.5rem; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 700; color: var(--muted); }
.clip {
  position: absolute; top: 3px; bottom: 3px; border-radius: 5px; padding: 0 .6rem;
  display: flex; align-items: center; font-size: .82rem; font-weight: 600; color: #0a0f1a; white-space: nowrap; overflow: hidden;
}
.clip.v { background: var(--hot); color: #fff; }
.clip.v2 { background: #8fb0ff; }
.clip.t { background: var(--amber); }
.clip.a { background: var(--cyan); }
.playhead {
  position: absolute; top: 0; bottom: 0; left: 4.2rem; width: 2px; background: var(--text);
  animation: scrub 3.2s cubic-bezier(.5, 0, .2, 1) .4s forwards;
}
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 12px; background: var(--text); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes scrub { to { left: calc(4.2rem + (100% - 5.2rem) * .64); } }

/* Showreel: a preview monitor that sits on top of the timeline */
.reel {
  position: relative; margin-top: 3rem; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 30px 80px -30px rgba(91, 140, 255, .45);
}
.reel[hidden] { display: none; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel + .timeline { margin-top: 0; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.reel-tag, .reel-time, .reel-sound {
  position: absolute; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(10, 15, 26, .72); color: var(--text); border-radius: 6px; padding: .3rem .6rem;
}
.reel-tag { top: .8rem; left: .8rem; display: flex; align-items: center; gap: .45rem; text-transform: uppercase; }
.reel-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.reel-time { top: .8rem; right: .8rem; font-family: ui-monospace, Consolas, monospace; color: var(--cyan); }
.reel-sound { bottom: .8rem; right: .8rem; border: 1px solid var(--line); cursor: pointer; font-family: inherit; }
.reel-sound:hover { border-color: var(--cyan); color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .reel-tag::before { animation: none; } }
/* While live, the stream player fills the reel; the tag stays but lets clicks through */
.reel-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel.is-live video, .reel.is-live .reel-time, .reel.is-live .reel-sound { display: none; }
.reel.is-live .reel-tag { pointer-events: none; background: #e0243f; }
.reel.is-live .reel-tag::before { background: #fff; }

/* ---------- Home: how it works, testimonials, closing call to action ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--hot); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.steps li:nth-child(2)::before { background: var(--cyan); color: #0a0f1a; }
.steps li:nth-child(3)::before { background: var(--amber); }
.steps li:nth-child(4)::before { background: #8fb0ff; color: #0a0f1a; }
.steps p { margin: 0; color: var(--muted); }

.quote-card { margin: 0; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 1rem; }
.quote-card blockquote { margin: 0; font-size: 1.08rem; }
.quote-card blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--cyan); }
.quote-card figcaption { margin-top: auto; display: flex; flex-direction: column; }
.quote-card figcaption span { color: var(--muted); font-size: .92rem; }
#testimonials[hidden] { display: none; }

.cta-band {
  text-align: center; padding: 3rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(91, 140, 255, .22), transparent 70%), var(--surface);
}
.cta-band p { margin-inline: auto; color: var(--muted); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-shorts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { margin-bottom: .3rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; }

.service-card { padding: 1.4rem; border-left: 4px solid var(--hot); border-radius: var(--radius); background: var(--surface); }
.service-card:nth-child(2) { border-left-color: var(--cyan); }
.service-card:nth-child(3) { border-left-color: var(--amber); }
.service-card p { margin: 0; color: var(--muted); }

/* Hover polish: display cards lift a little and video thumbnails zoom in.
   Only on devices with a mouse, and off for people who prefer less motion. */
.thumb { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .grid > .card, .service-card, .steps li, .quote-card, .stream-card {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .grid > .card:hover, .service-card:hover, .steps li:hover, .quote-card:hover {
    transform: translateY(-4px); border-color: #3a4a6b;
    box-shadow: 0 18px 40px -22px rgba(91, 140, 255, .55);
  }
  .stream-card:hover { transform: translateY(-2px); }
  .thumb img, .thumb video { transition: transform .4s ease; }
  .thumb:hover img, .thumb:hover video { transform: scale(1.05); }
  .price-card.featured:hover { border-color: var(--hot); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .price-card.featured:hover { transform: translateY(-12px); }
}

/* ---------- Video thumbnails ---------- */
.thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--surface-2); aspect-ratio: 16 / 9; color: inherit; font: inherit; text-align: left;
}
.thumb.vertical { aspect-ratio: 9 / 16; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10, 15, 26, .72); border: 2px solid #fff;
  display: grid; place-items: center; transition: background .15s, transform .15s;
}
.thumb .play::after { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.thumb:hover .play { background: var(--hot); transform: scale(1.08); }
.thumb .badge {
  position: absolute; right: 8px; bottom: 8px; background: rgba(10,15,26,.85); padding: .1rem .5rem; border-radius: 4px; font-size: .8rem; font-weight: 600;
}
.placeholder-tile {
  display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-size: .95rem;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  aspect-ratio: 16 / 9;
}
.placeholder-tile.vertical { aspect-ratio: 9 / 16; }

/* ---------- Sub navigation (jump links) ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--hot); color: var(--text); }

.division { padding-top: 1rem; margin-bottom: 4rem; scroll-margin-top: 5.5rem; }
.division-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; padding-bottom: .6rem; }
.division-head h2 { margin: 0; }
.division-head .count { color: var(--muted); font-weight: 600; }

/* ---------- Streams ---------- */
.stream-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stream-frame iframe { width: 100%; height: 100%; border: 0; }
.platform-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .5rem; vertical-align: .05em; }
.platform-dot.twitch { background: #9146ff; }
.platform-dot.kick { background: #53fc18; }
.platform-dot.razo { background: #f427a1; }
.platform-dot.tiktok { background: #fe2c55; box-shadow: -2px -2px 0 #25f4ee; }
.tiktok-wrap .tiktok-embed { margin: 0; }
.platform-dot.shareplay { background: #ffc72c; }
.stream-card {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s;
}
.stream-card:hover { border-color: var(--accent, #ffc72c); color: var(--text); }
.stream-card img { border-radius: 50%; flex-shrink: 0; border: 2px solid var(--accent, #ffc72c); }
.stream-card div { display: grid; gap: .2rem; flex: 1; }
.stream-card span { color: var(--muted); font-size: .98rem; }
.stream-card .stream-card-go { font-size: 1.6rem; color: var(--accent, #ffc72c); }
.stream-card .card-badge {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--accent, #ffc72c); background: var(--surface-2); color: var(--text); font: 700 1.3rem var(--font-display);
}

/* ---------- Wide feature card (Nexus Gaming podcast) ---------- */
.feature-card { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; }
.feature-card .card-body { padding: 1.4rem 1.6rem; }
.feature-card .card-body h3 { font-size: 1.5rem; }
.feature-card .feature-desc { margin-top: .6rem; }
.feature-card .btn-row { margin-top: 1rem; }
.feature-label {
  display: inline-block; margin-bottom: .6rem; padding: .1rem .6rem; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: .8rem; font-weight: 700;
}
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; } }
.sub-head { margin: 2rem 0 1rem; font-size: 1.35rem; }

/* ---------- Channel link cards (Nexus Gaming page) ---------- */
.channel-card {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.channel-card:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.channel-card strong { display: block; }
.channel-card small { color: var(--muted); font-size: .92rem; }
.channel-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); color: var(--brand); overflow: hidden; }
.channel-icon svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.channel-icon.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Status messages ---------- */
.notice { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted); }
.notice strong { color: var(--text); }
.notice code, code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 4px; font-size: .9em; color: var(--amber); }
.loading { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(5, 5, 12, .88); padding: 1rem; }
.modal.open { display: grid; }
.modal-inner { position: relative; width: min(960px, 100%); }
.modal-inner.vertical { width: min(380px, 100%); }
.modal-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal-inner.vertical .modal-frame { aspect-ratio: 9 / 16; max-height: 82vh; }
.modal-frame iframe, .modal-frame video { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -2.9rem; right: 0; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: .4rem .9rem; font: 600 1rem var(--font-body); cursor: pointer;
}
.modal-close:hover { border-color: var(--hot); }

/* ---------- Shop ---------- */
.wip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; display: grid; gap: .5rem;
}
.wip-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.wip h3 { margin: 0; }
.status { font-size: .88rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--amber); }
.status.done { color: var(--cyan); }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--amber), var(--cyan)); border-radius: 999px; }
.wip p { margin: 0; color: var(--muted); font-size: .98rem; }

.price-card { display: flex; flex-direction: column; padding: 1.3rem; }
.price-card h3 { margin-bottom: .2rem; }
.price { font: 700 2.1rem var(--font-display); margin: .3rem 0; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-card ul { margin: .4rem 0 1.2rem; padding-left: 1.1rem; color: var(--muted); font-size: .98rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured {
  border-color: var(--hot);
  background: linear-gradient(180deg, rgba(91, 140, 255, .14), transparent 45%), var(--surface);
  box-shadow: 0 0 0 1px var(--hot), 0 20px 50px -20px rgba(91, 140, 255, .55);
}
@media (min-width: 900px) { .price-card.featured { transform: translateY(-8px); } }
.see-samples { font-weight: 600; color: var(--cyan); text-decoration: none; }
.see-samples:hover { text-decoration: underline; }
/* Shop: division title and current-project title centred, with the link/status kept on the right */
.division-head.centered, .wip-top.centered { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; text-align: center; }
.division-head.centered > :first-child, .wip-top.centered > :first-child { grid-column: 2; }
.division-head.centered > :nth-child(2), .wip-top.centered > :nth-child(2) { grid-column: 3; justify-self: end; }
@media (max-width: 640px) {
  .division-head.centered, .wip-top.centered { grid-template-columns: 1fr; justify-items: center; }
  .division-head.centered > :first-child, .wip-top.centered > :first-child,
  .division-head.centered > :nth-child(2), .wip-top.centered > :nth-child(2) { grid-column: 1; justify-self: center; }
}
.price-tag { align-self: flex-start; background: var(--hot); color: #fff; font-size: .8rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; margin-bottom: .6rem; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90;
  background: var(--surface); border-left: 1px solid var(--line); padding: 1.3rem;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto;
}
.cart-drawer.open { transform: none; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-drawer-head h2 { margin: 0; font-size: 1.5rem; }
.cart-items { list-style: none; margin: 0; padding: 0; flex: 1 0 auto; }
.cart-items li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart-items .item-name { font-weight: 600; }
.cart-items .item-meta { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty button, .link-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; width: 1.9rem; height: 1.9rem; cursor: pointer; font: 700 1rem var(--font-body); }
.link-btn { width: auto; padding: 0 .6rem; height: 1.9rem; font-size: .85rem; }
.qty button:hover, .link-btn:hover { border-color: var(--hot); }
.cart-total { display: flex; justify-content: space-between; font: 700 1.3rem var(--font-display); padding: 1rem 0 .6rem; }
.cart-foot { display: grid; gap: .6rem; flex-shrink: 0; }
.cart-foot small { color: var(--muted); }
.paypal-area { background: #fff; border-radius: 8px; padding: .6rem .6rem .1rem; }
.paypal-area:has(.paypal-placeholder) { background: none; padding: 0; }
.paypal-placeholder {
  display: grid; gap: .15rem; text-align: center; padding: .8rem 1rem;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2);
}
.paypal-placeholder span { color: var(--muted); font-size: .92rem; }
.backdrop { position: fixed; inset: 0; background: rgba(5,5,12,.6); z-index: 80; display: none; }
.backdrop.open { display: block; }
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translate(-50%, 140%); z-index: 120;
  background: var(--cyan); color: var(--bg); font-weight: 700; padding: .7rem 1.2rem; border-radius: 8px; transition: transform .25s ease;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- About / Contact ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.about-side { display: grid; gap: 1.2rem; }
.avatar-card {
  margin: 0; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: #000; border: 3px solid var(--hot);
  box-shadow: 0 0 0 6px rgba(91, 140, 255, .15), 0 24px 60px -20px rgba(91, 140, 255, .6);
}
.avatar-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .avatar-card { width: min(70%, 240px); } }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fact-list li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: .9rem 1.1rem; }
.fact-list strong { display: block; }
.fact-list span { color: var(--muted); }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.email-big { font: 700 clamp(1.2rem, 3vw, 1.7rem) var(--font-display); word-break: break-all; }
form { display: grid; gap: 1rem; }
label { font-weight: 600; display: grid; gap: .35rem; }
input, textarea, select {
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; font: inherit; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(56, 214, 196, .25); }
textarea { min-height: 150px; resize: vertical; }

/* ---------- Checkout, confirmation, and uploads ---------- */
.container.narrow { max-width: 820px; }
.small { font-size: .9rem; }
.optional { color: var(--muted); font-weight: 400; font-size: .9rem; }
.form-error { color: #ff8b8b; font-weight: 600; margin: 0; }
.test-mode { color: var(--amber); display: block; margin-bottom: .3rem; }
.lead-muted { color: var(--muted); font-size: 1.1rem; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form, .checkout-summary, .confirm-card, .upload-card { padding: 1.5rem; }
.checkout-form h2, .checkout-summary h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.checkout-form h2:not(:first-child) { margin-top: .8rem; }
.checkout-summary { position: sticky; top: 5.5rem; display: grid; gap: .9rem; }
.summary-items { list-style: none; margin: 0; padding: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary-items small { display: block; }
.checkout-summary .cart-total { padding: 0; }
.checkout-summary .btn-ghost { justify-self: start; }

.confirm-card h2 { font-size: 1.35rem; margin-top: 1.6rem; }

.order-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.order-strip div { display: grid; }
.order-strip span { font-size: .85rem; }
.dropzone {
  display: grid; gap: .3rem; place-items: center; text-align: center; padding: 2.4rem 1rem; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--hot); background: rgba(91, 140, 255, .08); }
.dropzone strong { font: 700 1.25rem var(--font-display); }
.dropzone span { color: var(--muted); }
.upload-list, .done-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .8rem; }
.upload-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .5rem; }
.upload-top, .upload-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-pct { font-weight: 700; color: var(--cyan); }
.upload-meta { font-size: .9rem; }
.done-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.upload-card h2 { font-size: 1.3rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; margin-top: 3rem; color: var(--muted); text-align: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.socials { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand); transition: border-color .15s, transform .15s;
}
.socials a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
/* Picture icons stay in full color */
.socials a.has-img { overflow: hidden; padding: 0; }
.socials a.has-img img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { animation: none; left: calc(4.2rem + (100% - 5.2rem) * .64); }
  * { transition: none !important; }
}

/* ---------- Scroll-in animation (added by main.js; skipped for reduced motion) ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Loading placeholders (shimmering cards while videos load) ---------- */
.skeleton .thumb { cursor: default; }
.skeleton .thumb, .skeleton-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, #24304a 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line { height: .9rem; border-radius: 6px; margin-bottom: .55rem; }
.skeleton-line.short { width: 55%; margin-bottom: 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton .thumb, .skeleton-line { animation: none; } }

/* ---------- LIVE NOW badge in the header (added by main.js) ---------- */
.live-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .35rem .3rem .75rem; border-radius: 999px;
  background: #e91916; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; white-space: nowrap;
}
.live-badge[hidden] { display: none; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rec 1.6s infinite; }
/* One button per platform you're live on, in that platform's colors */
.live-chip {
  padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none;
  background: #fff; color: #e91916; transition: filter .15s, transform .15s;
}
.live-chip.twitch { background: #9146ff; color: #fff; }
.live-chip.kick { background: #53fc18; color: #0a0f1a; }
.live-chip.razo { background: #f427a1; color: #fff; }
.live-chip:hover { filter: brightness(1.12); transform: translateY(-1px); color: inherit; }
.live-chip.twitch:hover, .live-chip.razo:hover { color: #fff; }
.live-chip.kick:hover { color: #0a0f1a; }
/* Wide screens: the full menu fills the bar, so it hangs below the header as a tab */
@media (min-width: 1281px) {
  .nav { position: relative; }
  .live-badge { position: absolute; top: 100%; right: 0; border-radius: 0 0 8px 8px; box-shadow: 0 6px 18px rgba(233, 25, 22, .35); }
}
@media (max-width: 1280px) { .live-badge { order: 2; margin-left: auto; } }
/* Phones and small tablets: no room beside Cart and Menu, so it becomes a bar under the logo row */
@media (max-width: 860px) {
  .live-badge { order: 4; margin-left: 0; width: 100%; border-radius: 8px; padding: .3rem; padding-left: .75rem; }
  .live-badge .live-chip { flex: 1; text-align: center; border-radius: 6px; padding: .35rem .5rem; }
}

/* ---------- Numbers strip (home page) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.stat { padding: 1.3rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font: 700 clamp(2rem, 4vw, 2.6rem) var(--font-display); color: var(--cyan); line-height: 1.1; }
.stat:nth-child(2) strong { color: var(--hot); }
.stat:nth-child(3) strong { color: var(--amber); }
.stat span { color: var(--muted); font-weight: 600; }
/* Home page follower counts: each card is a link in its platform's colour */
.community-strip { margin-bottom: 3rem; }
.community-strip > p { color: var(--muted); text-align: center; margin-inline: auto; }
/* Centred page intro (My Streams) */
.section-head.centered { text-align: center; }
.section-head.centered p { margin-inline: auto; }
.subnav.centered { justify-content: center; }
.section-head.centered .btn-row { justify-content: center; }
#community-total strong { color: var(--text); font-family: var(--font-display); }
.follow-stat { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.follow-stat strong, .stats .follow-stat:nth-child(n) strong { color: var(--brand); }
.follow-stat em { display: block; margin-top: .5rem; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--brand); opacity: .85; }
.follow-stat:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
#stats[hidden], #before-after[hidden] { display: none; }

/* ---------- Before / after slider (home page) ---------- */
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; user-select: none; touch-action: pan-y; }
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-label { position: absolute; top: .8rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(10, 15, 26, .75); padding: .3rem .6rem; border-radius: 6px; pointer-events: none; }
.compare-label.before { left: .8rem; }
.compare-label.after { right: .8rem; color: var(--cyan); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.compare-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot); color: #fff; font-size: 1.3rem; font-weight: 700; box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* During the edited clip's outro, the edit slides over the whole frame */
.compare.outro .compare-after { clip-path: inset(0 0 0 0); transition: clip-path .6s ease; }
.compare.outro .compare-handle, .compare.outro .compare-label.before { opacity: 0; transition: opacity .3s; }
.compare.outro input[type="range"] { pointer-events: none; }
.compare input[type="range"]:focus-visible ~ .compare-handle::after { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- FAQ (shop page) ---------- */
.faq { display: grid; gap: .7rem; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: #3a4a6b; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cyan); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* ---------- 404 page ---------- */
.lost { text-align: center; padding: 6rem 0 5rem; }
.lost .lost-code { font: 700 clamp(5rem, 18vw, 10rem) var(--font-display); line-height: 1; margin: 0; background: linear-gradient(90deg, var(--hot), var(--amber), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lost p { margin-inline: auto; color: var(--muted); }
.lost .btn-row { justify-content: center; }

/* ---------- Track Your Order ---------- */
.track-form { display: grid; gap: 1rem; padding: 1.5rem; max-width: 520px; margin: 0 auto; }
.track-result { max-width: 820px; margin: 1.5rem auto 0; padding: 1.6rem; }
.track-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.track-head h2 { margin: 0; font-size: 1.7rem; }
.track-steps { --at: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 1.6rem 0 1.2rem; padding: 0; text-align: center; }
/* the line behind the dots: grey track, coloured up to the current step */
.track-steps::before, .track-steps::after { content: ""; position: absolute; top: 1.05rem; left: 10%; height: 4px; border-radius: 4px; }
.track-steps::before { right: 10%; background: var(--surface-2); }
.track-steps::after { width: calc(80% * var(--at) / 4); background: linear-gradient(90deg, var(--hot), var(--cyan)); }
.track-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.track-dot { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.track-steps li.done .track-dot { background: var(--cyan); border-color: var(--cyan); color: #0a0f1a; }
.track-steps li.current { color: var(--text); }
.track-steps li.current .track-dot { background: var(--hot); border-color: var(--hot); color: #fff; box-shadow: 0 0 0 6px rgba(255, 59, 92, .18); }
.track-now { font-weight: 600; }
.track-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; color: var(--muted); }
.track-facts dd { margin: 0; color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .track-steps { grid-template-columns: 1fr; gap: .9rem; text-align: left; }
  .track-steps::before, .track-steps::after { display: none; }
  .track-steps li { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: .8rem; }
}

/* ---------- Shop: edit slots left this week ---------- */
.slots-banner { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--text); max-width: none; }
.slots-banner::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); animation: rec 1.6s infinite; flex-shrink: 0; }
.slots-banner.low::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 199, 44, .2); }
.slots-banner.full::before { background: #ff3b5c; box-shadow: 0 0 0 4px rgba(255, 59, 92, .2); animation: none; }
.slots-banner strong { color: var(--cyan); }
.slots-banner.centered { display: flex; width: fit-content; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .slots-banner::before { animation: none; } }

/* ---------- Shop: Help Me Choose quiz ---------- */
.quiz { padding: 1.6rem; margin-bottom: 3rem; }
.quiz h2 { margin: 0 0 .3rem; }
.quiz-progress { display: flex; gap: .4rem; margin: 1rem 0 1.2rem; }
.quiz-progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-2); }
.quiz-progress span.on { background: linear-gradient(90deg, var(--hot), var(--cyan)); }
.quiz-q { font: 600 1.15rem var(--font-display); margin: 0 0 .9rem; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.quiz-option { text-align: left; padding: .9rem 1rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 600 1rem var(--font-body); cursor: pointer; transition: border-color .15s, transform .15s; }
.quiz-option small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 500; font-size: .88rem; }
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--cyan); transform: translateY(-2px); outline: none; }
.quiz-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
.quiz-pick .price { margin: .2rem 0 .6rem; }
.quiz-pick ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.quiz-pick .btn-row { flex-direction: column; align-items: stretch; margin: 0; }
@media (max-width: 700px) { .quiz-pick { grid-template-columns: 1fr; } }
.quiz-back { margin-top: 1rem; }
/* Quiz heading, question and answers centred; the result keeps its two columns */
.quiz { text-align: center; }
.quiz > p { margin-inline: auto; }
.quiz-option { text-align: center; }
.quiz-pick { text-align: left; }

/* ---------- Privacy and Terms pages ---------- */
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: .45rem; }
.legal strong { color: var(--text); }

/* ---------- Reviews ---------- */
.quote-stars { color: #ffc83d; letter-spacing: .08em; }
#review-summary strong, .shop-rating strong { color: var(--text); }
.shop-rating { text-align: center; margin: -0.8rem auto 1.5rem; color: var(--muted); font-weight: 600; }
.star-pick { border: 0; margin: 0; padding: 0; }
.star-pick legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
/* row-reverse so hovering or picking a star lights it and every star before it */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.2rem; line-height: 1; color: var(--surface-2); cursor: pointer; transition: color .12s, transform .12s; -webkit-text-stroke: 1px var(--line); }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #ffc83d; }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.review-form .check { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.review-form .check input { width: auto; }
