/* Truckfish Games — design system v3 "Drop Zone"
   =====================================================================
   Fortnite-grade: deep indigo base, electric cyan / magenta / lime, panels
   with 45-degree cut corners and rim glow, heavy condensed oblique caps.

   THE ONE THING THAT MOVED WHEN THE PAGE WENT DARK
   ------------------------------------------------
   In v2 the storefront was daylight and the sample frame was dark, and that
   contrast did real work: it kept the *game screen* visually separate from the
   *storefront*, which is the same line the honesty rule draws. A dark page
   erases that separation for free, so it is rebuilt deliberately here — the
   sample frame gets a near-black screen (cooler and darker than any page
   surface), a bright cyan bezel and a glow no other panel has. If you restyle
   anything, do not let the sample frame become just another panel.

   Class names are unchanged from v1/v2, so the game pages and devlog re-skin
   without being edited.
   ===================================================================== */

:root {
  /* ---- the dark ---- */
  --void:    #0A0518;   /* deepest — behind everything */
  --base:    #130A2C;   /* page */
  --base-2:  #180E38;
  --panel:   #221248;   /* cards, tiers */
  --panel-2: #2C1A5E;   /* raised / hover */
  --panel-3: #382270;

  /* ---- electric ---- */
  --cyan:    #00C2FF;
  --violet:  #8B5CFF;
  --violet-d:#6E4BFF;
  --magenta: #FF2BD6;
  --lime:    #C6FF3D;
  --gold:    #FFC400;
  --orange:  #FF7A29;
  --danger:  #FF4A6E;

  /* ---- text ---- */
  --text:     #F3EFFF;
  --text-dim: #BFB4EC;
  --text-mut: #9B8ED6;   /* 5.5:1 on --panel — do not darken further */

  /* ---- gradients ---- */
  --g-buy:   linear-gradient(135deg, #FFC400 0%, #FF7A29 100%);
  --g-play:  linear-gradient(135deg, #C6FF3D 0%, #00C2FF 100%);
  --g-cool:  linear-gradient(135deg, #6E4BFF 0%, #00C2FF 100%);
  --g-hot:   linear-gradient(135deg, #FF2BD6 0%, #8B5CFF 100%);

  /* ---- the cut corner: top-left and bottom-right, 45 degrees ---- */
  --cut: 15px;
  --chamfer: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut));
  --cut-sm: 9px;
  --chamfer-sm: polygon(
    var(--cut-sm) 0, 100% 0,
    100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%,
    0 100%, 0 var(--cut-sm));

  /* ---- legacy dark tokens consumed by taster.css ---- */
  --ink-900: #05070D;
  --ink-800: #080B14;
  --ink-700: #0E1420;
  --ink-600: #161E2E;
  --ink-500: #202C42;
  --ink:     var(--void);
  --line:    #2E1F5C;
  --teal:      #00E5C4;
  --teal-dim:  #0E9E8C;
  --amber:     #FFC400;
  --amber-hot: #FF7A29;
  --red:       #FF4A6E;
  --green:     #7CE85C;

  /* ---- type ---- */
  --display: "Anton", "Barlow Condensed", Impact, system-ui, sans-serif;
  --body:    "Barlow", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    ui-monospace, "Cascadia Code", Menlo, monospace;

  /* ---- rhythm ---- */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1200px;
  --r:   0px;    /* v3 is angular. Radius is deliberately zero. */
  --r-lg: 0px;

  --glow-violet: drop-shadow(0 0 14px rgba(110,75,255,.42));
  --glow-cyan:   drop-shadow(0 0 16px rgba(0,194,255,.45));
}

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] is a UA rule at the lowest specificity, so any `display:` we set on
   a class silently defeats it — .filters{display:grid} and .btn{display:inline-flex}
   both did. That broke the no-JS fallback: the filter bar and the Clear button
   rendered for visitors whose JS never ran. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--base);
  /* Violet and cyan blooms over indigo — the Fortnite lobby backdrop. Fixed so
     the lower page never falls flat. */
  background-image:
    radial-gradient(1100px 680px at 3% -12%, rgba(139, 92,255,.42), transparent 62%),
    radial-gradient(950px  580px at 99%  2%, rgba(0, 194,255,.30), transparent 60%),
    radial-gradient(880px  560px at 52% 30%, rgba(255, 43,214,.16), transparent 66%),
    radial-gradient(820px  600px at 12% 98%, rgba(110, 75,255,.28), transparent 64%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Headlines are condensed, oblique and upper-case. `oblique 8deg` slants the
   glyphs without skewing the layout box, which a transform would. */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 400; line-height: 1.02;
  letter-spacing: .012em; margin: 0; color: var(--text);
  text-transform: uppercase; font-style: oblique 8deg;
}
p { margin: 0 0 1em; }
a { color: var(--cyan); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
strong, b { font-weight: 700; color: var(--text); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cyan); color: var(--void); padding: .75rem 1.25rem;
  font-weight: 800; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
/* No filter here: a filter on a sticky element breaks the sticking. */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,5,24,.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 2px solid var(--violet-d);
  box-shadow: 0 0 26px rgba(110,75,255,.32);
}
.hdr-in { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 400; font-size: 1.35rem;
  color: var(--text); text-transform: uppercase; font-style: oblique 8deg;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; color: var(--cyan); }
