/* design: structure=video-store (neon sign → letterboard marquee → genre-divider filters → shelf pile) · accent=neon-pink sign + price-gun yellow tags on maroon carpet · dials=8/4/6 */
/* design-ok-file: untokened-color — material one-offs (neon tube whites/cyan, letterboard plastic, rental-card paper shades), each tied to a single physical object */
:root {
  --carpet: #1c1018;
  --panel: #281a24;
  --panel-2: #33212c;
  --line: #452e3c;
  --text: #f4ebe2;
  --muted: #ab93a0;
  --neon: #ff4fa3;
  --neon-glow: #ff2e88;
  --sticker: #dfb75a;        /* sun-faded price-gun yellow */
  --sticker-ink: #43330c;
  --sticker-hi: #efd28e;
  --sticker-lo: #c39c40;
  --stamp: #ff5347;
  --tape: #e8ddc4;
  --card-paper: #f4eee2;
  --card-ink: #2b241c;
  --card-rule: #b4c0d0;   /* faded index-card blue */
  --radius: 8px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, #3c1f3455, transparent 60%),
    radial-gradient(900px 500px at -10% 35%, #2a152244, transparent 55%),
    var(--carpet);
  color: var(--text);
  font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif;
}
/* a rental store is never spotless: grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
::selection { background: var(--neon); color: #fff; }

/* ---- the shopfront ---- */
.site-head { max-width: 1240px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s2); }
.wordmark {
  display: inline-block; text-decoration: none;
  font-family: "Monoton", cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #ffe9f4;
  text-shadow:
    0 0 6px var(--neon), 0 0 18px var(--neon-glow),
    0 0 42px var(--neon-glow), 0 2px 24px rgba(255, 46, 136, 0.4);
}
.wordmark span { color: #fff; }
.open-sign {
  display: inline-block; margin-left: var(--s3); vertical-align: super;
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.28em;
  color: #9ef3ee; text-transform: uppercase;
  text-shadow: 0 0 5px #37e0d8, 0 0 16px #17b8b0;
}
/* letterboard marquee: ribbed black board, stick-on letters */
.hero-line {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 400; letter-spacing: 0.06em; line-height: 1.35;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  margin: var(--s4) 0 0;
  max-width: 34ch;
  background:
    repeating-linear-gradient(180deg, #17131a 0 6px, #0f0c12 6px 12px);
  border: 3px solid #0a080d;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: var(--s3) var(--s4);
  overflow-wrap: anywhere; min-width: 0;
  rotate: -0.5deg;
}
.hero-line b { color: var(--sticker); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: 0.02em; display: inline-block; rotate: -1deg; translate: 0 1px; }
/* stick-on letters never sit straight; one is always half pushed in */
.hero-line .board > span { display: inline-block; }
.hero-line .board > span:nth-child(6n+2) { translate: 0 -1.5px; rotate: -1.6deg; }
.hero-line .board > span:nth-child(6n+3) { translate: 0 1px; rotate: 1deg; }
.hero-line .board > span:nth-child(6n+4) { translate: 0 -0.5px; rotate: -0.4deg; }
.hero-line .board > span:nth-child(6n+5) { translate: 0 1.5px; rotate: 1.3deg; }
.hero-line .board > span:nth-child(6n) { translate: 0 -1px; rotate: -0.9deg; }
.hero-line .board > span:nth-child(11) { translate: 0 3.5px; rotate: 4deg; }
.hero-sub {
  font-family: "Permanent Marker", cursive;
  color: var(--muted); font-size: 1.02rem; line-height: 1.5;
  margin: var(--s3) 0 0 var(--s2); max-width: 46ch; rotate: -0.8deg;
}
.hero-sub b { color: var(--tape); font-weight: 400; font-variant-numeric: tabular-nums; }

main { padding: 0 var(--s4) var(--s6); max-width: 1240px; margin: 0 auto; }

/* ---- genre dividers (the plastic tabs between shelf sections) ---- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0 var(--s5); }
.filter-group { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.filter-group + .filter-group { padding-left: var(--s3); border-left: 2px dashed var(--line); }
.filter-group button {
  background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 3px;
  padding: 6px 16px; cursor: pointer;
  font: 700 0.78rem/1.4 "IBM Plex Sans", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  transform: skewX(-8deg);
  transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
  white-space: nowrap;
}
.filter-group button > * { transform: skewX(8deg); }
.filter-group button:hover { color: var(--text); background: var(--line); }
.filter-group button:active { transform: skewX(-8deg) scale(0.96); }
.filter-group button:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.filter-group button.on { background: var(--neon); color: #2b0417; border-color: var(--neon-glow); }

/* ---- the shelves ---- */
.grid { display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.card {
  background: linear-gradient(175deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: visible; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease-out, rotate 180ms ease-out, box-shadow 180ms ease-out;
}
/* tags come off different price-gun rolls. 7-slot cycle: 7 is coprime with
   2/3/4-column grids, so the colours can never stripe into columns */
.grid .card:nth-child(7n+2), .grid .card:nth-child(7n+6) {
  --sticker: #e2763c; --sticker-hi: #f29c66; --sticker-lo: #bf5c2b; --sticker-ink: #33150a; }  /* fluoro orange (50c CHARGE) */
.grid .card:nth-child(7n+3) {
  --sticker: #a3cb4b; --sticker-hi: #c5e37e; --sticker-lo: #82a834; --sticker-ink: #1d2a08; }  /* fluoro lime (HORROR) */
.grid .card:nth-child(7n+5), .grid .card:nth-child(7n) {
  --sticker: #d6cf45; --sticker-hi: #e9e378; --sticker-lo: #b3ab31; --sticker-ink: #29270a; }  /* acid yellow (BE KIND REWIND) */
/* a browsed shelf never sits straight */
.grid .card:nth-child(5n+1) { rotate: -0.9deg; }
.grid .card:nth-child(5n+2) { rotate: 0.7deg; }
.grid .card:nth-child(5n+3) { rotate: -0.4deg; }
.grid .card:nth-child(5n+4) { rotate: 1deg; }
.grid .card:nth-child(5n+5) { rotate: -1.3deg; }
.card:hover {
  rotate: 0deg; transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35), 0 20px 44px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.card[hidden] { display: none; }
/* clamshell spine down the left edge */
.card::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7px; z-index: 3;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.35));
}
.card-art { display: block; position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-art img, .art-fallback {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: var(--panel-2);
}
.card-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 16, 24, 0.55), transparent 45%);
}
.art-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 3rem; color: var(--muted);
}
/* price-gun tag, slapped on in a hurry */
.sticker {
  position: absolute; top: 8px; right: -9px; z-index: 4;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.22) 44%, transparent 49%),
    radial-gradient(ellipse at 35% 28%, var(--sticker-hi), var(--sticker) 60%, var(--sticker-lo));
  color: var(--sticker-ink);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 7px 12px 8px;
  rotate: 6deg;
  border-radius: 4px 8px 5px 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.4),
    inset 0 0 9px rgba(97, 68, 14, 0.45);
  transition: rotate 180ms ease-out, transform 180ms ease-out;
}
.sticker::after { /* punched hole like a swing tag */
  content: ""; position: absolute; left: 5px; top: 50%; translate: 0 -50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--panel); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.card:hover .sticker { rotate: 2deg; transform: scale(1.05); }
