/* Home Page Specific Styles */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(250,20%,18%,0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(250,20%,18%,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--clr-neon-green);
  top: -150px; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--clr-neon-purple);
  bottom: -80px; right: -80px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero visual / arcade screen */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screen {
  background: hsl(250, 25%, 5%);
  border: 1px solid hsl(160,100%,50%,0.4);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 30px hsl(160,100%,50%,0.15),
    0 0 60px hsl(160,100%,50%,0.06),
    inset 0 0 40px hsl(160,100%,50%,0.03);
  overflow: hidden;
  position: relative;
  max-width: 420px;
  width: 100%;
  aspect-ratio: 4/3;
}
.hero-screen::before {
  content: 'PREVIEW';
  position: absolute;
  top: var(--space-2);
  left: var(--space-3);
  font-family: var(--font-display);
  font-size: 0.45rem;
  color: var(--clr-neon-green);
  opacity: 0.5;
  z-index: 1;
  letter-spacing: 0.2em;
}

#hero-canvas { width: 100%; height: 100%; display: block; }

/* --- Daily Bonus Banner --- */
.daily-bonus-banner {
  background: rgba(255, 215, 0, 0.08);
  border-top: 1px solid var(--clr-cc);
  border-bottom: 1px solid var(--clr-cc);
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  color: var(--clr-cc);
  font-size: 0.9rem;
}
.daily-bonus-banner.hidden { display: none; }

/* --- Sections --- */
.section {
  padding: var(--space-16) 0;
}

.section:nth-child(odd) {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.015), transparent);
}

/* --- Game Cards --- */
.game-card {
  position: relative;
  background: hsl(250, 20%, 9%);
  border: 1px solid hsl(250, 20%, 18%);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  border-color: hsl(160,100%,50%,0.55);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 30px hsl(160,100%,50%,0.18), 0 12px 40px rgba(0,0,0,0.5);
}

/* Thumbnail area */
.game-card-thumb {
  height: 130px;
  background: hsl(250, 20%, 14%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.1);
}

.game-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, hsl(250,20%,16%), hsl(250,20%,10%));
}

/* Gradient fade at bottom of image */
.game-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(250,20%,9%) 0%, transparent 60%);
  pointer-events: none;
}

/* Play button overlay — visible on hover */
.game-card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.game-card:hover .game-card-play-overlay { opacity: 1; }

.game-card-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-neon-green);
  color: #000;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px hsl(160,100%,50%,0.7);
  animation: play-circle-pulse 2s ease-in-out infinite;
}

@keyframes play-circle-pulse {
  0%, 100% { box-shadow: 0 0 18px hsl(160,100%,50%,0.6); }
  50%       { box-shadow: 0 0 32px hsl(160,100%,50%,0.9); }
}

/* Badges */
.game-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid hsl(160,100%,50%,0.35);
  border-radius: 20px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 800;
  color: hsl(45,100%,62%);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-card-badge-hot   { color: hsl(0,85%,65%);   border-color: hsl(0,85%,55%,0.35); }
.game-card-badge-new   { color: hsl(160,100%,65%); border-color: hsl(160,100%,50%,0.35); }
.game-card-badge-top   { color: hsl(45,100%,62%);  border-color: hsl(45,100%,55%,0.35); }

.game-card-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--clr-neon-green);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.4rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--glow-green);
}

/* Card body */
.game-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--clr-text-primary);
  line-height: 1.2;
  margin: 0;
}

.game-card-reward-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.game-card-reward-xp {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: hsl(160,100%,65%);
}

.game-card-reward-cc {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: hsl(45,100%,65%);
}

.game-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--clr-text-muted);
}

