/* ── Variables ── */
:root {
  --purple:  #7B2FFF;
  --blue:    #00C8FF;
  --bg:      #060608;
  --fg:      #F0EEFF;
  --dim:     rgba(240,238,255,0.3);
  --glow-p:  rgba(123,47,255,0.55);
  --glow-b:  rgba(0,200,255,0.45);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
}

/* ── 3D Canvas — always full-screen ── */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  cursor: grab;
}
#bg:active { cursor: grabbing; }

/* ── UI overlay ── */
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* ── Wordmark ── */
#wordmark {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Metal Mania', 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  animation: fade-in 1.2s ease forwards, lightning-strike 6s ease-in-out infinite 2s;
  text-shadow:
    0 0 4px #fff,
    0 0 12px #fff,
    0 0 28px var(--blue),
    0 0 55px var(--blue),
    0 0 95px var(--purple),
    0 0 130px var(--purple);
}

@keyframes lightning-strike {
  0%, 84%  {
    text-shadow:
      0 0 4px #fff,
      0 0 12px #fff,
      0 0 28px var(--blue),
      0 0 55px var(--blue),
      0 0 95px var(--purple),
      0 0 130px var(--purple);
    opacity: 1;
  }
  85% { opacity: 0.6; text-shadow: 0 0 2px #fff, 0 0 6px var(--blue); }
  86% {
    opacity: 1;
    text-shadow:
      0 0 8px #fff,
      0 0 25px #fff,
      0 0 55px var(--blue),
      0 0 100px var(--blue),
      0 0 160px var(--purple),
      0 0 220px var(--purple);
  }
  87% { opacity: 0.75; }
  88% { opacity: 1; }
  89% { opacity: 0.85; text-shadow: 0 0 2px #fff, 0 0 8px var(--blue); }
  90% {
    opacity: 1;
    text-shadow:
      0 0 6px #fff,
      0 0 18px #fff,
      0 0 40px var(--blue),
      0 0 80px var(--blue),
      0 0 120px var(--purple),
      0 0 160px var(--purple);
  }
  100% {
    text-shadow:
      0 0 4px #fff,
      0 0 12px #fff,
      0 0 28px var(--blue),
      0 0 55px var(--blue),
      0 0 95px var(--purple),
      0 0 130px var(--purple);
    opacity: 1;
  }
}

/* ── Corner links ── */
.corner-link {
  position: absolute;
  pointer-events: all;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: 0.16em;
  text-decoration: none;
  color: rgba(240,238,255,0.18);
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  animation: fade-in 1.5s ease forwards;
}
.corner-link:hover {
  color: var(--fg);
  text-shadow: 0 0 20px var(--glow-p);
  transform: scale(1.06);
}

#cn-tl { top: 36px; left: 44px; }
#cn-tr { top: 36px; right: 44px; }
#cn-br { bottom: 40px; right: 44px; }
#cn-bl { bottom: 40px; left: 44px; }

.corner-link--off {
  pointer-events: none;
  color: rgba(240,238,255,0.06);
  cursor: default;
}

/* ── Scroll hint ── */
#scroll-hint {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.54rem;
  letter-spacing: 0.45em;
  color: rgba(240,238,255,0.14);
  white-space: nowrap;
  animation: fade-pulse 3.5s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}

/* ── Track list ── */
.track-list { display: flex; flex-direction: column; }

.track-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(123,47,255,0.08);
  text-decoration: none;
  transition: background 0.2s, padding-left 0.25s;
  border-radius: 2px;
}
.track-row:first-child { border-top: 1px solid rgba(123,47,255,0.08); }
.track-row:hover { background: rgba(123,47,255,0.07); padding-left: 12px; }

.t-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: rgba(123,47,255,0.35);
  transition: color 0.2s;
}
.track-row:hover .t-num { color: var(--purple); }

.t-body { display: flex; flex-direction: column; gap: 3px; }

