:root {
  --bg: #120826;
  --fg: #f4f4ff;
  --muted: #a89bd1;
  --accent: #c64bff;
  --accent2: #ff4fd8;
  --card: #1c1040;
  --border: #3a2470;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body { position: relative; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent 60%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(2px 2px at 80% 50%, #c64bff, transparent 60%),
    radial-gradient(1px 1px at 10% 80%, #ff4fd8, transparent 60%),
    radial-gradient(1px 1px at 30% 50%, white, transparent 60%),
    radial-gradient(2px 2px at 90% 90%, white, transparent 60%),
    radial-gradient(1px 1px at 70% 20%, #4ff0ff, transparent 60%),
    radial-gradient(1px 1px at 50% 85%, #ffd84f, transparent 60%);
  background-size: 500px 500px;
  background-repeat: repeat;
  animation: star-drift 90s linear infinite, star-twinkle 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

@keyframes star-drift {
  from { background-position: 0 0; }
  to   { background-position: -500px -500px; }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

.hero, main, footer { position: relative; z-index: 1; }

#fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.confetti {
  position: absolute;
  bottom: -30px;
  width: var(--size, 10px);
  height: var(--size, 10px);
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  box-shadow: 0 0 8px currentColor, 0 0 2px rgba(255,255,255,0.6) inset;
  opacity: 0;
}

.confetti.circle { border-radius: 50%; }

@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translate3d(var(--drift, 0), -110vh, 0) rotate(720deg); opacity: 0; }
}

.rocket {
  position: absolute;
  left: -120px;
  font-size: 2.4rem;
  filter:
    drop-shadow(0 0 14px #ff4fd8)
    drop-shadow(0 0 6px #c64bff)
    drop-shadow(0 0 2px #fff);
  animation-name: rocket-fly;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  transform: rotate(-20deg);
  will-change: transform, left;
}

@keyframes rocket-fly {
  0%   { left: -120px; transform: translateY(60px) rotate(-20deg); }
  100% { left: calc(100vw + 120px); transform: translateY(-160px) rotate(-20deg); }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px white, 0 0 20px 4px #c64bff;
  animation: sparkle-pop 1.6s ease-out forwards;
  opacity: 0;
}

@keyframes sparkle-pop {
  0%   { transform: scale(0); opacity: 0; }
  30%  { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

.hero {
  padding: 3rem 2rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(198,75,255,0.35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255,79,216,0.2), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero .banner {
  display: block;
  max-width: min(900px, 92vw);
  width: 100%;
  height: auto;
  margin: 0 auto 1.75rem;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  border-radius: 12px;
  animation: banner-bob 5.5s ease-in-out infinite, banner-glow 3.2s ease-in-out infinite;
}

@keyframes banner-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes banner-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px var(--border),
      0 20px 60px -20px rgba(198, 75, 255, 0.55),
      0 0 80px -20px rgba(255, 79, 216, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--accent),
      0 28px 90px -20px rgba(198, 75, 255, 0.95),
      0 0 140px -10px rgba(255, 79, 216, 0.75);
  }
}

.hero .tagline {
  animation: tagline-pulse 4s ease-in-out infinite;
}

@keyframes tagline-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 18px rgba(198, 75, 255, 0.8); }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 1.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 216, 79, 0.4);
  border-radius: 999px;
  background: rgba(255, 216, 79, 0.06);
}

.phase-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.phase-trial-badge {
  color: #ffd84f;
  box-shadow: 0 0 18px rgba(255, 216, 79, 0.4);
}

.phase-msg {
  color: var(--muted);
  font-size: 0.85rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 2rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(198, 75, 255, 0.6);
  transform: translateY(-2px);
}

nav a { transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s; }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--fg), var(--accent), var(--accent2), var(--fg));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h2-shimmer 8s linear infinite;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-head h2 { margin-bottom: 0; }

.grid-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.75rem 0 1.25rem;
}

.grid-sub a { color: var(--accent); }
.grid-sub a:hover { color: var(--accent2); }

/* ---------- Trial archive page ---------- */

