/* Atefia — adventure casino vibe. Black backdrop + burnt-orange CTAs,
 * compass/expedition motifs evoked via warm gradients & topographic accents. */

:root {
  --accent: #FF6A00;
  --accent-2: #FFB347;
  --accent-deep: #C4410A;
  --bg: #0A0807;
  --bg-2: #14100D;
  --surface: rgba(255, 138, 50, 0.06);
  --surface-2: rgba(255, 138, 50, 0.12);
  --text: #F6EBDE;
  --muted: rgba(246, 235, 222, 0.65);
  --line: rgba(255, 138, 50, 0.18);
}

html { scroll-behavior: smooth; background: var(--bg); }
body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(255,106,0,0.18), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 30%, rgba(196,65,10,0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Topographic / compass background flourish for hero & feature panels */
.topo-bg {
  position: relative;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255,106,0,0.18), transparent 50%),
    repeating-radial-gradient(circle at 75% 65%, rgba(255,179,71,0.05) 0 1px, transparent 1px 22px);
}

.compass-mark::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background:
    conic-gradient(from 0deg, transparent 0 80deg, rgba(255,106,0,0.25) 80deg 90deg, transparent 90deg 170deg, rgba(255,106,0,0.18) 170deg 180deg, transparent 180deg 260deg, rgba(255,106,0,0.25) 260deg 270deg, transparent 270deg 350deg, rgba(255,106,0,0.18) 350deg 360deg);
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0.6;
  pointer-events: none;
}

/* ----- Prose readability ----- */
.prose, .prose-invert { line-height: 1.75; color: var(--text); }
.prose h1, .prose-invert h1 { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0 1.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.prose h2, .prose-invert h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 0.75rem; color: #FFD9B5; letter-spacing: -0.01em; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--accent-2); }
.prose p, .prose-invert p { margin: 0.85rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.3rem; margin: 0.75rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.3rem; margin: 0.75rem 0; }
.prose li, .prose-invert li { margin: 0.3rem 0; }
.prose a, .prose-invert a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .prose-invert a:hover { color: var(--accent); }
.prose strong, .prose-invert strong { font-weight: 700; color: #FFE4C7; }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.92rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th, .prose-invert th { background: var(--surface); font-weight: 600; color: var(--accent-2); }
.prose details, .prose-invert details { background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0.5rem 0; }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; color: var(--accent-2); }

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: linear-gradient(135deg, rgba(255,106,0,0.1), rgba(0,0,0,0.4));
  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 + shimmer ----- */

/* parallax */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
}

/* shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #FFE6C7 45%, #FFFFFF 50%, #FFE6C7 55%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.shimmer-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  pointer-events: none;
}

/* ----- Cards ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--line); transition: transform 0.3s ease, border-color 0.3s ease; }
.slot-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.slot-card:hover img { transform: scale(1.06); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #000; font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.slot-card .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 30%, transparent);
  font-size: 0.8rem;
}
.slot-card .meta h3 { font-weight: 700; font-size: 0.95rem; line-height: 1.15; }
.slot-card .meta p { color: var(--muted); font-size: 0.7rem; margin-top: 0.1rem; }

/* ----- Big winner overlay ----- */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(10, 8, 7, 0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem; border-radius: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

/* ----- Hero panel ----- */
.hero-panel {
  background:
    linear-gradient(135deg, rgba(255,106,0,0.12), rgba(20,16,13,0.85) 60%),
    radial-gradient(circle at 80% 20%, rgba(255,179,71,0.18), transparent 50%);
  border: 1px solid var(--line);
  border-radius: 2rem;
  backdrop-filter: blur(8px);
}

/* CTA */
.cta-orange {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px -10px rgba(255,106,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}
.cta-orange:hover { filter: brightness(1.08); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pill:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento > * { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; }
.bento > *:nth-child(1) { grid-column: span 4; }
.bento > *:nth-child(2) { grid-column: span 2; }
.bento > *:nth-child(3) { grid-column: span 3; }
.bento > *:nth-child(4) { grid-column: span 3; }
.bento > *:nth-child(5) { grid-column: span 2; }
.bento > *:nth-child(6) { grid-column: span 2; }
.bento > *:nth-child(7) { grid-column: span 2; }
@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: span 1 !important; }
}

/* Tabs */
.tab-active { background: var(--accent); color: #000; }

/* Latest bets */
.latest-bets {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 1.25rem; padding: 1.25rem;
}
.latest-bets table { width: 100%; border-collapse: collapse; }
.latest-bets th, .latest-bets td { padding: 0.45rem 0.5rem; }

/* Review card */
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 1.25rem; padding: 1.25rem;
}
.review-card header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.review-card .stars { color: var(--accent-2); }

/* CTA card */
.cta-card { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.cta-card h2 { color: #fff; }

/* Trust badges */
.trust-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}

/* Section spacing */
section { scroll-margin-top: 90px; }
