/* Splxce Home — y2k2 denser: ticker, tray, Winamp, CRT, stickers */
:root {
  --void: #03061a;
  --cobalt: #0a1aff;
  --cobalt-deep: #0610a8;
  --acid: #b8ff00;
  --acid-hot: #e6ff66;
  --ink: #f4ffe8;
  --muted: #9bb0ff;
  --warn: #ff3b1f;
  --yellow: #ffe600;
  --panel: rgba(6, 12, 60, 0.82);
  --line: rgba(184, 255, 0, 0.55);
  --font: "Arial Narrow", "Helvetica Neue Condensed", Impact, Haettenschweiler, sans-serif;
  --mono: "Lucida Console", "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 38%, rgba(10, 26, 255, 0.62) 0%, transparent 55%),
    radial-gradient(ellipse 48% 42% at 88% 72%, rgba(184, 255, 0, 0.14) 0%, transparent 50%),
    linear-gradient(160deg, #020414 0%, #0a1aff 42%, #03061a 100%);
}

.bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(184,255,0,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,0,0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(600px) rotateX(58deg) translateY(-12%);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
}
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
}
.scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  opacity: 0.4;
  animation: scanDrift 7s linear infinite;
}
.bloom {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.6);
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.55) 100%);
}
.tape {
  position: absolute;
  top: 38%;
  left: -8%;
  width: 40%;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 18px,
    #111 18px 36px
  );
  transform: rotate(-14deg);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  border: 1px solid rgba(0,0,0,0.4);
}

.frame { position: absolute; inset: 8px; z-index: 1; pointer-events: none; }
.frame .c {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--acid);
  opacity: 0.7;
}
.frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 1.55rem;
  line-height: 1.55rem;
}
.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.ticker-track span { padding-right: 2rem; }

.topbar, .dock, .workspace { position: relative; z-index: 2; }
.topbar, .dock {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar { justify-content: flex-start; border-bottom: 1px solid rgba(184,255,0,0.25); flex-wrap: wrap; }
.dock { justify-content: space-between; border-top: 1px solid rgba(184,255,0,0.25); color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  color: var(--acid);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.45);
}
.chip.dim { color: var(--muted); border-color: rgba(155,176,255,0.35); }
.chip.right { margin-left: auto; background: var(--acid); color: #0610a8; border-color: var(--acid); font-weight: 800; }
.chip.clock { color: var(--yellow); }
.chip.led i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: blink 1.4s step-end infinite;
}

.workspace {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  height: calc(100dvh - 7.2rem);
  height: calc(100vh - 7.2rem);
  padding: 0.75rem 0.85rem;
  min-height: 0;
}

.tray {
  min-height: 0;
  overflow: hidden;
}
.tray-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.45rem;
  overflow: auto;
  position: relative;
  z-index: 1;
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.2rem;
  border: 1px solid rgba(184,255,0,0.3);
  background: rgba(0,0,0,0.35);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background 100ms ease, color 100ms ease, transform 100ms ease;
}
.app .ico {
  font-size: 0.95rem;
  color: var(--acid);
  line-height: 1;
}
.app:hover, .app:focus-visible {
  outline: none;
  background: var(--acid);
  color: #0610a8;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 #000;
}
.app:hover .ico, .app:focus-visible .ico { color: #0610a8; }

.layout {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 0.75rem;
  min-height: 0;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--acid);
  box-shadow:
    6px 6px 0 rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-18deg, transparent 0 10px, rgba(255,255,255,0.018) 10px 11px);
  pointer-events: none;
}
.panel-chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0610a8;
  background: linear-gradient(90deg, var(--acid), var(--acid-hot));
  border-bottom: 2px solid #0610a8;
  position: relative;
  z-index: 1;
}
.panel-chrome .dots::before { content: "● ● ●"; letter-spacing: 0.2em; }

.hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.9rem, 3vw, 1.8rem);
  overflow: hidden;
}
.path {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.55rem;
  opacity: 0.85;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  animation: flicker 4.5s step-end infinite;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
  font-size: clamp(2.8rem, 8.5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--acid);
  text-shadow:
    4px 4px 0 #0610a8,
    -1px 0 0 #ff3b1f,
    1px 0 0 #00e5ff,
    0 0 24px rgba(184,255,0,0.35);
  mix-blend-mode: screen;
  position: relative;
}
.wm-glitch { position: relative; display: inline-block; }
.atom {
  display: inline-flex;
  width: 0.95em; height: 0.95em;
  margin: 0 0.02em;
  filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.9));
}
.atom svg { width: 100%; height: 100%; overflow: visible; display: block; }
.atom ellipse { fill: none; stroke: #ff8a1a; stroke-width: 2.6; }
.atom .ob ellipse { stroke: #ffd27a; }
.atom .oa { transform-origin: 40px 40px; animation: spin 18s linear infinite; }
.atom .ob { transform-origin: 40px 40px; animation: spin 12s linear infinite reverse; }
.atom .oc { transform-origin: 40px 40px; animation: spin 15s linear infinite; }
.atom .n { fill: #ffd27a; stroke: #ff8a1a; stroke-width: 1.2; }
.atom .nh { fill: #fff4cc; }
.sub {
  margin-top: 0.3rem;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  letter-spacing: 0.55em;
  color: var(--ink);
  text-indent: 0.55em;
  font-weight: 800;
}
.tag {
  margin-top: 0.75rem;
  max-width: 30rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  text-transform: lowercase;
}

.player {
  margin-top: 1.1rem;
  border: 2px solid rgba(184,255,0,0.45);
  background: rgba(0,0,0,0.45);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  max-width: 28rem;
}
.player-chrome {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #1a2200, #3a4a00);
  color: var(--acid-hot);
  border-bottom: 1px solid rgba(184,255,0,0.35);
}
.player-title { color: var(--yellow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem 0.65rem;
  align-items: end;
}
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
}
.eq i {
  display: block;
  width: 7px;
  background: linear-gradient(180deg, #fff 0%, var(--acid-hot) 25%, var(--acid) 55%, #ff8a1a 100%);
  box-shadow: 0 0 6px rgba(184,255,0,0.4);
  transform-origin: bottom;
  animation: eq 1.05s ease-in-out infinite;
}
.eq i:nth-child(odd) { animation-duration: 0.85s; }
.eq i:nth-child(3n) { animation-duration: 1.25s; }
.eq i:nth-child(5n) { animation-duration: 0.7s; }
.eq i:nth-child(1){height:35%} .eq i:nth-child(2){height:68%} .eq i:nth-child(3){height:50%}
.eq i:nth-child(4){height:88%} .eq i:nth-child(5){height:42%} .eq i:nth-child(6){height:72%}
.eq i:nth-child(7){height:58%} .eq i:nth-child(8){height:95%} .eq i:nth-child(9){height:48%}
.eq i:nth-child(10){height:78%} .eq i:nth-child(11){height:62%} .eq i:nth-child(12){height:84%}
.eq i:nth-child(13){height:40%} .eq i:nth-child(14){height:70%} .eq i:nth-child(15){height:55%}
.eq i:nth-child(16){height:90%}

.meters {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.4rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.meters b { color: var(--acid); }
.bar {
  height: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(184,255,0,0.35);
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--acid));
}
.bar.hot span { background: linear-gradient(90deg, var(--warn), var(--yellow)); }

.bootlog {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: rgba(184,255,0,0.7);
  max-width: 26rem;
}
.bootlog .blink { animation: blink 1s step-end infinite; color: var(--acid); }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.45rem;
  border: 2px solid #000;
  background: var(--yellow);
  color: #000;
  box-shadow: 3px 3px 0 #000;
  transform: rotate(-8deg);
}
.sticker.star { top: 12%; right: 6%; background: var(--acid); font-size: 1.05rem; transform: rotate(12deg); }
.sticker.warn { bottom: 22%; left: 5%; background: var(--warn); color: #fff; transform: rotate(6deg); }
.sticker.cursor { bottom: 34%; right: 10%; background: #fff; transform: rotate(-2deg); }
.sticker.new { top: 28%; right: 18%; background: #00e5ff; transform: rotate(-14deg); }
.sticker.yr { top: 8%; left: 42%; background: #fff; transform: rotate(8deg); font-size: 0.85rem; }
.sticker.diy { bottom: 12%; right: 28%; background: var(--acid-hot); transform: rotate(-18deg); }
.sticker.live { top: 48%; left: 58%; background: #111; color: var(--warn); border-color: var(--warn); transform: rotate(4deg); }
.sticker.cd { bottom: 8%; left: 36%; background: #ff8a1a; transform: rotate(16deg); }

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.7rem 0.4rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.12rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 2px solid rgba(184,255,0,0.35);
  background: rgba(0,0,0,0.35);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.item .idx {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.item .name {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--acid);
  line-height: 1;
}
.item .meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.item .arrow {
  grid-row: 1 / span 2;
  color: var(--yellow);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.item:hover, .item:focus-visible, .item.is-active {
  outline: none;
  background: var(--acid);
  border-color: #000;
  color: #0610a8;
  transform: translateX(6px);
  box-shadow: 4px 4px 0 #000;
}
.item:hover .name, .item:focus-visible .name, .item.is-active .name,
.item:hover .idx, .item:focus-visible .idx, .item.is-active .idx,
.item:hover .meta, .item:focus-visible .meta, .item.is-active .meta {
  color: #0610a8;
}
.item:hover .arrow, .item:focus-visible .arrow, .item.is-active .arrow {
  opacity: 1;
  transform: translateX(0);
  color: #0610a8;
}

.preview {
  margin: 0 0.7rem 0.35rem;
  border: 1px dashed rgba(184,255,0,0.35);
  background: rgba(0,0,0,0.28);
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
}
.preview-chrome {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.5rem;
  color: var(--yellow);
  border-bottom: 1px solid rgba(184,255,0,0.2);
}
.preview-body {
  padding: 0.55rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}
.preview-body strong {
  display: block;
  color: var(--acid);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.hint {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.75rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px dashed rgba(184,255,0,0.3);
}
.key {
  display: inline-block;
  padding: 0.08rem 0.3rem;
  border: 1px solid var(--line);
  color: var(--acid);
  background: rgba(0,0,0,0.35);
}

.status { display: inline-flex; align-items: center; gap: 0.4rem; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: blink 1.2s step-end infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.35; }
  94% { opacity: 1; }
  96% { opacity: 0.5; }
  97% { opacity: 1; }
}
@keyframes scanDrift {
  from { background-position: 0 0; }
  to { background-position: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .atom .oa, .atom .ob, .atom .oc, .eq i,
  .ticker-track, .scan, .kicker, .chip.led i, .pulse, .bootlog .blink {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; height: auto; }
  .tray { display: none; }
  .layout { grid-template-columns: 1fr; }
  body, .stage { overflow: auto; }
  .hide-sm { display: none !important; }
  .wordmark { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .sticker.live, .sticker.cd, .sticker.yr { display: none; }
  .bootlog { display: none; }
}