.hero-compact {
  padding: 2rem 1.5rem 2.25rem;
}

.hero-compact .trial-title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #ffd84f, var(--accent2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h2-shimmer 8s linear infinite;
}

.trial-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.trial-back {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}

.trial-back:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.trial-note {
  max-width: 680px;
  margin: 1rem auto 0;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 216, 79, 0.35);
  border-radius: 12px;
  background: rgba(255, 216, 79, 0.06);
  text-align: left;
  color: var(--muted);
}

.trial-note p {
  margin: 0;
  font-size: 0.9rem;
}

.trial-note p + p { margin-top: 0.55rem; }

.trial-note strong { color: var(--fg); }
.trial-note a { color: var(--accent2); }
.trial-note code {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,216,79,0.3);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { color: var(--accent2); }

/* ---------- Schedule ---------- */

.timeline {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 780px) {
  .timeline { grid-template-columns: 1fr; gap: 0.85rem; }
  .timeline-archived { order: 2; }
  .timeline-featured-card { order: 1; }
}

.timeline-phase {
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.timeline-trial {
  border-color: rgba(255, 216, 79, 0.55);
  background:
    radial-gradient(ellipse at top left, rgba(255,216,79,0.08), transparent 70%),
    var(--card);
}

.timeline-real {
  border-color: rgba(198, 75, 255, 0.6);
  background:
    radial-gradient(ellipse at top right, rgba(198,75,255,0.12), transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(255,79,216,0.08), transparent 70%),
    var(--card);
}

.timeline-phase .phase-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid currentColor;
  margin-bottom: 0.85rem;
}

.timeline-trial .phase-tag { color: #ffd84f; }
.timeline-real  .phase-tag { color: #c64bff; }

.timeline-phase .phase-dates {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-phase h3 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.timeline-phase p,
.timeline-phase ul {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.timeline-phase ul {
  padding-left: 1.1rem;
}

.timeline-phase li {
  margin-bottom: 0.35rem;
}

.timeline-phase strong { color: var(--fg); }

/* Archived trial — compact, muted, left-rail */

.timeline-archived {
  padding: 1.15rem 1.25rem 1.15rem;
  opacity: 0.7;
  filter: saturate(0.8);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.timeline-archived:hover {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-2px);
  border-color: rgba(255, 216, 79, 0.85);
}

.timeline-archived h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.timeline-archived p {
  font-size: 0.82rem;
  margin: 0 0 0.7rem;
  flex: 1;
}

.timeline-archived .phase-dates {
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.timeline-archive-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #ffd84f;
  text-decoration: none;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(255,216,79,0.4);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.timeline-archive-link:hover {
  border-color: #ffd84f;
  color: #fff;
  background: rgba(255,216,79,0.12);
}

/* Featured real jam — center stage */

.timeline-featured-card {
  padding: 2rem 2.1rem 1.75rem;
  border-color: rgba(198, 75, 255, 0.8);
  background:
    radial-gradient(ellipse at top right, rgba(198,75,255,0.2), transparent 65%),
    radial-gradient(ellipse at bottom left, rgba(255,79,216,0.14), transparent 70%),
    var(--card);
  box-shadow:
    0 0 60px -15px rgba(198, 75, 255, 0.55),
    inset 0 0 0 1px rgba(198, 75, 255, 0.25);
  overflow: hidden;
}

.timeline-featured-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(198,75,255,0.12), transparent 60%);
  pointer-events: none;
  animation: timeline-featured-drift 10s ease-in-out infinite;
  z-index: 0;
}

.timeline-featured-card > * { position: relative; z-index: 1; }

@keyframes timeline-featured-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-3%, 3%); }
}

.timeline-featured-card h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h2-shimmer 8s linear infinite;
}

.timeline-featured-card .phase-dates {
  color: var(--fg);
  font-weight: 600;
  opacity: 0.92;
  font-size: 0.82rem;
}

.timeline-featured-card p {
  color: var(--fg);
  opacity: 0.88;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-featured-card p a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,79,216,0.5);
}

