/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:          #0d0d20;
  --surface:     #14142e;
  --surface-2:   #1c1c3a;
  --border:      rgba(120, 60, 240, 0.28);
  --border-hi:   rgba(120, 60, 240, 0.65);
  --purple:      #7c3aed;
  --purple-lo:   rgba(124, 58, 237, 0.18);
  --purple-glow: rgba(124, 58, 237, 0.6);
  --amber:       #f59e0b;
  --amber-lo:    rgba(245, 158, 11, 0.18);
  --amber-glow:  rgba(245, 158, 11, 0.6);
  --cyan:        #22d3ee;
  --cyan-glow:   rgba(34, 211, 238, 0.5);
  --text:        #f0f2f8;
  --muted:       #6b7390;
  --muted-hi:    #a0abc4;
  --r:           16px;
  --r-sm:        10px;
  --header-h:    66px;
  --font-head:   'Jua', 'Noto Sans KR', sans-serif;
  --font-body:   'Noto Sans KR', system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* grain */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2; /* 한글 Noto Sans KR 메트릭 정규화 */
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--muted-hi);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--purple-lo);
}

.btn-signup-header {
  background: var(--purple);
  color: #fff;
}
.btn-signup-header:hover {
  background: #6d28d9;
  box-shadow: 0 0 20px var(--purple-glow);
  transform: translateY(-1px);
}

.btn-hero-primary {
  background: var(--amber);
  color: #08080f;
  font-size: 1rem;
  font-weight: 900;
  padding: 0.85rem 2.2rem;
  border-radius: var(--r);
  letter-spacing: -0.01em;
}
.btn-hero-primary:hover {
  background: #e08c00;
  box-shadow: 0 0 32px var(--amber-glow), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.btn-hero-ghost {
  background: transparent;
  color: var(--muted-hi);
  border: 1px solid var(--border-hi);
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  border-radius: var(--r);
}
.btn-hero-ghost:hover {
  color: var(--text);
  background: var(--purple-lo);
}

.btn-notify {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 0.75rem 1.8rem;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.5rem;
}
.btn-notify:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 24px var(--purple-glow);
  transform: translateY(-2px);
}

.btn-early {
  background: #fff;
  color: #08080f;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r);
  flex-shrink: 0;
}
.btn-early:hover {
  background: #f0f0f0;
  box-shadow: 0 0 40px rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-modal-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  background: var(--purple);
  color: #fff;
  line-height: 1.2;
}
.btn-modal-submit:hover {
  background: #6d28d9;
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-modal-accent {
  background: var(--amber);
  color: #08080f;
  font-weight: 900;
}
.btn-modal-accent:hover {
  background: #e08c00;
  box-shadow: 0 0 20px var(--amber-glow);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(13, 13, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 42px; width: auto; object-fit: contain; transition: filter 0.2s; }
.logo-link:hover .logo-img { filter: drop-shadow(0 0 12px var(--amber-glow)); }
.header-nav { display: flex; gap: 0.6rem; align-items: center; }

.header-user-btn {
  gap: 0.55rem;
}

.header-user-label {
  line-height: 1.2;
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.header-user-avatar img,
.header-user-avatar span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.header-user-avatar img {
  object-fit: cover;
}

.header-user-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  padding-top: 2px; /* Jua 한글 폰트 어센더 메트릭 보정 */
}

.is-hidden {
  display: none !important;
}

/* ── Header coin badge ────────────────────────────────────── */
.header-coin-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.3rem 0.5rem; /* 한글 숫자 렌더링 보정 */
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.header-coin-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 2rem;
}

.hero-bg { position: absolute; inset: 0; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-purple { width: 500px; height: 500px; background: var(--purple); opacity: 0.28; top: -10%; left: -15%; animation: drift 12s ease-in-out infinite; }
.orb-amber  { width: 400px; height: 400px; background: var(--amber);  opacity: 0.22; bottom: -5%; right: -10%; animation: drift 10s ease-in-out infinite reverse; }
.orb-cyan   { width: 260px; height: 260px; background: var(--cyan);   opacity: 0.18; top: 40%; left: 55%; animation: drift 14s ease-in-out infinite; animation-delay: -4s; }

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.8s cubic-bezier(.16,1,.3,1) both;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.4rem 0.75rem; /* 한글 어센더 보정: 상단 0.05rem 추가 */
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 0.83rem;
  line-height: 1.2;
  color: var(--muted-hi);
}
.hero-live-badge strong { color: #a78bfa; }
.live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-head);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.title-pre {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--muted-hi);
  letter-spacing: 0.02em; /* 한글에 0.06em은 지나치게 넓음 */
  font-weight: 400;
  font-family: var(--font-body);
}

.title-main {
  font-size: clamp(3rem, 9vw, 6.2rem);
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.title-main em {
  font-style: normal;
  color: var(--amber);
  text-shadow:
    0 0 20px var(--amber-glow),
    0 0 60px rgba(245,158,11,0.25);
  display: inline-block;
  animation: em-bounce 2.4s ease-in-out infinite;
}

@keyframes em-bounce {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%       { transform: rotate(2deg) translateY(-5px); }
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted-hi);
  line-height: 1.7;
  max-width: 44ch;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ── Games Section ────────────────────────────────────────── */
.games-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.games-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.4);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--purple-lo);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.25;
  color: var(--text);
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted-hi);
  line-height: 1.6;
}

