/* ============================================================
   NIGHTDRIVE / 夜のドライブ — STYLESHEET
   ============================================================ */

:root {
  --pink: #ff2ec5;
  --hot:  #ff006e;
  --cyan: #00e5ff;
  --teal: #05ffa1;
  --purple:#b967ff;
  --d-purple:#2a0845;
  --navy: #0a0025;
  --deep: #05000e;
  --yellow:#fffb96;
  --orange:#ff9c1a;
  --white:#ffffff;
  --gray: #9a7bb5;
  --line: rgba(255, 46, 197, 0.25);

  --f-display:NightDisplay, sans-serif;
  --f-title:  NightDisplay, sans-serif;
  --f-mono:   NightMono, monospace;
  --f-body:   NightMono, monospace;
  --f-jp:     NightMono, monospace;
  --f-slim:   NightMono, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #3a0a5c 0%, #1a0036 25%, #05000e 70%, #000 100%);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

body.pre-boot { overflow: hidden; height: 100vh; }
body.pre-boot .sysbar,
body.pre-boot .mnav,
body.pre-boot .hero,
body.pre-boot .ticker-wrap,
body.pre-boot .desk-section,
body.pre-boot .mix-section,
body.pre-boot .gal-section,
body.pre-boot .sig-section,
body.pre-boot .ft { opacity: 0; }

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }
ul { list-style: none; }
canvas { display: block; }

/* ============================================================
   CRT OVERLAYS (scanlines, grain, vignette, flicker)
   ============================================================ */
.fx-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 9996;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.22) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}
.fx-bars {
  position: fixed; inset: 0; pointer-events: none; z-index: 9995;
  background: linear-gradient(
    180deg,
    rgba(255,0,255,0.015) 0%,
    rgba(0,255,255,0.015) 33%,
    rgba(255,255,0,0.012) 66%,
    rgba(255,0,255,0.015) 100%
  );
  animation: rollbar 8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes rollbar {
  0%   { transform: translateY(-100vh); }
  100% { transform: translateY(100vh);  }
}

.fx-vign {
  position: fixed; inset: 0; pointer-events: none; z-index: 9994;
  background: radial-gradient(ellipse 120% 80% at 50% 50%,
    transparent 40%, rgba(0,0,0,0.55) 85%, rgba(0,0,0,0.9) 100%);
}
.fx-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9993;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.8s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%,1%); }
  40%  { transform: translate(1%,-3%); }
  60%  { transform: translate(-3%,2%); }
  80%  { transform: translate(2%,-1%); }
  100% { transform: translate(0,0); }
}
.fx-flicker {
  position: fixed; inset: 0; pointer-events: none; z-index: 9992;
  background: rgba(255, 0, 255, 0.02);
  animation: flicker 0.17s infinite;
}
@keyframes flicker {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.8; }
  70%     { opacity: 0.2; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}
.cur-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan);
}
.cur-ring {
  position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, border-color .2s ease;
}
.cur-cross i {
  position: absolute;
  background: var(--pink);
}
.cur-cross i:first-child {
  width: 16px; height: 1px;
  left: -8px; top: 0;
}
.cur-cross i:last-child {
  width: 1px; height: 16px;
  left: 0; top: -8px;
}
.cur-label {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
  padding: 2px 6px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--cyan);
  letter-spacing: 0.1em;
}
.cursor.hover .cur-ring { width: 50px; height: 50px; border-color: var(--yellow); }
.cursor.click .cur-ring { width: 20px; height: 20px; }

/* ============================================================
   BOOT SCREEN
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 10001;
  background: #000;
  display: grid; place-items: center;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot.hide { opacity: 0; visibility: hidden; }
.boot-inner {
  width: 90%; max-width: 820px;
  color: var(--teal);
  font-family: var(--f-mono);
  line-height: 1.1;
  text-shadow: 0 0 3px var(--teal);
}
.boot-ascii {
  font-size: 11px;
  color: var(--pink);
  text-shadow: 0 0 6px var(--pink), 2px 0 0 var(--cyan), -2px 0 0 var(--yellow);
  margin-bottom: 24px;
  white-space: pre;
  overflow: hidden;
}
.boot-head {
  color: var(--cyan);
  font-size: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  border-top: 1px dashed var(--teal);
  border-bottom: 1px dashed var(--teal);
  padding: 8px 0;
}
.boot-log {
  font-size: 18px;
  color: var(--teal);
  min-height: 240px;
  margin-bottom: 22px;
  white-space: pre-wrap;
}
.boot-log .ok { color: var(--teal); }
.boot-log .pk { color: var(--pink); }
.boot-log .cy { color: var(--cyan); }
.boot-log .yl { color: var(--yellow); }
.boot-bar {
  border: 1px solid var(--teal);
  height: 14px;
  padding: 2px;
  margin-bottom: 12px;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 8px);
}
.boot-skip {
  font-size: 14px;
  color: var(--gray);
  text-align: right;
  animation: blinkFade 1.4s infinite;
}
@keyframes blinkFade {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0.1; }
}

/* ============================================================
   SYSTEM BAR (very top)
   ============================================================ */
.sysbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: #000;
  color: var(--teal);
  font-family: var(--f-mono);
  font-size: 14px;
  z-index: 100;
  border-bottom: 1px solid var(--teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px currentColor;
}
.sb-left, .sb-right { display: flex; gap: 10px; align-items: center; }
.sb-brand { color: var(--pink); font-weight: 700; }
.sb-dot { color: var(--pink); opacity: 0.6; font-size: 8px; }
.sb-stat b { color: var(--cyan); }
.sb-clock {
  color: var(--yellow);
  font-weight: 700;
  background: rgba(255, 251, 150, 0.08);
  padding: 0 6px;
}

