:root {
  --space-deep: #1b1240;
  --space-mid: #362463;
  --panel: #2a1f52;
  --panel-light: #4a3a82;
  --accent: #ffd76b;
}

* { box-sizing: border-box; }

/* Not inherited from anywhere shared - this page loads no other CSS
   file, so it needs its own copy the moment it gains its first
   show/hide toggle (the Log In panel, 2026-07-25). */
.hidden { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 80% 10%, #fff 100%, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff 100%, transparent),
    radial-gradient(1px 1px at 30% 85%, #fff 100%, transparent),
    radial-gradient(1px 1px at 90% 55%, #fff 100%, transparent),
    radial-gradient(1px 1px at 45% 40%, #fff 100%, transparent),
    radial-gradient(1px 1px at 15% 60%, #fff 100%, transparent),
    linear-gradient(180deg, var(--space-deep), var(--space-mid));
  font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
  color: #f0e9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-wrap {
  text-align: center;
  padding: 32px 24px;
  max-width: 640px;
}

/* Banner slideshow - fixed-height stack of absolutely-positioned slides,
   crossfaded by toggling .is-active (see landing.js). Fixed height avoids
   the page jumping/reflowing as it cycles between the tall text banner and
   the differently-proportioned logo images. */
.landing-slideshow {
  position: relative;
  height: clamp(90px, 18vw, 140px);
  margin: 0 0 16px;
}

.landing-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.landing-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.landing-logo-img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}

.landing-banner {
  font-size: clamp(36px, 8vw, 64px);
  margin: 0;
  background: linear-gradient(90deg, #ffd76b, #ff9ad1, #6be8ff, #8fd14f, #ffd76b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: landing-title-shimmer 6s linear infinite;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

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

.landing-tagline {
  font-size: clamp(15px, 2.5vw, 19px);
  color: #cbb8ff;
  margin: 0 0 32px;
}

.play-now-btn {
  display: inline-block;
  padding: 18px 44px;
  font-family: inherit;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: bold;
  text-decoration: none;
  color: #2b1b00;
  background: linear-gradient(135deg, #fff0c2, var(--accent) 55%, #f0a940);
  border: none;
  border-bottom: 5px solid #8a5c15;
  border-radius: 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: play-now-pulse 1.8s ease-out infinite;
  transition: filter 0.15s;
}

.play-now-btn:hover { filter: brightness(1.05); }
.play-now-btn:active { filter: brightness(0.96); }

@keyframes play-now-pulse {
  0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 215, 107, 0.6); }
  70% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 18px rgba(255, 215, 107, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 215, 107, 0); }
}

/* ---------- Log In / New Player (2026-07-25 "general UI Tweeks" card) ---------- */

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.landing-login-btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: bold;
  color: #f0e9ff;
  background: var(--panel);
  border: 2px solid var(--panel-light);
  border-radius: 12px;
  cursor: pointer;
}

.landing-login-btn:hover {
  filter: brightness(1.15);
}

.landing-login-panel {
  margin: 20px auto 0;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-login-input {
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 2px solid var(--panel-light);
  background: var(--space-deep);
  color: #f0e9ff;
}

.landing-login-submit-btn {
  padding: 10px 0;
  font-size: 15px;
  animation: none;
}

.landing-login-cancel-btn {
  background: none;
  border: none;
  color: #cbb8ff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.landing-login-error {
  font-size: 12px;
  font-weight: bold;
  color: #ff9a9a;
}
