@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg: #0a0a0a;
  --pink: #ff2d95;
  --purple: #b829dd;
  --cyan: #00f0ff;
  --white: #f0f0ff;
  --muted: #606080;
  --heading: 'Orbitron', monospace;
  --body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body.is-nexus-brew {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* ── Rain canvas ── */
#rain-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

/* ── Header ── */
.nb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,.85);
  border-bottom: 1px solid rgba(0,240,255,.15);
  backdrop-filter: blur(8px);
}
.nb-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nb-brand {
  font-family: var(--heading);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,240,255,.5);
}
.nb-meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  gap: .6rem;
  align-items: center;
}
.sep { opacity: .4; }
.nb-labels { display: flex; gap: .35rem; flex-wrap: wrap; }
.label-tag {
  display: inline-block;
  padding: .18rem .55rem;
  border: 1px solid rgba(0,240,255,.3);
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, box-shadow .2s;
}
.label-tag:hover {
  background: rgba(0,240,255,.1);
  box-shadow: 0 0 8px rgba(0,240,255,.3);
}

/* ── Hero ── */
.nb-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1a0030 0%, #0a0a0a 70%);
}

.nb-hero-content {
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.nb-glitch-wrapper {
  position: relative;
  display: inline-block;
}

.nb-title {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow:
    0 0 20px rgba(255,45,149,.6),
    0 0 40px rgba(184,41,221,.3);
  position: relative;
}

.nb-title::before,
.nb-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  font-family: var(--heading);
  font-size: inherit;
  font-weight: inherit;
}
.nb-title::before {
  color: var(--cyan);
  animation: glitch-1 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.nb-title::after {
  color: var(--pink);
  animation: glitch-2 3.5s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: none; opacity: 0; }
  92% { transform: translate(-3px, -1px); opacity: .7; }
  94% { transform: translate(2px, 1px); opacity: .5; }
  96% { transform: none; opacity: 0; }
}
@keyframes glitch-2 {
  0%, 88%, 100% { transform: none; opacity: 0; }
  90% { transform: translate(3px, 2px); opacity: .7; }
  92% { transform: translate(-2px, -1px); opacity: .5; }
  94% { transform: none; opacity: 0; }
}

.nb-lead {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin: 1.5rem 0 3rem;
}

.nb-stat-strip {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nb-stat {
  text-align: center;
  position: relative;
}
.nb-stat::before {
  content: '';
  position: absolute;
  inset: -8px -12px;
  border: 1px solid rgba(0,240,255,.1);
  border-radius: 6px;
}
.nb-stat-n {
  display: block;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,240,255,.5);
  line-height: 1;
}
.nb-stat-l {
  display: block;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── Content ── */
.nb-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d001a 50%, #0a0a0a 100%);
  border-top: 1px solid rgba(184,41,221,.2);
}
.nb-content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.nb-section-header {
  margin-bottom: 2.5rem;
}
.nb-section-tag {
  display: inline-block;
  font-family: var(--heading);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255,45,149,.4);
  border: 1px solid rgba(255,45,149,.3);
  padding: .2rem .6rem;
  border-radius: 3px;
  margin-bottom: .8rem;
}
.nb-section-title {
  font-family: var(--heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 15px rgba(0,240,255,.3);
}

/* Names list */
.event-body { font-size: .9rem; line-height: 1.5; }
.nb-names ol {
  column-count: 5;
  column-gap: 1.5rem;
  counter-reset: none;
  color: rgba(200,200,240,.7);
  font-size: .78rem;
  line-height: 1.7;
}
.nb-names li { break-inside: avoid; }
.nb-names li:hover { color: var(--cyan); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nb-stat-strip { gap: 1.5rem; }
  .nb-names ol { column-count: 2; }
}
@media (max-width: 400px) {
  .nb-names ol { column-count: 1; }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}

/* ── Collection links ── */
nav.event-collections{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 1.5rem;border-top:1px solid rgba(128,128,128,.2);font-family:var(--font-head,sans-serif);font-size:.82rem}
nav.event-collections .ec-link{color:var(--pink,#ff2d95);text-decoration:none;opacity:.8;transition:opacity .2s}
nav.event-collections .ec-link:hover{opacity:1}