.brand-mark { width: 34px; height: 34px; flex: none; transition: transform .3s cubic-bezier(.34,1.8,.64,1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.12); }
.nav { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text-dim); font-size: .92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.nav a:hover { color: var(--cyan); text-decoration: none; }
/* .nav a out-specifies .btn on its own and would grey out the label. */
.nav a.btn-teal { color: #06121F; }
.nav a.btn-buy  { color: #1F0E00; }
.nav a.btn-grape { color: #fff; }
.nav a.btn-ghost { color: var(--text); }
@media (max-width: 760px) {
  .nav { gap: .7rem; }
  .nav .hide-sm { display: none; }
  .hdr-in { gap: .7rem; height: 60px; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 28px; height: 28px; }
  .nav .btn { padding: .5rem .8rem; font-size: .8rem; }
}
@media (max-width: 460px) {
  /* The wordmark wraps and shoves the header open below this. The mark alone
     still identifies the site and the footer keeps the full wordmark. */
  .hdr .brand-txt { display: none; }
  .nav { gap: .55rem; }
  .snd { width: 38px; height: 38px; }
}

/* ---------- sound toggle ---------- */
.snd {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; flex: none; padding: 0;
  border: 2px solid var(--violet-d); background: rgba(139,92,255,.14);
  color: var(--text); cursor: pointer; clip-path: var(--chamfer-sm);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.snd:hover { background: rgba(0,194,255,.22); color: var(--cyan); box-shadow: 0 0 16px rgba(0,194,255,.5); }
.snd svg { width: 19px; height: 19px; fill: currentColor; }
.snd .on { display: none; }
.snd[aria-pressed="true"] { background: var(--g-play); color: #06121F; border-color: var(--lime); }
.snd[aria-pressed="true"] .on  { display: block; }
.snd[aria-pressed="true"] .off { display: none; }

/* ---------- buttons ----------
   Cut-corner slabs with bright gradient fills and dark labels. Dark-on-bright
   is not a style choice: white on cyan measures 2:1 and fails outright, while
   near-black on the same fill clears 9:1. */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 400; font-size: 1.02rem;
  text-transform: uppercase; font-style: oblique 8deg; letter-spacing: .03em;
  padding: .85rem 1.6rem; border: 0; cursor: pointer; text-decoration: none;
  white-space: nowrap; color: var(--text); background: var(--panel-2);
  clip-path: var(--chamfer-sm);
  transition: transform .13s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }

.btn-buy   { background: var(--g-buy);  color: #1F0E00; box-shadow: 0 0 22px rgba(255,150,20,.5); }
.btn-teal  { background: var(--g-play); color: #06121F; box-shadow: 0 0 22px rgba(120,230,140,.45); }
.btn-grape { background: var(--g-hot);  color: #fff; box-shadow: 0 0 22px rgba(255,43,214,.45); }
.btn-ghost {
  background: rgba(139,92,255,.12); color: var(--text);
  box-shadow: inset 0 0 0 2px var(--violet-d);
}
.btn-ghost:hover { background: rgba(0,194,255,.16); color: var(--cyan); box-shadow: inset 0 0 0 2px var(--cyan); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.2rem; }
.btn-sm { padding: .52rem 1.05rem; font-size: .88rem; }

/* One shine sweep on hover. Clipped by .btn's own overflow:hidden — without
   that clip it escapes and floats on the page as a stray parallelogram. */
.btn-buy::after, .btn-grape::after, .btn-teal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%);
  transform: translateX(-120%); pointer-events: none;
}
.btn-buy:hover::after, .btn-grape:hover::after, .btn-teal:hover::after { animation: shine .6s ease-out; }
@keyframes shine { to { transform: translateX(120%); } }

/* ---------- eyebrow / chips ---------- */
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: .95rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  font-style: oblique 8deg;
}
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-size: .8rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; font-style: oblique 8deg;
  padding: .32rem .8rem; clip-path: var(--chamfer-sm);
  color: var(--text); background: var(--panel-2);
  box-shadow: inset 0 0 0 2px var(--violet-d);
}
.chip-live { background: var(--g-play); color: #06121F; box-shadow: none; }
.chip-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #06121F; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.chip-sun   { background: var(--gold); color: #1F0E00; box-shadow: none; }
.chip-grape { background: var(--g-hot); color: #fff; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem); }
.hero-in {
  position: relative; display: grid; gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); } }

.hero h1 { font-size: clamp(2.9rem, 7vw, 5rem); margin: 1rem 0 1.1rem; line-height: .96; }
.hero h1 em {
  font-style: oblique 8deg; color: var(--cyan);
  background: var(--g-play); -webkit-background-clip: text; background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 em { -webkit-text-fill-color: transparent; }
}
.hero-sub { font-size: clamp(1.04rem, 2vw, 1.16rem); color: var(--text-dim); max-width: 46ch; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.hero-note {
  margin-top: 1.3rem; font-size: .9rem; color: var(--text-mut); font-weight: 600;
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
  text-transform: uppercase; letter-spacing: .05em;
}

/* Drifting shards behind the hero copy. Decorative, aria-hidden, and still
   under prefers-reduced-motion. */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; clip-path: var(--chamfer-sm); opacity: .5; }
.blob.b1 { width: 78px; height: 78px; background: var(--g-cool);  top: 5%;  left: 1.5%; animation: bob 7s ease-in-out infinite; }
.blob.b2 { width: 52px; height: 52px; background: var(--lime);    top: 64%; left: 3.5%; animation: bob 9s ease-in-out infinite .8s; }
.blob.b3 { width: 40px; height: 40px; background: var(--magenta); top: 18%; right: 3.5%; animation: bob 8s ease-in-out infinite .4s; }
.blob.b4 { width: 66px; height: 66px; background: var(--g-play);  bottom: 9%; right: 8%; animation: bob 10s ease-in-out infinite 1.2s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }
.hero-in > * { position: relative; z-index: 1; }
@media (max-width: 999px) { .blobs { display: none; } }

/* ---------- the playable frame ----------
   THE separation element. On a dark page this must not read as another panel,
   so it gets a screen darker and cooler than any page surface, a cyan bezel,
   and a glow nothing else on the page has. */
.play-frame {
  --line:    #22304A;
  --text:     #E9F2FF;
  --text-dim: #9DB0CC;
  --text-mut: #6B7C99;
  --teal:     #00E5C4;
  --teal-dim: #0E9E8C;
  --amber:    #FFB020;
  --red:      #FF5F6E;
  --green:    #6FE86A;

  position: relative; background: var(--ink-900);
  clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 3px var(--cyan), 0 0 40px rgba(0,194,255,.30);
  color: var(--text);
}
/* Headings resolve --text and .eyebrow resolves --cyan, both fine here, but
   any element that names a page colour directly must be restated. */
.play-frame h1, .play-frame h2, .play-frame h3, .play-frame h4 { color: var(--text); }
.play-frame .eyebrow { color: var(--teal); }
.play-frame p { color: var(--text-dim); }
.play-frame a:not(.btn) { color: var(--teal); }
.play-frame .btn-ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px var(--text-mut); color: var(--text); }
.play-frame .btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); }

