/* yuusef.com — styles. Fonts are self-hosted (SIL Open Font License). */
@font-face { font-family: "UnifrakturMaguntia"; src: url("fonts/unifrakturmaguntia-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sedgwick Ave"; src: url("fonts/sedgwick-ave-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Layout: a home-taped archive. CD-R hero, a "now playing" deck, a jewel-case wall of every release, liner-note bio.
   Single dark look: analog black, bone paper, chrome, oxblood. */
:root {
  --bg:       #080607;
  --panel:    #110e10;
  --line:     #2b2528;
  --bone:     #ece5d6;
  --dim:      #948b80;
  --blood:    #6e0d1c;
  --blood-hi: #b8172f;
  --chrome-1: #f4f5f7;
  --chrome-2: #8e949b;
  --chrome-3: #2a2d31;

  --f-display: 'UnifrakturMaguntia', 'UnifrakturCook', 'Old English Text MT', 'Times New Roman', serif;
  --f-body:    'Courier Prime', 'Courier New', ui-monospace, monospace;
  --f-ui:      'VT323', 'Lucida Console', ui-monospace, monospace;
  --f-hand:    'Courier Prime', 'Courier New', ui-monospace, monospace;
  --f-note:    'Sedgwick Ave', 'Comic Sans MS', cursive;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--blood-hi); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── Analog overlays ───────────────────────────── */
#grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50;
  image-rendering: pixelated;
  opacity: 0.09; mix-blend-mode: screen;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 51;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px);
  opacity: 0.45;
}
.tracking {
  position: fixed; left: 0; right: 0; top: -12%; height: 9%;
  pointer-events: none; z-index: 52;
  background: linear-gradient(to bottom, transparent, rgba(236,229,214,0.05) 40%, rgba(236,229,214,0.09) 50%, rgba(236,229,214,0.05) 60%, transparent);
  animation: track 11s linear infinite;
}
@keyframes track { 0% { top: -12%; } 60%, 100% { top: 112%; } }

/* ── VHS status bar ─────────────────────────────── */
.osd {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(8,6,7,0.92);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-ui);
  font-size: 20px; letter-spacing: 0.06em;
  backdrop-filter: blur(3px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.osd .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding-block: 6px; }
.osd nav { justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
.osd-mark {
  font-family: var(--f-display); font-size: 34px; line-height: 1; text-decoration: none; padding-bottom: 2px;
  color: var(--chrome-2);
  background: linear-gradient(180deg, var(--chrome-1) 0%, #c9cdd2 30%, var(--chrome-2) 48%, var(--chrome-3) 52%, #9aa0a7 66%, var(--chrome-1) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(110,13,28,0.9));
}
@media (max-width: 760px) {
  /* row 1: small REC + timecode beside the name; row 2: the menu on its own line */
  .osd .wrap { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 4px; column-gap: 10px; }
  .osd .osd-left { display: contents; }
  .osd-left .rec { grid-row: 1; grid-column: 1; justify-self: start; gap: 5px; font-size: 14px; white-space: nowrap; }
  .osd-left .tc { grid-row: 1; grid-column: 3; justify-self: end; font-size: 14px; white-space: nowrap; }
  .osd-left .rec i { width: 7px; height: 7px; }
  .osd-mark { grid-row: 1; grid-column: 2; font-size: 30px; }
  .osd nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; justify-content: center; gap: 16px; }
}
.osd-left { display: flex; gap: 18px; align-items: center; }
.rec { color: var(--blood-hi); display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.rec:hover { color: #ff4a5f; text-shadow: 0 0 8px rgba(255,74,95,0.7); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--blood-hi); display: inline-block; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.osd nav { display: flex; gap: 20px; }
.osd nav a { text-decoration: none; color: var(--dim); }
.osd nav a:hover { color: var(--bone); }
.tc { color: var(--bone); font-variant-numeric: tabular-nums; }

/* ── Hero ────────────────────────────────────────── */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }

.cd-stage { display: grid; place-items: center; }
.cd {
  width: min(360px, 78vw);
  aspect-ratio: 1; max-width: 100%;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 0 6.5%, rgba(220,223,228,0.9) 7% 14%, rgba(150,155,162,0.6) 14.5% 15.5%, transparent 16%),
    conic-gradient(from 20deg, #b7c0cb, #e9dcef, #b6e2df, #f1ecdc, #c8b5da, #a7d2e6, #ece6f0, #d7c4c8, #b7c0cb);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 80px -10px rgba(184,23,47,0.25);
  animation: spin 14s linear infinite;
}
.cd::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0,0,0,0.06) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.cd-label {
  position: absolute; inset: 0;
  font-family: var(--f-hand);
  color: #17141a;
  pointer-events: none;
}
.cd-label .l1 { position: absolute; top: 20%; left: 0; right: 0; text-align: center; font-size: clamp(26px, 6vw, 40px); transform: rotate(-7deg); }
.cd-label .l2 { position: absolute; bottom: 21%; left: 0; right: 0; text-align: center; font-size: clamp(13px, 2.6vw, 17px); transform: rotate(4deg); }
.cd-label .l3 { position: absolute; top: 47%; right: 9%; font-size: clamp(12px, 2.4vw, 15px); color: var(--blood); transform: rotate(80deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.cd-caption { margin-top: 18px; font-family: var(--f-ui); font-size: 18px; color: var(--dim); letter-spacing: 0.08em; text-align: center; }

/* disc as a play button: spins only while playing */
button.cd { border: 0; padding: 0; cursor: pointer; display: block; animation-play-state: paused; }
button.cd.playing { animation-play-state: running; }
.cd-art { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.cd-art canvas, .cd-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cd-art::after { /* CD-R sheen over the printed cover */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, #b7c0cb, #e9dcef, #b6e2df, #f1ecdc, #c8b5da, #a7d2e6, #ece6f0, #b7c0cb);
  mix-blend-mode: overlay; opacity: 0.45;
}
.cd-hole {
  position: absolute; left: 50%; top: 50%; width: 13%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 9px rgba(220,223,228,0.88), 0 0 0 10px rgba(120,125,132,0.8);
}
.cd.has-art .cd-label { display: none; }
.cd-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8,6,7,0.78); color: var(--bone);
  font-family: var(--f-ui); font-size: clamp(22px, 5vw, 34px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  transition: opacity 0.3s;
}
.cd.playing .cd-hint { opacity: 0; }
.cd:hover .cd-hint, .cd:focus-visible .cd-hint { opacity: 1; }

.player { width: min(360px, 78vw); max-width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-ui); }
.player .lcd { font-size: 20px; }
.player-row { display: flex; align-items: center; gap: 10px; }
.player-row .btn { font-size: 18px; padding: 2px 10px 1px; }
.player .time { margin-left: auto; color: var(--dim); font-size: 18px; font-variant-numeric: tabular-nums; }
#seek { width: 100%; accent-color: var(--blood-hi); margin: 0; }
.player .p-note { color: var(--dim); font-size: 16px; letter-spacing: 0.04em; }

.kicker { font-family: var(--f-ui); font-size: 20px; color: var(--blood-hi); letter-spacing: 0.12em; margin: 0 0 6px; }
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(76px, 15vw, 168px);
  line-height: 0.82;
  margin: 0 0 30px;
  font-family: 'UnifrakturMaguntia', var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  isolation: isolate;
  /* chrome face on top */
  color: var(--chrome-2);
  background: linear-gradient(180deg, var(--chrome-1) 0%, #c9cdd2 30%, var(--chrome-2) 48%, var(--chrome-3) 52%, #9aa0a7 66%, var(--chrome-1) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* the depth layer sits behind the chrome face: light bevel top-left, stepped oxblood extrusion down-right, cast shadow */
.wordmark::before {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  background: none;
  -webkit-text-fill-color: #2a060d;
  color: #2a060d;
  text-shadow:
    -0.012em -0.012em 0 #f4f5f7,
    -0.006em -0.006em 0 #d9dce0,
    0.008em 0.008em 0 #5a0a17,
    0.016em 0.016em 0 #560a16,
    0.024em 0.024em 0 #520915,
    0.032em 0.032em 0 #4d0914,
    0.040em 0.040em 0 #480813,
    0.048em 0.048em 0 #430812,
    0.056em 0.056em 0 #3e0711,
    0.064em 0.064em 0 #390710,
    0.072em 0.072em 0 #34060f,
    0.080em 0.080em 0 #8a1426,
    0.12em 0.16em 0.14em rgba(0,0,0,0.8);
}
.lede { max-width: 46ch; color: var(--dim); margin: 0 0 26px; }
.lede b { color: var(--bone); font-weight: 700; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  font-family: var(--f-ui); font-size: 20px; letter-spacing: 0.06em;
  text-decoration: none; color: #17141a;
  padding: 4px 14px 3px;
  background: linear-gradient(180deg, #f6f7f8 0%, #c3c7cc 48%, #9ba1a8 52%, #d9dce0 100%);
  border: 1px solid #5d6268;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #000;
  cursor: pointer;
}
.btn:hover { background: linear-gradient(180deg, #fff 0%, #d7dade 48%, #b1b6bc 52%, #eceef0 100%); }
.btn:active, .btn[aria-pressed="true"] {
  color: var(--bone);
  background: linear-gradient(180deg, #3a0711 0%, var(--blood) 50%, #4c0914 100%);
  border-color: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
}

/* ── Stats strip ─────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-block: 18px; gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-ui); font-size: 40px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Section headings ───────────────────────────── */
section { padding-block: 72px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-title { font-family: var(--f-display); font-size: clamp(44px, 7vw, 72px); line-height: 0.95; margin: 0; font-weight: 700; color: var(--bone); text-wrap: balance; }
.sec-note { font-family: var(--f-ui); font-size: 19px; color: var(--dim); letter-spacing: 0.06em; }

/* ── Now playing deck ───────────────────────────── */
.deck {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center;
  background: linear-gradient(180deg, #1a171a, #0e0c0e);
  border: 1px solid #3a3438;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px -25px #000;
  padding: 22px;
}
.deck-art canvas, .deck-art img { width: 100%; height: auto; aspect-ratio: 1; display: block; border: 1px solid #000; object-fit: cover; background: #0b090a; }
.lcd {
  font-family: var(--f-ui); color: #ff4a5f;
  background: #170306; border: 1px solid #000;
  box-shadow: inset 0 0 18px rgba(184,23,47,0.35);
  padding: 8px 12px; font-size: 22px; letter-spacing: 0.05em;
  text-shadow: 0 0 6px rgba(255,74,95,0.7);
  white-space: nowrap; overflow: hidden;
}
.lcd .scroll { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.deck h3 { font-family: var(--f-display); font-size: clamp(40px, 6vw, 64px); margin: 14px 0 4px; line-height: 1; }
.deck p { margin: 0 0 16px; color: var(--dim); }

/* ── Archive ────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters.years .btn { font-size: 18px; padding: 2px 10px 1px; }
.count { font-family: var(--f-ui); font-size: 19px; color: var(--dim); margin: 14px 0 22px; letter-spacing: 0.05em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 22px 18px; }
.case {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit; min-width: 0;
}
.jewel {
  position: relative; padding: 5px 5px 5px 13px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jewel::before { /* hinge spine */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(180deg, #1d1a1d 0 6px, #2a262a 6px 7px);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.jewel::after { /* glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.10) 42%, transparent 52%);
}
.jewel canvas, .jewel img { display: block; width: 100%; height: auto; aspect-ratio: 1; max-width: 100%; object-fit: cover; background: #0b090a; }
.case:hover .jewel, .case:focus-visible .jewel { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 30px -12px #000, -3px 0 0 rgba(184,23,47,0.55), 3px 0 0 rgba(120,200,220,0.25); }
.case:hover canvas, .case:hover .cover-img { animation: jitter 0.35s steps(3) infinite; }
@keyframes jitter { 0% { transform: translate(0,0); } 33% { transform: translate(-1px,1px); } 66% { transform: translate(1px,0); } }

.meta { display: flex; justify-content: space-between; font-family: var(--f-ui); font-size: 17px; color: var(--dim); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.meta .no { color: var(--blood-hi); }
.t { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.a { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.35; overflow-wrap: anywhere; }
.k { margin: 0; font-family: var(--f-ui); font-size: 16px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.total { margin: 0; font-family: var(--f-ui); font-size: 18px; line-height: 1; color: var(--bone); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.k.split { font-size: 13px; margin-top: -6px; opacity: 0.8; }
#f-sort { margin-top: 4px; }
#f-sort .btn[aria-pressed="true"] { color: #17141a; background: linear-gradient(180deg, #f6f7f8 0%, #c3c7cc 48%, #9ba1a8 52%, #d9dce0 100%); border-color: var(--blood-hi); box-shadow: inset 0 0 0 1px var(--blood-hi), 0 2px 0 #000; }
/* former hand-lettering spots: bold body face */
.cd-label, .tape-title, .draft { font-weight: 700; }
/* the Fraktur face has a single weight; stop browsers faking a bold */
.sec-title, .liner h2, .deck h3 { font-weight: 400; }
/* collapsed archive: a preview of the first rows that fades out, with a toggle */
.grid.collapsed { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.arch-toggle { font-size: 19px; }
.empty { font-family: var(--f-ui); font-size: 22px; color: var(--dim); padding: 40px 0; }

/* ── Liner notes bio ────────────────────────────── */
.liner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px;
  background: var(--bone); color: #1b1719;
  padding: clamp(22px, 4vw, 44px);
  position: relative;
  box-shadow: 0 30px 60px -30px #000;
}
.liner::before { /* photocopy smudge */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 85% 10%, rgba(0,0,0,0.10), transparent 70%),
    radial-gradient(ellipse 30% 50% at 5% 90%, rgba(0,0,0,0.12), transparent 70%);
}
.liner h2 { font-family: var(--f-display); font-size: clamp(48px, 8vw, 84px); margin: 0; line-height: 0.9; color: #1b1719; }
.liner .credits { font-family: var(--f-ui); font-size: 18px; line-height: 1.35; margin-top: 18px; color: #3d3538; }
.liner .credits dt { color: var(--blood); }
.liner .credits dd { margin: 0 0 10px; }
.liner p { margin: 0 0 14px; max-width: 62ch; }
.draft { display: inline-block; font-family: var(--f-hand); color: var(--blood); transform: rotate(-3deg); margin-bottom: 12px; font-size: 18px; }

/* ── Footer ─────────────────────────────────────── */
/* ── Liner notes booklet ───────────────────────── */
.booklet { position: relative; max-width: 860px; margin: 0 auto; perspective: 1800px; }
.bk-cover {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px;
  width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; padding: 8%;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(236,229,214,0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(110,13,28,0.35), transparent 70%),
    #141113;
  border: 1px solid #3a3438; color: var(--bone); cursor: pointer; font: inherit;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 26px 50px -24px #000, inset 10px 0 0 -6px rgba(0,0,0,0.6);
  transform-origin: left center; transition: transform 0.25s ease;
}
.bk-cover::before { /* jewel-case hinge strip */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: repeating-linear-gradient(180deg, #1f1b1e 0 7px, #2b272a 7px 8px);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.bk-cover:hover, .bk-cover:focus-visible { transform: rotateY(-8deg); }
.bk-dots { position: absolute; inset: 14% 12% auto auto; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,229,214,0.55) 1.4px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); opacity: 0.55; }
.bk-cover-top, .bk-cover-sub { position: relative; font-family: var(--f-ui); font-size: 18px; letter-spacing: 0.24em; color: var(--dim); }
.bk-cover-title { position: relative; font-family: var(--f-display); font-size: clamp(54px, 11.5vw, 94px); line-height: 0.9;
  color: var(--chrome-2); background: linear-gradient(180deg, var(--chrome-1), #c9cdd2 35%, var(--chrome-2) 50%, var(--chrome-3) 53%, #9aa0a7 70%, var(--chrome-1));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 rgba(110,13,28,0.9)); }
.bk-open { position: absolute; right: 8%; bottom: 7%; font-family: var(--f-ui); font-size: 20px; color: #ff4a5f; letter-spacing: 0.1em; animation: blink 1.4s steps(2) infinite; }
.booklet.opening .bk-cover { animation: bkflip 0.45s ease-in forwards; }
@keyframes bkflip { to { transform: rotateY(-100deg); opacity: 0.2; } }

.bk-spread {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #0c0a0b; border: 1px solid #3a3438;
  box-shadow: 0 30px 60px -28px #000, 0 0 0 6px rgba(255,255,255,0.03);
}
.bk-spread.in { animation: bkin 0.4s ease-out; }
@keyframes bkin { from { transform: scaleX(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-spread.turn .bk-page { animation: bkturn 0.32s ease-out; }
@keyframes bkturn { from { opacity: 0; transform: rotateY(-14deg); } to { opacity: 1; transform: none; } }
.bk-fold { position: absolute; top: 0; bottom: 0; left: 50%; width: 30px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.55) 55%, transparent); }
.bk-fold::before, .bk-fold::after { /* staples */
  content: ""; position: absolute; left: 50%; width: 3px; height: 34px; transform: translateX(-50%);
  background: linear-gradient(90deg, #6d7278, #d9dce0, #6d7278); border-radius: 2px; }
.bk-fold::before { top: 22%; } .bk-fold::after { bottom: 22%; }
.bk-page {
  position: relative; aspect-ratio: 1; min-width: 0; overflow: auto;
  padding: clamp(18px, 4.5%, 34px);
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(236,229,214,0.07), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 95%, rgba(0,0,0,0.5), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
    #161214;
  color: var(--bone); font-size: 14.5px; line-height: 1.6;
}
.pg { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.pg p { margin: 0; color: #cfc7b8; }
.pg .draft { color: #ff4a5f; align-self: flex-start; margin-bottom: 0; font-size: 15px; }
.pg-kicker { font-family: var(--f-ui); font-size: 18px; color: var(--blood-hi); letter-spacing: 0.1em; }
.pg-title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 0.95; color: var(--bone); }
.pg-small { font-size: 13px; color: var(--dim) !important; }
.pg-cap { font-family: var(--f-ui); font-size: 16px; color: var(--dim); letter-spacing: 0.1em; text-align: right; }
.photo-slot {
  flex: 1; display: grid; place-items: center; min-height: 160px;
  border: 1px dashed rgba(236,229,214,0.35);
  background: radial-gradient(circle, rgba(236,229,214,0.18) 1.2px, transparent 1.4px) 0 0 / 8px 8px, #0f0d0e;
  transform: rotate(-1.5deg);
  box-shadow: 0 10px 20px -12px #000;
}
.photo-slot span { font-family: var(--f-hand); font-weight: 700; color: var(--dim); font-size: 15px; background: #0f0d0e; padding: 4px 8px; }
.bk-credits { margin: 0; font-family: var(--f-ui); font-size: 18px; line-height: 1.3; }
.bk-credits dt { color: var(--blood-hi); letter-spacing: 0.06em; }
.bk-credits dd { margin: 0 0 10px; color: var(--bone); }
.bk-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-ui); font-size: 19px; }
.bk-names li { color: var(--bone); }
.bk-names li:nth-child(3n+2) { color: #c9cdd2; }
.bk-names li:nth-child(3n) { color: var(--dim); }
.bk-influences { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; }
.bk-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--f-ui); font-size: 22px; letter-spacing: 0.08em; }
.bk-links a { color: var(--bone); text-decoration: none; border-bottom: 1px solid #3a3438; }
.bk-links a:hover { color: #ff4a5f; border-color: var(--blood-hi); }
.barcode { margin-top: auto; align-self: flex-end; width: 120px; height: 40px;
  background: repeating-linear-gradient(90deg, var(--bone) 0 2px, transparent 2px 3px, var(--bone) 3px 4px, transparent 4px 7px, var(--bone) 7px 10px, transparent 10px 11px); opacity: 0.75; }
.bk-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 20px; }
.bk-controls .btn { font-size: 18px; }
.bk-controls .btn:disabled { opacity: 0.4; cursor: default; }
.bk-pageno { font-family: var(--f-ui); font-size: 19px; color: var(--dim); letter-spacing: 0.08em; min-width: 9ch; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .bk-spread { grid-template-columns: minmax(0, 1fr); }
  .bk-fold, #bk-right { display: none; }
  .bk-page { aspect-ratio: auto; min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .booklet.opening .bk-cover, .bk-spread.in, .bk-spread.turn .bk-page, .bk-open { animation: none; } }

/* ── Boot intro ────────────────────────────────── */
html.booting { overflow: hidden; }
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: #000; overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--f-ui); color: #e8ffe8;
}
#boot-noise { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; animation: bootfade 0.3s 0.35s forwards; }
#boot::before { /* CRT power-on line */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: #fff; box-shadow: 0 0 24px 4px rgba(255,255,255,0.8);
  animation: poweron 0.5s ease-out forwards; z-index: 3;
}
@keyframes poweron { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1) scaleY(1); opacity: 1; } 100% { transform: scaleX(1) scaleY(300); opacity: 0; } }
@keyframes bootfade { to { opacity: 0.2; } }
#boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 1px, transparent 1px 3px); z-index: 2; }
.boot-track { position: absolute; left: 0; right: 0; height: 14%; top: -15%; z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(232,255,232,0.12) 45%, rgba(255,255,255,0.22) 50%, rgba(232,255,232,0.12) 55%, transparent);
  animation: boottrack 1.4s 0.4s linear infinite; }
@keyframes boottrack { to { top: 110%; } }
.boot-osd {
  position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); z-index: 3;
  left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px));
  display: flex; justify-content: space-between;
  font-size: clamp(20px, 3.4vw, 30px); letter-spacing: 0.06em; text-shadow: 0 0 8px rgba(160,255,160,0.7);
  opacity: 0; animation: bootfade1 0.01s 0.45s forwards;
}
@keyframes bootfade1 { to { opacity: 1; } }
.boot-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-inline: 16px; opacity: 0; animation: bootin 0.5s 0.5s steps(4) forwards; }
@keyframes bootin { 0% { opacity: 0; transform: scaleY(0.1); } 50% { opacity: 1; transform: scaleY(1.3) skewX(-6deg); } 100% { opacity: 1; transform: none; } }
.boot-mark {
  font-family: var(--f-display); font-weight: 400; line-height: 0.85;
  font-size: clamp(52px, 10vw, 104px);
  color: var(--chrome-2);
  background: linear-gradient(180deg, #ffffff 0%, #e4e6e9 30%, #c3c7cc 48%, #a9aeb4 52%, #d4d7db 70%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 0 14px rgba(220,224,230,0.35));
  animation: bootflicker 2.4s 0.5s steps(1) infinite;
}
@keyframes bootflicker { 0%, 100% { opacity: 1; } 8% { opacity: 0.55; transform: translateX(3px); } 9% { opacity: 1; transform: none; } 47% { opacity: 0.75; } 48% { opacity: 1; } 71% { transform: translateX(-4px) skewX(4deg); } 72% { transform: none; } }
.boot-bar { width: min(340px, 72vw); height: 16px; border: 1px solid #e8ffe8; padding: 2px; box-shadow: 0 0 8px rgba(160,255,160,0.4); }
.boot-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #e8ffe8 0 9px, transparent 9px 12px); animation: bootfill 2s 0.6s steps(26) forwards; }
@keyframes bootfill { to { width: 100%; } }
.boot-load { font-size: clamp(18px, 3vw, 24px); letter-spacing: 0.2em; text-shadow: 0 0 6px rgba(160,255,160,0.6); }
.boot-dots { animation: blink 0.8s steps(2) infinite; }
.boot-skip { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; z-index: 3; font-size: 16px; letter-spacing: 0.12em; color: rgba(232,255,232,0.45); padding-inline: 16px; }
#boot.out { animation: bootout 0.46s forwards; }
@keyframes bootout { 0% { opacity: 1; } 35% { transform: skewX(-10deg) translateX(-4%); filter: contrast(1.8) hue-rotate(60deg); } 70% { opacity: 0.8; transform: scaleY(0.04); } 100% { opacity: 0; transform: scaleY(0.002) scaleX(0.6); } }
#boot.calm *, #boot.calm::before { animation: none !important; opacity: 1 !important; }
#boot.calm .boot-bar i { width: 100%; }
#boot.calm.out { animation: none; opacity: 0; transition: opacity 0.2s; }

/* ── Visuals: CRT set + VHS shelf ──────────────── */
.tv {
  max-width: 760px; margin: 0 auto 34px;
  background: linear-gradient(180deg, #2c282b, #141113 70%);
  border: 1px solid #3a3438; border-radius: 22px;
  padding: 20px 20px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 60px -28px #000;
}
.tv-screen {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 26px / 20px; overflow: hidden; background: #050405;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.95), 0 0 0 6px #0b090a, 0 0 0 7px #3a3438;
}
#tv-static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.22; }
.tv-screen::after { /* scanlines + glass curve */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(0,0,0,0.65));
}
.tv-osd {
  position: absolute; top: 16px; left: 22px; right: 22px; z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--f-ui); font-size: clamp(18px, 3vw, 26px); color: #e8ffe8;
  text-shadow: 0 0 6px rgba(160,255,160,0.6); letter-spacing: 0.06em;
}
.tv-card {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14% 10% 10%; text-align: center;
}
.tv-kind { font-family: var(--f-ui); font-size: clamp(16px, 2.4vw, 20px); color: #ff4a5f; letter-spacing: 0.12em; text-shadow: 0 0 6px rgba(255,74,95,0.6); }
.tv-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 6.5vw, 68px); line-height: 0.95; color: var(--bone); text-wrap: balance; overflow-wrap: anywhere; text-shadow: 2px 0 rgba(255,40,60,0.45), -2px 0 rgba(60,200,255,0.35); }
.tv-meta { font-family: var(--f-ui); font-size: clamp(16px, 2.4vw, 20px); color: var(--dim); letter-spacing: 0.06em; }
.tv-card .btn { margin-top: 6px; }
.tv-screen.switching .tv-card { animation: tvflick 0.35s steps(3); }
@keyframes tvflick { 0% { opacity: 0; transform: scaleY(0.02); } 50% { opacity: 1; transform: scaleY(0.6); } 100% { transform: scaleY(1); } }
.tv-base { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px 14px; }
.tv-brand { font-family: var(--f-ui); font-size: 18px; letter-spacing: 0.2em; color: var(--dim); }
.tv-knobs { display: flex; gap: 12px; }
.tv-knobs i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8e949b, #2a2d31 70%); box-shadow: 0 2px 0 #000; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; }
.tape {
  position: relative; display: block; width: 100%; aspect-ratio: 188 / 104; max-width: 100%;
  padding: 7% 7% 0; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #1c191b, #0f0d0e);
  border: 1px solid #2f2a2d; border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 18px -12px #000;
  color: inherit; font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tape:hover, .tape:focus-visible { transform: translateY(-3px); }
.tape[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blood-hi), 0 14px 22px -12px #000; }
.tape-label {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2px;
  height: 56%; padding: 5px 8px;
  background: #ece5d6; color: #1b1719;
  border-top: 4px solid var(--blood);
}
.tape:nth-child(3n+2) .tape-label { border-top-color: #2b5d9c; }
.tape:nth-child(3n) .tape-label { border-top-color: #9a938a; }
.tape-title { font-family: var(--f-hand); font-size: 14px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tape-meta { display: flex; justify-content: space-between; gap: 6px; font-family: var(--f-ui); font-size: 14px; color: #5a5250; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tape-reels { position: absolute; left: 22%; right: 22%; bottom: 9%; height: 22%; display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.55); border-radius: 3px; padding: 0 8%; }
.tape-reels i { width: 26%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(#e7e1d4 0 30deg, #b9b2a4 30deg 60deg); box-shadow: 0 0 0 2px #0b090a; }
.tape[aria-pressed="true"] .tape-reels i { animation: spin 3s linear infinite; }
@media (max-width: 560px) {
  .tv { padding: 12px 12px 0; border-radius: 16px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tape-title { font-size: 12px; -webkit-line-clamp: 1; }
  .tape-label { padding: 4px 6px; gap: 0; }
  .tape-meta { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .tape[aria-pressed="true"] .tape-reels i, .tv-screen.switching .tv-card { animation: none; } }

/* ── Mini player ───────────────────────────────── */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(14,11,13,0.96);
  border-top: 1px solid #3a3438;
  box-shadow: 0 -12px 30px -10px #000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
  backdrop-filter: blur(4px);
}
.mini.show { transform: translateY(0); visibility: visible; transition: transform 0.35s ease, visibility 0s; }
.mini-progress { height: 2px; background: #2a2528; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--blood-hi); transform-origin: left; transform: scaleX(0); }
.mini-in {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding-block: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mini-disc {
  position: relative; width: 46px; height: 46px; flex: none;
  border-radius: 50%; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; background: #222;
  animation: spin 6s linear infinite; animation-play-state: paused;
}
.mini.playing .mini-disc { animation-play-state: running; }
.mini-disc canvas { width: 100%; height: 100%; display: block; }
.mini-hole { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px rgba(220,223,228,0.85); }
.mini-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-family: var(--f-ui); line-height: 1.1; }
.mini-title { font-size: 20px; color: #ff4a5f; text-shadow: 0 0 6px rgba(255,74,95,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.mini-time { font-size: 16px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mini-btn { font-size: 20px; min-width: 46px; padding: 4px 10px 3px; flex: none; }
.mini-btn:disabled { opacity: 0.4; cursor: default; }
body.mini-on footer { padding-bottom: 120px; }
@media (prefers-reduced-motion: reduce) { .mini, .mini.show { transition: none; } .mini-disc { animation: none; } }

/* ── Guestbook ─────────────────────────────────── */
#guestbook { padding-top: 24px; }
.gb-form {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 18px; margin-bottom: 36px; max-width: 760px;
}
.gb-label { font-family: var(--f-ui); font-size: 17px; letter-spacing: 0.08em; color: var(--dim); padding: 0; }
.gb-form textarea, .gb-form input[type="text"] {
  width: 100%; background: #0b090a; color: var(--bone);
  border: 1px solid #3a3438; padding: 10px 12px;
  font-family: var(--f-note); font-size: 19px; line-height: 1.4; resize: vertical;
}
.gb-form textarea:focus, .gb-form input[type="text"]:focus { outline: 2px dashed var(--blood-hi); outline-offset: 2px; }
.gb-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; }
.gb-name-wrap { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gb-colors { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gb-colors legend { margin-bottom: 6px; }
.gb-colors label { position: relative; cursor: pointer; }
.gb-colors input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { display: block; width: 30px; height: 30px; border: 1px solid #000; box-shadow: 0 2px 0 #000; transform: rotate(-3deg); }
.gb-colors input:checked + .sw { outline: 2px solid var(--blood-hi); outline-offset: 2px; transform: rotate(0); }
.gb-colors input:focus-visible + .sw { outline: 2px dashed var(--bone); outline-offset: 3px; }
.sw-bone   { background: #ece5d6; }
.sw-blood  { background: #7a1020; }
.sw-chrome { background: linear-gradient(180deg, #f4f5f7, #9aa0a7 55%, #d9dce0); }
.sw-xerox  { background: #9a938a; }
.sw-pink   { background: #ff3fa4; }
.sw-cyan   { background: #2fd4ff; }
.sw-yellow { background: #f6f23a; }
.sw-lilac  { background: #b58cff; }
.sw-orange { background: #ff7a1f; }
.sw-lime   { background: #8dff4f; }
.gb-submit { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gb-chars { font-family: var(--f-ui); font-size: 17px; color: var(--dim); font-variant-numeric: tabular-nums; }
.gb-msg { margin: 0; min-height: 1.2em; font-family: var(--f-ui); font-size: 18px; letter-spacing: 0.04em; color: var(--dim); }
.gb-msg.err { color: #ff6b7d; }
.gb-msg.ok { color: var(--bone); }
.gb-form.locked textarea, .gb-form.locked input, .gb-form.locked button { opacity: 0.5; pointer-events: none; }

.wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px;
  padding: 30px 18px 34px;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(236,229,214,0.05), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 7px),
    #0d0b0c;
  border: 1px solid var(--line);
}
.wall-empty { grid-column: 1 / -1; margin: 0; text-align: center; font-family: var(--f-ui); font-size: 22px; color: var(--dim); padding: 30px 0; }
.note {
  position: relative; min-width: 0;
  padding: 26px 16px 14px;
  box-shadow: 0 14px 22px -14px rgba(0,0,0,0.9), 0 1px 0 rgba(0,0,0,0.4);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.note:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.note::before { /* masking tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px;
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -1.6));
  background: rgba(214, 201, 170, 0.62);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.note-text { margin: 0; font-family: var(--f-note); font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--f-ui); font-size: 16px; letter-spacing: 0.04em; opacity: 0.8; }
.note-name { overflow-wrap: anywhere; }
.note.bone   { background: #ece5d6; color: #1b1719; }
.note.blood  { background: #7a1020; color: #f3e9dc; }
.note.chrome { background: linear-gradient(180deg, #f4f5f7, #b9bec4 55%, #e2e4e7); color: #17141a; }
.note.xerox  { background: #9a938a; color: #121012; }
.note.pink   { background: #ff3fa4; color: #1a0610; }
.note.cyan   { background: #2fd4ff; color: #04161d; }
.note.yellow { background: #f6f23a; color: #1c1a02; }
.note.lilac  { background: #b58cff; color: #140a24; }
.note.orange { background: #ff7a1f; color: #1d0a00; }
.note.lime   { background: #8dff4f; color: #0c1a04; }
.note.mine   { outline: 1px dashed currentColor; outline-offset: -6px; }
.note-del {
  position: absolute; top: 4px; right: 4px;
  font-family: var(--f-ui); font-size: 15px; line-height: 1;
  background: rgba(0,0,0,0.75); color: #fff; border: 0; padding: 4px 7px; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
}
.note:hover .note-del, .note:focus-within .note-del, .note-del.armed { opacity: 1; }
.note-del.armed { background: var(--blood-hi); }
@media (hover: none) { .note-del { opacity: 0.85; } }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.foot-mark, .foot-copy { font-family: var(--f-ui); font-size: 17px; font-weight: 400; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.foot-mark { justify-self: start; }
.foot-copy { justify-self: end; text-align: right; }
@media (max-width: 560px) {
  footer .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
  .foot-mark, .foot-copy { justify-self: center; text-align: center; }
  .foot-logo { order: -1; }
}
.foot-note { font-family: var(--f-ui); font-size: 17px; color: var(--dim); }
/* animated chrome logo: the GIF has a lot of empty canvas, so the box crops to the artwork */
.foot-logo { width: min(320px, 72vw); max-width: 100%; aspect-ratio: 438 / 162; overflow: hidden; }
.foot-logo img { display: block; width: 144.29%; max-width: none; height: auto; margin-left: -22.83%; margin-top: -55.71%; }
#top, #archive, #visuals, #about, #guestbook { scroll-margin-top: 60px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { order: -1; }
  .strip .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .liner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .deck { grid-template-columns: minmax(0, 1fr); }
  .deck-art { max-width: 260px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osd nav { gap: 14px; }
  .osd { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cd, .tracking, .rec i, .lcd .scroll, .case:hover canvas, .case:hover .cover-img { animation: none !important; }
  .tracking { display: none; }
  .lcd .scroll { padding-left: 0; }
}

/* ── Live-site additions ───────────────────────── */
[hidden] { display: none !important; }
img { max-width: 100%; }
.cd-art img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* SoundCloud player: hidden behind the CD; shown only if a phone needs a tap inside it */
.sc-host { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: -9999px; }
.sc-host iframe { width: 100%; height: 100%; border: 0; }
.sc-host.reveal { position: static; width: 100%; height: 120px; opacity: 1; pointer-events: auto; left: auto; border: 1px solid #3a3438; }

/* mini player disc artwork */
.mini-art, .mini-art img, .mini-art canvas { display: block; width: 100%; height: 100%; object-fit: cover; }

/* TV: video plays inside the screen */
.tv-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; background: #000; }
.tv-screen.on-air .tv-card, .tv-screen.on-air .tv-osd, .tv-screen.on-air #tv-static { visibility: hidden; }
.tv-yt { font-family: var(--f-ui); font-size: 16px; letter-spacing: 0.08em; color: var(--dim); text-decoration: none; border-bottom: 1px solid #3a3438; }
.tv-yt:hover { color: var(--bone); border-color: var(--blood-hi); }
.tv-base .tv-off { font-size: 16px; padding: 2px 10px 1px; margin-left: auto; margin-right: 14px; }

/* booklet: clip on the cover, photo page, bio */
.bk-cover { overflow: hidden; isolation: isolate; }
.bk-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.78; filter: grayscale(0.15) contrast(1.08); }
.bk-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(8,6,7,0.05), rgba(8,6,7,0.6)), linear-gradient(to top, rgba(8,6,7,0.7), transparent 45%); }
.bk-cover::before { z-index: 1; }
.bk-dots { opacity: 0.25; }
.pg-photo { padding: 0; }
.bk-page:has(.pg-photo) { padding: 0; }
.pg-photo .pg-kicker { position: absolute; top: 14px; left: 16px; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.pg-photo-img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 45% 60%; filter: contrast(1.04) saturate(0.9); }
.pg-bio { margin-top: auto !important; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--bone) !important; max-width: 28ch; }

/* credits fit on one page */
.bk-credits { font-size: 16px; line-height: 1.25; }
.bk-credits dd { margin-bottom: 7px; }

/* prose is lowercase, as an aesthetic */
.lede, .deck p, .pg-bio, .pg-small, .lost p { text-transform: lowercase; }

/* page i: photo with the bio laid over it */
.pg-overlay { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 40px clamp(16px, 5%, 30px) 70px;
  background: linear-gradient(to bottom, rgba(8,6,7,0.92) 0%, rgba(8,6,7,0.62) 60%, transparent 100%); }
.pg-overlay .pg-title { margin: 0; }
.pg-overlay .pg-bio { margin-top: 0 !important; font-size: clamp(14px, 1.7vw, 16px); line-height: 1.5; opacity: 0.8; }

/* volume */
.vol-row { display: flex; align-items: center; gap: 10px; }
.vol-row .vol-btn { font-size: 16px; padding: 1px 8px 0; min-width: 58px; }
.vol-row .vol-btn[aria-pressed="true"] { color: var(--bone); background: linear-gradient(180deg, #3a0711 0%, var(--blood) 50%, #4c0914 100%); border-color: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,0.7); }
#vol { flex: 1; min-width: 0; margin: 0; accent-color: var(--chrome-2); }
.vol-val { font-family: var(--f-ui); font-size: 17px; color: var(--dim); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }

/* mini player volume (slider hidden on phones, mute stays) */
.mini-vol { display: flex; align-items: center; gap: 8px; flex: none; }
#mini-vol { width: 110px; margin: 0; accent-color: var(--chrome-2); }
.mini-mute { font-size: 16px !important; min-width: 64px !important; }
.mini-mute[aria-pressed="true"] { color: var(--bone); background: linear-gradient(180deg, #3a0711 0%, var(--blood) 50%, #4c0914 100%); border-color: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,0.7); }
@media (max-width: 600px) { #mini-vol { display: none; } .mini-mute { min-width: 0 !important; padding: 4px 6px 3px; font-size: 14px !important; } .mini-in { gap: 8px; } .mini-time { white-space: nowrap; font-size: 14px; } .mini-btn { min-width: 40px; } }

/* visualiser ring around the CD */
.cd-wrap { position: relative; display: grid; place-items: center; margin-block: clamp(30px, 8vw, 54px); }
.cd-ring { position: absolute; left: 50%; top: 50%; width: 132%; height: 132%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.cd-wrap .cd { position: relative; z-index: 1; width: min(340px, 66vw); }