.timeline-featured-card p a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.jam-countdown {
  position: relative;
  margin: 1.1rem 0 0;
  padding: 0.8rem 0.95rem 0.75rem;
  border: 1px solid rgba(198,75,255,0.4);
  border-radius: 12px;
  background: rgba(10,5,22,0.5);
  box-shadow: inset 0 0 0 1px rgba(255,79,216,0.08), 0 0 22px -10px rgba(255,79,216,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.jam-cd-label {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 800;
  line-height: 1;
}

.jam-cd-blocks {
  display: flex;
  gap: 0.3rem;
  align-items: flex-end;
}

.jam-cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.55rem;
}

.jam-cd-num {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #fff;
  text-shadow: 0 0 10px rgba(198,75,255,0.7);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.jam-cd-lbl {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.jam-cd-sep {
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(198,75,255,0.55);
  padding-bottom: 0.8rem;
  animation: reveal-cd-blink 1s steps(2) infinite;
}

.jam-cd-target {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
  letter-spacing: 0.01em;
}

.jam-countdown[data-state="ended"] {
  border-color: rgba(79,255,158,0.5);
  background: rgba(79,255,158,0.06);
  box-shadow: inset 0 0 0 1px rgba(79,255,158,0.15);
}

.jam-countdown[data-state="ended"] .jam-cd-label {
  color: #4fff9e;
}

.jam-countdown[data-state="ended"] .jam-cd-num {
  color: #4fff9e;
  text-shadow: 0 0 10px rgba(79,255,158,0.6);
}

.jam-countdown[data-state="ended"] .jam-cd-sep {
  animation: none;
  color: rgba(79,255,158,0.5);
}

.timeline-meta {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  opacity: 1 !important;
  margin: 1rem 0 0 !important;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(198,75,255,0.25);
}

.timeline-meta code {
  background: rgba(0,0,0,0.4);
  border-color: rgba(198,75,255,0.3);
  color: var(--accent2);
}

/* Live phase tag (green) */

.phase-tag-live {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: #4fff9e !important;
  border-color: rgba(79,255,158,0.65) !important;
  background: rgba(79,255,158,0.08);
  box-shadow: 0 0 18px rgba(79,255,158,0.3);
}

.phase-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fff9e;
  box-shadow: 0 0 8px #4fff9e;
  animation: status-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero — switch to live styling */

.hero-status-live {
  border-color: rgba(79,255,158,0.45);
  background: rgba(79,255,158,0.06);
}

.phase-live-badge {
  color: #4fff9e;
  box-shadow: 0 0 18px rgba(79,255,158,0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Prizes ---------- */

#prizes h2 { margin-bottom: 0.35rem; }

.prizes-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.prize-grand {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffd84f, #ff4fd8, #c64bff, #ffd84f);
  background-size: 300% 300%;
  animation: prize-gradient-shift 10s ease-in-out infinite;
  box-shadow: 0 20px 60px -20px rgba(255, 216, 79, 0.55), 0 0 40px -10px rgba(255, 79, 216, 0.4);
}

@keyframes prize-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.prize-grand-inner {
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(255,216,79,0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255,79,216,0.15), transparent 60%),
    linear-gradient(180deg, rgba(24,10,56,0.97), rgba(12,4,30,0.97));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prize-grand-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 216, 79, 0.14), transparent 55%);
  pointer-events: none;
  animation: prize-glow-drift 9s ease-in-out infinite;
}

@keyframes prize-glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-4%, 3%); }
}

.prize-grand-rank {
  display: inline-block;
  position: relative;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #ffd84f;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(255,216,79,0.7);
  border-radius: 999px;
  background: rgba(255,216,79,0.08);
  box-shadow: 0 0 22px rgba(255,216,79,0.4);
  margin-bottom: 0.9rem;
}

