@font-face {
  font-family: 'RetroPix';
  src: url('assets/font/retropix.otf/retropix.otf') format('opentype');
}

:root {
  --px: 2px;
  --c-bg: #1c003d; /* Rich deep night violet */
  --c-bg2: #2d005f; /* Medium saturated dark violet */
  --c-bg3: #3e0082; /* Lighter bright violet */
  --c-purple: #c084fc;
  --c-pink: #ff79c6;
  --c-cyan: #8be9fd;
  --c-yellow: #ffb86c;
  --c-green: #50fa7b;
  --c-white: #f8f8f2;
  --c-muted: #a496c7;
  --pixel-border: 3px solid;
  --font-pixel: 'RetroPix', 'Press Start 2P', monospace;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCANLINE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
  pointer-events: none;
  z-index: 100;
}

/* ── STAR FIELD ── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  background: white;
  border-radius: 0;
  animation: twinkle var(--d, 3s) infinite alternate var(--dl, 0s);
}
.star.pixel-star {
  background: url('assets/star.png') no-repeat center !important;
  background-size: contain !important;
  image-rendering: pixelated;
}
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 0.8; } }

/* ── LAYOUT ── */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* ── PIXEL BORDER UTILITY ── */
.pixel-box {
  position: relative;
  border: 3px solid var(--c-purple);
  image-rendering: pixelated;
  box-shadow: 6px 6px 0 var(--c-pink), inset 0 0 40px rgba(192,132,252,0.05);
}
.pixel-box::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(192,132,252,0.2);
  pointer-events: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.4;
  color: var(--c-cyan);
  text-shadow: 0 0 20px rgba(139, 233, 253, 0.4), 4px 4px 0 var(--c-bg2), 8px 8px 0 #10002b;
  margin-bottom: 0.5rem;
  animation: flicker 6s infinite;
  letter-spacing: 0.05em;
}
.hero-title span { color: var(--c-pink); }

.hero-collab {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 2.2vw, 16px);
  color: var(--c-yellow);
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 3px 3px 0 var(--c-bg);
}

/* Partner logos shown at the top of the hero */
.partner-logos {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}
.partner-logos img { image-rendering: pixelated; display: inline-block; }
.logo-game-connect { height: 48px; width: auto; filter: invert(1); }
.logo-gdai { height: 40px; width: auto; opacity: 0.95; }
.logo-igda { height: 42px; width: auto; opacity: 0.95; }


@keyframes flicker {
  0%,92%,100% { opacity: 1; }
  93% { opacity: 0.95; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.hero-sub {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 2vw, 14px);
  color: var(--c-green);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 0 var(--c-bg);
}

.hero-register {
  margin-bottom: 1rem;
}

.hero-controller {
  display: block;
  margin: 0.25rem auto 1rem;
  height: 56px;
  width: auto;
  image-rendering: pixelated;
}

/* Small decorative sparkles placed sparingly across the page */
.sparkle {
  position: fixed;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 1; /* above star field, behind main content (wrap uses z-index 1/2) */
  opacity: 0.9;
  transform-origin: center center;
  animation: sparkle-float var(--d, 4s) ease-in-out infinite, sparkle-twinkle var(--t, 2s) infinite;
}
@keyframes sparkle-float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes sparkle-twinkle {
  0% { opacity: 0.1; }
  50% { opacity: 1; }
  100% { opacity: 0.1; }
}

/* Organizer card (rounded box with label + logo) */
.organizer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0.6rem auto;
  padding: 0.25rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.organized-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-cyan);
  color: #0d0b14;
  letter-spacing: 0.12em;
}
.logo-geekroom { height: 56px; width: auto; image-rendering: pixelated; }
.organizer-sub { font-size: 12px; color: var(--c-muted); font-family: var(--font-mono); margin-top: -2px; }

@media (max-width:520px) {
  .logo-game-connect { height: 40px; }
  .logo-gdai { height: 34px; }
  .logo-igda { height: 35px; }
  .logo-geekroom { height: 44px; }
  .organizer-card { padding: 8px 12px; }
}