.t-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1;
  transition: all 0.2s;
}
.track-row:hover .t-name {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-feat {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(123,47,255,0.65);
}
.track-row:hover .t-feat { color: var(--blue); }

.t-cta {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(240,238,255,0.18);
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
}
.track-row:hover .t-cta { color: var(--blue); text-shadow: 0 0 10px var(--glow-b); }

/* ── Shop grid ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  background: rgba(123,47,255,0.06);
}

.shop-card {
  background: #060608;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.shop-card--bundle { grid-column: span 2; }
.shop-card--soon   { pointer-events: none; }

.sc-art {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c1, #7B2FFF), var(--c2, #00C8FF));
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.shop-card--bundle .sc-art { aspect-ratio: 2/1; }
.sc-art--dim { background: rgba(20,10,50,0.6) !important; }

.shop-card:hover .sc-art { transform: scale(1.03); }

.sc-art::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.sc-art-inner {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
}
.sc-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem,7vw,5.5rem);
  letter-spacing: 0.04em;
  color: rgba(6,6,8,0.45);
  line-height: 1;
}
.sc-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.8rem,1.8vw,1.15rem);
  letter-spacing: 0.22em;
  color: rgba(6,6,8,0.5);
}
.sc-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(6,6,8,0.38);
}
.sc-soon-pill {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: rgba(123,47,255,0.3);
  border: 1px solid rgba(123,47,255,0.15);
  padding: 8px 14px;
}

.sc-hover {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(6,6,8,0.68);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shop-card:hover .sc-hover { opacity: 1; }

.sc-order {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.28em;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(240,238,255,0.4);
  padding: 12px 28px;
  transition: all 0.2s;
  background: transparent;
}
.sc-order:hover { border-color: var(--purple); text-shadow: 0 0 16px var(--glow-p); }

.sc-body {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(123,47,255,0.08);
}
.sc-badge {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 5px;
}
.sc-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--fg);
}
.sc-price {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(240,238,255,0.4);
  margin-top: 2px;
}
.sc-was {
  font-size: 0.7rem;
  color: rgba(240,238,255,0.2);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

/* ── Tour dates ── */
.tour-float {
  text-align: center;
  width: min(900px, 90vw);
}

.tour-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.44em;
  color: var(--purple);
  margin-bottom: 44px;
}

.tour-dates {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.tour-row {
  display: grid;
  grid-template-columns: 1fr 100px 160px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(123,47,255,0.1);
  transition: background 0.2s, padding-left 0.25s;
}
.tour-row:first-child { border-top: 1px solid rgba(123,47,255,0.1); }
.tour-row:hover { background: rgba(123,47,255,0.05); padding-left: 10px; }

.tour-city {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1;
}
.tour-venue {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(240,238,255,0.25);
  margin-top: 4px;
}

.tour-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: rgba(123,47,255,0.5);
  text-align: right;
}

.tour-btn {
  display: block;
  padding: 10px 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid rgba(123,47,255,0.4);
  transition: all 0.25s;
}
.tour-btn:hover {
  background: rgba(123,47,255,0.15);
  border-color: var(--purple);
  text-shadow: 0 0 12px var(--glow-p);
}
.tour-btn--soon {
  color: rgba(240,238,255,0.18);
  border-color: rgba(240,238,255,0.06);
  pointer-events: none;
  cursor: default;
}

/* ── Social Bubble FAB ── */
#soc-fab {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: rgba(240,238,255,0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  transition: color 0.3s;
}
#soc-fab:hover { color: rgba(240,238,255,0.7); }

.fab-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.4,0,.2,1);
}
.fab-plus  { opacity: 1;  transform: rotate(0deg); }
.fab-x     { opacity: 0;  transform: rotate(-90deg); }
#soc-fab.open .fab-plus { opacity: 0;  transform: rotate(90deg); }
#soc-fab.open .fab-x    { opacity: 1;  transform: rotate(0deg); }

/* ── Social Overlay ── */
#soc-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6,6,8,0.0);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.4s ease;
}
#soc-overlay.open {
  background: rgba(6,6,8,0.88);
  pointer-events: all;
}

#soc-sheet {
  width: 100%;
  padding: 56px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
#soc-overlay.open #soc-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* ── Social icon row ── */
#soc-row {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
}

.soc-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(240,238,255,0.12);
  background: rgba(240,238,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,238,255,0.65);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s;
  opacity: 0;
  transform: translateY(20px);
}
#soc-overlay.open .soc-btn {
  opacity: 1;
  transform: translateY(0);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    transform 0.25s,
    opacity 0.35s ease calc(var(--i) * 0.06s),
    transform 0.4s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 0.06s);
}
.soc-btn:hover {
  color: #fff;
  border-color: var(--purple);
  background: rgba(123,47,255,0.15);
  box-shadow: 0 0 20px rgba(123,47,255,0.4), 0 0 40px rgba(0,200,255,0.15);
  transform: scale(1.12) translateY(-3px);
}
.soc-btn svg { width: 26px; height: 26px; }

/* ── Legal links ── */
#soc-legal {
  display: flex;
  gap: 24px;
}
#soc-legal a {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(240,238,255,0.2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
#soc-legal a:hover { color: rgba(240,238,255,0.55); }

/* ── Loader ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  transition: opacity 0.8s ease;
}
#loader.fade-out { opacity: 0; pointer-events: none; }

.loader-ring {
  width: 52px; height: 52px;
  border: 2px solid rgba(123,47,255,0.2);
  border-top-color: var(--purple);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 640px) {
  #cn-tl, #cn-tr { top: 22px; }
  #cn-bl, #cn-br { bottom: 22px; }
  #cn-tl, #cn-bl { left: 22px; }
  #cn-tr, #cn-br { right: 22px; }
  .shop-card--bundle { grid-column: span 1; }
  .shop-card--bundle .sc-art { aspect-ratio: 1; }
  .tour-row { grid-template-columns: 1fr auto; }
  .tour-date { display: none; }
}
