:root {
  --primary: #4c2a85;
  --primary-dark: #341c5c;
  --accent: #f2994a;
  --accent-2: #2fb8a6;
  --bg: #ffffff;
  --bg-soft: #f8f6fc;
  --ink: #241a35;
  --muted: #6b6178;
  --border: #e5e0ee;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(76, 42, 133, 0.08);
  --shadow-lg: 0 12px 40px rgba(76, 42, 133, 0.16);
  --nav-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fredoka', 'Hanken Grotesk', sans-serif; line-height: 1.15; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════ HEADER ═══════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); border-color: var(--border); }
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: baseline; gap: 0.35rem; text-decoration: none; }
.nav-brand-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--primary); }
.nav-brand-dot { color: var(--accent); font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.nav-link:hover { color: var(--primary); }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ═══════ HERO ═══════ */
.hero {
  padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem;
  background: radial-gradient(ellipse at top, #f2ecfb 0%, var(--bg) 60%);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero-heading { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; max-width: 18ch; margin: 0 auto 1rem; }
.hero-heading .hl { color: var(--primary); }
.hero-lead { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════ SECTIONS ═══════ */
section { padding: 4.5rem 0; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.eyebrow {
  display: block; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--accent); margin-bottom: 0.6rem;
}
.section-heading { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-lead { font-size: 1.05rem; }

/* ═══════ DISCLAIMER BANNER ═══════ */
.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: #fff7ec; border: 1px solid #f5deb8; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 0 0 2.5rem; font-size: 0.92rem; color: #6b4a1a;
}
.notice-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.notice strong { color: #8a5a10; }
.notice.notice-fun {
  background: #eefbf8; border-color: #bfeee5; color: #16594d;
}
.notice.notice-fun strong { color: #0f7a67; }

/* ═══════ CARD GRID ═══════ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.app-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.1rem; background: var(--bg-soft);
}
.app-card.is-game .app-card-icon { background: #eafaf6; }
.app-card h3 { font-size: 1.15rem; }
.app-card p { flex: 1; font-size: 0.95rem; }
.app-card-tag {
  display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary);
  background: var(--bg-soft); border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.9rem;
}
.app-card.is-game .app-card-tag { color: #0f7a67; background: #eafaf6; }
.app-card-link {
  margin-top: 1.1rem; font-weight: 700; font-size: 0.92rem; text-decoration: none; color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.app-card-link:hover { text-decoration: underline; }

/* ═══════ GAMES ═══════ */
.section-games { background: #f4fbfa; }

/* ═══════ ABOUT ═══════ */
.section-top-fade { height: 1px; }
.section-about { background: var(--bg-soft); position: relative; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-copy .section-heading { text-align: left; }
.about-figure {
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; text-align: center; font-size: 3.5rem;
}

/* ═══════ CONTACT / CTA ═══════ */
.section-contact { text-align: center; }
.contact-card {
  max-width: 640px; margin: 0 auto; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}

/* ═══════ FOOTER ═══════ */
.site-footer { background: var(--primary-dark); color: #d9cdef; padding: 2.75rem 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.footer-brand { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem; color: #fff; text-decoration: none; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: #d9cdef; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.82rem; color: #b6a4d1;
}
.footer-bottom a { color: #b6a4d1; }

/* ═══════ LEGAL PAGES ═══════ */
.legal-page { max-width: 760px; padding-top: calc(var(--nav-height) + 2.5rem); padding-bottom: 4rem; }
.legal-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 0.4rem; }
.legal-updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin-top: 2.2rem; color: var(--primary); }
.legal-page ul { color: var(--muted); padding-left: 1.3rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page p { color: var(--ink); }
.legal-callout {
  background: #fff7ec; border: 1px solid #f5deb8; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0; font-size: 0.95rem; color: #6b4a1a;
}
.legal-callout strong { color: #8a5a10; }

/* ═══════ REVEAL ANIM ═══════ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-copy .section-heading { text-align: center; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem 1.5rem; transform: translateX(100%); transition: transform .25s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
