/* RetroMuster: one stylesheet. Base look first, then components, then the decade dressing. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DSEG7"; src: url("/fonts/dseg7.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --bg: #141317;
  --bg-2: #1c1a20;
  --smoke: #26232b;
  --smoke-2: #302c36;
  --line: #3a3541;
  --text: #efe7d6;
  --muted: #b9afa0;
  --cream: #f4ecdc;
  --cream-2: #fbf7ee;
  --cream-line: #e0d4bd;
  --ink: #221e24;
  --ink-2: #5a5048;
  --glow: #5ef2c4;
  --glow-dim: #1f5a4b;
  --s1: #e8692c; /* orange */
  --s2: #e3a92b; /* mustard */
  --s3: #1f8a8a; /* teal */
  --s4: #8a2d3b; /* maroon */
  --accent: #f07a3a;
  --accent-ink: #1b1214;
  --accent-2: #e3a92b;
  --link-on-cream: #8a3b12;
  --pattern: none;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35);
  --wrap: 1180px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(94,242,196,.07), transparent 70%), var(--pattern);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; font-variation-settings: "SOFT" 100, "opsz" 24; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--glow); color: #04140f; padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- seven-segment display ---------- */
.seg {
  font-family: "DSEG7", ui-monospace, monospace;
  font-weight: 700;
  color: var(--glow);
  text-shadow: 0 0 6px rgba(94,242,196,.55), 0 0 18px rgba(94,242,196,.25);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.vcr {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #0b0d0d, #101414);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(94,242,196,.12), inset 0 8px 14px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06);
  border-radius: 6px;
  padding: .32em .55em .28em;
  position: relative;
}
.vcr .ghost { position: absolute; color: rgba(94,242,196,.08); text-shadow: none; pointer-events: none; }
.blink { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .08; } }
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--smoke-2), var(--smoke));
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 6px 20px rgba(0,0,0,.35);
}
.site-head .bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.stripes { display: flex; height: 6px; }
.stripes i { flex: 1; }
.stripes i:nth-child(1) { background: var(--s1); }
.stripes i:nth-child(2) { background: var(--s2); }
.stripes i:nth-child(3) { background: var(--s3); }
.stripes i:nth-child(4) { background: var(--s4); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.logo .vcr { font-size: .95rem; }
.logo .word { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; }
.logo .word b { color: var(--accent); font-weight: 800; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--glow); }
.menu-btn { display: none; }
@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px;
    background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line);
    font: 600 .95rem "Inter", sans-serif; cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--smoke); border-top: 1px solid var(--line); display: none; box-shadow: 0 16px 30px rgba(0,0,0,.45); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 14px; }
  .nav a { min-height: 48px; font-size: 1.05rem; }
}

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-foot .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 18px; }
.site-foot p { margin: 0; }
.site-foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--text); display: inline-flex; min-height: 44px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 700 1rem "Inter", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { font-weight: 600; }
input[type="text"], input[type="number"], input[type="search"], select {
  font: 500 1rem "Inter", sans-serif; color: var(--text);
  background: #0f0e12; border: 1px solid var(--line); border-radius: 10px;
  min-height: 48px; padding: 0 14px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; }

.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text);
  font: 600 .95rem "Inter", sans-serif; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- page heads ---------- */
