:root {
  --bg-0: #050403;
  --bg-1: #0d0a08;
  --bg-2: #14100c;
  --metal-0: #1a1612;
  --metal-1: #2a2521;
  --metal-2: #3a342e;
  --metal-edge: #08060a;
  --wood-0: #2a1810;
  --wood-1: #4a2818;
  --lcd-bg-0: #1a0e00;
  --lcd-bg-1: #08040a;
  --lcd-amber: #ffa726;
  --lcd-amber-soft: #c97d12;
  --lcd-amber-glow: rgba(255, 167, 38, 0.55);
  --led-red: #ff3344;
  --led-green: #4ade80;
  --led-amber: #ffa726;
  --led-off: #1a0808;
  --tape-brown: #3d2817;
  --tape-light: #7a5a3f;
  --cream: #ebd5a8;
  --ink-soft: #8b7355;
  --text-dim: rgba(235, 213, 168, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 9999;
  padding: 8px 14px;
  background: #0a0807;
  color: #ffa726;
  text-decoration: none;
  border: 1px solid #ffa726;
  border-radius: 4px;
  font-family: 'VT323', monospace;
  letter-spacing: 0.18em;
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid #ffa726;
  outline-offset: 2px;
}

.page-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a.preset { text-decoration: none; }

/* Inline SVG icons (Phosphor-style, MIT-licensed paths) */
.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.brand-icon {
  width: 26px;
  height: 26px;
  fill: var(--lcd-amber);
  filter: drop-shadow(0 0 8px var(--lcd-amber-glow));
  flex-shrink: 0;
}
.t-btn .ico { width: 22px; height: 22px; }
.presets-label .ico { width: 16px; height: 16px; color: var(--lcd-amber); }
.np-marker .ico { width: 22px; height: 22px; fill: currentColor; }
.contact-icon svg { width: 22px; height: 22px; fill: var(--lcd-amber); filter: drop-shadow(0 0 8px var(--lcd-amber-glow)); }
.deck-top a.brand {
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: filter 0.2s, transform 0.2s;
}
.deck-top a.brand:hover,
.deck-top a.brand:focus-visible {
  filter: drop-shadow(0 0 4px var(--lcd-amber-glow));
}
.deck-top a.brand:focus-visible {
  outline: 2px solid var(--lcd-amber);
  outline-offset: 4px;
  border-radius: 4px;
}
.deck-top a.brand .brand-name,
.deck-top a.brand .brand-model {
  transition: color 0.2s;
}
.deck-top a.brand:hover .brand-name { color: var(--lcd-amber); }

/* Eject animation (CSS-only, replaces GSAP) */
.tape-window.is-ejecting {
  animation: ejectAnim 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ejectAnim {
  0%   { transform: translateY(0);    opacity: 1;   }
  30%  { transform: translateY(-16px); opacity: 0.4; }
  70%  { transform: translateY(-16px); opacity: 0.4; }
  100% { transform: translateY(0);    opacity: 1;   }
}

/* Entry animations — opacity only, CLS-safe */
.deck, .page-header, .now-playing, .preset {
  opacity: 0;
  animation: appear 0.6s ease-out forwards;
}
.page-header { animation-delay: 0s; }
.deck { animation-delay: 0.08s; }
.now-playing { animation-delay: 0.16s; }
.preset { animation-delay: 0.5s; }
.presets-row .preset:nth-child(1) { animation-delay: 0.50s; }
.presets-row .preset:nth-child(2) { animation-delay: 0.56s; }
.presets-row .preset:nth-child(3) { animation-delay: 0.62s; }
.presets-row .preset:nth-child(4) { animation-delay: 0.68s; }
.presets-row .preset:nth-child(5) { animation-delay: 0.74s; }
@keyframes appear { to { opacity: 1; } }

html, body { background: var(--bg-0); }

body {
  min-height: 100vh;
  color: var(--cream);
  font-family: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
  position: relative;
  overflow-x: hidden;
  padding: clamp(20px, 4vw, 48px) clamp(12px, 3vw, 32px);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 167, 38, 0.06), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(74, 40, 24, 0.18), transparent 70%),
    var(--bg-0);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 167, 38, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 20%, rgba(255, 167, 38, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 2;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 9vw, 96px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--cream);
  position: relative;
}