.hero-desc {
  font-size: 17px;
  color: var(--c-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.hero-desc strong { color: var(--c-white); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

/* ── PIXEL DECORATION: FLOATING SPRITES ── */
.sprite-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.sprite-cell {
  width: 8px;
  height: 8px;
}

.floating-sprites {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ── PIXEL ART DECORATIONS (SVG-based) ── */
.pixel-deco {
  position: absolute;
  image-rendering: pixelated;
  opacity: 0.6;
  animation: float var(--fd, 4s) ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(0px) rotate(0deg); }
  to { transform: translateY(-12px) rotate(2deg); }
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.2em;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTION STYLES ── */
section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(103,232,249,0.4), transparent);
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--c-white);
  text-shadow: 3px 3px 0 #4c1d95;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.section-title .accent { color: var(--c-purple); }

/* ── THEME REVEAL CARD ── */
.theme-card {
  background: var(--c-bg2);
  border: 3px solid var(--c-purple);
  box-shadow: 8px 8px 0 #4c1d95;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(192,132,252,0.15), transparent 70%);
  pointer-events: none;
}
.theme-card .reveal-text {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 2vw, 18px);
  color: var(--c-yellow);
  text-shadow: 2px 2px 0 #78350f;
  animation: flicker 4s infinite;
}
.theme-card .reveal-sub {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 1rem;
  font-family: var(--font-mono);
}

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  justify-items: stretch;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--c-bg2);
  border: 2px solid rgba(192,132,252,0.3);
  padding: 1rem 1.25rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1 / 1; /* enforce square cards */
  min-height: 140px; /* fallback for older browsers */
  align-items: center;
}
.info-card:hover {
  border-color: var(--c-purple);
  box-shadow: 4px 4px 0 rgba(192,132,252,0.3);
}
.info-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border: 1px solid rgba(192,132,252,0.1);
  pointer-events: none;
}

.info-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

.info-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 0.5rem;
}

.info-card-value {
  font-size: 16px;
  color: var(--c-white);
  font-weight: 500;
  line-height: 1.4;
  display: block;
  text-align: center;
}

/* ── REQUIREMENTS LIST ── */
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #c4b5d4;
  padding: 0.75rem 1rem;
  background: var(--c-bg2);
  border-left: 3px solid var(--c-purple);
  transition: border-color 0.15s, background 0.15s;
}
.req-list li:hover {
  border-left-color: var(--c-pink);
  background: var(--c-bg3);
}