.page-head { padding: 40px 0 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero { padding: 34px 0 10px; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--smoke-2), var(--smoke));
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 28px 20px 26px;
}
.hero-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 0 50%, var(--s3) 0 75%, var(--s4) 0); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin-bottom: 10px; }
.hero .lede { margin-bottom: 22px; }
.year-form { display: grid; gap: 12px; max-width: 560px; }
.year-row { display: flex; gap: 10px; align-items: stretch; }
.year-input-wrap { position: relative; flex: 1; }
.year-input {
  font-family: "DSEG7", ui-monospace, monospace !important; font-weight: 700; font-size: 2rem !important;
  color: var(--glow) !important; letter-spacing: .08em; text-shadow: 0 0 8px rgba(94,242,196,.5);
  background: linear-gradient(180deg, #0a0c0c, #0f1413) !important; border: 1px solid #000 !important;
  box-shadow: inset 0 0 0 1px rgba(94,242,196,.16), inset 0 10px 18px rgba(0,0,0,.6);
  min-height: 68px !important; text-align: center; padding: 0 10px !important;
}
.year-input::placeholder { color: rgba(94,242,196,.18); text-shadow: none; }
.year-row .btn { min-height: 68px; padding: 0 22px; font-size: 1.1rem; }
.form-msg { min-height: 1.4em; color: var(--s2); font-weight: 600; margin: 0; }
.decade-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.year-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 4px; }
.year-pad[hidden] { display: none; }
.year-pad a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: #0f0e12; border: 1px solid var(--line); text-decoration: none; font-size: 1rem; }
.year-pad a:hover { border-color: var(--glow); }
@media (min-width: 900px) {
  .hero-card { padding: 48px 52px 46px; display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
}
.hero-tv { display: none; }
@media (min-width: 900px) { .hero-tv { display: block; } }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; min-height: 150px;
  border-radius: var(--radius); background: linear-gradient(180deg, var(--smoke-2), var(--smoke));
  border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tile-c, var(--accent)); }