.prize-grand-amount {
  position: relative;
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: linear-gradient(180deg, #fff, #ffd84f 50%, #ff9f1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 216, 79, 0.5);
  margin-bottom: 0.35rem;
}

.prize-grand-title {
  position: relative;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.prize-grand-note {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 auto;
  max-width: 560px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

@media (max-width: 980px) {
  .prize-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.prize-card {
  position: relative;
  padding: 1.2rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top right, rgba(198,75,255,0.14), transparent 60%),
    var(--card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.prize-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px -14px rgba(198, 75, 255, 0.55);
}

.prize-card .prize-amount {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent2);
  text-shadow: 0 0 14px rgba(255, 79, 216, 0.45);
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.prize-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.prize-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.prize-card em {
  color: var(--accent2);
  font-style: italic;
}

/* ---------- Portal network ---------- */

.network-section { margin-bottom: 4rem; }

.network-sub {
  color: var(--muted);
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
  max-width: 720px;
}

.network-viz {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 0.75rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(ellipse at top, rgba(198,75,255,0.14), transparent 65%),
    linear-gradient(180deg, rgba(12,4,30,0.85), rgba(24,10,56,0.85));
  box-shadow: inset 0 0 0 1px rgba(198,75,255,0.12);
  overflow: hidden;
}

.network-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  filter: drop-shadow(0 0 14px rgba(198,75,255,0.28));
}

.network-arcs path {
  animation: network-arc-flow 6.5s ease-in-out infinite;
}
.network-arcs path:nth-child(1) { animation-delay: 0s;   }
.network-arcs path:nth-child(2) { animation-delay: 0.7s; }
.network-arcs path:nth-child(3) { animation-delay: 1.4s; }
.network-arcs path:nth-child(4) { animation-delay: 2.1s; }
.network-arcs path:nth-child(5) { animation-delay: 2.8s; }
.network-arcs path:nth-child(6) { animation-delay: 3.5s; }
.network-arcs path:nth-child(7) { animation-delay: 4.2s; }

@keyframes network-arc-flow {
  0%, 100% { opacity: 0.4; stroke-width: 1.4; }
  50%      { opacity: 0.9; stroke-width: 2.1; }
}

.node-ring,
.node-ring-inner {
  transform-origin: center;
  animation: network-ring-pulse 3.2s ease-in-out infinite;
}

.node-ring-inner { animation-delay: 0.6s; animation-duration: 4s; }

.network-nodes > g:nth-child(1) .node-ring { animation-delay: 0s;   }
.network-nodes > g:nth-child(2) .node-ring { animation-delay: 0.5s; }
.network-nodes > g:nth-child(3) .node-ring { animation-delay: 1.0s; }
.network-nodes > g:nth-child(4) .node-ring { animation-delay: 1.5s; }
.network-nodes > g:nth-child(5) .node-ring { animation-delay: 2.0s; }

@keyframes network-ring-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.95; }
}

.node-core {
  filter: drop-shadow(0 0 10px rgba(255, 79, 216, 0.7));
}

.node-label {
  fill: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(28,16,64,0.85);
  stroke-width: 0.75;
  pointer-events: none;
}

.traveler {
  filter: drop-shadow(0 0 8px currentColor);
}

.network-legend {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.75rem 0 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px dashed rgba(198,75,255,0.18);
  margin-top: 0.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-node-swatch {
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent2) 60%, #1c1040);
  box-shadow: 0 0 8px rgba(255,79,216,0.6);
}

.legend-arc-swatch {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(198,75,255,0.2), var(--accent2), rgba(198,75,255,0.2));
  box-shadow: 0 0 6px rgba(255,79,216,0.5);
}

.legend-traveler-swatch {
  background: #ffd84f;
  box-shadow: 0 0 8px rgba(255,216,79,0.9);
}

.network-rules {
  padding: 1.4rem 1.6rem 1.3rem;
  border: 1px solid rgba(198,75,255,0.4);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top left, rgba(198,75,255,0.14), transparent 70%),
    var(--card);
}

.network-rules h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.network-rules ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.network-rules li + li { margin-top: 0.7rem; }

.network-rules li strong {
  color: var(--fg);
  margin-right: 0.35rem;
}

.network-rules li a {
  color: var(--accent2);
}

.network-rules li a:hover { color: var(--accent); }

/* ---------- Competitors marquee ---------- */