.req-list li .bullet {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--c-purple);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── RULES GRID ── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.rule-pill {
  border: 2px solid;
  padding: 1rem 1.25rem;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rule-pill.no { border-color: rgba(244,114,182,0.5); background: rgba(244,114,182,0.05); color: #f9a8d4; }
.rule-pill.yes { border-color: rgba(74,222,128,0.5); background: rgba(74,222,128,0.05); color: #86efac; }

.rule-pill-icon {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 3px 5px;
  flex-shrink: 0;
}
.rule-pill.no .rule-pill-icon { background: rgba(244,114,182,0.2); color: var(--c-pink); }
.rule-pill.yes .rule-pill-icon { background: rgba(74,222,128,0.2); color: var(--c-green); }

/* ── PRIZE POOL ── */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}
.prize-card {
  background: var(--c-bg2);
  border: 2px solid rgba(192, 132, 252, 0.12);
  border-radius: 0;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.04);
  grid-column: span 2;
}
.prize-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-purple);
  box-shadow: 6px 6px 0 rgba(192, 132, 252, 0.12);
}
.prize-card.gold-card { border-color: rgba(251, 191, 36, 0.25); box-shadow: 4px 4px 0 rgba(251, 191, 36, 0.06); }
.prize-card.gold-card:hover { border-color: var(--c-yellow); box-shadow: 6px 6px 0 rgba(251, 191, 36, 0.18); }
.prize-card.silver-card { border-color: rgba(167, 139, 250, 0.25); box-shadow: 4px 4px 0 rgba(167, 139, 250, 0.06); }
.prize-card.silver-card:hover { border-color: #a78bfa; box-shadow: 6px 6px 0 rgba(167, 139, 250, 0.18); }
.prize-card.bronze-card { border-color: rgba(249, 115, 22, 0.25); box-shadow: 4px 4px 0 rgba(249, 115, 22, 0.06); }
.prize-card.bronze-card:hover { border-color: #f97316; box-shadow: 6px 6px 0 rgba(249, 115, 22, 0.18); }
.prize-card.category-card { 
  border-color: rgba(103, 232, 249, 0.25); 
  box-shadow: 4px 4px 0 rgba(103, 232, 249, 0.06);
  grid-column: 3 / 5;
}
.prize-card.category-card:hover { border-color: var(--c-cyan); box-shadow: 6px 6px 0 rgba(103, 232, 249, 0.18); }

.prize-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 1rem;
}
.gold-card .prize-badge { background: rgba(251, 191, 36, 0.12); color: var(--c-yellow); }
.silver-card .prize-badge { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.bronze-card .prize-badge { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.category-card .prize-badge { background: rgba(103, 232, 249, 0.12); color: var(--c-cyan); }

.prize-title {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 1rem;
}
.prize-rewards {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prize-rewards li {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}
.prize-rewards li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--c-purple);
  font-size: 12px;
}
.gold-card .prize-rewards li::before { color: var(--c-yellow); }
.silver-card .prize-rewards li::before { color: #a78bfa; }
.bronze-card .prize-rewards li::before { color: #f97316; }
.category-card .prize-rewards li::before { color: var(--c-cyan); }

/* ── JUDGING CATEGORIES GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}
.category-details-card {
  background: var(--c-bg2);
  border: 2px solid rgba(192, 132, 252, 0.12);
  border-radius: 0;
  padding: 1.5rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.category-details-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-purple);
  box-shadow: 6px 6px 0 rgba(192, 132, 252, 0.1);
}
.category-icon {
  font-size: 24px;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.category-name {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.category-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}
.category-highlights {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(196,181,212,0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.category-highlight-tag {
  background: rgba(192,132,252,0.08);
  border: 1px solid rgba(192,132,252,0.15);
  padding: 2px 6px;
  border-radius: 0;
}

/* ── SPECIAL CARDS ── */
.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.special-card {
  background: var(--c-bg3);
  border: 2px solid rgba(103,232,249,0.25);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.special-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-purple));
}
.special-card-num {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-cyan);
  margin-bottom: 0.75rem;
}
.special-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.special-card-desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── WEEKS / EVENT SCHEDULE GRID ── */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.week-card {
  background: var(--c-bg2);
  border: 2px solid rgba(192,132,252,0.14);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  border-radius: 8px;
}
.week-num { font-family: var(--font-pixel); color: var(--c-purple); font-size: 12px; margin-bottom: 6px; }
.week-dates { font-size: 14px; font-weight: 600; color: var(--c-white); margin-bottom: 6px; }
.week-speaker { font-size: 13px; color: var(--c-muted); font-family: var(--font-mono); }
.speaker-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.speaker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.speaker-name,
.speaker-org {
  color: var(--c-white);
  text-decoration: none;
}
.speaker-name:hover,
.speaker-org:hover {
  text-decoration: underline;
}
.speaker-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(10, 102, 194, 0.16);
  color: #8fd1ff;
  text-decoration: none;
}
.speaker-linkedin:hover {
  background: rgba(10, 102, 194, 0.28);
  color: #bfe4ff;
}
.speaker-linkedin i {
  font-size: 0.85rem;
}
.speaker-org {
  color: var(--c-muted);
}
.final-week { margin-top: 1rem; display: flex; justify-content: center; }
.final-week .week-card { border-color: var(--c-yellow); box-shadow: 6px 6px 0 rgba(120,53,15,0.08); }

/* ── SHOWCASE BANNER ── */
.showcase-banner {
  background: linear-gradient(135deg, rgba(192,132,252,0.15), rgba(103,232,249,0.08));
  border: 2px solid rgba(192,132,252,0.4);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.showcase-banner h3 {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.5vw, 14px);
  color: var(--c-purple);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.showcase-banner p {
  font-size: 15px;
  color: #c4b5d4;
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 14px 22px;
  border: 3px solid;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.05em;
  position: relative;
  transition: transform 0.1s;
  line-height: 1;
}
.btn:active { transform: translate(3px, 3px); }

.btn-primary {
  background: var(--c-purple);
  border-color: #7c3aed;
  color: #0d0b14;
  box-shadow: 4px 4px 0 #4c1d95;
}
.btn-primary:hover { box-shadow: 6px 6px 0 #4c1d95; }
.btn-primary:active { box-shadow: none; }

.btn-outline {
  background: transparent;
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  box-shadow: 4px 4px 0 #155e75;
}
.btn-outline:hover { box-shadow: 6px 6px 0 #155e75; }
.btn-outline:active { box-shadow: none; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,0.4), transparent);
  margin: 0;
}
.divider-pixel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1.5rem 0;
  color: rgba(192,132,252,0.4);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.4em;
}

