:root {
  --sp-bg: #050506;
  --sp-fg: #f2f2f2;
  --sp-muted: rgba(242, 242, 242, 0.72);
  --sp-line: rgba(242, 242, 242, 0.14);
  --sp-accent: #d6c4a4;
  --sp-accent2: #7df0c7;
  --sp-accent3: #ffd400;
  --sp-warn: #ffcc00;
  --sp-font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --sp-font-display: 'Cinzel', ui-serif, Georgia, 'Times New Roman', serif;
  /* Game/UI enhancements */
  --game-glow: 0 0 20px rgba(255, 42, 109, 0.5);
  --portal-glow: 0 0 30px rgba(0, 255, 154, 0.4);
  --hud-text: #00ff41;
  --screen-edge: rgba(0, 0, 0, 0.9);
}

html,
body {
  height: 100%;
}

html {
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(1200px 800px at 50% 15%, rgba(214, 196, 164, 0.08), transparent 60%),
    radial-gradient(900px 700px at 15% 70%, rgba(125, 240, 199, 0.06), transparent 60%),
    radial-gradient(900px 700px at 85% 75%, rgba(255, 212, 0, 0.035), transparent 65%),
    linear-gradient(180deg, #050506 0%, #020203 55%, #050506 100%);
  color: var(--sp-fg);
  font-family: var(--sp-font-body);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: psychedelicPulse 8s ease-in-out infinite;
}

@keyframes psychedelicPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  25% { opacity: 0.5; transform: scale(1.05); }
  50% { opacity: 0.2; transform: scale(0.95); }
  75% { opacity: 0.6; transform: scale(1.02); }
}

sp-root {
  display: block;
  min-height: 100vh;
}

 .sp-hero {
   position: relative;
   overflow: hidden;
 }

 .sp-hero::before {
   content: '';
   position: absolute;
   inset: -20% -10% -20% -10%;
   background:
     radial-gradient(900px 560px at 50% 10%, rgba(214, 196, 164, 0.16), transparent 60%),
     radial-gradient(720px 520px at 10% 70%, rgba(125, 240, 199, 0.10), transparent 62%),
     radial-gradient(740px 540px at 90% 70%, rgba(255, 212, 0, 0.06), transparent 64%),
     conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.0), rgba(255, 255, 255, 0.03));
   filter: blur(14px) saturate(1.02);
   opacity: 0.9;
   pointer-events: none;
 }

 .sp-hero::after {
   content: '';
   position: absolute;
   inset: 0;
   background:
     radial-gradient(900px 500px at 50% 15%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.65) 70%),
     linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
   pointer-events: none;
 }

 .sp-hero > * {
   position: relative;
   z-index: 1;
 }

 .sp-hero-top {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 18px;
   flex-wrap: wrap;
 }

 .sp-kicker {
   display: inline-block;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 0.22em;
   font-size: 0.7rem;
   color: rgba(242, 242, 242, 0.72);
 }

 .sp-landing {
   position: relative;
   z-index: 2;
   padding-top: 64px;
 }

 .sp-landing-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 14px;
 }

 @media (max-width: 860px) {
   .sp-landing-grid {
     grid-template-columns: 1fr;
   }
 }

 .sp-landing-panel {
  display: block;
  text-decoration: none;
  color: var(--sp-fg);
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.38));
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sp-landing-panel.web2:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 240, 199, 0.5);
  box-shadow: 0 0 22px rgba(125, 240, 199, 0.16);
}

.sp-landing-panel.web3:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 196, 164, 0.55);
  box-shadow: 0 0 22px rgba(214, 196, 164, 0.14);
}

.sp-landing-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(242, 242, 244, 0.7);
}

.sp-landing-title {
  margin-top: 8px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-landing-copy {
  margin-top: 8px;
  color: rgba(242, 242, 244, 0.72);
  line-height: 1.4;
}

.sp-landing-cta {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  color: rgba(242, 242, 244, 0.9);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.sp-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  background: rgba(0, 0, 0, 0.25);
}

.sp-spotify {
  display: block;
}

.sp-landing-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .sp-landing-sections {
    grid-template-columns: 1fr;
  }
}

