/* Splxce Home — Y2K gamer + grunge + PSX menu (Pinterest vibe) */
: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.78);
  --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; }
.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 40%, rgba(10, 26, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(184, 255, 0, 0.12) 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.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,0,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(600px) rotateX(58deg) translateY(-12%);
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, 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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
}
.scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}
.bloom {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
}

.topbar, .dock, .layout { position: relative; z-index: 2; }
.topbar, .dock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar { justify-content: flex-start; border-bottom: 1px solid rgba(184,255,0,0.25); }
.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;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  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; }

.layout {
  height: calc(100dvh - 6rem);
  height: calc(100vh - 6rem);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1rem;
  padding: 1rem;
  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.015) 10px 11px);
  pointer-events: none;
}
.panel-chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  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(1.2rem, 4vw, 2.5rem);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  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,
    0 0 24px rgba(184,255,0,0.35);
  mix-blend-mode: screen;
}
.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.35rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.55em;
  color: var(--ink);
  text-indent: 0.55em;
  font-weight: 800;
}
.tag {
  margin-top: 1rem;
  max-width: 28rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-transform: lowercase;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-top: 1.6rem;
}
.eq i {
  display: block;
  width: 8px;
  background: linear-gradient(180deg, var(--acid-hot), var(--acid));
  box-shadow: 0 0 8px rgba(184,255,0,0.45);
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(odd) { animation-duration: 0.9s; }
.eq i:nth-child(3n) { animation-duration: 1.35s; }
.eq i:nth-child(1){height:40%} .eq i:nth-child(2){height:70%} .eq i:nth-child(3){height:55%}
.eq i:nth-child(4){height:90%} .eq i:nth-child(5){height:45%} .eq i:nth-child(6){height:75%}
.eq i:nth-child(7){height:60%} .eq i:nth-child(8){height:95%} .eq i:nth-child(9){height:50%}
.eq i:nth-child(10){height:80%} .eq i:nth-child(11){height:65%} .eq i:nth-child(12){height:85%}

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.5rem;
  border: 2px solid #000;
  background: var(--yellow);
  color: #000;
  box-shadow: 3px 3px 0 #000;
  transform: rotate(-8deg);
}
.sticker.star { top: 18%; right: 8%; background: var(--acid); font-size: 1.1rem; transform: rotate(12deg); }
.sticker.warn { bottom: 18%; left: 8%; background: var(--warn); color: #fff; transform: rotate(6deg); }
.sticker.cursor { bottom: 28%; right: 14%; background: #fff; transform: rotate(-2deg); }

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  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.75rem;
  color: var(--muted);
}
.item .name {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--acid);
  line-height: 1;
}
.item .meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  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;
}

.hint {
  position: relative;
  z-index: 1;
  padding: 0.65rem 0.9rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  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.1rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--acid);
  background: rgba(0,0,0,0.35);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .atom .oa, .atom .ob, .atom .oc, .eq i { animation: none !important; }
}

@media (max-width: 860px) {
  body, .stage { overflow: auto; }
  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100dvh - 6rem);
  }
  .hide-sm { display: none !important; }
  .wordmark { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .sticker.warn { display: none; }
}