/* ============================================================
   MAIN NAVBAR
   ============================================================ */
.mnav {
  position: fixed;
  top: 24px; left: 0; right: 0;
  height: 64px;
  z-index: 99;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 0 32px;
  background: linear-gradient(180deg,
    rgba(10, 0, 37, 0.9) 0%,
    rgba(10, 0, 37, 0.6) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.mnav::before {
  content:""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 20px, rgba(255,46,197,0.03) 20px 21px);
  pointer-events: none;
}
.mnav-logo {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.mnl-kanji {
  font-family: var(--f-jp);
  font-size: 40px;
  color: var(--pink);
  text-shadow: 0 0 14px var(--pink), 3px 3px 0 var(--cyan);
  line-height: 1;
}
.mnl-t1 {
  font-family: var(--f-title);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.3em;
  text-shadow: 1px 0 0 var(--hot), -1px 0 0 var(--cyan);
}
.mnl-t2 {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.22em;
}
.mnav-links {
  display: flex; gap: 28px;
  justify-content: center;
  position: relative; z-index: 1;
}
.mnav-links a {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  position: relative;
  padding: 4px 2px;
  transition: color .2s;
}
.mnav-links a span { color: var(--pink); }
.mnav-links a::after {
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.mnav-links a:hover { color: var(--yellow); }
.mnav-links a:hover::after { transform: scaleX(1); background: var(--yellow); }
.mnav-meta {
  text-align: right;
  font-size: 10px;
  color: var(--gray);
  line-height: 1.3;
  position: relative; z-index: 1;
}
.mnm-l1 {
  font-family: var(--f-title);
  color: var(--hot);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.mnm-l2 { letter-spacing: 0.15em; }
.blip {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: blip 1.4s infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  overflow: hidden;
}
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 700px;
  pointer-events: none;
  z-index: 1;
}
.sun { filter: drop-shadow(0 0 60px #ff006e) drop-shadow(0 0 100px #ff9c1a); }

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  text-shadow: 0 0 8px var(--cyan);
  margin-bottom: 34px;
  animation: floatIn 1.2s ease-out .3s both;
}
.hero-tag-dot { color: var(--hot); }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(60px, 11vw, 200px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.03em;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.02em;
  text-shadow:
    0 0 1px var(--pink),
    0 0 14px var(--hot),
    0 0 40px rgba(255, 0, 110, 0.6),
    4px 0 0 var(--cyan),
    -4px 0 0 var(--yellow);
  filter: saturate(1.3);
}
.hero-title span {
  display: inline-block;
  animation: titleDrop 0.9s cubic-bezier(.2, .9, .3, 1.2) both;
}
.hero-title span:nth-child(1){ animation-delay: 0.5s; }
.hero-title span:nth-child(2){ animation-delay: 0.56s; }
.hero-title span:nth-child(3){ animation-delay: 0.62s; }
.hero-title span:nth-child(4){ animation-delay: 0.68s; }
.hero-title span:nth-child(5){ animation-delay: 0.74s; }
.hero-title span:nth-child(6){ animation-delay: 0.80s; }
.hero-title span:nth-child(7){ animation-delay: 0.86s; }
.hero-title span:nth-child(8){ animation-delay: 0.92s; }
.hero-title span:nth-child(9){ animation-delay: 0.98s; }
.hero-title span:nth-child(10){ animation-delay: 1.04s; }

@keyframes titleDrop {
  0%   { transform: translateY(-60px) rotateX(-80deg); opacity: 0; }
  100% { transform: translateY(0) rotateX(0); opacity: 1; }
}

.hero-jp {
  font-family: var(--f-jp);
  font-size: clamp(22px, 2.4vw, 36px);
  color: var(--pink);
  letter-spacing: 0.5em;
  margin-bottom: 36px;
  text-shadow: 0 0 10px var(--pink), 2px 2px 0 var(--cyan);
  animation: floatIn 1.2s ease-out 1.5s both;
}

.hero-desc {
  font-family: var(--f-mono);
  font-size: 22px;
  max-width: 720px;
  margin: 0 auto 40px;
  color: #d5b0ff;
  line-height: 1.55;
  animation: floatIn 1.2s ease-out 1.8s both;
}
.hero-desc .ac {
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow);
}

.hero-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
  animation: floatIn 1.2s ease-out 2.1s both;
}
.panel {
  border: 1px solid var(--pink);
  background: rgba(10, 0, 37, 0.55);
  padding: 14px 16px;
  text-align: left;
  position: relative;
  backdrop-filter: blur(2px);
  overflow: hidden;
}
.panel::before {
  content:""; position: absolute; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.panel::after {
  content:""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0 3px, rgba(255,46,197,0.05) 3px 4px);
  pointer-events: none;
}
.p-lbl {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}
.p-big {
  font-family: var(--f-title);
  font-size: 26px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--yellow);
}
.p-big small { font-size: 13px; margin-left: 2px; color: var(--pink); }
.p-sub {
  font-size: 12px;
  color: #c080d0;
  letter-spacing: 0.1em;
}
.p-mini {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray);
  display: flex;
  gap: 4px;
  align-items: center;
}
.p-mini i {
  width: 6px; height: 6px;
  background: #444;
  border-radius: 50%;
}
.p-mini i.on { background: var(--teal); box-shadow: 0 0 4px var(--teal); }
.p-mini .ok { color: var(--teal); }
.p-meter {
  margin-top: 8px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 16px;
}
.p-meter i {
  flex: 1;
  background: linear-gradient(to top, var(--hot), var(--yellow));
  height: var(--h);
  animation: meterBounce 1.2s ease-in-out infinite;
}
.p-meter i:nth-child(odd) { animation-duration: 1.6s; }
.p-meter i:nth-child(3n)  { animation-duration: 2s; }
@keyframes meterBounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: floatIn 1.2s ease-out 2.4s both;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  font-family: var(--f-title);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--white);
  border: 2px solid;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.cta::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.cta:hover::before { transform: translateX(100%); }