.sp-input {
  flex: 1;
  min-width: min(380px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(242, 242, 242, 0.92);
  padding: 0.72rem 0.95rem;
  outline: none;
}

.sp-input::placeholder {
  color: rgba(242, 242, 242, 0.45);
}

.sp-input:focus {
  border-color: rgba(214, 196, 164, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 196, 164, 0.12);
}

.sp-tour-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.sp-tour-date {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(242, 242, 242, 0.84);
}

.sp-tour-meta {
  display: grid;
  gap: 2px;
}

.sp-tour-city {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-tour-venue {
  color: rgba(242, 242, 242, 0.62);
  font-size: 0.92rem;
}

.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.05);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.58) 100%);
  border-bottom: 1px solid rgba(242, 242, 242, 0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 20px 60px rgba(0,0,0,0.35);
  animation: none;
}

@keyframes topbarPulse {
  0%, 100% { border-color: var(--sp-accent); box-shadow: 0 0 20px rgba(255, 42, 109, 0.3); }
  50% { border-color: var(--sp-accent2); box-shadow: 0 0 25px rgba(0, 255, 154, 0.4); }
}

.navbar .nav-link {
  color: rgba(242, 242, 244, 0.85);
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  margin-right: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navbar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.navbar .nav-link:hover::before {
  left: 100%;
}

.navbar .nav-link:hover {
  color: var(--sp-fg);
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--sp-accent);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
  transform: translateY(-2px);
}

.navbar .nav-link.active {
  color: var(--sp-fg);
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.25), rgba(0, 255, 154, 0.15));
  border: 2px solid var(--sp-accent);
  box-shadow: var(--game-glow);
  text-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

.brand {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.92);
  font-family: var(--sp-font-display);
  text-shadow: 0 0 0 transparent;
}

@keyframes brandGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* Game Experience Styles */
.experience-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255, 42, 109, 0.1) 0%, transparent 70%);
}

.game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.game-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--hud-text);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-shadow: 0 0 5px currentColor;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border: 1px solid var(--hud-text);
  border-radius: 4px;
  min-width: 220px;
}

.game-controls .sp-exp-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  line-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(242, 242, 244, 0.85);
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  pointer-events: auto;
}

.game-controls .sp-exp-close:hover {
  border-color: rgba(255, 42, 109, 0.6);
  color: rgba(255, 255, 255, 0.95);
}

.portal-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--sp-accent2);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-shadow: 0 0 10px currentColor;
}

.portal-indicator.active {
  opacity: 1;
  animation: portalPulse 1s ease-in-out infinite;
}

@keyframes portalPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero {
  padding: clamp(3.25rem, 6vw, 6rem) 0;
}

.title {
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-family: var(--sp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subtitle {
  color: rgba(242, 242, 244, 0.78);
  max-width: 62ch;
  font-size: 1.03rem;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

a {
  color: inherit;
}

a:hover {
  color: var(--sp-fg);
}

.sp-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.65"/></svg>');
  background-size: 240px 240px;
}

.sp-scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 5px
  );
}

.sp-glow {
  box-shadow: 0 0 0 1px var(--sp-line), 0 18px 70px rgba(0, 0, 0, 0.55);
}

.sp-card {
  background: rgba(10, 10, 12, 0.78);
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.sp-btn {
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-fg);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.72rem 0.95rem;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.sp-btn:hover {
  border-color: rgba(214, 196, 164, 0.55);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.sp-btn:active {
  transform: translateY(0);
}

.sp-pill {
  font-size: 0.85rem;
  color: var(--sp-muted);
  border: 1px solid var(--sp-line);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.sp-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 196, 164, 0.24), transparent);
}