/* ── Spotlight Card ───────────────────────────────────────── */
.spotlight-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 0.5rem;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(124,58,237,0.25), 0 0 0 1px rgba(124,58,237,0.3);
}

.card-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 65%);
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.card-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.card-badge-soon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  color: var(--muted-hi);
  background: var(--surface);
}

.card-mystery-icon {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.mystery-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.3);
  animation: ring-expand 3s ease-in-out infinite;
}
.ring-1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.ring-2 { width: 80px;  height: 80px;  animation-delay: 0.6s; }
.ring-3 { width: 100px; height: 100px; animation-delay: 1.2s; }

.mystery-qmark {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--purple);
  text-shadow: 0 0 20px var(--purple-glow);
  position: relative;
  z-index: 1;
  animation: qmark-float 3s ease-in-out infinite;
}

.card-title-main {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}

.card-desc-main {
  font-size: 0.88rem;
  color: var(--muted-hi);
  line-height: 1.6;
}

/* ── Upcoming Row ─────────────────────────────────────────── */
.upcoming-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.upcoming-item {
  width: 48px;
  height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  filter: blur(4px);
  opacity: 0.4;
  transition: all 0.3s;
}
.upcoming-item:hover { filter: blur(0); opacity: 0.7; }

.upcoming-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Early Access Banner ──────────────────────────────────── */
.early-banner {
  background: linear-gradient(135deg, #22103e 0%, #161638 50%, #221800 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.early-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.early-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
}
.early-title em {
  font-style: normal;
  color: var(--amber);
  text-shadow: 0 0 20px var(--amber-glow);
}

.early-sub {
  font-size: 0.88rem;
  color: var(--muted-hi);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.early-sub span { display: flex; align-items: center; gap: 0.3rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.footer-logo { height: 34px; opacity: 0.65; }
.footer-copy { color: var(--muted); font-size: 0.8rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--muted); font-size: 0.78rem; text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover { color: var(--muted-hi); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 4, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(124,58,237,0.15), 0 0 60px rgba(124,58,237,0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.16,1,.3,1);
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted-hi);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hi); }

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.modal-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.25rem; }
.modal-title { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; }
.modal-subtitle { font-size: 0.83rem; color: var(--muted-hi); line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.field-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.field-inline input {
  flex: 1;
}

.btn-check {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-check:hover {
  border-color: var(--border-hi);
  background: var(--purple-lo);
}

.field-note {
  min-height: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted-hi);
}
.field-note.is-error { color: #fca5a5; }
.field-note.is-success { color: #86efac; }

.auth-status {
  min-height: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted-hi);
}
.auth-status.is-error { color: #fca5a5; }
.auth-status.is-success { color: #86efac; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--muted-hi); }
.field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-font-smoothing: antialiased;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-lo);
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  color: var(--muted-hi);
  font-size: 0.84rem;
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--purple);
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-hi);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.15s, background 0.15s;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text);
  background: var(--purple-lo);
  outline: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch { text-align: center; font-size: 0.83rem; color: var(--muted-hi); }
.link-btn {
  background: none;
  border: none;
  color: #a78bfa;
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--purple); }

/* ── Welcome Modal ────────────────────────────────────────── */
.welcome-coin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
  border: 1.5px solid rgba(245,158,11,.35);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  margin: 0.25rem 0 1.25rem;
  position: relative;
  overflow: hidden;
}
.welcome-coin-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.18) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-coin-emoji {
  font-size: 2.4rem;
  line-height: 1;
  animation: coin-bounce 0.6s cubic-bezier(.36,1.56,.64,1) both;
}
@keyframes coin-bounce {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}
.welcome-coin-amount {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--amber);
  letter-spacing: -1px;
  animation: coin-bounce 0.6s 0.1s cubic-bezier(.36,1.56,.64,1) both;
}
.welcome-coin-label {
  font-size: 0.78rem;
  color: rgba(245,158,11,.75);
  font-weight: 700;
}
.welcome-modal-desc {
  font-size: 0.85rem;
  color: var(--muted-hi);
  line-height: 1.65;
  text-align: center;
}
.welcome-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
/* ── Welcome Toast (legacy — fallback only) ───────────────── */
.welcome-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--surface-2), #1e1248);
  border: 1px solid rgba(124, 58, 237, 0.6);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2), 0 0 32px rgba(124,58,237,0.2);
  min-width: 280px;
  max-width: 420px;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.16,1,.3,1), opacity 0.45s ease;
  opacity: 0;
}
.welcome-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.welcome-toast-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.welcome-toast-body { display: flex; flex-direction: column; gap: 0.15rem; }
.welcome-toast-body strong { font-family: var(--font-head); font-size: 1rem; color: var(--text); }
.welcome-toast-body span  { font-size: 0.85rem; color: var(--amber); font-weight: 700; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

@keyframes ring-expand {
  0%   { opacity: 0.5; transform: scale(0.9); }
  50%  { opacity: 0.2; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

@keyframes qmark-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 0 1.25rem; }
  .hero { padding: 3rem 1.25rem; min-height: auto; }
  .hero-title { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .games-section { padding: 4rem 1.25rem; }
  .early-inner { flex-direction: column; text-align: center; }
  .early-sub { justify-content: center; }
  .modal { padding: 2rem 1.25rem 1.75rem; }
}