#competitors h2 { margin-bottom: 0.5rem; }

.competitors-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.competitors-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.competitors-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.competitors-marquee:hover .competitors-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-group {
  display: flex;
  gap: 1.1rem;
  padding-right: 1.1rem;
  flex-shrink: 0;
}

.competitor {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.6rem 0.6rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(198,75,255,0.06), rgba(28,16,64,0.9));
  color: var(--fg);
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(198, 75, 255, 0.15), 0 4px 20px -6px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  flex-shrink: 0;
  text-decoration: none;
}

.competitor:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(198, 75, 255, 0.7), 0 10px 30px -8px rgba(198, 75, 255, 0.4);
}

.competitor-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(198, 75, 255, 0.5), inset 0 0 10px rgba(255,255,255,0.15);
  flex-shrink: 0;
  letter-spacing: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.competitor-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.competitor-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 1px solid transparent;
  box-shadow: 0 0 30px rgba(255, 79, 216, 0.55), 0 4px 25px -5px rgba(255, 79, 216, 0.4);
  animation: competitor-cta-glow 2.2s ease-in-out infinite;
}

.competitor-cta .competitor-avatar-cta {
  background: rgba(255,255,255,0.22);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.3);
  font-size: 1.5rem;
  font-weight: 900;
}

.competitor-cta .competitor-name {
  color: #fff;
  font-weight: 700;
}

.competitor-cta:hover {
  border-color: #fff;
  box-shadow: 0 0 45px rgba(255, 79, 216, 0.95), 0 12px 35px -8px rgba(255, 79, 216, 0.6);
}

@keyframes competitor-cta-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 79, 216, 0.45), 0 4px 25px -5px rgba(255, 79, 216, 0.3); }
  50%      { box-shadow: 0 0 45px rgba(255, 79, 216, 0.95), 0 10px 35px -5px rgba(255, 79, 216, 0.6); }
}

#refresh-status {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

#refresh-status:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(198, 75, 255, 0.4);
}

#refresh-status:disabled {
  opacity: 0.6;
  cursor: wait;
}

@keyframes h2-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -15px rgba(198, 75, 255, 0.6);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  background: #1e1e36 center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.card .author {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.card .desc {
  color: var(--fg);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  opacity: 0.85;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card .tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.card .badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 5, 20, 0.82);
  color: var(--accent2);
  border: 1px solid currentColor;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card .badge-mp {
  top: auto;
  bottom: 0.6rem;
  right: 0.6rem;
  color: #4fff9e;
  background: rgba(10, 5, 20, 0.82);
}

.card .badge-status {
  top: 0.6rem;
  right: auto;
  left: 0.6rem;
}

.card .badge-status-wip {
  color: #ffd84f;
  border-color: #ffd84f;
}

.card .badge-status-ready {
  color: #4fff9e;
  border-color: #4fff9e;
}

.card .status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: wrap;
  min-height: 1.2em;
}

.status-loading {
  opacity: 0.6;
  font-style: italic;
}

.status-commit {
  opacity: 0.85;
}

.status-deploy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
}