.sp-kbd {
  border: 1px solid var(--sp-line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85rem;
}

.sp-embed {
  width: 100%;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  overflow: hidden;
}

.portal {
  border-radius: 22px;
  border: 1px solid rgba(242, 242, 244, 0.12);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  background: rgba(12, 12, 16, 0.6);
}

.portal::before {
  content: '';
  position: absolute;
  inset: -30% -30% -30% -30%;
  background:
    conic-gradient(
      from 180deg,
      rgba(182, 28, 255, 0.0),
      rgba(182, 28, 255, 0.45),
      rgba(0, 229, 255, 0.35),
      rgba(255, 38, 98, 0.3),
      rgba(182, 28, 255, 0.0)
    );
  filter: blur(18px) saturate(1.25);
  opacity: 0.75;
  animation: sp-spin 14s linear infinite;
}

.portal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(650px 420px at 55% 55%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(900px 700px at 30% 40%, rgba(182, 28, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 70% 60%, rgba(0, 229, 255, 0.09), transparent 60%);
  pointer-events: none;
}

.portalInner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.portalBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(242, 242, 244, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(7, 7, 10, 0.35);
  color: rgba(242, 242, 244, 0.9);
  font-size: 0.9rem;
}

.lottie {
  position: absolute;
  inset: -20% -20% -20% -20%;
  opacity: 0.75;
  filter: saturate(1.25) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.portalInner {
  z-index: 1;
}

.footer {
  padding: 2rem 0;
  color: rgba(242, 242, 244, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid rgba(242, 242, 244, 0.08);
}

.sp-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.sp-photo {
  appearance: none;
  border: 1px solid rgba(242, 242, 244, 0.12);
  background: rgba(12, 12, 16, 0.6);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  grid-column: span 4;
}

.sp-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.sp-photo:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 242, 244, 0.22);
  box-shadow: 0 0 0 1px rgba(242, 242, 244, 0.14), 0 0 30px rgba(182, 28, 255, 0.12);
}

@media (max-width: 992px) {
  .sp-photo {
    grid-column: span 6;
  }
  .sp-photo img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .sp-photo {
    grid-column: span 12;
  }
}

.sp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sp-lightbox-inner {
  width: min(1080px, 100%);
  border: 1px solid rgba(242, 242, 244, 0.14);
  border-radius: 22px;
  background: rgba(12, 12, 16, 0.86);
  padding: 1rem;
}

.sp-lightbox-close {
  float: right;
}

.sp-lightbox-media {
  margin-top: 3rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 242, 244, 0.12);
}

.sp-lightbox-media img {
  width: 100%;
  height: min(70vh, 720px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  display: block;
}

.sp-experience {
  padding: 0;
}

.sp-exp-stage {
  position: relative;
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
}

.sp-exp-canvas {
  width: 100%;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  display: block;
  background: radial-gradient(1000px 700px at 30% 28%, rgba(255, 42, 109, 0.12), transparent 58%),
    radial-gradient(1000px 700px at 70% 48%, rgba(0, 255, 154, 0.08), transparent 58%),
    radial-gradient(1100px 820px at 48% 92%, rgba(255, 212, 0, 0.08), transparent 60%),
    rgba(0, 0, 0, 0);
  touch-action: none;
}

.sp-exp-hud {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
  transform: none;
  width: min(420px, calc(100% - 24px));
  padding: 0.9rem;
  max-height: min(58vh, 520px);
  overflow: auto;
  pointer-events: none;
  border-color: rgba(255, 212, 0, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.10), 0 0 26px rgba(255, 42, 109, 0.12), 0 0 44px rgba(0, 255, 154, 0.07);
}

.sp-exp-hud .sp-exp-close {
  width: 34px;
  height: 34px;
  line-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.40);
  color: rgba(242, 242, 244, 0.9);
  font-size: 20px;
  padding: 0;
}

.sp-exp-hud .sp-exp-close:hover {
  border-color: rgba(255, 42, 109, 0.55);
}

.sp-exp-restore {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 11;
  pointer-events: auto;
}

.sp-exp-hud .sp-exp-ui {
  pointer-events: auto;
}

.sp-exp-hud.is-min {
  max-height: none;
  overflow: visible;
}

.sp-exp-hud.is-min .sp-exp-body {
  display: none;
}

.sp-exp-title {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.sp-exp-sub {
  color: rgba(242, 242, 244, 0.72);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .sp-exp-canvas {
    height: calc(100vh - 120px);
    height: calc(100dvh - 120px);
  }
  .sp-exp-stage {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }

  .sp-exp-hud {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(420px, calc(100% - 20px));
    max-height: min(50dvh, 420px);
  }
}

@media (max-width: 480px) {
  .sp-exp-hud {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
  }
}

@keyframes sp-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-scan,
  .sp-noise {
    display: none;
  }
  .portal::before {
    animation: none;
  }
}