.c1 {
  color: var(--white);
  border-color: var(--hot);
  background: linear-gradient(135deg, rgba(255,0,110,0.5), rgba(185,103,255,0.3));
  box-shadow: 0 0 20px rgba(255,0,110,0.4), inset 0 0 20px rgba(255,0,110,0.2);
}
.c2 {
  color: var(--cyan);
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(5,255,161,0.1));
  box-shadow: 0 0 20px rgba(0,229,255,0.3), inset 0 0 20px rgba(0,229,255,0.1);
}
.cta-no {
  font-family: var(--f-mono);
  font-size: 13px;
  opacity: 0.6;
}
.c1:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,0,110,0.7); }
.c2:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,229,255,0.6); color: var(--yellow); }

/* Hero corner decorations */
.hc {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  z-index: 4;
  text-shadow: 0 0 4px currentColor;
}
.hc i {
  display: block;
  width: 30px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}
.hc.tl { top: 110px; left: 30px; }
.hc.tr { top: 110px; right: 30px; }
.hc.bl { bottom: 30px; left: 30px; }
.hc.br { bottom: 30px; right: 30px; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 0.25em;
  z-index: 4;
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}
.sc-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--pink), transparent);
  margin: 8px auto 0;
  position: relative;
  overflow: hidden;
}
.sc-line i {
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background: var(--yellow);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -10px; }
  100% { top: 40px; }
}

@keyframes floatIn {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  position: relative;
  z-index: 6;
  background: var(--navy);
  border-top: 1px solid var(--hot);
  border-bottom: 1px solid var(--hot);
  overflow: hidden;
}
.ticker {
  height: 42px;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker::before, .ticker::after {
  content:""; position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerMove 60s linear infinite;
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--cyan);
  padding-left: 100%;
}
.ticker-track span.t-sep { color: var(--hot); }
.ticker-track span.t-sym { color: var(--yellow); font-weight: 700; }
.ticker-track span.t-up  { color: var(--teal); }
.ticker-track span.t-dn  { color: var(--hot); }
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.sec-head {
  text-align: center;
  padding: 80px 20px 30px;
  position: relative;
}
.sec-tag {
  display: inline-block;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-top: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
}
.sec-title {
  font-family: var(--f-display);
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 14px var(--hot),
    4px 0 0 var(--cyan),
    -4px 0 0 var(--yellow);
  margin-bottom: 18px;
}
.sec-title .co { color: var(--pink); text-shadow: 0 0 20px var(--pink); }
.sec-sub {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--gray);
  letter-spacing: 0.22em;
}

/* ============================================================
   DESKTOP OS (machine)
   ============================================================ */