.page-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s;
  cursor: pointer;
}

.page-title-link:hover,
.page-title-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 18px var(--lcd-amber-glow));
}

.page-title-link:focus-visible {
  outline: 2px solid var(--lcd-amber);
  outline-offset: 6px;
  border-radius: 4px;
}

.page-title span {
  color: var(--lcd-amber);
  text-shadow: 0 0 24px var(--lcd-amber-glow);
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 6%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lcd-amber) 0%, transparent 70%);
}

.page-sub {
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.4;
}

.page-sub .stamp {
  display: inline-block;
  border: 1px solid var(--led-red);
  color: var(--led-red);
  padding: 2px 8px;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.2em;
}

.deck {
  background:
    linear-gradient(180deg, var(--metal-2) 0%, var(--metal-1) 8%, var(--metal-0) 50%, var(--metal-1) 92%, var(--metal-2) 100%),
    var(--metal-0);
  border-radius: 12px;
  padding: 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 1px 0 0 rgba(255, 255, 255, 0.03),
    inset -1px 0 0 rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.7),
    0 4px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.deck::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 2px);
  pointer-events: none;
}

.deck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--metal-edge);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'VT323', monospace;
}

.brand i {
  font-size: 26px;
  color: var(--lcd-amber);
  text-shadow: 0 0 12px var(--lcd-amber-glow);
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.brand-model {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--metal-edge);
}

.leds {
  display: flex;
  gap: 18px;
  font-family: 'VT323', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.led {
  display: flex;
  align-items: center;
  gap: 6px;
}

.led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

.led-dot.on-red { background: var(--led-red); box-shadow: 0 0 8px var(--led-red), inset 0 0 2px rgba(255, 255, 255, 0.4); }
.led-dot.on-green { background: var(--led-green); box-shadow: 0 0 8px var(--led-green), inset 0 0 2px rgba(255, 255, 255, 0.4); }
.led-dot.on-amber { background: var(--led-amber); box-shadow: 0 0 8px var(--led-amber), inset 0 0 2px rgba(255, 255, 255, 0.4); }

.blink-led { animation: blinkLed 1.5s ease-in-out infinite; }
@keyframes blinkLed {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.25; }
}