/* ── FOOTER ── */
footer {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(192,132,252,0.2);
}
footer .tagline {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 1.5vw, 12px);
  color: var(--c-purple);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0 #4c1d95;
}
footer .sub {
  font-size: 13px;
  color: var(--c-muted);
}
footer a { color: var(--c-cyan); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── HERO SKY SPRITES (Parallax sky behind text) ── */
.hero-sprite {
  position: absolute;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}
.hero-moon {
  width: 64px;
  height: 64px;
  top: 10%;
  right: 8%;
  z-index: 1;
  animation: sceneFloat 8s ease-in-out infinite alternate;
}
.hero-cloud {
  z-index: 1;
  opacity: 0.65;
  animation: floatCloud linear infinite;
}
.cloud-1 { width: 80px; height: auto; top: 14%; left: 8%; animation-duration: 65s; }
.cloud-2 { width: 64px; height: auto; top: 22%; left: 38%; animation-duration: 85s; }
.cloud-3 { width: 72px; height: auto; top: 6%; left: 68%; animation-duration: 55s; }
.cloud-4 { width: 88px; height: auto; top: 32%; left: 78%; animation-duration: 75s; }

@keyframes floatCloud {
  0% { transform: translateX(0); }
  50% { transform: translateX(25px); }
  100% { transform: translateX(0); }
}

@keyframes sceneFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* ── PIXEL ART STREET SCENE ── */
.pixel-street-scene {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 160px; /* height of the pavement scene strip */
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  image-rendering: pixelated;
  z-index: 1;
  pointer-events: none;
}

.scene-viewport {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  z-index: 10; /* locked stacking context so sidewalk elements stay behind cars */
}

/* Floor street pavement */
.street-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: url('assets/street.png') repeat-x;
  background-size: auto 32px;
  image-rendering: pixelated;
  z-index: 10;
}

/* Sprite positioning and rendering */
.scene-sprite {
  position: absolute;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
  bottom: 30px; /* sits perfectly on the 32px street floor sidewalk */
}

/* Ground sprites aspect ratio and positioning */
/* Dog */
.scene-dog {
  width: 40px;
  height: auto;
  left: 6%;
  z-index: 11;
}

/* Bush 1 */
.scene-bush-1 {
  width: 56px;
  height: auto;
  left: 13%;
  z-index: 11;
}

/* Lamp positioning & light effect */
.scene-lamp-wrap {
  position: absolute;
  left: 21%;
  bottom: 30px;
  width: 48px;
  height: 96px; /* curves leftwards, lantern on the left */
  z-index: 12;
}
.scene-lamp {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.lamp-light {
  position: absolute;
  top: 24px; /* perfectly under the curved lantern head */
  left: 5px; /* aligned with the bulb hanging on the left */
  width: 95px;
  height: 106px;
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.45) 0%, rgba(255, 184, 108, 0) 100%);
  clip-path: polygon(15% 0, 35% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
  transform-origin: top left;
  animation: lightFlicker 8s infinite;
}
@keyframes lightFlicker {
  0%, 94%, 96%, 100% { opacity: 1; }
  95% { opacity: 0.75; }
  97% { opacity: 0.95; }
}