.desk-section {
  position: relative;
  padding-bottom: 100px;
}
.machine {
  position: relative;
  width: min(1200px, 92vw);
  margin: 30px auto 0;
  padding: 0 8px;
}
.m-frame {
  background: linear-gradient(180deg, #ddd 0%, #b0a4c0 45%, #8a7a9a 100%);
  border: 3px solid #2a0845;
  border-radius: 26px 26px 14px 14px;
  padding: 16px;
  box-shadow:
    0 0 0 2px rgba(255,46,197,0.7),
    0 0 40px rgba(255,0,110,0.5),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 -2px 0 rgba(0,0,0,0.3);
  position: relative;
}
.m-frame::after {
  content:""; position: absolute;
  bottom: 8px; right: 22px;
  width: 30px; height: 8px;
  background: linear-gradient(90deg, #ff006e 0%, #00e5ff 50%, #b967ff 100%);
  border-radius: 4px;
}
.m-frame::before {
  content:"NIGHTDRIVE/86"; position: absolute;
  top: 6px; right: 22px;
  font-family: var(--f-title);
  font-size: 10px;
  color: #2a0845;
  letter-spacing: 0.14em;
}
.m-top {
  height: 28px;
  background: #05000e;
  border: 1px solid #1a0036;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.m-dots { display: flex; gap: 6px; }
.m-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #000;
}
.m-dots i:nth-child(1) { background: #ff006e; }
.m-dots i:nth-child(2) { background: #fffb96; }
.m-dots i:nth-child(3) { background: #05ffa1; }
.m-addr {
  flex: 1;
  text-align: center;
  color: var(--pink);
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.m-meta { color: var(--yellow); }
.m-crt {
  background: #05000e;
  border: 1px solid #1a0036;
  position: relative;
  overflow: hidden;
}
.desktop {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(185, 103, 255, 0.3), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 229, 255, 0.25), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 0, 110, 0.4), transparent 60%),
    linear-gradient(180deg, #1a0036 0%, #05000e 100%);
}
.dsk-wall {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 120%, rgba(255, 156, 26, 0.4), transparent 40%);
  opacity: 0.6;
}
.dsk-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 98%, rgba(255,0,110,0.25) 98%),
    linear-gradient(0deg, transparent 98%, rgba(0,229,255,0.18) 98%);
  background-size: 40px 40px;
  opacity: 0.8;
  mask-image: linear-gradient(180deg, transparent 30%, black 80%);
  animation: gridScroll 12s linear infinite;
}
@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

/* Desktop icons (grid on left) */
.dsk-icons {
  position: absolute;
  top: 16px; left: 16px;
  display: grid;
  grid-template-columns: repeat(2, 86px);
  gap: 12px;
  z-index: 2;
}
.d-icon {
  text-align: center;
  padding: 8px 4px;
  cursor: none;
  position: relative;
  transition: transform .15s;
}
.d-icon:hover { transform: translate(-1px, -1px); }
.d-icon:hover::before {
  content:""; position: absolute; inset: 0;
  border: 1px dashed var(--cyan);
}
.di-img {
  width: 56px; height: 56px;
  margin: 0 auto 6px;
  background: #fff;
  border: 2px solid #2a0845;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3), inset 2px 2px 0 rgba(255,255,255,0.6);
  display: grid; place-items: center;
  font-size: 28px;
  color: #2a0845;
}
.di-music   { background: linear-gradient(135deg, #ff2ec5, #b967ff); color: #fff; }
.di-term    { background: #000; color: var(--teal); font-family: var(--f-mono); }
.di-statue  { background: linear-gradient(135deg, #fffb96, #ff9c1a); }
.di-note    { background: #fff; }
.di-radar   { background: radial-gradient(circle, #05ffa1, #003a1a); color: #fff; }
.di-chat    { background: linear-gradient(135deg, #00e5ff, #0a0025); color: #fff; }
.di-lbl {
  font-size: 11px;
  color: var(--white);
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 0 #000;
}

/* Desktop widget (clock) */
.dsk-widget {
  position: absolute;
  top: 16px; right: 16px;
  padding: 12px 20px;
  background: rgba(5, 0, 14, 0.8);
  border: 1px solid var(--pink);
  text-align: right;
  font-family: var(--f-mono);
  color: var(--yellow);
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}
.dw-time { font-size: 38px; line-height: 1; text-shadow: 0 0 8px var(--yellow); }
.dw-date { font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; margin-top: 4px; }
.dw-jp   { font-family: var(--f-jp); font-size: 14px; color: var(--pink); margin-top: 2px; }

/* ============================================================
   DESKTOP WINDOWS (draggable)
   ============================================================ */
.dsk-windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.win {
  position: absolute;
  pointer-events: auto;
  background: linear-gradient(180deg, #c5b5d8 0%, #a08ab5 100%);
  border: 2px solid #2a0845;
  box-shadow:
    2px 2px 0 #000,
    0 0 20px rgba(255, 46, 197, 0.4),
    inset 1px 1px 0 rgba(255, 255, 255, 0.6);
  min-width: 280px;
  user-select: none;
  font-family: var(--f-mono);
  color: #05000e;
}
.win.min { display: none; }
.win-head {
  height: 24px;
  background: linear-gradient(90deg, #ff006e 0%, #b967ff 50%, #00e5ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--f-title);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: move;
  text-shadow: 1px 1px 0 #000;
}
.win-head .wt { flex: 1; padding-left: 4px; }
.win-head .wb {
  width: 18px; height: 16px;
  background: #c5b5d8;
  border: 1px solid #2a0845;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.7), inset -1px -1px 0 rgba(0,0,0,0.4);
  color: #000;
  display: grid; place-items: center;
  font-size: 11px;
  margin-left: 3px;
  cursor: none;
  text-shadow: none;
  font-family: var(--f-mono);
}
.win-body {
  padding: 12px;
  background: #1a0025;
  color: var(--cyan);
  min-height: 100px;
  max-height: 500px;
  overflow: auto;
  font-size: 16px;
  position: relative;
}
.win-body::-webkit-scrollbar { width: 12px; }
.win-body::-webkit-scrollbar-track {
  background: #2a0845;
}
.win-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff006e, #b967ff);
  border: 1px solid #000;
}

/* Terminal window */
.win-term .win-body {
  background: #000;
  color: var(--teal);
  font-size: 16px;
  padding: 10px;
  text-shadow: 0 0 4px var(--teal);
}
.term-out { white-space: pre-wrap; margin: 0; }
.term-out .prompt { color: var(--pink); }
.term-out .cmd { color: var(--cyan); }
.term-out .ok { color: var(--teal); }
.term-out .err { color: var(--hot); }
.term-out .yl { color: var(--yellow); }
.term-input-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.term-input-row .tp { color: var(--pink); }
.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--teal);
  font: inherit;
  text-shadow: 0 0 4px var(--teal);
  caret-color: var(--teal);
}

/* Music window */
.win-music .win-body {
  background: linear-gradient(180deg, #1a0036 0%, #05000e 100%);
  width: 300px;
}
.mw-art {
  width: 100%; height: 130px;
  background:
    radial-gradient(circle at 50% 70%, #ff9c1a 0%, #ff006e 30%, transparent 60%),
    linear-gradient(180deg, #1a0036 0%, #2a0845 60%, #05000e 100%);
  border: 1px solid var(--hot);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.mw-art::before {
  content:""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background-image:
    linear-gradient(90deg, transparent 98%, #ff006e 98%),
    linear-gradient(0deg, transparent 98%, #00e5ff 98%);
  background-size: 14px 14px;
  transform: perspective(80px) rotateX(55deg);
  transform-origin: bottom;
}
.mw-art .mwa-title {
  position: absolute;
  left: 0; right: 0; top: 16px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 6px var(--hot), 2px 0 0 var(--cyan);
  letter-spacing: 0.1em;
}
.mw-title {
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 2px;
  text-shadow: 0 0 4px var(--yellow);
}
.mw-artist { font-size: 12px; color: var(--pink); margin-bottom: 10px; }
.mw-bar {
  height: 8px;
  background: #2a0845;
  border: 1px solid var(--hot);
  overflow: hidden;
}
.mw-bar i {
  display: block;
  height: 100%;
  width: 42%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 3px, var(--pink) 3px 6px);
}
.mw-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--cyan); margin-top: 4px; }
.mw-btns {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.mw-btns button {
  width: 34px; height: 26px;
  background: #c5b5d8;
  border: 1px solid #2a0845;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.7), inset -1px -1px 0 rgba(0,0,0,0.4);
  color: #000;
  font-size: 12px;
  cursor: none;
}

/* Statue window */
.win-statue .win-body { padding: 0; background: #0a0015; }
.sw-frame {
  position: relative;
  width: 320px;
  height: 360px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(185, 103, 255, 0.5), transparent 60%),
    linear-gradient(180deg, #1a0036 0%, #05000e 100%);
}
.sw-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 95%, rgba(255,0,110,0.2) 95%),
    linear-gradient(0deg, transparent 95%, rgba(0,229,255,0.15) 95%);
  background-size: 30px 30px;
}
/* CSS Greek bust */
.sw-bust {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -48%);
  width: 180px; height: 260px;
}
.sw-bust .head {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 90px; height: 120px;
  background: linear-gradient(135deg, #ffe0f0 0%, #f0c0d5 40%, #a080a0 100%);
  border-radius: 45% 45% 40% 40% / 60% 60% 40% 40%;
  box-shadow:
    inset 8px 10px 22px rgba(255,255,255,0.35),
    inset -10px -10px 26px rgba(50, 0, 50, 0.45),
    0 0 30px rgba(255, 0, 110, 0.4);
  filter: hue-rotate(0deg);
  animation: bustGlow 4s ease-in-out infinite;
}
.sw-bust .head::before {
  content:""; position: absolute;
  left: 18px; top: 46px;
  width: 14px; height: 4px;
  background: #5a2a5a;
  border-radius: 50%;
  box-shadow: 30px 0 0 #5a2a5a;
}
.sw-bust .head::after {
  content:""; position: absolute;
  left: 38px; top: 72px;
  width: 14px; height: 6px;
  border: 1px solid #5a2a5a;
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.sw-bust .neck {
  position: absolute;
  left: 50%; top: 110px;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ffe0f0, #a080a0);
  border-radius: 0 0 20% 20%;
}
.sw-bust .body {
  position: absolute;
  left: 50%; top: 140px;
  transform: translateX(-50%);
  width: 160px; height: 120px;
  background: linear-gradient(135deg, #ffe0f0 0%, #d090b0 50%, #704070 100%);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}
@keyframes bustGlow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(40deg); }
}
.sw-info {
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  font-size: 11px;
  color: var(--cyan);
  display: flex;
  justify-content: space-between;
}

/* Note window */
.win-note .win-body {
  background: #fff8dc;
  color: #2a0845;
  font-family: var(--f-mono);
  font-size: 16px;
  width: 320px;
  padding: 14px;
  text-shadow: none;
}
.win-note .win-body::-webkit-scrollbar-thumb { background: #2a0845; }
.nt-head {
  border-bottom: 1px dashed #2a0845;
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-weight: 700;
}
.nt-body { white-space: pre-wrap; line-height: 1.3; }

/* Radar window */
.win-radar .win-body {
  background: #000;
  padding: 8px;
  width: 280px;
}
.rd-frame {
  width: 260px; height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #001a0a 0%, #000 75%);
  border: 2px solid var(--teal);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 24px rgba(5, 255, 161, 0.4), inset 0 0 40px rgba(5, 255, 161, 0.15);
}
.rd-frame::before {
  content:""; position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle, transparent 0 30px, rgba(5,255,161,0.25) 30px 31px),
    linear-gradient(90deg, transparent 49.5%, rgba(5,255,161,0.3) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(5,255,161,0.3) 49.5% 50.5%, transparent 50.5%);
}
.rd-sweep {
  position: absolute;
  left: 50%; top: 50%;
  width: 50%; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform-origin: left center;
  animation: sweep 4s linear infinite;
  box-shadow: 0 0 6px var(--teal);
}
.rd-sweep::after {
  content:"";
  position: absolute;
  left: 0; top: -100px;
  width: 50%; height: 200px;
  background: conic-gradient(from 90deg, rgba(5,255,161,0.35), transparent 30%);
  transform-origin: 0 100px;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.rd-blip {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: blipPulse 2s infinite;
}
.rd-blip.b1 { left: 40%; top: 30%; animation-delay: 0s; }
.rd-blip.b2 { left: 65%; top: 55%; animation-delay: 0.6s; }
.rd-blip.b3 { left: 30%; top: 68%; animation-delay: 1.2s; }
@keyframes blipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.6); }
}

/* Chat window */
.win-chat .win-body {
  background: #0a0025;
  width: 330px;
  padding: 10px;
}
.ch-row { margin-bottom: 8px; display: flex; gap: 6px; }
.ch-name { color: var(--hot); min-width: 80px; }
.ch-name.me { color: var(--yellow); }
.ch-name.b { color: var(--cyan); }
.ch-text { color: var(--pink); }

/* Taskbar */
.m-task {
  height: 32px;
  background: linear-gradient(180deg, #c5b5d8 0%, #8a7a9a 100%);
  border-top: 2px solid #2a0845;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
}
.mt-start {
  padding: 3px 12px;
  background: linear-gradient(180deg, #ff006e 0%, #b967ff 100%);
  border: 1px solid #2a0845;
  color: #fff;
  font-family: var(--f-title);
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.6), inset -1px -1px 0 rgba(0,0,0,0.4);
  text-shadow: 1px 1px 0 #000;
}
.mt-items {
  flex: 1;
  display: flex;
  gap: 3px;
  margin-left: 6px;
  overflow: hidden;
}
.mt-item {
  padding: 3px 10px;
  background: #c5b5d8;
  border: 1px solid #2a0845;
  font-size: 11px;
  color: #05000e;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.7), inset -1px -1px 0 rgba(0,0,0,0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: none;
}
.mt-item.active {
  background: #a090b5;
  box-shadow: inset -1px -1px 0 rgba(255,255,255,0.5), inset 1px 1px 0 rgba(0,0,0,0.3);
}
.mt-tray {
  display: flex;
  gap: 6px;
  padding: 0 6px;
  align-items: center;
  background: #a090b5;
  border: 1px inset #2a0845;
  height: 100%;
  margin-left: auto;
}
.tr-i { font-size: 13px; color: #2a0845; }
.tr-clock {
  font-family: var(--f-mono);
  font-size: 12px;
  color: #05000e;
  letter-spacing: 0.08em;
}
.m-base {
  height: 14px;
  background: linear-gradient(180deg, #8a7a9a 0%, #5a4a6a 100%);
  border: 2px solid #2a0845;
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin: 0 40px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.4);
}

/* ============================================================
   MIX TAPE
   ============================================================ */
.mix-section {
  padding-bottom: 120px;
  position: relative;
}
.mix-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 40px;
  align-items: center;
}

/* Cassette */
.cassette {
  perspective: 800px;
}
.cas-body {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #0a0025 0%, #1a0036 50%, #05000e 100%);
  border: 3px solid var(--pink);
  border-radius: 4px;
  padding: 18px;
  box-shadow:
    0 0 30px rgba(255, 46, 197, 0.4),
    0 0 60px rgba(255, 0, 110, 0.2),
    inset 0 0 40px rgba(255, 46, 197, 0.1);
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.5s;
}
.cas-body:hover { transform: rotate(0); }
.cas-label {
  padding: 10px 14px;
  border: 2px solid var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  margin-bottom: 12px;
  font-family: var(--f-mono);
  position: relative;
}
.cas-label::before {
  content:""; position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--hot) 0 10px, var(--cyan) 10px 20px);
}
.cas-brand {
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.cas-type {
  font-size: 10px;
  color: var(--pink);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.cas-name {
  font-family: var(--f-title);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px var(--hot);
  margin-bottom: 4px;
}
.cas-meta {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.14em;
}
.cas-window {
  background: #05000e;
  border: 2px solid var(--hot);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  min-height: 100px;
  box-shadow: inset 0 0 20px rgba(255, 0, 110, 0.3);
}
.reel {
  width: 60px; height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1a0036 0%, #05000e 60%),
    var(--pink);
  border: 2px solid var(--pink);
  position: relative;
  box-shadow: 0 0 12px rgba(255, 46, 197, 0.6), inset 0 0 10px rgba(0,0,0,0.8);
  animation: reelSpin 4s linear infinite paused;
}
.reel.spin { animation-play-state: running; }
.reel-hole {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #05000e;
}
.reel-hole::before, .reel-hole::after {
  content:"";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--cyan);
}
.reel-hole::before {
  width: 22px; height: 2px;
  transform: translate(-50%, -50%);
}
.reel-hole::after {
  width: 2px; height: 22px;
  transform: translate(-50%, -50%);
}
@keyframes reelSpin { to { transform: rotate(360deg); } }
.tape {
  position: absolute;
  left: 20%; right: 20%;
  top: 50%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
  transform: translateY(-50%);
  opacity: 0.5;
}
.cas-base {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  padding: 0 20px;
}
.cas-base i {
  width: 12px; height: 8px;
  background: #2a0845;
  border: 1px solid var(--pink);
}

/* Player */
.player {
  background: linear-gradient(180deg, #1a0036 0%, #05000e 100%);
  border: 2px solid var(--hot);
  padding: 20px;
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
  position: relative;
}
.player::before {
  content:""; position: absolute;
  top: -2px; left: 20px;
  width: 80px; height: 4px;
  background: var(--hot);
}
.player-screen {
  background: #000;
  border: 1px solid var(--teal);
  height: 140px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(5, 255, 161, 0.2);
}
#vizCanvas { width: 100%; height: 100%; }
.screen-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0 2px, rgba(0,0,0,0.3) 3px 4px);
  pointer-events: none;
}
.screen-tag {
  position: absolute;
  top: 8px; left: 10px;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-shadow: 0 0 4px var(--teal);
}
.player-info { margin-bottom: 16px; }
.pi-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-mono);
  margin-bottom: 8px;
}
.pi-no {
  font-size: 14px;
  color: var(--hot);
  border: 1px solid var(--hot);
  padding: 0 6px;
}
.pi-name {
  flex: 1;
  font-family: var(--f-title);
  font-size: 18px;
  color: var(--yellow);
  letter-spacing: 0.14em;
  text-shadow: 0 0 6px var(--yellow);
}
.pi-len { font-size: 14px; color: var(--cyan); }
.pi-bar {
  height: 10px;
  background: #1a0036;
  border: 1px solid var(--hot);
  position: relative;
  overflow: hidden;
}
.pi-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--hot) 0 4px, var(--yellow) 4px 8px);
  transition: width 0.1s linear;
}
.pi-peg {
  position: absolute;
  top: -2px;
  left: 0;
  width: 2px;
  height: 14px;
  background: var(--white);
  box-shadow: 0 0 4px var(--white);
}
.pi-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: var(--cyan);
}
.player-ctrl {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.pbtn {
  width: 42px; height: 38px;
  background: linear-gradient(180deg, #c5b5d8, #8a7a9a);
  border: 2px solid #05000e;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.8), inset -1px -1px 0 rgba(0,0,0,0.4), 0 0 12px rgba(255,46,197,0.3);
  color: #05000e;
  font-size: 14px;
  font-weight: 700;
  cursor: none;
  transition: transform 0.05s;
  font-family: var(--f-title);
}
.pbtn:active { transform: translate(1px, 1px); box-shadow: inset -1px -1px 0 rgba(255,255,255,0.5), inset 1px 1px 0 rgba(0,0,0,0.3); }
.pbig {
  width: 64px;
  background: linear-gradient(180deg, #ff006e, #b967ff);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.player-list {
  border-top: 1px dashed var(--pink);
  padding-top: 12px;
}
.pl-head {
  font-size: 12px;
  color: var(--cyan);
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.pl-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--pink);
  border-left: 2px solid transparent;
  transition: all 0.2s;
  cursor: none;
}
.pl-row:hover { background: rgba(255, 46, 197, 0.1); border-left-color: var(--hot); }
.pl-row.active { background: rgba(255, 0, 110, 0.2); border-left-color: var(--yellow); color: var(--yellow); }
.pl-row span:first-child { color: var(--hot); }
.pl-row span:last-child { color: var(--cyan); }

/* ============================================================
   GALLERY
   ============================================================ */
.gal-section { padding-bottom: 120px; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 40px;
}
.g {
  position: relative;
  background: linear-gradient(180deg, #1a0036 0%, #05000e 100%);
  border: 2px solid var(--pink);
  padding: 24px 24px 16px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transition: all 0.4s;
  cursor: none;
}
.g::before {
  content:""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,46,197,0.04) 3px 4px);
  pointer-events: none;
}
.g:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 40px rgba(255, 251, 150, 0.4);
  transform: translateY(-4px);
}
.g-art {
  position: absolute;
  inset: 40px 40px 80px;
  display: grid;
  place-items: center;
}
.g-no {
  position: absolute;
  top: 12px; left: 16px;
  font-family: var(--f-title);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.18em;
}
.g-name {
  position: absolute;
  left: 16px; right: 16px; bottom: 30px;
  font-family: var(--f-title);
  font-size: 16px;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px var(--yellow);
}
.g-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 12px;
  font-size: 12px;
  color: var(--pink);
  letter-spacing: 0.15em;
}

/* Gallery art: statue */
.g-statue {
  background: radial-gradient(circle at 50% 30%, rgba(255, 200, 240, 0.3), transparent 60%);
}
.g-statue::before {
  content:""; position: absolute;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #ffe0f0, #b070a0 60%, #503050);
  border-radius: 45% 45% 40% 40% / 55% 55% 45% 45%;
  box-shadow: inset 8px 8px 20px rgba(255,255,255,0.4), inset -8px -10px 20px rgba(50,0,50,0.4), 0 0 30px rgba(255, 0, 110, 0.4);
}
.g-statue::after {
  content:""; position: absolute;
  left: 50%; top: 72%;
  transform: translate(-50%, 0);
  width: 150px; height: 90px;
  background: linear-gradient(135deg, #ffe0f0, #704070);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Gallery art: palm */
.g-palm { }
.palm-trunk {
  position: absolute;
  left: 50%; bottom: 10%;
  transform: translateX(-50%);
  width: 8px; height: 55%;
  background: linear-gradient(90deg, #2a0845, var(--hot), #2a0845);
  border: 1px solid var(--pink);
}
.palm-leaf {
  position: absolute;
  left: 50%; top: 20%;
  width: 60px; height: 14px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border: 1px solid var(--teal);
  border-radius: 0 50% 50% 50%;
  transform-origin: left center;
}
.pl-1 { transform: translate(-4px, 0) rotate(-20deg); }
.pl-2 { transform: translate(-4px, 0) rotate(-60deg); }
.pl-3 { transform: translate(-4px, 0) rotate(20deg); }
.pl-4 { transform: translate(-4px, 0) rotate(60deg); }
.pl-5 { transform: translate(-4px, 0) rotate(180deg); background: linear-gradient(-90deg, var(--teal), transparent); border-radius: 50% 0 50% 50%; }

/* Gallery art: grid/highway */
.g-grid {
  background: radial-gradient(ellipse at 50% 80%, #2a0845, #05000e);
  overflow: hidden;
}
.gg-sun {
  position: absolute;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #fffb96 0%, #ff9c1a 40%, #ff006e 100%);
  box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
  mask-image: repeating-linear-gradient(0deg, black 0 8px, transparent 8px 10px);
}
.gg-grid {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background:
    linear-gradient(90deg, transparent 95%, var(--hot) 95%),
    linear-gradient(0deg, transparent 95%, var(--cyan) 95%);
  background-size: 20px 20px;
  transform: perspective(120px) rotateX(55deg);
  transform-origin: bottom;
}

/* Gallery art: dolphin */
.g-dolphin { background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.15), transparent); }
.dol-body {
  position: absolute;
  left: 20%; top: 40%;
  width: 120px; height: 40px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 50% 70% 0 50% / 50% 100% 0 50%;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
.dol-fin {
  position: absolute;
  left: 45%; top: 28%;
  width: 20px; height: 28px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  clip-path: polygon(0 100%, 100% 100%, 100% 40%);
}
.dol-tail {
  position: absolute;
  left: 70%; top: 38%;
  width: 30px; height: 34px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  clip-path: polygon(0 50%, 100% 0, 80% 50%, 100% 100%);
}

/* Gallery art: column */
.gc-top, .gc-shaft, .gc-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #fffb96, #ff9c1a 40%, #fffb96 60%, #c07a00);
}
.gc-top {
  top: 15%;
  width: 90px; height: 14px;
}
.gc-shaft {
  top: calc(15% + 14px);
  width: 60px; height: 55%;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,0.15) 8px 10px);
}
.gc-base {
  bottom: 18%;
  width: 100px; height: 16px;
}

/* Gallery art: rose */
.g-rose { background: radial-gradient(circle at 50% 50%, #1a0036, #05000e); }
.rose-grid {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 25%, rgba(5,255,161,0.06) 26%, transparent 28%, rgba(5,255,161,0.06) 50%, transparent 52%, rgba(5,255,161,0.06) 75%, transparent 77%),
    repeating-conic-gradient(from 0deg, transparent 0 29deg, var(--teal) 29deg 30deg);
  box-shadow: 0 0 24px rgba(5, 255, 161, 0.3);
  animation: roseRotate 20s linear infinite;
}
@keyframes roseRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ============================================================
   SIGNAL
   ============================================================ */
.sig-section { padding-bottom: 100px; }
.sig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 40px;
}
.sig-card {
  background: linear-gradient(180deg, #1a0036 0%, #05000e 100%);
  border: 2px solid var(--cyan);
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}
.sig-card.sc-wide { grid-column: span 3; }
.sc-head {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #05000e;
  padding: 6px 14px;
  font-family: var(--f-title);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.sc-body { padding: 18px; }
.sc-track {
  font-family: var(--f-title);
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px var(--yellow);
}
.sc-artist {
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.sc-waves {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
}
.sc-waves i {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), var(--hot));
  animation: waveBounce 1s ease-in-out infinite;
}
.sc-waves i:nth-child(2){ animation-delay:.1s; }
.sc-waves i:nth-child(3){ animation-delay:.2s; }
.sc-waves i:nth-child(4){ animation-delay:.3s; }
.sc-waves i:nth-child(5){ animation-delay:.4s; }
.sc-waves i:nth-child(6){ animation-delay:.5s; }
.sc-waves i:nth-child(7){ animation-delay:.6s; }
.sc-waves i:nth-child(8){ animation-delay:.7s; }
.sc-waves i:nth-child(9){ animation-delay:.8s; }
.sc-waves i:nth-child(10){ animation-delay:.9s; }
@keyframes waveBounce {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}
.wx-temp {
  font-family: var(--f-display);
  font-size: 64px;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 0 14px var(--yellow), 3px 0 0 var(--cyan);
}
.wx-cond {
  font-family: var(--f-title);
  font-size: 16px;
  color: var(--hot);
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.wx-sub {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 14px;
  font-family: var(--f-jp);
}
.wx-fc {
  display: flex;
  gap: 12px;
  border-top: 1px dashed var(--cyan);
  padding-top: 10px;
}
.wx-fc-item {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--pink);
}
.wx-fc-item span:first-child { display: block; color: var(--gray); }
.wx-fc-item span:last-child {
  display: block;
  font-size: 16px;
  color: var(--yellow);
  font-family: var(--f-title);
}
.stat {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
  color: var(--pink);
}
.stat:last-child { border-bottom: none; }
.stat span:last-child { color: var(--cyan); }
.stat .ok { color: var(--teal); text-shadow: 0 0 4px var(--teal); }
.sc-4 .sc-body { padding: 0; }
#telemCanvas { width: 100%; height: 180px; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  padding: 60px 40px 20px;
  border-top: 1px solid var(--hot);
  background: linear-gradient(180deg, #0a0025 0%, #000 100%);
  position: relative;
}
.ft::before {
  content:""; position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--hot) 0 40px, var(--cyan) 40px 80px, var(--yellow) 80px 120px);
}
.ft-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.ft-h {
  font-family: var(--f-title);
  font-size: 14px;
  color: var(--yellow);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  text-shadow: 0 0 6px var(--yellow);
}
.ft-l {
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.ft-thanks {
  text-align: center;
  font-family: var(--f-jp);
  font-size: clamp(40px, 6vw, 80px);
  color: var(--hot);
  margin: 60px 0 30px;
  text-shadow: 0 0 20px var(--hot), 4px 4px 0 var(--cyan), -4px -4px 0 var(--yellow);
  letter-spacing: 0.05em;
}
.ft-bot {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px dashed var(--pink);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.15em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mnav { grid-template-columns: 1fr; gap: 10px; height: auto; padding: 10px; }
  .mnav-links { flex-wrap: wrap; gap: 14px; }
  .hero-panels { grid-template-columns: repeat(2, 1fr); }
  .mix-layout { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .sig-grid { grid-template-columns: 1fr; }
  .sig-card.sc-wide { grid-column: span 1; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
