/* ============================================================================
   The Luck Guide — coming-soon site
   Atmospheric theme ported from the app (AtmosphericTheme.swift).
   ============================================================================ */

:root {
  --gold:        #FFD666;
  --gold-soft:   #F2C24C;
  --gold-dim:    #C49A4A;
  --ink:         #F1E9FF;
  --ink-dim:     rgba(241, 233, 255, 0.62);
  --ink-faint:   rgba(241, 233, 255, 0.40);
  --bg-bottom:   #040312;
  --bg-deep:     #0D0A29;
  --bg-inner:    #110A2A;
  --violet:      #4A3972;
  --rose:        #F27373;
  --glass:       rgba(23, 26, 56, 0.55);
  --glass-line:  rgba(255, 214, 102, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-bottom);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
}

/* fixed atmospheric backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--violet) 0%, rgba(74,57,114,0) 45%),
    radial-gradient(140% 100% at 50% 0%, var(--bg-deep) 0%, var(--bg-inner) 40%, var(--bg-bottom) 100%);
}
.backdrop::after {
  /* faint star noise */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.25), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: 0.5;
}

/* ---- centered stage ----------------------------------------------------- */
.stage {
  width: min(680px, 92vw);
  margin: 0 auto;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 48px 0 24px;
  text-align: center;
}

/* brand: icon + wordmark */
.brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brand img {
  width: 76px; height: 76px; border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 8vw, 62px);
  line-height: 1;
  letter-spacing: 0.5px;
}
.wordmark .gold { color: var(--gold); }

/* ---- dome --------------------------------------------------------------- */
.dome-frame {
  position: relative;
  width: 100%;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(20,22,48,0.55), rgba(8,7,22,0.7));
  border: 1px solid var(--glass-line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}
#dome {
  display: block;
  width: 100%;
  height: clamp(300px, 52vw, 380px);
  touch-action: pan-y;
}

/* ---- coming soon / App Store badge -------------------------------------- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: 13px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  user-select: none;
}
.appstore-badge .apple { width: 26px; height: 26px; flex: 0 0 auto; }
.appstore-badge .txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .small { font-size: 11px; letter-spacing: 0.2px; opacity: 0.92; }
.appstore-badge .big { font-size: 21px; font-weight: 600; letter-spacing: 0.2px; }

/* ---- footer ------------------------------------------------------------- */
footer { padding: 18px 0 44px; text-align: center; }
.footer-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.footer-tag .gold { color: var(--gold); }
.footer-meta { font-size: 12px; color: var(--ink-faint); }
.footer-meta a { color: var(--ink-dim); text-decoration: none; }
.footer-meta a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .stage { min-height: 82vh; gap: 22px; }
  .brand img { width: 64px; height: 64px; }
}
