/* -----------------------------------------------------------------
 * Atefia — adventurer's expedition theme.
 * Dark navy night, torch-gold accents, parchment cream, faded crimson.
 * Animations chosen: parallax + float.
 * ----------------------------------------------------------------- */

:root {
  --bg:          #07142b;
  --bg-2:        #0d1f3f;
  --bg-3:        #122a55;
  --surface:     rgba(232, 217, 184, 0.05);
  --surface-2:   rgba(232, 217, 184, 0.09);
  --line:        rgba(232, 217, 184, 0.14);
  --accent:      #e2a93a;   /* torch gold */
  --accent-2:    #f3cb6a;   /* lit flame */
  --parchment:   #e8d9b8;
  --crimson:     #b03a2a;
  --emerald:     #6fae8a;   /* faded jungle green */
  --text:        #f1e6cf;
  --muted:       rgba(241, 230, 207, 0.65);
}

html { scroll-behavior: smooth; background: var(--bg); }
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(226, 169, 58, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(176, 58, 42, 0.10), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, #050d1d 100%);
  color: var(--text);
  font-family: 'Spectral', 'Georgia', 'Times New Roman', serif;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Trajan Pro', 'Spectral', serif;
  letter-spacing: 0.02em;
}

/* Parchment texture utility */
.parchment-card {
  background:
    radial-gradient(ellipse at top left, rgba(232, 217, 184, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(176, 58, 42, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(232, 217, 184, 0.04), rgba(7, 20, 43, 0.4));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  backdrop-filter: blur(6px);
}

.gold-text {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, #b8862a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-gold {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a1003;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 30px -10px rgba(226, 169, 58, 0.55), inset 0 -2px 0 rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -10px rgba(226, 169, 58, 0.7), inset 0 -2px 0 rgba(0,0,0,0.15);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent-2);
  border-radius: 999px;
  background: rgba(226, 169, 58, 0.06);
}

/* ----- Prose (Tailwind CDN doesn't include typography plugin) ----- */
.prose, .prose-invert { line-height: 1.75; color: var(--text); }
.prose h1, .prose-invert h1 { font-family: 'Cinzel', serif; font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0 1.5rem; line-height: 1.15; }
.prose h2, .prose-invert h2 { font-family: 'Cinzel', serif; font-size: 1.65rem; font-weight: 700; margin: 2.25rem 0 0.75rem; color: var(--accent-2); }
.prose h3, .prose-invert h3 { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--parchment); }
.prose p, .prose-invert p { margin: 0.85rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.5rem; margin: 0.75rem 0; }
.prose li, .prose-invert li { margin: 0.35rem 0; }
.prose a, .prose-invert a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose-invert strong { font-weight: 700; color: var(--parchment); }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th, .prose-invert th { background: var(--surface); font-weight: 700; color: var(--accent-2); }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem; padding: 0.75rem 1rem; margin: 0.5rem 0; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--parchment); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--muted); font-style: italic; margin: 1rem 0; }

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.75rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* =================================================================
 * ANIMATIONS — parallax + float
 * ================================================================= */

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-section::before {
  content: '';
  position: absolute;
  inset: -10% -5% -10% -5%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(226, 169, 58, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(176, 58, 42, 0.12), transparent 55%);
  transform: translateZ(0);
  will-change: transform;
  animation: parallax-drift 20s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes parallax-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, -20px, 0) scale(1.08); }
}
.parallax-section > * { position: relative; z-index: 1; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }

/* ----- Slot card ----- */
.slot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: block;
}
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s ease; opacity: 0.92; }
.slot-card:hover img { transform: scale(1.07); opacity: 1; }
.slot-card .slot-meta {
  position: absolute; inset: auto 0 0 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(7, 20, 43, 0.92));
  color: var(--parchment);
}
.slot-card .slot-meta h3 { font-size: 0.95rem; font-weight: 700; margin: 0; font-family: 'Cinzel', serif; }
.slot-card .slot-meta p { font-size: 0.7rem; opacity: 0.7; margin: 0.1rem 0 0; }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #1a1003; font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ----- Big winner overlay ----- */
.big-winner { position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--line); }
.big-winner img { display: block; width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.7; }
.big-winner__overlay {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(7, 20, 43, 0.78); backdrop-filter: blur(8px);
  padding: 0.9rem 1.1rem; border-radius: 1rem;
  font-size: 0.95rem; color: var(--parchment);
  border: 1px solid var(--line);
}

/* ----- Latest bets table ----- */
.latest-bets table { font-variant-numeric: tabular-nums; }
.latest-bets th, .latest-bets td { padding: 0.5rem 0.6rem; }
.latest-bets tbody tr { animation: bet-in 0.4s ease both; }
@keyframes bet-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Quick nav pills ----- */
.qnav a {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--parchment);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qnav a:hover { background: var(--surface-2); border-color: var(--accent); }

/* ----- Bento grid ----- */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.bento > * {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem;
  grid-column: span 6;
}
@media (min-width: 768px) {
  .bento .b-bonus { grid-column: span 4; grid-row: span 2; }
  .bento .b-login { grid-column: span 2; }
  .bento .b-deposit { grid-column: span 2; }
  .bento .b-withdraw { grid-column: span 2; grid-row: span 2; }
  .bento .b-promo { grid-column: span 2; }
  .bento .b-security { grid-column: span 2; }
  .bento .b-verdict { grid-column: span 6; }
}

/* ----- Flying banner ----- */
#flying-banner {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #1a1003;
  box-shadow: 0 20px 50px -15px rgba(226, 169, 58, 0.5);
}

/* ----- Trust badges ----- */
.trust-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  color: var(--parchment);
}

/* ----- Cinzel + Spectral fonts via Google Fonts (loaded in baseof) ----- */