.game-card-cta {
  margin-top: auto;
  width: 100%;
  padding: var(--space-2) 0;
  background: hsl(160,100%,50%,0.1);
  color: var(--clr-neon-green);
  border: 1px solid hsl(160,100%,50%,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover .game-card-cta {
  background: var(--clr-neon-green);
  color: #000;
  box-shadow: var(--glow-green);
}

.game-card.locked-card {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Skeleton Loader */
.game-card-skeleton {
  background: hsl(250,20%,10%);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
}
.game-card-skeleton::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- CC Explainer --- */
.cc-explainer {
  background: linear-gradient(
    180deg,
    var(--clr-bg-surface) 0%,
    rgba(168, 85, 247, 0.04) 50%,
    var(--clr-bg-surface) 100%
  );
}

.cc-step {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.cc-step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.cc-step h3 {
  font-size: 0.65rem;
  margin-bottom: var(--space-3);
  color: var(--clr-neon-green);
}

/* --- Leaderboard Teaser --- */
.lb-entry {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--clr-border);
}
.lb-entry:last-child { border-bottom: none; }

.lb-rank { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; width: 28px; text-align: center; color: var(--clr-text-muted); }
.lb-rank.rank-1 { color: hsl(45,100%,55%); text-shadow: var(--glow-gold); }
.lb-rank.rank-2 { color: hsl(220,15%,60%); }
.lb-rank.rank-3 { color: hsl(25,80%,55%); }

.lb-name { flex: 1; font-family: var(--font-ui); font-weight: 600; }
.lb-score { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; color: var(--clr-neon-green); }

.lb-table-header {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--clr-neon-green);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--clr-neon-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-12) 0;
  border-top: 1px solid hsl(160,100%,50%,0.1);
  margin-top: var(--space-16);
  background: linear-gradient(180deg, transparent, hsl(160,100%,50%,0.02));
}

/* Sections that host characters */
.featured-section,
.cc-explainer,
.leaderboard-teaser,
.games-teaser {
  position: relative;
}

.site-footer { position: relative; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin: 0 auto var(--space-8); }
}

/* --- Status Bar (player XP/CC display) --- */
.status-bar {
  background: hsla(250, 20%, 10%, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(160, 100%, 50%, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  animation: status-pulse 3s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 20px hsl(160,100%,50%,0.05); }
  50%       { box-shadow: 0 0 30px hsl(160,100%,50%,0.12); }
}
.status-bar-xp { flex: 1; }
.status-bar-label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-1);
}
.status-bar-xp-track {
  height: 6px;
  background: hsl(250, 20%, 18%);
  border-radius: 999px;
  overflow: hidden;
}
.status-bar-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-neon-green), hsl(180,100%,55%));
  box-shadow: 0 0 8px hsl(160,100%,50%,0.5);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.status-bar-cc {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: hsl(45,100%,55%,0.1);
  border: 1px solid hsl(45,100%,55%,0.3);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(45,100%,55%);
}