.play-bar {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem;
  background: linear-gradient(135deg, #6E4BFF 0%, #1B6FD6 100%);
  font-family: var(--display); font-size: .92rem; font-weight: 400;
  color: #fff; letter-spacing: .06em; text-transform: uppercase;
  font-style: oblique 8deg;
}
.play-bar .dot { width: 10px; height: 10px; border-radius: 50%; opacity: .85; }
.play-bar .title { margin-left: .4rem; color: #fff; }
/* "SAMPLE" is a disclosure, not decoration — loudest thing in the bar. */
.play-bar .right {
  margin-left: auto; background: var(--gold); color: #2A1B00;
  padding: .18rem .8rem; font-size: .9rem; letter-spacing: .14em;
  clip-path: var(--chamfer-sm);
}
@media (max-width: 560px) { .play-bar .title { display: none; } }

/* ---------- sample disclosure ----------
   Above the fold, in the same eyeline as the thing it describes. A solid gold
   slab on an indigo page is the highest-contrast object on the screen, which
   is exactly what this needs to be. */
.sample-note {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.15rem;
  background: linear-gradient(135deg, #FFD84D 0%, #FFB300 100%);
  font-size: .93rem; line-height: 1.5; color: #2A1B00; font-weight: 600;
}
.sample-note svg { flex: none; width: 20px; height: 20px; margin-top: .16rem; fill: #6B3E00; }
.sample-note b { color: #40260A; font-weight: 800; }
.sample-note a { color: #40260A; text-decoration: underline; text-decoration-thickness: 2px; font-weight: 700; }
.sample-note.standalone { margin-top: 1rem; clip-path: var(--chamfer-sm); }

/* ---------- real build imagery ---------- */
.shots { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.shot {
  margin: 0; background: var(--panel); clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: transform .18s ease, filter .2s ease;
}
.shot:hover { transform: translateY(-3px); filter: var(--glow-violet); }
.shot img { width: 100%; height: auto; display: block; background: var(--ink-700); }
.shot figcaption { padding: .9rem 1.1rem 1.05rem; font-size: .9rem; color: var(--text-dim); line-height: 1.5; }
.shot figcaption b { color: var(--text); font-weight: 700; display: block; margin-bottom: .2rem; }
.shot-wide { grid-column: 1 / -1; }

/* ---------- section ---------- */
.sec { padding: clamp(3rem, 8vw, 5.5rem) 0; position: relative; }
.sec-hd { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-hd h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: .7rem 0 .9rem; }
.sec-hd p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

.sec-alt {
  background: linear-gradient(180deg, var(--base-2), #150C31);
  border-block: 2px solid var(--violet-d);
}

/* ---------- accent bands ----------
   Each band is the same dark slab lit by a different colour, so the page has
   hue rhythm without any section going pale. */
.sec-band { position: relative; border-block: 2px solid var(--violet-d); }
.sec-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 9px);
}
.sec-band > * { position: relative; }

.sec-sun  { background: radial-gradient(120% 130% at 12% 0%, rgba(255,196,0,.20), transparent 62%), linear-gradient(180deg,#1A1030,#150C2B); }
.sec-sun  .eyebrow { color: var(--gold); }
.sec-aqua { background: radial-gradient(120% 130% at 88% 0%, rgba(0,194,255,.24), transparent 62%), linear-gradient(180deg,#0F1436,#0D1030); }
.sec-aqua .eyebrow { color: var(--cyan); }
.sec-grape{ background: radial-gradient(120% 140% at 50% 0%, rgba(139,92,255,.34), transparent 66%), linear-gradient(180deg,#22124F,#1A0E3E); }
.sec-grape .eyebrow { color: var(--magenta); }
.sec-mint { background: radial-gradient(120% 130% at 20% 0%, rgba(198,255,61,.16), transparent 62%), linear-gradient(180deg,#121A2E,#101528); }
.sec-mint .eyebrow { color: var(--lime); }

/* ---------- drop counter ---------- */
.drop {
  position: relative; display: grid; gap: 1.6rem; align-items: center;
  grid-template-columns: 1fr; padding: 1.7rem;
  background: linear-gradient(120deg, #2A1560 0%, #16224F 60%, #0F2B4E 100%);
  clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 34px rgba(0,194,255,.22);
  overflow: hidden;
}
.drop::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(0,194,255,.10) 0 3px, transparent 3px 14px);
}
.drop > * { position: relative; }
@media (min-width: 820px) { .drop { grid-template-columns: 1fr auto; padding: 2.3rem; } }
.drop .eyebrow { color: var(--lime); }
.drop h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .5rem; color: #fff; }
.drop p { color: var(--text-dim); margin: 0; font-size: .98rem; max-width: 52ch; }
.clock { display: flex; gap: .55rem; }
.clock-unit {
  text-align: center; min-width: 72px; padding: .7rem .55rem;
  background: rgba(5,7,16,.72); clip-path: var(--chamfer-sm);
  box-shadow: inset 0 0 0 2px var(--violet-d);
}
.clock-n {
  font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1;
  color: var(--cyan); font-variant-numeric: tabular-nums; font-style: oblique 8deg;
}
.clock-l {
  font-family: var(--display); font-size: .7rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mut); margin-top: .35rem;
}
@media (max-width: 480px) { .clock { gap: .35rem; } .clock-unit { min-width: 0; flex: 1; } .clock-n { font-size: 1.5rem; } }

/* ---------- game grid ---------- */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--panel);
  clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: transform .2s cubic-bezier(.34,1.3,.64,1), filter .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-6px); background: var(--panel-2);
  filter: drop-shadow(0 0 18px rgba(0,194,255,.45));
}
.card-art { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--ink-800); }
.card-art svg, .card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-badge { position: absolute; top: .7rem; left: .7rem; }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--cyan); text-decoration: none; }
.card-meta {
  font-family: var(--display); font-size: .82rem; font-weight: 400; color: var(--text-mut);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem;
}
.card-body p { color: var(--text-dim); font-size: .95rem; margin-bottom: 1.1rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.price {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: #1F0E00;
  background: var(--g-buy); padding: .16rem .85rem; clip-path: var(--chamfer-sm);
  font-style: oblique 8deg; letter-spacing: .03em;
}
.price small { font-weight: 600; font-size: .62rem; letter-spacing: .08em; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.tier {
  display: flex; flex-direction: column; padding: 1.9rem;
  background: var(--panel); clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: transform .18s ease, filter .2s ease;
}
.tier:hover { transform: translateY(-4px); filter: var(--glow-violet); }
/* The highlighted tier borrows the loot-rarity idea: gold rim, warmer fill. */
.tier-hi {
  background: linear-gradient(168deg, #3A2264 0%, #2A1650 60%, #221248 100%);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px rgba(255,196,0,.22);
  position: relative;
}
.tier-tag {
  position: absolute; top: 0; left: 0; background: var(--g-buy); color: #1F0E00;
  font-family: var(--display); font-size: .82rem; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem 1rem .3rem .9rem; font-style: oblique 8deg;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.tier-hi > h3 { margin-top: 1.6rem; }
.tier h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.tier-price {
  font-family: var(--display); font-size: 3.4rem; font-weight: 400; line-height: 1;
  margin: .7rem 0 .25rem; color: var(--cyan); font-style: oblique 8deg;
}
.tier-price span { font-size: 1rem; color: var(--text-mut); }
.tier-sub { color: var(--text-dim); font-size: .94rem; margin-bottom: 1.35rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .65rem; }
.tier li { display: flex; gap: .6rem; font-size: .95rem; color: var(--text-dim); align-items: flex-start; }
.tier li::before {
  content: "\25B8"; color: var(--lime); flex: none; font-size: 1rem;
  line-height: 1.4; font-weight: 700;
}
.tier .btn { margin-top: auto; width: 100%; }

/* Explainer tiles carry an icon instead of a price, or they bottom out empty. */
.tier-ico {
  display: grid; place-items: center; width: 60px; height: 60px; flex: none;
  clip-path: var(--chamfer-sm); font-size: 1.6rem; line-height: 1; margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: 78ch; align-items: start; }
@media (min-width: 920px) { .faq { grid-template-columns: 1fr 1fr; max-width: none; } }
.faq-item {
  background: var(--panel); padding: 1.4rem 1.55rem; clip-path: var(--chamfer-sm);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: transform .18s ease, filter .2s ease;
}
.faq-item:hover { transform: translateY(-3px); filter: var(--glow-violet); }
.faq-item h3 { font-size: 1.25rem; margin: 0 0 .6rem; display: flex; gap: .6rem; align-items: flex-start; }
.faq-item h3::before {
  content: "?"; flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; background: var(--g-play); color: #06121F;
  font-size: .95rem; clip-path: var(--chamfer-sm); font-style: normal;
}
.faq-item p { margin: 0; color: var(--text-dim); font-size: .97rem; }
.faq-item p + p { margin-top: .7rem; }

/* ---------- footer ---------- */
.ftr { border-top: 2px solid var(--violet-d); background: var(--void); padding: 3.25rem 0 2rem; margin-top: 2rem; }
.ftr-in { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.ftr h4 {
  font-family: var(--display); font-size: .92rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem;
  font-weight: 400; font-style: oblique 8deg;
}
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ftr a { color: var(--text-dim); font-size: .93rem; font-weight: 600; }
.ftr a:hover { color: var(--cyan); }
.ftr-btm {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .88rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 2rem; margin: 2.5rem 0 .9rem; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 .7rem; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose code {
  font-family: var(--mono); font-size: .88em; background: rgba(139,92,255,.18);
  padding: .16em .45em; color: var(--lime); font-weight: 600;
}
.prose blockquote {
  border-left: 4px solid var(--cyan); margin: 1.6rem 0; padding: .5rem 0 .5rem 1.3rem;
  color: var(--text-dim); font-style: italic;
}

/* ---------- utility ---------- */
.tac { text-align: center; }
.fineprint { color: var(--text-mut); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- devlog post list ---- */
.posts { display: flex; flex-direction: column; gap: 1rem; }
.post-row {
  display: grid; grid-template-columns: 1fr; gap: .7rem;
  padding: 1.5rem; background: var(--panel); clip-path: var(--chamfer-sm);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: transform .18s ease, filter .2s ease;
}
.post-row:hover { transform: translateY(-3px); filter: var(--glow-violet); }
@media (min-width: 760px) {
  .post-row { grid-template-columns: 160px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.post-meta time {
  font-family: var(--display); font-size: .8rem; font-weight: 400; letter-spacing: .1em;
  color: var(--text-mut); text-transform: uppercase;
}
.post-row h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.1; margin: 0 0 .5rem; }
.post-row h2 a { color: var(--text); text-decoration: none; }
.post-row h2 a:hover { color: var(--cyan); }
.post-row p { color: var(--text-dim); font-size: .95rem; line-height: 1.6; margin: 0; max-width: 68ch; }

/* ---------- catalogue search + facets ----------
   Sits between the section header and the grid. Hidden in markup and revealed
   by catalogue.js, so a visitor without JS gets the whole catalogue rather
   than a dead filter bar. */
.filters { margin-bottom: 2rem; display: grid; gap: 1.1rem; }

.filter-top { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }

.filter-search { position: relative; flex: 1 1 300px; min-width: 0; }
.filter-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; fill: var(--text-mut); pointer-events: none;
}
.filter-search input {
  width: 100%; font-family: var(--body); font-size: 1rem; font-weight: 500;
  color: var(--text); background: rgba(5,7,16,.55);
  border: 0; box-shadow: inset 0 0 0 2px var(--violet-d);
  clip-path: var(--chamfer-sm); padding: .8rem 1rem .8rem 2.7rem;
}
.filter-search input::placeholder { color: var(--text-mut); }
.filter-search input:focus {
  outline: none; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(0,194,255,.35);
}
/* The UA clear button is invisible against a dark field in some engines. */
.filter-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }

.filter-count {
  margin: 0; font-family: var(--display); font-size: .95rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan); font-style: oblique 8deg;
  white-space: nowrap;
}

.facets { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet legend {
  padding: 0 0 .5rem; font-family: var(--display); font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-mut);
  font-style: oblique 8deg;
}
.facet-opts { display: flex; flex-wrap: wrap; gap: .5rem; }

/* The checkbox stays in the DOM for keyboard and screen-reader use; the label
   is what gets painted. */
.facet-opt { cursor: pointer; }
.facet-opt input {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  margin: 0; pointer-events: none;
}
.facet-opt span {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-size: .88rem; letter-spacing: .05em;
  text-transform: uppercase; font-style: oblique 8deg;
  padding: .4rem .85rem; clip-path: var(--chamfer-sm);
  color: var(--text-dim); background: rgba(139,92,255,.12);
  box-shadow: inset 0 0 0 2px var(--violet-d);
  transition: color .14s ease, background .14s ease, box-shadow .14s ease;
}
.facet-opt span b {
  font-weight: 400; font-size: .76rem; color: var(--text-mut);
  font-variant-numeric: tabular-nums;
}
.facet-opt:hover span { color: var(--text); background: rgba(0,194,255,.16); }
.facet-opt input:checked + span {
  background: var(--g-play); color: #06121F;
  box-shadow: 0 0 18px rgba(120,230,140,.45);
}
.facet-opt input:checked + span b { color: #06121F; opacity: .7; }
.facet-opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }

.cat-empty {
  margin: 1.5rem 0 0; padding: 1.6rem 1.8rem; max-width: 62ch;
  background: var(--panel); clip-path: var(--chamfer-sm);
  box-shadow: inset 0 0 0 2px var(--violet-d); color: var(--text-dim);
}

/* A hidden card must not keep its grid slot. */
.grid .card[hidden] { display: none; }

@media (max-width: 600px) {
  .filter-top { gap: .6rem; }
  .filter-count { font-size: .85rem; }
  .facets { gap: 1rem 1.3rem; }
}
