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

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --muted: #666666;
  --border: #2a2a2a;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body: 'Inter', sans-serif;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

/* ─── Canvases ─── */
#wormhole-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

/* ─── Background Blobs ─── */
#scene::before {
  content: '';
  position: fixed;
  top: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

#scene::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: 8%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(200, 100, 200, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

#scene > .blob-corner {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}

.blob-corner.tl {
  top: 20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(150, 100, 255, 0.05) 0%, transparent 70%);
}

.blob-corner.br {
  bottom: -5%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(100, 200, 150, 0.04) 0%, transparent 70%);
}

#rope-canvas {
  display: none;
}

/* ─── Header (fixed on all sizes) ─── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
  pointer-events: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.header-logo {
  height: 32px;
  width: auto;
  display: block;
}

.header-wordmark {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.28em;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: auto;
}

.header-right a {
  color: #555555;
  text-decoration: none;
  transition: color 0.18s ease;
  line-height: 1;
}

.header-right a:hover {
  color: #ffffff;
}

.header-right .ph {
  font-size: 22px;
}

/* ─── Hero (mobile: in-flow) ─── */
#hero {
  position: relative;
  padding: 80px 24px 32px;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

.hero-micro {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: #777777;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(52px, 14vw, 80px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0;
}

.hero-tagline {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: #888888;
  margin-top: 10px;
}

/* ─── Coming Soon Pill ─── */
.cs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 18px;
  padding: 7px 18px;
  pointer-events: none;
}

.cs-pill.breathe {
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cs-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cs-rect {
  display: none;
}

@keyframes march {
  to { stroke-dashoffset: -10; }
}

.cs-text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #777777;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* ─── Mobile Cards Column ─── */
#mobile-cards {
  position: relative;
  padding: 0 20px 80px;
}

/* Vertical decorative rope line */
#mobile-cards::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 80px;
  width: 1.5px;
  background: #303030;
  pointer-events: none;
}

/* ─── Cards (shared styles) ─── */
.card-el {
  position: relative;
  cursor: grab;
  user-select: none;
  z-index: 5;
  pointer-events: auto;
  max-width: 360px;
  margin: 0 auto 14px;
}

.card-el:active {
  cursor: grabbing;
}

.card-inner {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.accent-bar {
  height: 3px;
  border-radius: 12px 12px 0 0;
  margin: -20px -16px 18px;
  box-shadow: 0 0 20px currentColor;
}

.card-category {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: #bbbbbb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-url {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.card-hr {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 0 0 10px 0;
}

.card-desc {
  display: none;
}

.card-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.card-btn.live {
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.card-btn.live:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.card-btn.coming-soon {
  background: #0f0f0f;
  color: #3a3a3a;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: default;
}

/* ─── Footer (mobile: in-flow) ─── */
#footer {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-top: 40px;
  z-index: 20;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  color: #666666;
  letter-spacing: 0.14em;
  pointer-events: auto;
}

#footer .footer-right {
  color: #555555;
}

/* ─── Drag Hint (desktop only) ─── */
#interaction-hint {
  display: none;
}

/* ═══════════════════════════════════
   DESKTOP OVERRIDES (>= 769px)
   ═══════════════════════════════════ */
@media (min-width: 769px) {
  html, body {
    overflow: hidden;
    height: 100%;
  }

  #scene {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    min-height: 0;
  }

  #wormhole-canvas {
    opacity: 1;
  }

  #rope-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }

  #header {
    padding: 0 32px;
  }

  #hero {
    position: absolute;
    top: 18vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  .hero-headline {
    font-size: clamp(64px, 9vw, 110px);
  }

  #mobile-cards {
    display: none;
  }

  .card-el {
    position: absolute;
    max-width: none;
    margin: 0;
    will-change: transform;
  }

  .card-inner {
    width: 160px;
  }

  .card-name {
    font-size: 28px;
  }

  #footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 0 32px;
  }

  #interaction-hint {
    display: block;
    position: absolute;
    top: 70vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 300;
    color: #2a2a2a;
    letter-spacing: 0.12em;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 25;
  }

  #interaction-hint.visible {
    opacity: 1;
  }

  #interaction-hint.hidden {
    opacity: 0;
    transition: opacity 0.4s ease;
  }
}