.deck-display {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.lcd-panel {
  background: linear-gradient(180deg, #08060a 0%, var(--bg-0) 100%);
  border-radius: 6px;
  padding: 8px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.03);
}

.lcd-screen {
  background:
    radial-gradient(ellipse at center, #2a1408 0%, var(--lcd-bg-0) 60%, var(--lcd-bg-1) 100%);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: 'VT323', monospace;
  color: var(--lcd-amber);
  text-shadow:
    0 0 4px var(--lcd-amber-glow),
    0 0 12px rgba(255, 167, 38, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lcd-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.lcd-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.lcd-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 20px;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}

.lcd-label {
  color: var(--lcd-amber-soft);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.lcd-value {
  color: var(--lcd-amber);
  font-weight: bold;
  min-width: 1em;
}

.lcd-time {
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-shadow:
    0 0 6px var(--lcd-amber-glow),
    0 0 18px rgba(255, 167, 38, 0.45);
}

.lcd-time .divider { color: var(--lcd-amber-soft); font-size: 0.7em; }
.lcd-time .total { color: var(--lcd-amber-soft); font-size: 0.55em; }

.lcd-vu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.vu-row {
  display: grid;
  grid-template-columns: 14px 1fr 24px;
  gap: 10px;
  align-items: center;
}

.vu-meter {
  height: 11px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1px;
  display: flex;
  gap: 2px;
  padding: 1px;
  overflow: hidden;
}

.vu-seg {
  flex: 1;
  background: var(--led-off);
  border-radius: 1px;
  transition: background 0.08s linear, box-shadow 0.08s linear;
}

.vu-seg.lit-low { background: #4a7e2a; box-shadow: 0 0 4px rgba(74, 222, 80, 0.5); }
.vu-seg.lit-mid { background: var(--lcd-amber); box-shadow: 0 0 4px var(--lcd-amber-glow); }
.vu-seg.lit-hi { background: var(--led-red); box-shadow: 0 0 5px rgba(255, 51, 68, 0.7); }

.lcd-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--lcd-amber-soft);
  border-top: 1px dashed rgba(255, 167, 38, 0.25);
  padding-top: 6px;
  margin-top: auto;
  flex-wrap: wrap;
}

.lcd-bottom .counter {
  color: var(--lcd-amber);
  font-family: 'Major Mono Display', monospace;
  letter-spacing: 0.1em;
}

.tape-window {
  position: relative;
  background: linear-gradient(180deg, #050302 0%, #0a0604 100%);
  border-radius: 6px;
  padding: 12px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tape-glass {
  background:
    radial-gradient(ellipse at center, rgba(255, 167, 38, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #02010a 0%, #0a0508 100%);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 200px;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.tape-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 25%);
  pointer-events: none;
  z-index: 2;
}

.tape-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
}

.cassette-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.reel { transform-box: view-box; animation: spin 9s linear infinite; animation-play-state: paused; }
.deck.is-playing .reel { animation-play-state: running; }
.deck.is-ff .reel { animation-duration: 0.5s; animation-play-state: running; }
.deck.is-rw .reel { animation-duration: 0.5s; animation-play-state: running; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.tape-label-strip {
  display: flex;
  justify-content: space-between;
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--lcd-amber-soft);
  text-transform: uppercase;
  padding: 0 4px;
}

.tape-label-strip .side {
  color: var(--lcd-amber);
  text-shadow: 0 0 6px var(--lcd-amber-glow);
}

.deck-transport {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
  align-items: center;
  border-top: 1px solid var(--metal-edge);
  border-bottom: 1px solid var(--metal-edge);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  flex-wrap: wrap;
}

.t-btn {
  flex: 1;
  min-width: 70px;
  max-width: 110px;
  height: 56px;
  background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-1) 50%, #15110d 100%);
  border: 1px solid var(--metal-edge);
  border-radius: 5px;
  color: var(--cream);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: 'VT323', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out, background 0.15s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 2px 0 var(--metal-edge),
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.t-btn i { font-size: 22px; color: var(--cream); transition: color 0.12s, text-shadow 0.12s; }
.t-btn .ico { fill: var(--cream); transition: fill 0.12s, filter 0.12s; }
.t-btn .t-label { color: var(--ink-soft); }

.t-btn:hover { background: linear-gradient(180deg, #3f3a35 0%, #2f2a25 50%, #1a1612 100%); }
.t-btn:hover i { color: var(--lcd-amber); text-shadow: 0 0 8px var(--lcd-amber-glow); }
.t-btn:hover .ico { fill: var(--lcd-amber); filter: drop-shadow(0 0 6px var(--lcd-amber-glow)); }
.t-btn:hover .t-label { color: var(--cream); }

.t-btn:active, .t-btn.is-active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 var(--metal-edge),
    0 0 8px rgba(255, 167, 38, 0.2);
  background: linear-gradient(180deg, #15110d 0%, #1f1a16 50%, #2a2521 100%);
}

.t-btn.is-active i { color: var(--lcd-amber); text-shadow: 0 0 10px var(--lcd-amber-glow); }
.t-btn.is-active .ico { fill: var(--lcd-amber); filter: drop-shadow(0 0 6px var(--lcd-amber-glow)); }
.t-btn.is-active .t-label { color: var(--lcd-amber); }

.t-btn:focus-visible { outline: 2px solid var(--lcd-amber); outline-offset: 3px; }

.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 12px;
}

.knob-dial {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #5a544e 0%, #2a2521 35%, #0d0a08 100%);
  position: relative;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.6);
  cursor: grab;
}

.knob-indicator {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(-135deg);
  transform-origin: 50% 22px;
  width: 3px;
  height: 12px;
  background: var(--lcd-amber);
  box-shadow: 0 0 6px var(--lcd-amber-glow);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.knob-dial::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.04) 0deg 4deg, transparent 4deg 8deg);
  pointer-events: none;
}

.knob-label {
  font-family: 'VT323', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.deck-presets {
  padding: 18px 22px 22px;
}

.presets-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.presets-label i { color: var(--lcd-amber); }

.presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.preset {
  background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-1) 50%, #15110d 100%);
  border: 1px solid var(--metal-edge);
  border-radius: 4px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  text-align: left;
  color: var(--cream);
  transition: transform 0.06s, box-shadow 0.06s, background 0.15s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 0 var(--metal-edge),
    0 4px 8px rgba(0, 0, 0, 0.4);
  font-family: 'Geist Mono', monospace;
}

.preset:hover { background: linear-gradient(180deg, #3a342e 0%, #2a2521 50%, #15110d 100%); }
.preset:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 var(--metal-edge); }
.preset:focus-visible { outline: 2px solid var(--lcd-amber); outline-offset: 3px; }

.preset-led {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
  transition: background 0.2s, box-shadow 0.2s;
}

.preset.is-active .preset-led {
  background: var(--lcd-amber);
  box-shadow: 0 0 8px var(--lcd-amber-glow), inset 0 0 2px rgba(255, 255, 255, 0.4);
}

.preset-num {
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.preset.is-active .preset-num { color: var(--lcd-amber); }

.preset-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.preset.is-active .preset-code { color: var(--lcd-amber); text-shadow: 0 0 8px var(--lcd-amber-glow); }

.preset-name {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.now-playing {
  margin-top: 48px;
  background:
    linear-gradient(180deg, rgba(255, 167, 38, 0.02) 0%, transparent 100%),
    var(--bg-1);
  border: 1px solid var(--metal-1);
  border-radius: 10px;
  padding: 28px clamp(20px, 4vw, 36px);
  position: relative;
}

.np-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--metal-2);
  gap: 16px;
  flex-wrap: wrap;
}

.np-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcd-amber);
}

.np-marker i { font-size: 22px; }

.np-meta {
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.lang-block { display: none; }
.lang-block.is-active { display: block; }

.np-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 36px;
  position: relative;
  display: inline-block;
}

.np-title::before {
  content: '//';
  color: var(--lcd-amber);
  margin-right: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.45em;
  vertical-align: 0.45em;
  letter-spacing: -0.05em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.contact-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--metal-2);
  align-items: start;
}

.contact-row:last-child { border-bottom: 1px solid var(--metal-2); }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.contact-icon i {
  font-size: 22px;
  color: var(--lcd-amber);
  text-shadow: 0 0 10px var(--lcd-amber-glow);
}

.contact-inner { min-width: 0; }

.contact-label {
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--lcd-amber);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
  word-break: break-all;
  line-height: 1;
}

.contact-value::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--lcd-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px var(--lcd-amber-glow);
}