/* Bench positioning & cat */
.scene-bench-wrap {
  position: absolute;
  left: 30%;
  bottom: 30px;
  width: 72px;
  z-index: 11;
}
.scene-bench {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.scene-cat {
  width: 24px;
  height: auto;
  position: absolute;
  bottom: 12px;
  left: 24px;
  z-index: 12;
  image-rendering: pixelated;
}

/* Moving Cars Base Styles (Controlled dynamically by JS) */
.scene-car-1, .scene-car-2 {
  width: 96px;
  height: auto;
  position: absolute;
  left: -120px; /* start off-screen by default */
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
  will-change: left; /* optimize transition performance */
}

/* Shop Bushes peeking from left & right */
.scene-shop-bush-left {
  width: 56px;
  height: auto;
  left: 55%;
  bottom: 30px;
  z-index: 8; /* behind the shop */
}
.scene-shop-bush-right {
  width: 56px;
  height: auto;
  left: 67.5%;
  bottom: 30px;
  z-index: 8; /* behind the shop */
}

/* Second street lamp (not flickering) beside humans */
.scene-lamp-right {
  left: 79%;
}
.lamp-light.no-flicker {
  animation: none;
  opacity: 1;
}

/* Store / Shop */
.scene-shop {
  width: 130px;
  height: auto;
  left: 58%;
  z-index: 9;
  bottom: 28px; /* nested slightly behind sidewalk top */
}

/* Bush 2 positioning */
.scene-bush-2 {
  width: 56px;
  height: auto;
  left: 77%;
  z-index: 11;
}

/* Character Man */
.scene-man {
  height: 64px;
  width: auto;
  left: 84%;
  z-index: 11;
}

/* Character Woman 1 */
.scene-woman-1 {
  height: 64px;
  width: auto;
  left: 89%;
  z-index: 11;
}

/* Character Woman 2 */
.scene-woman-2 {
  height: 64px;
  width: auto;
  left: 94%;
  z-index: 11;
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(192,132,252,0.2);
  border-bottom: 1px solid rgba(192,132,252,0.2);
  padding: 12px 0;
  margin: 0;
  background: rgba(192,132,252,0.04);
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marquee 18s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-muted);
  padding: 0 2.5rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.marquee-item span { color: var(--c-purple); margin-right: 0.5rem; }

/* ── HORIZONTAL ALTERNATING TIMELINE ── */
.tl-wrapper {
  position: relative;
  width: 100%;
  padding: 1rem 0;
  overflow: hidden;
  margin-top: 1rem;
}
.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 1rem;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
  scroll-behavior: smooth;
  /* Hide scrollbars */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.tl-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tl-track {
  display: flex;
  position: relative;
  width: max-content;
  padding: 0 4rem; /* initial and final padding */
  height: 860px; /* height of alternating layout */
  align-items: center;
}

/* Simple solid timeline line matching theme */
.tl-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(192, 132, 252, 0.4);
  transform: translateY(-50%);
  z-index: 2;
}

/* Timeline item wrapper */
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 380px; /* horizontal spacing */
  height: 100%;
}

/* Alternating Space Heights & Layouts */
.tl-top-space, .tl-bottom-space {
  height: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tl-top-space {
  justify-content: flex-end; /* cards sit right above node */
  padding-bottom: 30px; /* space for vertical connector line */
}
.tl-bottom-space {
  justify-content: flex-start; /* cards sit right below node */
  padding-top: 30px; /* space for vertical connector line */
}

.tl-node-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Timeline Node centered on timeline bar */
.tl-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 3px solid var(--c-purple);
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}
.tl-item:hover .tl-node {
  transform: scale(1.2);
  border-color: var(--c-cyan);
}
.tl-item.active .tl-node {
  border-color: var(--c-yellow);
  background: var(--c-yellow);
  box-shadow: 0 0 10px var(--c-yellow);
}

/* Vertical filament connectors for items with top cards */
.tl-item.pos-top .tl-top-space::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: var(--c-purple);
  z-index: 1;
  transition: background 0.3s ease;
}
.tl-item.pos-top:hover .tl-top-space::after {
  background: var(--c-cyan);
}
.tl-item.pos-top.active .tl-top-space::after {
  background: var(--c-yellow);
}

/* Vertical filament connectors for items with bottom cards */
.tl-item.pos-bottom .tl-bottom-space::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: var(--c-purple);
  z-index: 1;
  transition: background 0.3s ease;
}
.tl-item.pos-bottom:hover .tl-bottom-space::after {
  background: var(--c-cyan);
}
.tl-item.pos-bottom.active .tl-bottom-space::after {
  background: var(--c-yellow);
}