.sticker s { opacity: 0.6; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; margin: 0 6px 0 8px; font-variant-numeric: tabular-nums; }
/* NEW RELEASE starburst on fresh arrivals */
.starburst {
  position: absolute; top: -14px; left: -12px; z-index: 4;
  width: 74px; height: 74px; display: flex; align-items: center; justify-content: center;
  text-align: center; rotate: -12deg;
  background: var(--stamp); color: #fff;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 0.62rem; line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase;
  clip-path: polygon(50% 0%, 61% 12%, 76% 6%, 79% 22%, 95% 24%, 89% 39%, 100% 50%, 89% 61%, 95% 76%, 79% 78%, 76% 94%, 61% 88%, 50% 100%, 39% 88%, 24% 94%, 21% 78%, 5% 76%, 11% 61%, 0% 50%, 11% 39%, 5% 24%, 21% 22%, 24% 6%, 39% 12%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}

.card-body { padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + 5px); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card-body h2 {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 1.02rem; font-weight: 400; letter-spacing: 0;
  margin: 0; line-height: 1.3;
}
.card-body h2 a { text-decoration: none; }
.card-body h2 a:hover { color: var(--neon); }
.card-body h2 a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: 0.8rem; margin-top: auto; }
.badge {
  background: var(--carpet); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 8px; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.badge.sub { color: var(--sticker); border-color: #57491c; }
/* collector's scrawl, not a badge */
.badge.history {
  background: none; border: none; padding: 0;
  font-family: "Permanent Marker", cursive; font-size: 0.85rem;
  color: var(--sticker); rotate: -2deg;
}
.ends { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.ends.soon {
  font-family: "Permanent Marker", cursive; font-weight: 400;
  color: var(--stamp); font-size: 0.85rem; rotate: -1.5deg;
}
.ends.over { text-decoration: line-through; }
.claim {
  display: block; text-align: center; margin-top: var(--s2);
  background: radial-gradient(ellipse at 40% 20%, var(--sticker-hi), var(--sticker) 70%);
  color: var(--sticker-ink); text-decoration: none;
  font-weight: 700; padding: 10px 16px; border-radius: 6px 7px 6px 8px;
  transition: transform 150ms ease-out, filter 150ms ease-out; /* design-ok: filter-transition tiny brightness step, no blur */
  white-space: nowrap;
}
.claim:hover { filter: brightness(1.08); transform: translateY(-1px) rotate(-0.5deg); }
.claim:active { transform: translateY(0) scale(0.98); }
.claim:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.empty { font-family: "Permanent Marker", cursive; color: var(--muted); font-size: 1.1rem; rotate: -1deg; }

/* ---- game page ---- */
.game-page h1 {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.3rem); text-transform: uppercase;
  margin: 0 0 var(--s2); overflow-wrap: anywhere; min-width: 0; line-height: 1.15;
}
.game-page .game-hero { display: flex; gap: var(--s4); flex-wrap: wrap; margin: var(--s4) 0 var(--s5); }
.game-hero img {
  width: min(420px, 100%); border-radius: var(--radius); align-self: flex-start;
  border: 1px solid var(--line); rotate: -1deg;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), 0 16px 36px rgba(0, 0, 0, 0.4);
}
.desc { color: var(--muted); max-width: 60ch; }
.pricing s { color: var(--muted); margin-right: var(--s2); font-variant-numeric: tabular-nums; }
.free { color: var(--sticker); font-family: "Archivo Black", system-ui, sans-serif; font-weight: 400; }

/* ---- giveaway history as the store rental card ---- */
.history {
  /* a card that's been in the pocket since 1987: browned edges, a coffee
     ring, finger smudges, one crease, dog-eared corner */
  background:
    radial-gradient(circle at 80% 16%, transparent 25px, rgba(122, 84, 40, 0.13) 27px, rgba(122, 84, 40, 0.2) 29px, transparent 32px),
    radial-gradient(ellipse 100px 55px at 10% 94%, rgba(96, 74, 44, 0.12), transparent 70%),
    radial-gradient(ellipse 130px 60px at 96% 72%, rgba(96, 74, 44, 0.09), transparent 70%),
    linear-gradient(178deg, transparent 47.6%, rgba(96, 74, 44, 0.13) 48%, rgba(255, 255, 255, 0.3) 48.3%, transparent 48.7%),
    radial-gradient(ellipse at 50% 38%, #f7f1e4 50%, #efe4cd 82%, #e0cfae 100%);
  color: var(--card-ink);
  max-width: 560px; padding: var(--s4); margin: var(--s5) 0;
  rotate: 0.8deg; position: relative;
  font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  border-radius: 3px 7px 4px 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 16px rgba(120, 90, 40, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.history::after {
  /* the folded-back dog-ear flap */
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 20px; height: 20px;
  background: linear-gradient(315deg, transparent 48%, #dcc9a2 50%, #cbb488 100%);
  filter: drop-shadow(-1px -1px 1px rgba(0, 0, 0, 0.12));
}
.history h2 {
  font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; text-align: center;
  border-bottom: 2px solid rgba(215, 92, 80, 0.75); padding-bottom: var(--s2); margin: 0 0 var(--s2);
}
.history h2::after {
  content: "member: everyone · no late fees";
  display: block; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.1em;
  color: #6b5f4c; margin-top: 4px;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 9px 2px; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap;
  border-bottom: 1.5px solid var(--card-rule);
}
.timeline .when { color: #4b4238; font-variant-numeric: tabular-nums; }
.timeline .badge { background: none; border: 1px solid #b8ab94; color: #6b5f4c; }
.timeline .free {
  font-family: "Permanent Marker", cursive; color: var(--stamp); font-size: 0.95rem;
  rotate: -3deg; border: 2px solid var(--stamp); border-radius: 4px; padding: 0 7px 1px;
  margin-left: auto;
}
.hist-note { color: #6b5f4c; font-size: 0.78rem; margin-top: var(--s3); }

/* ---- footer ---- */
.site-foot {
  max-width: 1240px; margin: 0 auto; padding: var(--s5) var(--s4);
  color: var(--muted); font-size: 0.85rem; border-top: 2px dashed var(--line);
}
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--neon); }
.built { font-size: 0.75rem; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .grid .card { rotate: 0deg; }   /* single column: the pile reads as sloppy, not charming */
  .open-sign { display: block; margin: var(--s2) 0 0; }
}
@media (min-width: 640px) {
  .grid .card:first-child { grid-column: span 2; }
  .grid .card:first-child .card-art img, .grid .card:first-child .art-fallback { aspect-ratio: 21 / 9; }
  .grid .card:first-child h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .sticker, .claim, .filter-group button { transition: none; }
  .card:hover { transform: none; }
  .card:hover .sticker { transform: none; }
}