.contact-value:hover::after, .contact-value:focus-visible::after { transform: scaleX(1); }

.contact-desc {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

.page-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--metal-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.page-footer .barcode {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 22px;
}
.page-footer .barcode i {
  display: block;
  width: 2px;
  background: var(--ink-soft);
  height: 100%;
}
.page-footer .barcode i:nth-child(2n) { width: 1px; height: 70%; }
.page-footer .barcode i:nth-child(3n) { width: 3px; height: 90%; }
.page-footer .barcode i:nth-child(5n) { width: 1px; }

.fade-in { animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
  .deck-display { grid-template-columns: 1fr; }
  .tape-glass { min-height: 220px; }
  .leds { gap: 12px; font-size: 12px; }
  .brand-model { display: none; }
}

@media (max-width: 640px) {
  body { padding: 16px 10px; }
  .page-header { margin-bottom: 20px; gap: 12px; }
  .page-sub { font-size: 16px; letter-spacing: 0.14em; text-align: left; }
  .page-sub .stamp { font-size: 11px; padding: 1px 6px; }
  .deck-top { padding: 12px 14px; gap: 10px; }
  .brand-name { font-size: 18px; }
  .leds { gap: 10px; font-size: 11px; letter-spacing: 0.12em; }
  .deck-display { padding: 14px; gap: 14px; }
  .lcd-panel { padding: 6px; }
  .lcd-screen { padding: 12px; min-height: 170px; }
  .lcd-row { font-size: 15px; gap: 10px; }
  .lcd-label { font-size: 11px; letter-spacing: 0.14em; }
  .lcd-time { font-size: clamp(30px, 11vw, 44px); }
  .lcd-bottom { font-size: 10px; gap: 6px; letter-spacing: 0.12em; }
  .tape-window { padding: 10px; }
  .tape-glass { min-height: 180px; padding: 6px; }
  .tape-label-strip { font-size: 12px; letter-spacing: 0.12em; }
  .deck-transport { gap: 6px; padding: 12px 14px; }
  .t-btn { min-width: 0; max-width: none; height: 52px; font-size: 10px; letter-spacing: 0.14em; }
  .t-btn i { font-size: 18px; }
  .t-btn .ico { width: 18px; height: 18px; }
  .brand-icon { width: 22px; height: 22px; }
  .knob { display: none; }
  .deck-presets { padding: 14px; }
  .presets-label { font-size: 12px; letter-spacing: 0.16em; margin-bottom: 10px; }
  .presets-row { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .preset { padding: 10px 4px; min-height: 64px; }
  .preset-num { font-size: 11px; }
  .preset-code { font-size: 18px; }
  .preset-name { font-size: 9px; letter-spacing: 0.08em; }
  .preset-led { top: 5px; right: 5px; width: 5px; height: 5px; }
  .now-playing { margin-top: 28px; padding: 20px 16px; border-radius: 8px; }
  .np-header { margin-bottom: 18px; padding-bottom: 12px; gap: 10px; }
  .np-marker { font-size: 14px; letter-spacing: 0.16em; }
  .np-meta { font-size: 12px; letter-spacing: 0.12em; }
  .np-title { font-size: clamp(32px, 10vw, 52px); margin-bottom: 22px; }
  .contact-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .contact-icon { width: 38px; height: 38px; }
  .contact-icon i { font-size: 18px; }
  .contact-label { font-size: 12px; letter-spacing: 0.18em; }
  .contact-value { font-size: clamp(22px, 7vw, 30px); margin-bottom: 10px; }
  .contact-desc { font-size: 13px; line-height: 1.6; }
  .page-footer { margin-top: 28px; padding-top: 16px; font-size: 12px; letter-spacing: 0.12em; gap: 10px; }
  .page-footer .barcode { height: 18px; }
}

@media (max-width: 380px) {
  .page-title { font-size: clamp(38px, 12vw, 56px); }
  .presets-row { gap: 4px; }
  .preset { padding: 8px 3px; min-height: 58px; }
  .preset-code { font-size: 16px; }
  .preset-num { font-size: 10px; }
  .preset-name { font-size: 8px; }
  .t-btn { height: 48px; }
  .t-btn i { font-size: 16px; }
  .t-btn .ico { width: 16px; height: 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .t-btn:hover { background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-1) 50%, #15110d 100%); }
  .t-btn:hover i { color: var(--cream); text-shadow: none; }
  .t-btn:hover .t-label { color: var(--ink-soft); }
  .preset:hover { background: linear-gradient(180deg, var(--metal-2) 0%, var(--metal-1) 50%, #15110d 100%); }
  .page-title-link:hover { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reel, .blink-led, .fade-in,
  .deck, .page-header, .now-playing, .preset,
  .tape-window.is-ejecting { animation: none !important; }
  .deck, .page-header, .now-playing, .preset { opacity: 1 !important; }
  .page-title-link { transition: none; }
}