/* --- Live Ticker Bar --- */
.live-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: hsla(250, 25%, 4%, 0.97);
  border-top: 1px solid hsl(250, 20%, 14%);
  backdrop-filter: blur(20px);
  height: 36px;
  display: flex;
  align-items: center;
}
.live-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsl(160,100%,50%,0.5) 30%, hsl(280,80%,55%,0.5) 70%, transparent 100%);
}
.live-ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-ping 1.5s ease-in-out infinite;
  position: relative;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(239,68,68,0.4);
  animation: live-ping 1.5s ease-in-out infinite;
}
@keyframes live-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}
.live-label {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.live-ticker-text {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(180,100%,95%,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Leaderboard Rank Gradients (source design) --- */
.lb-item-rank-1 {
  background: linear-gradient(to right, hsl(45,80%,50%,0.2), hsl(45,80%,50%,0.05));
  border-color: hsl(45,80%,50%,0.3) !important;
}
.lb-item-rank-2 {
  background: linear-gradient(to right, hsl(220,15%,55%,0.15), hsl(220,15%,55%,0.03));
  border-color: hsl(220,15%,55%,0.25) !important;
}
.lb-item-rank-3 {
  background: linear-gradient(to right, hsl(25,80%,45%,0.15), hsl(25,80%,45%,0.03));
  border-color: hsl(25,80%,45%,0.25) !important;
}

/* --- Daily Missions Widget --- */
.missions-widget {
  background: hsl(250, 20%, 10%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.missions-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.missions-widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin: 0;
}
.mission-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: hsl(250, 20%, 13%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  transition: border-color var(--transition-fast);
}
.mission-item:last-child { margin-bottom: 0; }
.mission-item:hover { border-color: hsl(160,100%,50%,0.3); }
.mission-item.done { opacity: 0.5; }
.mission-item-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--clr-text-primary);
}
.mission-item.done .mission-item-title {
  text-decoration: line-through;
  color: var(--clr-text-muted);
}
.mission-item-desc { font-size: 0.75rem; color: var(--clr-text-muted); }
.mission-rewards {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
}
.mission-reward-xp  { color: var(--clr-neon-green); }
.mission-reward-cc  { color: hsl(45,100%,55%); }

/* ============================================================
   NEW 3-COLUMN HOME LAYOUT
   ============================================================ */

/* Fixed background layers */
#particle-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-glow-green {
  width: 800px;
  height: 600px;
  background: hsl(160, 100%, 50%, 0.07);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-purple {
  width: 600px;
  height: 500px;
  background: hsl(280, 80%, 55%, 0.06);
  bottom: 100px;
  right: -100px;
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Page wrapper — sits above fixed layers */
.home-page {
  position: relative;
  z-index: 1;
  padding-top: var(--navbar-height, 64px);
}

/* Status strip */
.home-status-strip {
  position: relative;
  z-index: 5;
  padding: var(--space-3) var(--space-6);
}

.home-status-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: hsla(250, 20%, 10%, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(160, 100%, 50%, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-5);
  animation: status-pulse 4s ease-in-out infinite;
}

.home-status-avatar {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.home-status-info {
  flex: 1;
  min-width: 0;
}

.home-status-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.home-status-username {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--clr-text-primary);
}

.home-status-level {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 900;
  color: #000;
  background: var(--clr-neon-green);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-green);
}

.home-status-cc {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: hsl(45, 100%, 55%, 0.1);
  border: 1px solid hsl(45, 100%, 55%, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px var(--space-3);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(45, 100%, 55%);
}

.home-status-rank {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Shared XP bar */
.xp-track {
  height: 6px;
  background: hsl(250, 20%, 18%);
  border-radius: 999px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-neon-green), hsl(180, 100%, 55%));
  box-shadow: 0 0 8px hsl(160, 100%, 50%, 0.5);
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* 3-column layout wrapper */
.home-layout {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-16);
  max-width: 1600px;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .home-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Sidebars */
.home-sidebar {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  width: 264px;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .home-sidebar {
    display: flex;
    position: sticky;
    top: calc(var(--navbar-height, 64px) + var(--space-4));
    max-height: calc(100vh - var(--navbar-height, 64px) - var(--space-8));
    overflow-y: auto;
  }
}

/* Center column */
.home-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ---- Hero Center ---- */
.hero-center {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8);
  text-align: center;
}

.hero-center-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-center-glow-green {
  width: 500px;
  height: 400px;
  background: hsl(160, 100%, 50%, 0.12);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-center-glow-purple {
  width: 400px;
  height: 400px;
  background: hsl(280, 80%, 55%, 0.1);
  bottom: -80px;
  right: -80px;
}

.hero-center-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.hero-eyebrow-tag {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(45, 100%, 60%);
  margin-bottom: var(--space-4);
}

.hero-center-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-5);
  position: relative;
}

.hero-title-green {
  display: block;
  background: linear-gradient(135deg, hsl(160,100%,65%), hsl(160,100%,45%), hsl(180,100%,55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px hsl(160,100%,50%,0.6));
}

.hero-title-purple {
  display: block;
  background: linear-gradient(135deg, hsl(280,80%,75%), hsl(280,80%,50%), hsl(300,80%,60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px hsl(280,80%,55%,0.6));
}

.hero-center-subtitle {
  position: relative;
  color: var(--clr-text-secondary);
  font-weight: 600;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-center-actions {
  position: relative;
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-live-stats {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-live-stat {
  text-align: center;
}

.hero-live-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.hero-live-label {
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-live-sep {
  width: 1px;
  height: 32px;
  background: var(--clr-border);
}

/* ---- Carousel Sections ---- */
.carousel-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.2rem;
}

.carousel-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--clr-text-primary);
  margin: 0;
}

/* Override section heading underline for carousel titles */
.carousel-title::after { display: none !important; }

.carousel-row {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x mandatory;
}

.carousel-row > .game-card,
.carousel-row > a.game-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.carousel-card-skel {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  min-height: 250px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  animation: shimmer 1.5s infinite;
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ---- CC Explainer Redesign ---- */
.cc-explainer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cc-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

/* ---- Sidebar Widgets ---- */
.sidebar-widget {
  background: hsl(250, 20%, 10%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--clr-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.sidebar-widget-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  background: hsl(250, 20%, 14%);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.sidebar-widget-link {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.sidebar-widget-link:hover { color: var(--clr-text-primary); }

.sidebar-lb-skeleton {
  height: 36px;
  background: hsl(250, 20%, 13%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  animation: shimmer 1.5s infinite;
}

/* XP widget */
.sidebar-xp-widget {
  text-align: center;
}

.sidebar-xp-avatar {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.sidebar-xp-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin: 0;
}

.sidebar-level-badge {
  display: inline-block;
  background: hsl(160, 100%, 50%, 0.15);
  border: 1px solid hsl(160, 100%, 50%, 0.3);
  color: var(--clr-neon-green);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin: var(--space-2) auto;
}

.sidebar-xp-pts {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  margin: var(--space-1) 0 0;
}

/* Goal widget */
.sidebar-goal-widget .sidebar-goal-text {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-top: var(--space-2);
}

/* Quick links */
.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--clr-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.quick-link:hover {
  background: hsl(250, 20%, 13%);
  color: var(--clr-text-primary);
}

.quick-link span:last-child {
  margin-left: auto;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
}

/* ── Live Feed Widget ──────────────────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: hsl(160,100%,50%);
  box-shadow: 0 0 8px hsl(160,100%,50%);
  animation: pulse-neon 1.2s ease-in-out infinite;
  margin-right: 6px;
  flex-shrink: 0;
}

.live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}

.live-feed-skeleton {
  height: 40px;
  background: hsl(250,20%,13%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  animation: shimmer 1.5s infinite;
}

.live-feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  background: hsl(250,20%,8%,0.5);
  transition: background var(--transition-fast);
}

.live-feed-item:hover { background: hsl(250,20%,11%); }

.live-feed-item--casino { border-left: 2px solid hsl(280,80%,55%,0.4); }

.live-feed-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.live-feed-body {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-feed-user {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--clr-text-primary);
}

.live-feed-action { color: var(--clr-text-muted); }

.live-feed-cc {
  font-weight: 700;
  color: hsl(45,100%,55%);
}

.live-feed-cc--casino { color: hsl(280,80%,70%); }

.live-feed-time {
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  flex-shrink: 0;
}

.live-feed-empty {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-align: center;
  padding: var(--space-4);
}

/* ============================================================
   HERO LOGO FLOAT + SMOKE PUFFS
   ============================================================ */
.hero-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px hsl(160,100%,50%,0.45));
  animation: logo-float 3.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-smoke-puff {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: smoke-rise 4s ease-out infinite;
}

.smoke-1 { left: 50%; width: 14px; height: 14px; background: hsl(160,100%,50%,0.2);  animation-delay: 0s; }
.smoke-2 { left: 38%; width: 10px; height: 10px; background: hsl(280,80%,55%,0.18);  animation-delay: 0.9s; }
.smoke-3 { left: 60%; width: 12px; height: 12px; background: hsl(160,100%,50%,0.15); animation-delay: 1.7s; }
.smoke-4 { left: 28%; width: 8px;  height: 8px;  background: hsl(45,100%,55%,0.15);  animation-delay: 2.5s; }
.smoke-5 { left: 68%; width: 11px; height: 11px; background: hsl(280,80%,55%,0.12);  animation-delay: 3.3s; }

@keyframes smoke-rise {
  0%   { transform: translate(-50%, 0)    scale(1);   opacity: 0.7; }
  80%  { opacity: 0.1; }
  100% { transform: translate(-50%, -60px) scale(2.4); opacity: 0; }
}

/* ---- Title slide-in animations ---- */
.hero-title-green {
  animation: slide-from-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.36s;
}

.hero-title-purple {
  animation: slide-from-right 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.50s;
}

@keyframes slide-from-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Staggered hero element enter animations ---- */
@keyframes hero-elem-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.hero-logo-wrap        { animation: hero-elem-in 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0s; }
.hero-eyebrow-tag      { animation: hero-elem-in 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.22s; }
.hero-center-subtitle  { animation: hero-elem-in 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.62s; }
.hero-quick-match-wrap { animation: hero-elem-in 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.76s; }
.hero-cta-grid         { animation: hero-elem-in 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.88s; }
.hero-live-stats       { animation: hero-elem-in 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 1.00s; }

/* ---- Quick Match Button ---- */
.hero-quick-match-wrap {
  margin-bottom: var(--space-5);
}

.hero-quick-match {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, hsl(160,100%,32%), hsl(160,100%,22%));
  color: hsl(160,100%,88%);
  border: 1px solid hsl(160,100%,50%,0.4);
  border-radius: var(--radius-pill);
  padding: var(--space-4) var(--space-12);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  animation: quick-match-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-quick-match:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px hsl(160,100%,50%,0.6), 0 0 80px hsl(160,100%,50%,0.2) !important;
}

@keyframes quick-match-pulse {
  0%, 100% { box-shadow: 0 0 20px hsl(160,100%,50%,0.3), 0 0 40px hsl(160,100%,50%,0.1); }
  50%       { box-shadow: 0 0 35px hsl(160,100%,50%,0.55), 0 0 65px hsl(160,100%,50%,0.2); }
}

/* ---- CTA Grid ---- */
.hero-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: 460px;
  margin: 0 auto var(--space-6);
}

.hero-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: hsl(250,20%,11%);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-cta-btn:hover { transform: translateY(-3px) scale(1.02); }

.hero-cta-icon  { font-size: 1.3rem; margin-bottom: 2px; }

.hero-cta-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.hero-cta-sub {
  font-size: 0.61rem;
  color: var(--clr-text-muted);
  line-height: 1.3;
}

/* Per-color variants */
.hero-cta-arcade { border-color: hsl(160,100%,50%,0.28); }
.hero-cta-arcade .hero-cta-label { color: hsl(160,100%,65%); }
.hero-cta-arcade:hover { border-color: hsl(160,100%,50%,0.65); background: hsl(160,100%,50%,0.06); box-shadow: 0 0 18px hsl(160,100%,50%,0.12); }

.hero-cta-casino { border-color: hsl(280,80%,55%,0.28); }
.hero-cta-casino .hero-cta-label { color: hsl(280,80%,72%); }
.hero-cta-casino:hover { border-color: hsl(280,80%,55%,0.65); background: hsl(280,80%,55%,0.06); box-shadow: 0 0 18px hsl(280,80%,55%,0.12); }

.hero-cta-arena { border-color: hsl(0,85%,55%,0.28); }
.hero-cta-arena .hero-cta-label { color: hsl(0,85%,65%); }
.hero-cta-arena:hover { border-color: hsl(0,85%,55%,0.65); background: hsl(0,85%,55%,0.06); box-shadow: 0 0 18px hsl(0,85%,55%,0.12); }

.hero-cta-shop { border-color: hsl(45,100%,55%,0.28); }
.hero-cta-shop .hero-cta-label { color: hsl(45,100%,62%); }
.hero-cta-shop:hover { border-color: hsl(45,100%,55%,0.65); background: hsl(45,100%,55%,0.06); box-shadow: 0 0 18px hsl(45,100%,55%,0.12); }

/* ============================================================
   LAYER FLOW SECTION — "How the Crispy Arcade Works"
   ============================================================ */
.layer-flow-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.layer-flow-header { text-align: center; }

.layer-flow-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--clr-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2);
}
/* Remove the default section heading underline if present */
.layer-flow-title::after { display: none !important; }

.layer-flow-subtitle {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  margin: 0;
}

.layer-flow-grid {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* Cards */
.layer-card {
  flex: 1 1 160px;
  max-width: 210px;
  min-height: 210px;
  background: hsl(250,20%,10%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.layer-card:hover { transform: translateY(-5px) scale(1.02); }

.layer-card-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.layer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.layer-card-num {
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--clr-text-muted);
}

.layer-card-icon { font-size: 1.5rem; }

.layer-card-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: var(--space-2) 0 0;
}

.layer-card-desc {
  font-size: 0.78rem;
  color: var(--clr-text-secondary);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.layer-card-rule {
  font-size: 0.61rem;
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}

/* Layer color variants */
.layer-card-arcade .layer-card-top-line { background: hsl(160,100%,50%); }
.layer-card-arcade .layer-card-name     { color: hsl(160,100%,65%); }
.layer-card-arcade:hover { border-color: hsl(160,100%,50%,0.4); box-shadow: 0 8px 32px hsl(160,100%,50%,0.14); }

.layer-card-casino .layer-card-top-line { background: hsl(280,80%,55%); }
.layer-card-casino .layer-card-name     { color: hsl(280,80%,72%); }
.layer-card-casino:hover { border-color: hsl(280,80%,55%,0.4); box-shadow: 0 8px 32px hsl(280,80%,55%,0.14); }

.layer-card-shop .layer-card-top-line { background: hsl(45,100%,55%); }
.layer-card-shop .layer-card-name     { color: hsl(45,100%,60%); }
.layer-card-shop:hover { border-color: hsl(45,100%,55%,0.4); box-shadow: 0 8px 32px hsl(45,100%,55%,0.14); }

.layer-card-arena .layer-card-top-line { background: hsl(0,85%,55%); }
.layer-card-arena .layer-card-name     { color: hsl(0,85%,65%); }
.layer-card-arena:hover { border-color: hsl(0,85%,55%,0.4); box-shadow: 0 8px 32px hsl(0,85%,55%,0.14); }

/* Chevron arrows */
.layer-flow-arrow {
  font-size: 1.6rem;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  align-self: center;
  display: none;
  animation: arrow-bounce 1.4s ease-in-out infinite;
}

@media (min-width: 900px) {
  .layer-flow-arrow { display: block; }
  .layer-flow-grid  { flex-wrap: nowrap; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0);   opacity: 0.4; }
  50%       { transform: translateX(5px); opacity: 0.9; }
}

/* ============================================================
   DYNAMIC MISSIONS
   ============================================================ */
.dyn-missions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dyn-mission-item {
  background: hsl(250,20%,13%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color 0.2s ease;
}

.dyn-mission-item:hover { border-color: hsl(160,100%,50%,0.3); }

.dyn-mission-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.dyn-mission-icon { font-size: 1.1rem; flex-shrink: 0; }

.dyn-mission-info { flex: 1; min-width: 0; }

.dyn-mission-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--clr-text-primary);
  margin: 0 0 2px;
}

.dyn-mission-desc {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  margin: 0;
}

.dyn-mission-rewards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
}

.dyn-mission-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dyn-progress-track {
  flex: 1;
  height: 5px;
  background: hsl(250,20%,20%);
  border-radius: 999px;
  overflow: hidden;
}

.dyn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(160,100%,50%), hsl(160,100%,35%));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 6px hsl(160,100%,50%,0.35);
  width: 0%;
}

.dyn-progress-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   NEXT GOAL CARD
   ============================================================ */
.next-goal-icon {
  display: inline-block;
  animation: goal-pulse 1.8s ease-in-out infinite;
}

@keyframes goal-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

.next-goal-desc {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: var(--space-2) 0 var(--space-3);
}

.next-goal-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.next-goal-track {
  flex: 1;
  height: 8px;
  background: hsl(250,20%,18%);
  border-radius: 999px;
  overflow: hidden;
}

.next-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(45,100%,55%), hsl(45,100%,42%));
  border-radius: 999px;
  box-shadow: 0 0 8px hsl(45,100%,55%,0.4);
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.next-goal-pct {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: hsl(45,100%,60%);
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
}
