/* ==========================================================================
   Royaljeet — Global Stylesheet
   Brand gold sampled from official crown logo: #F9BB21
   Fonts: Sora (display/headings) + Inter (body)
   ========================================================================== */

:root {
  --gold: #F9BB21;
  --gold-light: #FFD35C;
  --gold-deep: #E09A0E;
  --gold-glow: rgba(249, 187, 33, 0.28);

  --bg: #0B0B10;
  --bg-2: #101018;
  --surface: #15151F;
  --surface-2: #1C1C29;
  --border: #2A2A3A;

  --text: #F3F3F7;
  --muted: #9C9CAE;
  --muted-2: #6E6E80;

  --success: #35C77B;
  --danger: #F0596B;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 85% -8%, rgba(249, 187, 33, 0.10), transparent 60%),
    radial-gradient(700px 460px at -10% 8%, rgba(249, 187, 33, 0.06), transparent 55%);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); letter-spacing: -0.4px; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.gold { color: var(--gold); }
.center { text-align: center; }
.section { padding: 78px 0; }
.section-sm { padding: 52px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 40px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1a1400; box-shadow: 0 10px 26px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--gold-glow); color: #1a1400; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 16, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 40px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .93rem;
  padding: 9px 15px; border-radius: 30px; transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--gold); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--gold); font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.14rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 1.7rem; color: #fff; display: block; }
.hero-stats .stat span { font-size: .82rem; color: var(--muted); letter-spacing: .3px; }
.hero-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  padding: 22px;
}
.hero-art .crown-badge {
  display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.hero-art .crown-badge img { height: 46px; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tiles figure {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); position: relative;
}
.hero-tiles img { width: 100%; height: 118px; object-fit: cover; }
.hero-tiles figcaption {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  padding: 9px 12px; color: var(--text);
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(249, 187, 33, 0.5); }
.card .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(249, 187, 33, 0.12); color: var(--gold); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .97rem; }

/* Game cards */
.game-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.game-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .35s ease; }
.game-card:hover img { transform: scale(1.06); }
.game-card .body { padding: 18px 20px; }
.game-card .body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.game-card .body p { font-size: .9rem; margin: 0; }

/* ---------- Tools ---------- */
.tool {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
}
.tool h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tool .hint { font-size: .88rem; color: var(--muted-2); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); font-family: var(--font-head); }
.field input, .field select {
  width: 100%; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.tool-result {
  margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--bg);
  border: 1px dashed rgba(249, 187, 33, 0.45); font-family: var(--font-head);
}
.tool-result .big { font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.tool-result .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; color: var(--muted); }
.tool-result .row b { color: var(--text); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 50px 0; }
.auth-card {
  width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow);
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-card > p { text-align: center; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: .93rem; color: var(--muted); }
.form-note {
  margin-top: 18px; font-size: .8rem; color: var(--muted-2); text-align: center; line-height: 1.6;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--gold); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(249, 187, 33, 0.12); color: var(--gold); font-family: var(--font-head); font-weight: 700;
}
.step h3 { font-size: 1.08rem; margin-bottom: 3px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- Banner / CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(249,187,33,0.14), rgba(28,28,41,0.6));
  border: 1px solid rgba(249, 187, 33, 0.35); border-radius: var(--radius-lg);
  padding: 44px; text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 14px 0;
  list-style: none; color: var(--text); display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* ---------- Legal / article ---------- */
.legal-hero { padding: 54px 0 20px; border-bottom: 1px solid var(--border); }
.article { padding: 44px 0 70px; }
.article h2 { margin: 34px 0 12px; }
.article h3 { margin: 24px 0 8px; color: var(--gold); }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--muted); }
.article li { margin-bottom: 8px; }
.article p a { text-decoration: underline; }
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 30px;
}
.toc h4 { color: var(--gold); margin-bottom: 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }
.toc ul { list-style: none; columns: 2; gap: 20px; }
.toc li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 360px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; color: var(--danger); border: 1.5px solid var(--danger); border-radius: 30px;
  padding: 5px 14px; margin-top: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }

.disclaimer-strip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; font-size: .82rem; color: var(--muted-2); margin-top: 26px; text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px 22px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .section { padding: 54px 0; }
  .cta-banner { padding: 30px 22px; }
}