.status-deploy::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.status-deploy.status-success { color: #4fff9e; border-color: rgba(79,255,158,0.6); }
.status-deploy.status-success::before { background: #4fff9e; box-shadow: 0 0 6px #4fff9e; }

.status-deploy.status-failure { color: #ff6b6b; border-color: rgba(255,107,107,0.6); }
.status-deploy.status-failure::before { background: #ff6b6b; box-shadow: 0 0 6px #ff6b6b; }

.status-deploy.status-cancelled,
.status-deploy.status-skipped { color: var(--muted); }

.status-deploy.status-in_progress,
.status-deploy.status-queued,
.status-deploy.status-waiting {
  color: #ffd84f;
  border-color: rgba(255,216,79,0.6);
}

.status-deploy.status-in_progress::before,
.status-deploy.status-queued::before,
.status-deploy.status-waiting::before {
  background: #ffd84f;
  box-shadow: 0 0 6px #ffd84f;
  animation: status-pulse 1.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
}

.card .thumb-wrap { position: relative; }

ol { padding-left: 1.25rem; }
ol li { margin-bottom: 0.5rem; }

code {
  background: var(--card);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85em;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Reveal gate ---------- */

.reveal-section { margin-bottom: 3.5rem; }

.reveal-gate {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 2.75rem 1.75rem 2.5rem;
  min-height: 440px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(198,75,255,0.35), transparent 65%),
    radial-gradient(ellipse at bottom, rgba(255,79,216,0.22), transparent 65%),
    linear-gradient(180deg, rgba(12,4,30,0.92), rgba(24,10,56,0.92));
  box-shadow:
    inset 0 0 0 1px rgba(198,75,255,0.18),
    0 30px 80px -20px rgba(198,75,255,0.4);
  isolation: isolate;
}

.reveal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198,75,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,75,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.reveal-beam {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center bottom, rgba(255,79,216,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal-gate[data-state="opening"] .reveal-beam,
.reveal-gate[data-state="unlocked"] .reveal-beam { opacity: 1; }

.reveal-sealed-panel,
.reveal-unlocked-panel {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.reveal-gate[data-state="sealed"] .reveal-sealed-panel {
  animation: reveal-breathe 4s ease-in-out infinite;
}

@keyframes reveal-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.reveal-seal {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.1rem;
}

.reveal-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(198,75,255,0.55);
  box-shadow: 0 0 24px rgba(198,75,255,0.5);
  animation: reveal-seal-spin 14s linear infinite;
}

.reveal-seal-ring-2 {
  inset: -14px;
  border: 1px dashed rgba(255,79,216,0.55);
  box-shadow: none;
  animation-duration: 22s;
  animation-direction: reverse;
}

.reveal-seal-ring-3 {
  inset: -28px;
  border: 1px dotted rgba(79,240,255,0.4);
  box-shadow: none;
  animation-duration: 32s;
}

@keyframes reveal-seal-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.reveal-seal-core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent) 40%, var(--accent2) 72%, #1c1040 100%);
  text-shadow: 0 0 14px rgba(255,255,255,0.95);
  box-shadow:
    0 0 38px rgba(198,75,255,0.85),
    inset 0 0 22px rgba(255,255,255,0.3);
  animation: reveal-seal-pulse 2.8s ease-in-out infinite;
}

@keyframes reveal-seal-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.06); filter: brightness(1.3); }
}

.reveal-sealed-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffd84f;
  padding: 0.28rem 0.8rem;
  border: 1px solid rgba(255,216,79,0.55);
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(255,216,79,0.08);
  box-shadow: 0 0 18px rgba(255,216,79,0.25);
}

.reveal-sealed-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h2-shimmer 8s linear infinite;
}

.reveal-sealed-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.reveal-countdown {
  display: inline-flex;
  gap: 0.45rem;
  align-items: flex-end;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10,5,22,0.55);
  box-shadow: 0 0 28px rgba(198,75,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.reveal-cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
}

