/* ═══════════════════════════════════════════
   JADE ACES — Design System
   Emerald Dark Theme
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:        #040e08;
  --bg2:       #071810;
  --bg3:       #0d2119;
  --bg4:       #102618;
  --em:        #12c96e;
  --em-soft:   #1de87e;
  --em-dark:   #0a7a42;
  --em-glow:   rgba(18,201,110,.12);
  --gold:      #d4a843;
  --gold-soft: #e8c266;
  --text:      #e4f5ec;
  --text2:     #7aaa8e;
  --text3:     #3d7055;
  --border:    #163a26;
  --border2:   #1d4f33;
  --danger:    #e05252;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── PATTERN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(18,201,110,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(18,201,110,.04) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 28px,
      rgba(18,201,110,.025) 28px,
      rgba(18,201,110,.025) 29px
    );
}
body > * { position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
.display    { font-family: 'Cinzel', serif; }
.em-text    { color: var(--em); }
.em-grad    { background: linear-gradient(135deg, var(--em), var(--em-soft)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gold-text  { color: var(--gold); }
.gold-grad  { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.muted      { color: var(--text2); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(4,14,8,.85);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--em-dark), var(--em));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 14px rgba(18,201,110,.35);
}
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: .18em;
  background: linear-gradient(135deg, var(--em-soft), var(--em));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.site-nav { display: none; gap: 32px; }
@media(min-width:768px){ .site-nav { display: flex; } }
.site-nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--text2); transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--em); }
.nav-cta {
  display: none; padding: 9px 22px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--em-dark), var(--em));
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  transition: opacity .2s; box-shadow: 0 0 16px rgba(18,201,110,.3);
}
@media(min-width:768px){ .nav-cta { display: block; } }
.nav-cta:hover { opacity: .88; }

/* ── CARDS ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(18,201,110,.35); }
.card-glow { box-shadow: 0 0 0 1px rgba(18,201,110,.08), 0 4px 24px rgba(0,0,0,.5); }

/* ── BUTTONS ── */
.btn { border: none; cursor: pointer; border-radius: var(--r); font-weight: 700; font-size: 14px; padding: 10px 24px; transition: opacity .18s, transform .12s; letter-spacing: .04em; }
.btn:hover:not(:disabled) { opacity: .87; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-em    { background: linear-gradient(135deg, var(--em-dark), var(--em)); color: #fff; box-shadow: 0 0 14px rgba(18,201,110,.3); }
.btn-gold  { background: linear-gradient(135deg, #a07820, var(--gold)); color: #000; }
.btn-red   { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--em); color: var(--em); }
.btn-sm    { padding: 7px 16px; font-size: 13px; }
.btn-lg    { padding: 14px 36px; font-size: 16px; }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-outline:hover:not(:disabled) { border-color: var(--em); color: var(--em); }
.btn-outline.sel { background: linear-gradient(135deg,var(--em-dark),var(--em)); color:#fff; border-color: var(--em); }
.btn-link { background: none; border: none; cursor: pointer; color: var(--em); text-decoration: underline; font-size: 12px; padding: 3px 6px; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(18,201,110,.1); border: 1px solid rgba(18,201,110,.25);
  color: var(--em); font-size: 12px; font-weight: 600; letter-spacing: .1em;
}

/* ── DIVIDER ── */
.divider { width: 48px; height: 2px; background: linear-gradient(135deg, var(--em-dark), var(--em)); border-radius: 99px; margin: 16px auto; }

/* ── SECTION ── */
.section { max-width: 1300px; margin: 0 auto; padding: 80px 28px; }
.section-sm { max-width: 1300px; margin: 0 auto; padding: 48px 28px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { font-size: 11px; letter-spacing: .4em; color: var(--em); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Cinzel', serif; font-size: clamp(28px,4vw,44px); line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ── GRID ── */
.grid2 { display: grid; gap: 24px; }
.grid3 { display: grid; gap: 24px; }
.grid4 { display: grid; gap: 20px; }
@media(min-width:640px)  { .grid2 { grid-template-columns:1fr 1fr; } }
@media(min-width:768px)  { .grid3 { grid-template-columns:1fr 1fr 1fr; } }
@media(min-width:1024px) { .grid4 { grid-template-columns:repeat(4,1fr); } }

/* ── HERO ── */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 28px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(18,201,110,.1) 0%, transparent 70%);
}
.hero-label { font-size: 11px; letter-spacing: .45em; color: var(--em); text-transform: uppercase; margin-bottom: 24px; }
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(40px,7vw,80px);
  font-weight: 900; line-height: 1.1;
  background: linear-gradient(160deg, var(--text) 0%, var(--em-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.hero-sub { font-size: clamp(16px,2vw,20px); color: var(--text2); max-width: 560px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-disclaimer { margin-top: 48px; font-size: 11px; letter-spacing: .2em; color: var(--text3); }

/* ── FEATURE CARD ── */
.feat-card { padding: 28px; }
.feat-icon { font-size: 40px; margin-bottom: 16px; }
.feat-title { font-family: 'Cinzel', serif; font-size: 18px; color: var(--em-soft); margin-bottom: 8px; }
.feat-desc { color: var(--text2); font-size: 14px; line-height: 1.7; }

/* ── GAME CARD (games page) ── */
.gcard { padding: 24px; }
.gcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gcard-title { font-family: 'Cinzel', serif; font-size: 20px; }
.chips-label { font-size: 13px; color: var(--text2); }
.chips-val { color: var(--em); font-weight: 700; }
.game-msg { text-align: center; color: var(--em-soft); min-height: 1.5em; margin-bottom: 14px; font-size: 14px; }
.bj-zone { min-height: 88px; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.zone-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.play-card { width: 52px; height: 76px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 2px 10px #0007; flex-shrink: 0; }
.play-card-r { background: #f5f0e8; border: 1px solid rgba(212,168,67,.5); color: #c0392b; }
.play-card-b { background: #f5f0e8; border: 1px solid rgba(212,168,67,.5); color: #111; }
.play-card-back { background: linear-gradient(135deg,#0a7a42,#040e08); border: 1px solid var(--border2); color: var(--em); font-size: 22px; align-items: center; justify-content: center; }
.reel { aspect-ratio: 1; border-radius: 8px; background: var(--bg2); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: inset 0 2px 8px #0008; }
.reels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.coin { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, var(--em-dark), var(--em)); display: flex; align-items: center; justify-content: center; font-size: 44px; font-family: 'Cinzel', serif; color: #fff; box-shadow: 0 0 24px rgba(18,201,110,.4); }
@keyframes coinflip { 0%{transform:rotateY(0)} 50%{transform:rotateY(540deg)} 100%{transform:rotateY(0)} }
.coin.flip { animation: coinflip 1.2s ease-in-out; }
.wheel-outer { position: relative; width: 210px; height: 210px; }
.wheel-canvas { border-radius: 50%; width: 210px; height: 210px; transition: transform 2.5s cubic-bezier(.17,.67,.12,1); }
.wheel-pointer { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid var(--em); }
.wheel-hub-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wheel-hub { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--bg),var(--bg3)); border: 2px solid var(--em); display: flex; align-items: center; justify-content: center; font-family: 'Cinzel',serif; font-weight: 700; color: var(--em); font-size: 16px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.flip-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bet-row { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.action-row { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.games-grid { display: grid; gap: 24px; }
@media(min-width:1024px){ .games-grid { grid-template-columns: 1fr 1fr; } }

/* ── POLICY PAGE ── */
.policy-wrap { max-width: 820px; margin: 0 auto; padding: 60px 28px 80px; }
.policy-hero { margin-bottom: 48px; }
.policy-title { font-family: 'Cinzel', serif; font-size: clamp(26px,4vw,40px); margin-bottom: 12px; }
.policy-meta { color: var(--text2); font-size: 13px; }
.policy-body h2 { font-family: 'Cinzel', serif; font-size: 18px; color: var(--em-soft); margin: 36px 0 12px; }
.policy-body p, .policy-body li { color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.policy-body ul, .policy-body ol { padding-left: 24px; margin-bottom: 16px; }
.policy-body li { margin-bottom: 6px; }
.policy-body a { color: var(--em); }
.policy-body a:hover { text-decoration: underline; }
.policy-body strong { color: var(--text); }

/* ── FOOTER ── */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: rgba(7,24,16,.7);
  padding: 60px 28px 36px;
}
.footer-disclaimer {
  background: rgba(18,201,110,.06);
  border: 1px solid rgba(18,201,110,.18);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 760px; margin: 0 auto 48px;
  font-size: 13px; color: var(--text2);
  text-align: center; line-height: 1.7;
}
.footer-disclaimer strong { color: var(--em-soft); }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; gap: 32px; margin-bottom: 40px; }
@media(min-width:640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-name { font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: .14em; color: var(--em); margin-bottom: 10px; }
.footer-brand-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }
.footer-col-title { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--em); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 13px; color: var(--text2); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--em); }
.footer-col span { display: block; font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.footer-bottom { max-width: 1300px; margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--text3); }
.footer-age { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border2); color: var(--text2); font-size: 12px; letter-spacing: .12em; }

/* ── FAQ ── */
.faq-item { padding: 20px 24px; border-radius: 8px; margin-bottom: 12px; }
.faq-q { font-family: 'Cinzel', serif; font-size: 16px; color: var(--em-soft); margin-bottom: 8px; }
.faq-a { color: var(--text2); font-size: 14px; line-height: 1.7; }

/* ── PROMISE LIST ── */
.promise-item { display: flex; gap: 16px; padding: 18px 20px; border-radius: 8px; margin-bottom: 10px; }
.promise-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.promise-title { font-weight: 700; color: var(--em-soft); margin-bottom: 4px; font-size: 14px; }
.promise-desc { color: var(--text2); font-size: 13px; }

/* ── ABOUT ── */
.about-wrap { max-width: 1000px; margin: 0 auto; padding: 64px 28px 80px; }
.about-hero-label { font-size: 11px; letter-spacing: .4em; color: var(--em); text-transform: uppercase; margin-bottom: 14px; }
.about-hero-title { font-family: 'Cinzel', serif; font-size: clamp(32px,5vw,52px); margin-bottom: 24px; }
.about-body { color: var(--text2); font-size: 15px; line-height: 1.8; }
.about-body p { margin-bottom: 18px; }

/* ── HELPERS ── */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.wheel-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