.tile:hover { border-color: var(--muted); }
.tile h3 { margin: 0; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }
.tile .go { margin-top: auto; font-weight: 700; color: color-mix(in srgb, var(--tile-c, var(--accent)) 55%, #fff); }

/* ---------- catalogue cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 24px rgba(0,0,0,.28);
  overflow: hidden;
}
.card a { color: var(--ink); }
.card-photo {
  position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 9px;
  background: var(--cream-2); border: 1px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.card-credit { margin: 5px 10px 0; font-size: .68rem; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.8em; overflow-wrap: anywhere; }
.card-credit a { color: var(--ink-2); }
.card-body { padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { text-decoration: underline; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.card-year { font-family: "DSEG7", monospace; font-weight: 700; font-size: .78rem; background: #15171a; color: var(--glow); padding: 3px 6px 2px; border-radius: 5px; letter-spacing: .05em; }
.card-credit, .card-toggles, .card-credit a { position: relative; z-index: 2; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

.noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; color: #b5a688;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(160,140,100,.07) 10px 20px); }
.noimg svg { width: 44%; max-width: 120px; height: auto; }
.noimg span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* tick toggles on the years page */
.card-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; }
.tog {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 10px;
  border: 1.5px solid var(--cream-line); background: var(--cream-2); color: var(--ink);
  font: 700 .9rem "Inter", sans-serif; cursor: pointer; padding: 0 6px;
}
.tog svg { width: 16px; height: 16px; flex: none; }
.tog[aria-pressed="true"].had { background: #1d6b57; border-color: #1d6b57; color: #fff; }
.tog[aria-pressed="true"].want { background: #8a2d3b; border-color: #8a2d3b; color: #fff; }
@media (max-width: 520px) {
  .card-toggles { gap: 4px; padding: 0 8px 8px; }
  .tog { font-size: .84rem; padding: 0 4px; gap: 4px; }
  .tog svg { display: none; }
  .card h3 { font-size: .98rem; }
}
.card.is-had { box-shadow: 0 0 0 3px #1d6b57, 0 10px 24px rgba(0,0,0,.28); }
.card.is-love::before { content: "First love"; position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--s4); color: #fff; font: 800 .7rem "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }

/* ---------- years page ---------- */
.years-head .seg-year { font-size: clamp(2.6rem, 10vw, 4.6rem); }
.years-head .vcr { padding: .2em .4em; }
.stage { margin-top: 40px; }
.stage-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stage-head h2 { margin: 0; }
.stage-head .range { color: var(--muted); font-weight: 600; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
.roll-bar {
  position: sticky; bottom: 12px; z-index: 40; margin-top: 28px;
  background: rgba(30,28,34,.96); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.roll-count { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.roll-count .seg { font-size: 1.5rem; }
.roll-bar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.roll-panel { margin-top: 28px; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); }
.roll-panel h2 { color: var(--ink); }
.roll-panel a { color: var(--link-on-cream); }
.roll-panel .lede { color: var(--ink-2); }
.love-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.love-pick .chip { color: var(--ink); border-color: var(--cream-line); background: var(--cream-2); }
.love-pick .chip[aria-pressed="true"] { background: var(--s4); color: #fff; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-link { flex: 1 1 280px; font: 500 .9rem ui-monospace, monospace; background: #fff; color: var(--ink) !important; border: 1px solid var(--cream-line) !important; }
.share-img { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--cream-line); max-width: 720px; background: #111; }
.share-img img { width: 100%; }
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: linear-gradient(90deg, rgba(94,242,196,.12), rgba(94,242,196,.03)); border: 1px solid var(--glow-dim); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.banner p { margin: 0; font-weight: 600; }

/* ---------- filters (machines) ---------- */
.filters { display: grid; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.filters .row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.filters .row > div { display: grid; gap: 6px; min-width: 0; }
.filters label { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 3fr; align-items: end; } .filters .row { grid-template-columns: repeat(4, 1fr); } }
.result-line { margin: 16px 0 12px; color: var(--muted); font-weight: 600; }

/* ---------- loading, empty, error ---------- */
.state { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 48px 16px; color: var(--muted); }
.state .vcr { font-size: 2.2rem; }
.state h2 { color: var(--text); margin: 0; font-size: 1.5rem; }
.state p { margin: 0; max-width: 46ch; }

/* ---------- machine page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.machine { display: grid; gap: 22px; margin-top: 12px; }
@media (min-width: 900px) { .machine { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; } }
.photo-card { background: var(--cream); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); color: var(--ink); }
.photo-card .frame { aspect-ratio: 4 / 3; background: var(--cream-2); border: 1px solid var(--cream-line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.photo-card figcaption { font-size: .78rem; color: var(--ink-2); padding: 8px 6px 2px; line-height: 1.4; }
.photo-card figcaption a { color: var(--ink-2); }
.machine h1 { margin-bottom: 8px; }
.machine .blurb { font-size: 1.12rem; color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.facts div { background: var(--bg-2); padding: 12px 14px; min-width: 0; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd .seg { font-size: 1.05rem; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.verdict details { margin-top: 6px; }
.verdict summary { cursor: pointer; font-weight: 700; color: var(--link-on-cream); min-height: 44px; display: flex; align-items: center; }
.verdict details p { font-size: .95rem; }
.two-col > div { display: grid; gap: 0; align-content: start; }
.outlinks { display: flex; flex-wrap: wrap; gap: 10px; }
.panel { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { color: var(--ink); }
.panel a { color: var(--link-on-cream); }
@media (min-width: 720px) { .panel { padding: 26px 28px; } }
.hook-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hook-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--cream-line); }
.hook-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hook-list .k { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.src { font-size: .82rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.pill { font: 700 .78rem "Inter", sans-serif; padding: 4px 9px; border-radius: 999px; background: #211d22; color: var(--cream); }
.two-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.lineage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.lineage .arrow { color: var(--muted); font-size: 1.4rem; }
.lineage a, .lineage span.none { display: block; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; min-height: 44px; }
.lineage small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.price-big { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }

/* ---------- tools (will it work, then and now) ---------- */
.tool { display: grid; gap: 22px; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.tool-form { display: grid; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tool-form .field { display: grid; gap: 6px; }
.tool-form .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.seg-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg-choice button { min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: #0f0e12; color: var(--text); font: 600 .88rem/1.2 "Inter", sans-serif; cursor: pointer; padding: 4px 6px; }
.seg-choice button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.seg-choice button:disabled { opacity: .35; cursor: not-allowed; }
.verdicts { display: grid; gap: 12px; }
.verdict { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 16px 18px; border-left: 8px solid var(--v, #888); box-shadow: var(--shadow); }
.verdict h3 { margin: 0 0 4px; color: var(--ink); font-size: 1.05rem; font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: .02em; }
.verdict .v { display: inline-block; font: 800 .8rem "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--v); color: #fff; margin-bottom: 6px; }
.verdict p { margin: 0 0 6px; }
.verdict a { color: var(--link-on-cream); }
.verdict.yes { --v: #1d6b57; }
.verdict.adapter { --v: #9a6a07; }
.verdict.no { --v: #a32c3a; }
.verdict.unknown { --v: #5a5560; }
.summary-verdict { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--smoke-2), var(--smoke)); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.summary-verdict .big { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--v, #888); box-shadow: 0 0 12px var(--v, #888); }
.calc-out { position: sticky; top: 96px; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.calc-out .big { font-family: "Fraunces", serif; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1.05; margin: 4px 0 10px; }
.calc-out a { color: var(--link-on-cream); }
.examples { display: grid; gap: 8px; margin-top: 10px; }
.examples button { text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 10px; background: #0f0e12; border: 1px solid var(--line); color: var(--text); font: 500 .95rem "Inter", sans-serif; cursor: pointer; }
.examples button:hover { border-color: var(--muted); }

/* ---------- decades ---------- */
.decade-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.decade-hero { padding: 40px 0 10px; }
.decade-hero .seg { font-size: clamp(3rem, 14vw, 6rem); display: block; line-height: 1; margin-bottom: 14px; }
.decade-band { height: 14px; border-radius: 4px; margin: 6px 0 22px; background: var(--band); }

/* ---------- guess ---------- */
.guess { display: grid; gap: 20px; }
@media (min-width: 900px) { .guess { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.guess-photo { aspect-ratio: 4/3; background: var(--cream-2); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.guess-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: filter .6s; }
.clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.clues li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-height: 52px; }
.clues li .n { font-family: "DSEG7", monospace; color: var(--glow); font-size: .9rem; }
.clues li.locked { color: var(--muted); border-style: dashed; }
.guess-input { position: relative; }
.suggest { list-style: none; margin: 4px 0 0; padding: 4px; background: #0f0e12; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow: auto; }
.suggest li button { width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; background: none; border: 0; color: var(--text); font: 500 .95rem "Inter", sans-serif; cursor: pointer; border-radius: 8px; }
.suggest li button:hover, .suggest li button:focus-visible { background: rgba(255,255,255,.07); }
.tries { display: flex; gap: 6px; }
.tries i { width: 26px; height: 10px; border-radius: 3px; background: var(--line); }
.tries i.miss { background: var(--s4); }
.tries i.hit { background: var(--glow); }

/* ---------- prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.credits-list { columns: 1; column-gap: 32px; font-size: .9rem; padding-left: 1.1em; }
@media (min-width: 900px) { .credits-list { columns: 2; } }
.credits-list li { break-inside: avoid; margin-bottom: 8px; }

/* ---------- 404 ---------- */
.disk { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 60px 0 20px; }
.disk .vcr { font-size: clamp(1.6rem, 6vw, 2.8rem); }
.disk .vcr .seg { white-space: nowrap; }

/* =====================================================================
   The decade dressing. Layout and type stay put; accent, pattern, stripes
   and small details change.
   ===================================================================== */
body[data-era="70s"] {
  --accent: #f0813c; --accent-2: #d9a441; --link-on-cream: #8a3b12;
  --s1: #f0813c; --s2: #d9a441; --s3: #9a5a2c; --s4: #5b3a24;
  --smoke: #2a211b; --smoke-2: #352920; --bg-2: #1f1915; --line: #4a3a2e;
  --pattern: repeating-linear-gradient(92deg, rgba(120,72,36,.10) 0 2px, transparent 2px 9px, rgba(90,52,26,.08) 9px 11px, transparent 11px 23px);
}
body[data-era="70s"] .site-head { background:
  repeating-linear-gradient(91deg, rgba(0,0,0,.16) 0 1px, transparent 1px 6px, rgba(255,220,180,.04) 6px 7px, transparent 7px 17px),
  linear-gradient(180deg, #5a3b25, #3f2a1b); }
body[data-era="70s"] .hero-card, body[data-era="70s"] .tile, body[data-era="70s"] .summary-verdict { background:
  repeating-linear-gradient(91deg, rgba(0,0,0,.10) 0 1px, transparent 1px 7px, rgba(255,220,180,.03) 7px 8px, transparent 8px 19px),
  linear-gradient(180deg, #3a2a1e, #2b2018); }
body[data-era="70s"] h1, body[data-era="70s"] .logo .word { font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
body[data-era="70s"] .card { border-radius: 18px; }

body[data-era="80s"] {
  --accent: #ff4fae; --accent-ink: #1a0614; --accent-2: #2de2e6; --link-on-cream: #9b1463;
  --s1: #ff4fae; --s2: #ffb347; --s3: #2de2e6; --s4: #7b3fe4;
  --bg: #0f0c1a; --bg-2: #171329; --smoke: #1c1732; --smoke-2: #251e40; --line: #3a3160;
  --pattern: linear-gradient(rgba(45,226,230,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,79,174,.06) 1px, transparent 1px);
}
body[data-era="80s"] { background-size: auto, 44px 44px, 44px 44px; }
body[data-era="80s"] .hero-card::before, body[data-era="80s"] .decade-hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(rgba(45,226,230,.35) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255,79,174,.35) 1px, transparent 1px) 0 0 / 40px 100%;
  transform: perspective(300px) rotateX(55deg); transform-origin: bottom; mask-image: linear-gradient(transparent, #000 70%); opacity: .5;
}
body[data-era="80s"] .decade-hero { position: relative; overflow: hidden; }
body[data-era="80s"] h1 { text-shadow: 0 0 22px rgba(255,79,174,.35); }
body[data-era="80s"] .card { border-radius: 6px; }

body[data-era="90s"] {
  --accent: #22c3b5; --accent-ink: #061816; --accent-2: #8b5cf6; --link-on-cream: #0d6e66;
  --s1: #22c3b5; --s2: #8b5cf6; --s3: #f2c14e; --s4: #e4508a;
  --bg: #12131a; --bg-2: #181a25; --smoke: #1d1f2d; --smoke-2: #262a3c; --line: #383d57;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M10 30 q10 -12 20 0 t20 0' stroke='%2322c3b5' stroke-opacity='.16'/%3E%3Cpath d='M70 80 q8 -10 16 0 t16 0' stroke='%238b5cf6' stroke-opacity='.18'/%3E%3Cpath d='M86 18 l8 10 l-12 4' stroke='%23f2c14e' stroke-opacity='.14'/%3E%3Ccircle cx='30' cy='92' r='5' stroke='%23e4508a' stroke-opacity='.16'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-era="90s"] .card { border-radius: 16px 4px 16px 4px; }
body[data-era="90s"] .tile::before { width: 100%; height: 5px; bottom: auto; background: linear-gradient(90deg, var(--s1), var(--s2)); }

body[data-era="00s"] {
  --accent: #3cc8f5; --accent-ink: #04161e; --accent-2: #b8f0ff; --link-on-cream: #0b5f86;
  --s1: #3cc8f5; --s2: #b8f0ff; --s3: #7fd8b8; --s4: #8aa4b8;
  --bg: #0f1418; --bg-2: #151c22; --smoke: #1b252d; --smoke-2: #23313b; --line: #34505f;
  --pattern: radial-gradient(900px 400px at 85% 10%, rgba(60,200,245,.10), transparent 70%);
}
body[data-era="00s"] .site-head, body[data-era="00s"] .hero-card, body[data-era="00s"] .tile, body[data-era="00s"] .summary-verdict {
  background: linear-gradient(180deg, rgba(120,220,255,.20) 0, rgba(120,220,255,.06) 48%, rgba(0,0,0,0) 52%), linear-gradient(180deg, #24414f, #18282f);
  border-color: rgba(140,220,255,.28);
}
body[data-era="00s"] .btn { background: linear-gradient(180deg, #8fe3ff 0, #3cc8f5 50%, #1aa6d8 51%, #3cc8f5 100%); border-radius: 999px; }
body[data-era="00s"] .card { border-radius: 20px; }
body[data-era="00s"] .card-photo { background: linear-gradient(180deg, #ffffff, #eef6f9); }
