/* ==========================================================================
   Aurelia Casino — Design System
   Lightweight, accessible, performance-first stylesheet
   ========================================================================== */

:root {
  /* Palette — deep navy with gold accents */
  --bg: #0a0e17;
  --bg-alt: #0e1421;
  --surface: #141b2b;
  --surface-2: #1c2538;
  --surface-3: #25304a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(233, 185, 73, 0.35);

  --gold: #e9b949;
  --gold-soft: #f7dda0;
  --gold-dark: #a87c22;
  --crimson: #e0485a;
  --green: #34c98a;
  --blue: #4f8ff7;

  --text: #f2f4f9;
  --text-muted: #9aa4bb;
  --text-dim: #6d7891;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 18px 50px rgba(233, 185, 73, 0.18);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: #1a1206; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .96rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-dark));
  color: #1a1206; box-shadow: 0 8px 26px rgba(233, 185, 73, .28);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(233, 185, 73, .42); }
.btn-outline { border-color: var(--border-strong); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: rgba(233, 185, 73, .08); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: .55rem 1rem; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 14, 23, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: .01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  display: grid; place-items: center; color: #1a1206; font-size: 1.1rem; font-weight: 900;
  box-shadow: 0 4px 14px rgba(233, 185, 73, .3);
}
.brand span { color: var(--gold-soft); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: var(--text-muted); font-size: .92rem; font-weight: 500; transition: color .18s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-soft); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 6rem 0 6.5rem; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(233, 185, 73, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(79, 143, 247, .10), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.03em; margin-bottom: 1.3rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; color: var(--text-dim); font-size: .85rem; }
.hero-trust div { display: flex; align-items: center; gap: .5rem; }
.hero-trust svg { color: var(--green); flex: none; }

/* Hero visual — stacked casino cards */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.glow-ring {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,185,73,.20), transparent 68%);
  filter: blur(10px);
}
.float-card {
  position: absolute; width: 210px; height: 300px; border-radius: 18px;
  border: 1px solid var(--border-strong); padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); backface-visibility: hidden;
}
.float-card .rank { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.float-card .suit { font-size: 2rem; align-self: flex-end; }
.card-a { transform: rotate(-13deg) translate(-58px, 18px); background: linear-gradient(145deg, #2a2033, #191524); z-index: 1; }
.card-b { transform: rotate(9deg) translate(52px, -10px); background: linear-gradient(145deg, #1b2b3a, #131c29); z-index: 2; }
.card-main {
  transform: rotate(-2deg); z-index: 3;
  background: linear-gradient(150deg, #f7dda0, #e9b949 48%, #b8862b);
  color: #1a1206; border-color: rgba(255,255,255,.5);
}
.card-main .rank, .card-main .suit { color: #1a1206; }
.card-main::after {
  content: 'A'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 8rem; opacity: .12;
}
.chip {
  position: absolute; z-index: 4; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(from 0deg, #e0485a 0 12%, #f2f4f9 12% 25%, #e0485a 25% 37%, #f2f4f9 37% 50%, #e0485a 50% 62%, #f2f4f9 62% 75%, #e0485a 75% 87%, #f2f4f9 87% 100%);
  border: 5px solid #f2f4f9; box-shadow: var(--shadow); display: grid; place-items: center;
  right: 8%; bottom: 8%;
}
.chip span {
  width: 54px; height: 54px; border-radius: 50%; background: #b8323f; color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.3rem;
  border: 2px dashed rgba(255,255,255,.7);
}

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item .ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(233,185,73,.10); color: var(--gold); border: 1px solid rgba(233,185,73,.18);
}
.trust-item strong { display: block; font-size: .95rem; }
.trust-item small { color: var(--text-dim); font-size: .8rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-gold); }
.game-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .25s;
}
.game-card:hover::before { opacity: 1; }
.game-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: rgba(233,185,73,.10); color: var(--gold); border: 1px solid rgba(233,185,73,.2); font-size: 1.8rem;
}
.game-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.game-card p { color: var(--text-muted); font-size: .94rem; flex: 1; margin-bottom: 1.5rem; }
.game-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tag {
  font-size: .72rem; padding: .28rem .65rem; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.game-card .btn { align-self: flex-start; }

/* Steps */
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark)); color: #1a1206;
  font-weight: 900; font-size: 1.15rem; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
details.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
details.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--gold); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; }
details.faq[open] summary::after { content: '\2212'; }
details.faq .faq-body { padding: 0 1.5rem 1.3rem; color: var(--text-muted); font-size: .95rem; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg); padding: 3.5rem; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(233,185,73,.18), transparent 70%),
    linear-gradient(135deg, #182034, #111827);
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: var(--text-muted); max-width: 520px; margin-inline: auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h3 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a, .site-footer li { color: var(--text-muted); font-size: .9rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-dim); font-size: .82rem;
}
.disclaimer { font-size: .78rem; color: var(--text-dim); max-width: 560px; margin-top: 1rem; line-height: 1.6; }