/* Retro Glassmorphic Timeline Card matching main site theme */
.tl-card {
  background: var(--c-bg2);
  border: 2px solid rgba(192, 132, 252, 0.15);
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.1);
  padding: 1.25rem;
  border-radius: 8px;
  width: 340px;
  text-align: left;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  max-height: 125px; /* Collapsed to fit neatly within vertical budget */
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
}
.tl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.3), transparent);
}
.tl-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: linear-gradient(0deg, var(--c-bg2) 15%, rgba(26, 21, 44, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Custom scrollbars inside expanded card content */
.tl-card::-webkit-scrollbar {
  width: 4px;
}
.tl-card::-webkit-scrollbar-track {
  background: transparent;
}
.tl-card::-webkit-scrollbar-thumb {
  background: var(--c-purple);
  border-radius: 2px;
}

/* Hover & Explicit Expanded State for showing full lists */
.tl-card:hover, .tl-card.expanded {
  max-height: 380px; /* Expands fully to contain all text content with zero scrollbars */
  overflow: hidden; /* No scrollbars whatsoever! */
  border-color: var(--c-purple);
  box-shadow: 6px 6px 0 var(--c-purple), 0 10px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  z-index: 99; /* Lift above neighboring connector overlay levels */
}
.tl-card:hover::after, .tl-card.expanded::after {
  opacity: 0;
}

.tl-item.active .tl-card {
  border-color: var(--c-yellow);
  box-shadow: 6px 6px 0 var(--c-yellow);
  background: linear-gradient(135deg, var(--c-bg2), rgba(255, 184, 108, 0.04));
}
.tl-item.active .tl-card::before {
  background: linear-gradient(90deg, transparent, var(--c-yellow), transparent);
}
.tl-item.active .tl-card::after {
  background: linear-gradient(0deg, #1b162e 15%, rgba(27, 22, 46, 0));
}
.tl-item.active .tl-card:hover,
.tl-item.active .tl-card.expanded {
  border-color: var(--c-yellow);
  box-shadow: 6px 6px 0 var(--c-yellow);
}

/* Highlights (Showcase final card in retro pink) */
.tl-card.highlight-card {
  border-color: var(--c-pink);
  box-shadow: 4px 4px 0 rgba(244, 114, 182, 0.2);
}
.tl-card.highlight-card::before {
  background: linear-gradient(90deg, transparent, var(--c-pink), transparent);
}
.tl-card.highlight-card:hover,
.tl-card.highlight-card.expanded {
  border-color: var(--c-pink);
  box-shadow: 6px 6px 0 var(--c-pink), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.tl-item.active .tl-date {
  color: var(--c-yellow);
}
.tl-title {
  font-size: 16px;
  color: var(--c-white);
  font-weight: 600;
  font-family: var(--font-body);
}
.tl-desc {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 5px 10px;
  background: var(--c-yellow);
  color: #0d0b14;
  border-radius: 4px;
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
  animation: pulse-glow 2s infinite alternate;
}

/* Timeline detail grids & lists inside cards */
.tl-details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(192, 132, 252, 0.15);
}
.tl-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-section-title i {
  color: var(--c-purple);
}
.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
}
.tl-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #c4b5d4;
  line-height: 1.4;
}
.tl-list li strong {
  color: var(--c-white);
}
.tl-list .bullet {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--c-purple);
  margin-top: 6px;
  flex-shrink: 0;
}
.tl-list.rewards-list .bullet {
  font-size: 11px;
  margin-top: 1px;
}

@media (max-width: 767px) {
  /* Compact Hero Layout & Spacing */
  .hero {
    min-height: auto;
    padding: 3rem 1rem 180px; /* leaves exactly enough space at bottom for street scene */
  }
  .hero-desc {
    font-size: 15px;
    margin: 0 auto 1.5rem;
  }
  .hero-cta {
    margin-bottom: 2rem;
  }
  
  /* Street Scene Decluttering & Congestion Fix */
  .scene-woman-2 {
    display: none !important; /* Remove 1 girl as requested to free up space */
  }
  .scene-lamp-right {
    display: none !important; /* Remove second street lamp to avoid massive crowd overlap */
  }
  .scene-bush-2, 
  .scene-shop-bush-right, 
  .scene-bush-1 {
    display: none !important; /* Hide extra bushes to declutter landscape */
  }
  
  /* Clean positioning of remaining characters & accessories */
  .scene-man {
    left: 77% !important;
  }
  .scene-woman-1 {
    left: 85% !important;
  }
  .scene-dog {
    left: 8% !important;
  }
  
  /* Switch timeline container to a vertical scrolling layout */
  .tl-scroll {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0;
  }
  
  .tl-track {
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 2rem 0;
    align-items: stretch;
  }
  
  /* Vertical timeline line running directly down the center */
  .tl-line {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background: rgba(192, 132, 252, 0.4);
    z-index: 2;
  }
  
  .tl-item {
    flex-direction: column;
    align-items: center;
    min-width: auto;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
    gap: 0.75rem;
  }
  
  .tl-item:last-child {
    margin-bottom: 0;
  }
  
  /* Disable alternating space dimensions & draw contents flatly */
  .tl-top-space, .tl-bottom-space {
    display: contents;
  }
  
  /* Hide the horizontal connector line filaments */
  .tl-item.pos-top .tl-top-space::after,
  .tl-item.pos-bottom .tl-bottom-space::after {
    display: none !important;
  }
  
  /* Hide timeline nodes/dots on mobile */
  .tl-node-container {
    display: none !important;
  }
  
  /* Mobile timeline cards: centered, full width, no maximum height limits, fully visible */
  .tl-card, 
  .tl-card.highlight-card {
    width: 90% !important;
    max-width: 360px;
    margin: 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
    cursor: default;
    padding: 1.25rem;
    box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.1);
    transform: none !important;
    z-index: 10;
  }
  
  /* Hide the fading gradient mask since card is fully open */
  .tl-card::after {
    display: none !important;
  }
  
  .tl-badge {
    margin-top: 1rem;
    display: inline-block;
  }
  
  /* Prizes Grid responsive override */
  .prizes-grid {
    grid-template-columns: 1fr !important;
  }
  .prize-card, .prize-card.category-card {
    grid-column: auto !important;
  }
}

