/* ============================================================
   لـمّـة — BRAND SYSTEM
   Concept: a majlis circle at dusk. Friends sitting in a ring,
   dallah steam curling up, one phone in the middle running the game.
   Palette breaks from the generic "dark + neon accent" look: a warm
   plum night sky instead of near-black, saffron/rose instead of
   cyan/magenta, parchment cream instead of pure white.
   ============================================================ */

:root {
  --brand-bg: #150e26;
  --brand-bg-soft: #1b1330;
  --brand-surface: #211735;
  --brand-border: #362a4e;
  --brand-gold: #e8a33d;
  --brand-rose: #c65a6e;
  --brand-violet: #6b4fa0;
  --brand-sage: #8fbf6b;
  --brand-amber: #f2c14e;
  --brand-cream: #f6efe2;
  --brand-muted: #b9aecb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--brand-bg);
  color: var(--brand-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--brand-bg); }
::-webkit-scrollbar-thumb { background: var(--brand-gold); border-radius: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.display {
  font-family: 'Lalezar', 'Tajawal', sans-serif;
  letter-spacing: 1px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand-logo {
  font-family: 'Lalezar', sans-serif;
  font-size: 26px;
  color: var(--brand-cream);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo .dot { color: var(--brand-gold); }

.topbar-cta {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-cream);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}
.topbar-cta:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ---------- Hero: the majlis circle ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-gold);
  border: 1px solid rgba(232, 163, 61, 0.4);
  background: rgba(232, 163, 61, 0.08);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 26px;
  letter-spacing: 0.5px;
}

.circle-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 30px;
}

.circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(185, 174, 203, 0.25);
  animation: ringSpin 60s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.circle-chip {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 2px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(232, 163, 61, 0.35);
}
.circle-chip:nth-child(2) { top: 2%; left: 50%; transform: translate(-50%, 0); }
.circle-chip:nth-child(3) { top: 22%; right: 4%; border-color: var(--brand-rose); box-shadow: 0 0 18px rgba(198, 90, 110, 0.35); }
.circle-chip:nth-child(4) { bottom: 22%; right: 4%; border-color: var(--brand-violet); box-shadow: 0 0 18px rgba(107, 79, 160, 0.35); }
.circle-chip:nth-child(5) { bottom: 2%; left: 50%; transform: translate(-50%, 0); border-color: var(--brand-sage); box-shadow: 0 0 18px rgba(143, 191, 107, 0.35); }
.circle-chip:nth-child(6) { bottom: 22%; left: 4%; border-color: var(--brand-amber); box-shadow: 0 0 18px rgba(242, 193, 78, 0.35); }
.circle-chip:nth-child(7) { top: 22%; left: 4%; }

.circle-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--brand-surface), var(--brand-bg-soft));
  border: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 60px rgba(232, 163, 61, 0.15) inset;
}
.circle-center-code {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: 6px;
  color: var(--brand-gold);
}
.circle-center-label {
  font-size: 10.5px;
  color: var(--brand-muted);
  letter-spacing: 1px;
}

.hero h1 {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.25;
  color: var(--brand-cream);
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--brand-gold); }

.hero p.lede {
  max-width: 480px;
  margin: 0 auto 30px;
  color: var(--brand-muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-session-box {
  max-width: 340px;
  margin: 0 auto 18px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 20px 20px 16px;
}
.hero-session-row { display: flex; gap: 8px; margin-top: 10px; }
.hero-session-row:first-of-type { margin-top: 0; }
.hero-session-row .btn-primary,
.hero-session-row .btn-ghost { width: 100%; justify-content: center; padding: 12px 16px; font-size: 13.5px; }
.hero-session-row .party-code-input { flex: 1; min-width: 0; }
.hero-session-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--brand-muted); font-size: 11.5px; }
.hero-session-divider::before, .hero-session-divider::after { content: ''; flex: 1; height: 1px; background: var(--brand-border); }
.hero-session-error { color: var(--brand-rose); font-size: 12px; text-align: center; min-height: 16px; margin-top: 8px; }
.hero-session-hint { color: var(--brand-muted); font-size: 11.5px; text-align: center; margin-top: 4px; }

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-rose));
  color: #1b1330;
  border: none;
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(232, 163, 61, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232, 163, 61, 0.4); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-cream);
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: var(--brand-cream); }

/* ---------- Games showcase ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-rose);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--brand-cream);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.game-showcase-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.game-showcase-card:hover { transform: translateY(-4px); border-color: var(--brand-gold); }
.game-showcase-card .num {
  font-family: 'Lalezar', sans-serif;
  font-size: 13px;
  color: var(--brand-muted);
  letter-spacing: 2px;
}
.game-showcase-card .icon { font-size: 34px; margin: 12px 0; }
.game-showcase-card h3 { font-family: 'Lalezar', sans-serif; font-size: 20px; color: var(--brand-cream); margin-bottom: 8px; letter-spacing: 0.5px; }
.game-showcase-card p { color: var(--brand-muted); font-size: 13.5px; line-height: 1.8; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--brand-surface), var(--brand-bg-soft));
  border: 1px solid var(--brand-gold);
  border-radius: 22px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 0 50px rgba(232, 163, 61, 0.1);
}
.pricing-card .price-tag {
  font-family: 'Lalezar', sans-serif;
  font-size: 52px;
  color: var(--brand-gold);
  line-height: 1;
}
.pricing-card .price-tag small { font-size: 18px; color: var(--brand-muted); }
.pricing-card .price-note { color: var(--brand-muted); font-size: 13px; margin: 6px 0 26px; }
.pricing-card ul { list-style: none; text-align: right; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.pricing-card li { color: var(--brand-cream); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.pricing-card li .check { color: var(--brand-sage); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  text-align: center;
  color: var(--brand-muted);
  font-size: 12.5px;
  border-top: 1px solid var(--brand-border);
}

/* ---------- Access modal (frontend-only stub, no payment wired yet) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 20, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 30px 26px;
  max-width: 360px;
  text-align: center;
}
.modal-box h3 { font-family: 'Lalezar', sans-serif; font-size: 22px; color: var(--brand-gold); margin-bottom: 10px; }
.modal-box p { color: var(--brand-muted); font-size: 13.5px; line-height: 1.8; margin-bottom: 20px; }
.modal-box .btn-primary { width: 100%; justify-content: center; margin-bottom: 10px; }
.modal-close { background: none; border: none; color: var(--brand-muted); font-size: 13px; cursor: pointer; }

@media (max-width: 480px) {
  .circle-chip { width: 40px; height: 40px; font-size: 17px; }
}