/* ==========================================================================
   Game pages
   ========================================================================== */
.game-shell { padding: 3rem 0 5rem; }
.breadcrumb { font-size: .82rem; color: var(--text-dim); margin-bottom: 1.8rem; display: flex; gap: .5rem; align-items: center; }
.breadcrumb a:hover { color: var(--gold-soft); }
.game-head { text-align: center; margin-bottom: 2.5rem; }
.game-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.game-head p { color: var(--text-muted); max-width: 620px; margin-inline: auto; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1.8rem; align-items: start; }
.panel {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem;
}
.panel-title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 1rem; font-weight: 700; }

/* Bankroll */
.bankroll { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.balance-value { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-soft); line-height: 1; }
.balance-label { font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em; }

/* Generic game stage */
.stage {
  min-height: 300px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #1b2740, #0e1421);
  border: 1px solid var(--border); display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden;
}
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px;
}
.message { font-family: var(--font-display); font-size: 1.5rem; text-align: center; position: relative; z-index: 1; }
.message.win { color: var(--green); }
.message.lose { color: var(--crimson); }

/* Controls */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; color: var(--text-muted); margin-bottom: .45rem; font-weight: 600; }
.field input[type="number"], .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: .75rem .9rem;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 110px; }

/* Slots */
.slots-machine { display: grid; gap: 1rem; width: 100%; max-width: 460px; position: relative; z-index: 1; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.reel {
  height: 150px; border-radius: 14px; background: linear-gradient(180deg, #f7dda0, #e9b949);
  border: 3px solid #b8862b; display: grid; place-items: center; font-size: 3.6rem;
  box-shadow: inset 0 8px 20px rgba(0,0,0,.2), var(--shadow-sm); overflow: hidden;
}
.reel.spinning { animation: reelSpin .18s linear infinite; }
@keyframes reelSpin { 0% { transform: translateY(-6px); opacity: .6; } 50% { opacity: 1; } 100% { transform: translateY(6px); opacity: .6; } }

/* Blackjack */
.cards-row { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; min-height: 130px; }
.playing-card {
  width: 84px; height: 118px; border-radius: 10px; background: #f7f4ec; color: #1a1206;
  display: flex; flex-direction: column; justify-content: space-between; padding: .6rem;
  box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700;
}
.playing-card .c-rank { font-size: 1.3rem; line-height: 1; }
.playing-card .c-suit { font-size: 1.6rem; align-self: flex-end; }
.playing-card.red { color: #c0392b; }
.card-back {
  width: 84px; height: 118px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #1f3a5f, #1f3a5f 6px, #2b4d7a 6px, #2b4d7a 12px);
  border: 3px solid #f7f4ec; box-shadow: var(--shadow-sm);
}
.hand-label { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em; margin: 1rem 0 .6rem; text-align: center; position: relative; z-index: 1; }
.hand-total { font-family: var(--font-display); color: var(--gold-soft); }

/* Dice */
.dice-row { display: flex; gap: 1.2rem; justify-content: center; position: relative; z-index: 1; }
.die {
  width: 104px; height: 104px; border-radius: 20px; background: linear-gradient(145deg, #f7f4ec, #d9d3c4);
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 -6px 12px rgba(0,0,0,.15);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 16px; gap: 4px;
}
.die.rolling { animation: diceRoll .5s ease; }
@keyframes diceRoll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
.pip { width: 16px; height: 16px; border-radius: 50%; background: #1a1206; align-self: center; justify-self: center; }
.pip.hidden { visibility: hidden; }

/* Result / stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.stat span { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

.rules-list { padding-left: 1.1rem; color: var(--text-muted); font-size: .92rem; }
.rules-list li { margin-bottom: .55rem; }

/* Notice */
.notice {
  border-left: 3px solid var(--gold); background: rgba(233,185,73,.07);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-size: .88rem; margin-top: 1.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { min-height: 340px; }
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .game-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .8rem 1.25rem 1.2rem;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .grid-3, .grid-2, .trust-grid, .stat-grid { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-visual { min-height: 300px; transform: scale(.85); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-band { padding: 2.4rem 1.5rem; }
  .reel { height: 110px; font-size: 2.8rem; }
  .die { width: 84px; height: 84px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