/* ── DISCORD CTA ── */
.discord-block {
  background: var(--c-bg2);
  border: 2px solid rgba(114,137,218,0.5);
  box-shadow: 5px 5px 0 rgba(114,137,218,0.25);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.discord-block .label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #7289da;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.discord-block p { font-size: 15px; color: var(--c-muted); }

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .showcase-banner { grid-template-columns: 1fr; }
  .hero-title { font-size: 20px; }
}
.promo-details { margin: 1.25rem 0 1.5rem; font-family: var(--font-mono); color: var(--c-muted); display: flex; gap: 1rem; align-items: stretch; justify-content: space-between; flex-wrap: wrap; font-size: 13px; max-width: 900px; margin-left: auto; margin-right: auto; }
.promo-details > div { flex: 1 1 260px; min-width: 200px; text-align: center; padding: 8px 12px; }
.promo-details a { color: var(--c-cyan); text-decoration: none; border-bottom: 1px dashed rgba(103,232,249,0.15); }
/* footer social links */
.social-links { display: flex; gap: 0.85rem; justify-content: center; align-items: center; margin: 0.75rem 0; flex-wrap: wrap; }
.social-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 60px; height: 60px; border-radius: 12px; transition: transform 0.12s ease, filter 0.12s ease; overflow: hidden; }
.social-link:hover { transform: translateY(-2px); }
.social-link:active { transform: translateY(1px) scale(0.96); }
.social-link-icon { background: transparent; border: none; box-shadow: none; }
.social-link-icon.itch,
.social-link-icon.discord,
.social-link-icon.whatsapp,
.social-link-icon.insta,
.social-link-icon.linkedin,
.social-link-icon.x,
.social-link-icon.youtube { background: transparent; }
.social-icon { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; image-rendering: pixelated; transition: opacity 0.12s ease, transform 0.12s ease, filter 0.12s ease; }
.social-icon-normal { opacity: 1; }
.social-icon-pressed { opacity: 0; transform: translateY(2px) scale(0.95); }
.social-link:hover .social-icon-normal,
.social-link:focus-visible .social-icon-normal { opacity: 0; }
.social-link:hover .social-icon-pressed,
.social-link:focus-visible .social-icon-pressed,
.social-link:active .social-icon-pressed { opacity: 1; transform: translateY(0) scale(1); }
.social-link:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .promo-details { flex-direction: column; gap: 0.5rem; }
  .promo-details > div { min-width: auto; width: 100%; flex: none !important; }
  .social-links { gap: 0.5rem; }
  .social-link { width: 48px; height: 48px; border-radius: 12px; }
}