.reveal-cd-num {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #fff;
  text-shadow: 0 0 14px rgba(198,75,255,0.75);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.reveal-cd-lbl {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.reveal-cd-sep {
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(198,75,255,0.65);
  padding-bottom: 1.15rem;
  animation: reveal-cd-blink 1s steps(2) infinite;
}

@keyframes reveal-cd-blink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

.reveal-unlock-at {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--fg);
}

.reveal-unlock-at strong { color: #ffd84f; }

.reveal-ends-at {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.reveal-ends-at strong { color: var(--accent2); }

/* Gate doors — only visible during the opening transition */

.reveal-doors {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 6;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.reveal-gate[data-state="closing"] .reveal-doors,
.reveal-gate[data-state="opening"] .reveal-doors {
  visibility: visible;
  opacity: 1;
}

.reveal-door {
  flex: 1;
  height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,8,44,0.995), rgba(10,4,28,0.995)),
    linear-gradient(180deg, #140628, #0a041c);
  transition: transform 1.35s cubic-bezier(0.72, 0, 0.18, 1);
  box-shadow: inset 0 0 80px rgba(198,75,255,0.45);
  overflow: hidden;
}

.reveal-door-left  { border-right: 2px solid rgba(198,75,255,0.8); box-shadow: inset 0 0 80px rgba(198,75,255,0.45), 4px 0 30px rgba(198,75,255,0.55); }
.reveal-door-right { border-left:  2px solid rgba(198,75,255,0.8); box-shadow: inset 0 0 80px rgba(198,75,255,0.45), -4px 0 30px rgba(198,75,255,0.55); }

.reveal-door-trim {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 80%;
  background: linear-gradient(180deg, transparent, var(--accent), var(--accent2), transparent);
  transform: translateY(-50%);
  opacity: 0.55;
}

.reveal-door-left  .reveal-door-trim { right: 12px; }
.reveal-door-right .reveal-door-trim { left: 12px; }

.reveal-door-bolt {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(198,75,255,0.85);
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent) 45%, #1c1040 100%);
  box-shadow: 0 0 25px rgba(198,75,255,0.9), inset 0 0 12px rgba(255,255,255,0.35);
  transform: translateY(-50%);
}

.reveal-door-left  .reveal-door-bolt { right: -26px; }
.reveal-door-right .reveal-door-bolt { left:  -26px; }

.reveal-gate[data-state="opening"] .reveal-door-left  { transform: translateX(-102%); }
.reveal-gate[data-state="opening"] .reveal-door-right { transform: translateX(102%); }

/* Unlocked panel */

.reveal-unlocked-panel[hidden] { display: none; }

.reveal-unlocked-panel {
  animation: reveal-unlocked-in 0.9s ease-out both;
  animation-delay: 0.25s;
}

@keyframes reveal-unlocked-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-unlocked-head { margin-bottom: 1.5rem; }

.reveal-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(79,255,158,0.1);
  border: 1px solid rgba(79,255,158,0.65);
  color: #4fff9e;
  box-shadow: 0 0 22px rgba(79,255,158,0.35);
  margin-bottom: 0.7rem;
}

.reveal-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fff9e;
  box-shadow: 0 0 10px #4fff9e;
  animation: status-pulse 1.4s ease-in-out infinite;
}

.reveal-unlocked-title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h2-shimmer 8s linear infinite;
}

.reveal-unlocked-sub {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 1rem;
}

.reveal-unlocked-sub strong { color: var(--accent2); }

.reveal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  text-align: left;
}

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

.reveal-card {
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top right, rgba(198,75,255,0.16), transparent 60%),
    var(--card);
  position: relative;
  overflow: hidden;
  animation: reveal-card-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal-card-theme    { animation-delay: 0.45s; border-color: rgba(198,75,255,0.55); }
.reveal-card-mechanic { animation-delay: 0.65s; border-color: rgba(255,79,216,0.55); }

@keyframes reveal-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(198,75,255,0.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.reveal-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted);
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.reveal-card-theme    .reveal-card-tag { color: var(--accent);  border-color: rgba(198,75,255,0.6); }
.reveal-card-mechanic .reveal-card-tag { color: var(--accent2); border-color: rgba(255,79,216,0.6); }

.reveal-card-name {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 22px rgba(198,75,255,0.5);
}

.reveal-card-note,
.reveal-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.reveal-card-desc { color: var(--fg); opacity: 0.88; }

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero .banner,
  .hero .tagline,
  h2,
  .confetti,
  .rocket,
  .sparkle,
  .competitors-track,
  .competitor-cta,
  .reveal-sealed-panel,
  .reveal-seal-ring,
  .reveal-seal-core,
  .reveal-cd-sep,
  .reveal-sealed-title,
  .reveal-unlocked-title,
  .reveal-unlocked-panel,
  .reveal-card,
  .prize-grand,
  .prize-grand-inner::before,
  .network-arcs path,
  .node-ring,
  .node-ring-inner,
  .timeline-featured-card::after,
  .timeline-featured-card h3,
  .phase-live-dot,
  .jam-cd-sep { animation: none !important; }
  .reveal-door { transition: none !important; }
  .network-travelers { display: none; }
}