/* Tabs styling */
.tabs { padding: 2rem 0; }
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.tabs-nav .tab-btn {
  font-family: var(--font-mono);
  background: transparent;
  border: 2px solid rgba(192,132,252,0.12);
  color: var(--c-white);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tabs-nav .tab-btn[aria-selected="true"] { background: linear-gradient(90deg, rgba(192,132,252,0.12), rgba(103,232,249,0.06)); box-shadow: 4px 4px 0 rgba(76,29,149,0.25); border-color: var(--c-purple); }
.tab-panel { display: block; }
.tab-panel[hidden] { display: none; }
.tab-panel section { padding: 2.5rem 0; }

/* Timer styles */
.timers { display: flex; gap: 0.75rem; justify-content: center; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.timer { font-family: var(--font-mono); background: var(--c-bg2); border: 2px solid rgba(192,132,252,0.15); padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--c-white); min-width: 160px; text-align: center; }
.timer .t-val { display: block; margin-top: 4px; font-family: var(--font-pixel); font-size: 15px; color: var(--c-purple); }

/* General Mobile/Tablet Responsiveness Enhancements */
@media (max-width: 600px) {
  /* Prevent square cards from stretching excessively in single column */
  .info-card {
    aspect-ratio: auto;
    height: auto;
    min-height: auto;
    padding: 1.5rem 1.25rem;
  }
  
  /* Prevent giant padding from clipping card text */
  .theme-card {
    padding: 2rem 1.25rem;
    box-shadow: 5px 5px 0 #4c1d95;
  }
  
  .showcase-banner {
    padding: 1.75rem;
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  /* Stack countdown timers vertically so they never overflow screens */
  .timers {
    flex-direction: column;
    gap: 0.60rem;
    width: 100%;
    align-items: center;
  }
  .timer {
    width: 100%;
    max-width: 260px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .partner-logos {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  .logo-game-connect {
    height: 32px !important;
  }
  .logo-gdai {
    height: 26px !important;
  }
  .logo-igda {
    height: 28px !important;
  }
  .logo-geekroom {
    height: 38px !important;
  }
  .organizer-card {
    margin: 0.4rem auto;
  }

  .hero-register {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ── PARTNERS SECTION ── */
.partners-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid rgba(192, 132, 252, 0.2);
  background: linear-gradient(180deg, var(--c-bg), rgba(28, 0, 61, 0.7) 100%);
  position: relative;
}

.partners-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: center;
  width: 100%;
}

.partner-tier {
  width: 100%;
  display: flex;
  justify-content: center;
}

.partner-tier.sponsor-tier {
  max-width: 860px; /* Sponsor is top of hierarchy, full width */
}

.partner-tier.primary-tier {
  max-width: 860px; /* Full-width of container for ultimate prominence */
}

.partner-tier.secondary-tier {
  max-width: 720px; /* Nested hierarchical scaling */
}

.partner-tier .partner-card {
  width: 100%;
}

.partner-card {
  background: var(--c-bg2);
  border: 3px solid var(--c-purple);
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 6px 6px 0 rgba(192, 132, 252, 0.15);
}

.partner-card::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(192, 132, 252, 0.1);
  pointer-events: none;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-cyan);
  box-shadow: 8px 8px 0 var(--c-pink);
}

.partner-card.sponsor-partner {
  border-color: var(--c-cyan);
  box-shadow: 6px 6px 0 var(--c-pink);
}

.partner-card.sponsor-partner::before {
  border-color: rgba(139, 233, 253, 0.2);
}

.partner-card.sponsor-partner:hover {
  border-color: var(--c-green);
  box-shadow: 8px 8px 0 var(--c-cyan);
}

.partner-card.ecosystem-partner {
  border-color: var(--c-yellow);
  box-shadow: 6px 6px 0 var(--c-purple);
}

.partner-card.ecosystem-partner::before {
  border-color: rgba(255, 184, 108, 0.2);
}

.partner-card.ecosystem-partner:hover {
  border-color: var(--c-cyan);
  box-shadow: 8px 8px 0 var(--c-yellow);
}

.partner-role-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 6px 12px;
  border: 2px solid;
  letter-spacing: 0.12em;
  background: var(--c-bg);
  z-index: 2;
}

.partner-role-badge.sponsor {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.partner-role-badge.ecosystem {
  color: var(--c-yellow);
  border-color: var(--c-yellow);
}

.partner-role-badge.community {
  color: var(--c-purple);
  border-color: var(--c-purple);
}

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.partner-logo-container {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(192, 132, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.partner-card:hover .partner-logo-container {
  border-color: var(--c-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.partner-header-text {
  display: flex;
  flex-direction: column;
}

.partner-name {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--c-white);
  margin-bottom: 4px;
}

.partner-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
}

.partner-description {
  font-size: 14px;
  color: #c4b5d4;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.partner-social-section {
  border-top: 1px dashed rgba(192, 132, 252, 0.2);
  padding-top: 1.25rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-label-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
}

.partner-social-links {
  display: flex;
  gap: 0.75rem;
}

.partner-social-links .social-link {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .partners-container {
    gap: 2.5rem;
  }
  .partner-tier.sponsor-tier,
  .partner-tier.primary-tier,
  .partner-tier.secondary-tier {
    max-width: 100%;
  }
  .partner-card {
    padding: 2rem 1.5rem;
  }
  .partner-social-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
