/* -----------------------------------------------------------------
 * Shikaka — Volcanic black & amber.
 * Tailwind via CDN handles utilities. This file holds:
 *   palette tokens, prose readability, 3D nav buttons, RG quiz,
 *   slot cards, chosen animations (shimmer + float), and the
 *   interactive review charts (withdrawal speed + support).
 * ----------------------------------------------------------------- */

:root {
  --accent: #f59e0b;        /* molten amber — primary CTA */
  --accent-2: #ea580c;      /* deeper ember — gradient pair / ledge */
  --accent-3: #fbbf24;      /* glow highlight */
  --bg: #0a0a0b;            /* volcanic charcoal */
  --surface: rgba(245, 158, 11, 0.05);
  --surface-2: rgba(245, 158, 11, 0.1);
  --text: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.62);
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(234, 88, 12, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(245, 158, 11, 0.1), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* ----- Prose readability (no @tailwindcss/typography on CDN) ----- */
.prose, .prose-invert { line-height: 1.75; color: var(--text); }
.prose h1, .prose-invert h1 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 1.25rem; line-height: 1.2; }
.prose h2, .prose-invert h2 { font-size: 1.5rem; font-weight: 700; margin: 2.25rem 0 0.75rem; line-height: 1.3; color: #fff; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--accent-3); }
.prose p, .prose-invert p { margin: 0.75rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li, .prose-invert li { margin: 0.3rem 0; }
.prose a, .prose-invert a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose-invert strong { font-weight: 700; color: #fff; }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(245,158,11,0.16); text-align: left; }
.prose th, .prose-invert th { background: var(--surface-2); font-weight: 600; color: #fff; }
.prose details, .prose-invert details { border: 1px solid rgba(245,158,11,0.18); border-radius: 0.9rem; padding: 0.75rem 1rem; margin: 0.6rem 0; background: var(--surface); }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; color: #fff; }

html { scroll-behavior: smooth; }

/* ----- 3D nav buttons ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-2);
  --btn-ink: #1a0d00;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: 0.75rem;
  font-weight: 700; line-height: 1; color: var(--btn-ink);
  background: linear-gradient(180deg, var(--accent-3), var(--btn-face));
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 12px -4px rgba(234,88,12,0.5);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.07); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 5px -2px rgba(234,88,12,0.5);
}

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 1.5rem; padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* ----- Panels ----- */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(245,158,11,0.16);
  border-radius: 1.5rem;
}

/* =================================================================
 * ANIMATIONS — chosen: shimmer + float
 * ================================================================= */

/* shimmer — sweeping light across headline accents */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #fff7e6 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* float — gentle vertical bob on hero panel / cards */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 4.5s ease-in-out infinite; }

/* ----- Slot / live cards ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; border: 1px solid rgba(245,158,11,0.14); background: var(--surface); display: block; }
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.slot-card:hover img { transform: scale(1.06); }
.slot-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.7rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85)); }
.slot-card .meta h3 { font-size: 0.82rem; font-weight: 700; line-height: 1.1; }
.slot-card .meta p { font-size: 0.68rem; color: var(--muted); margin: 0; }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #1a0d00; font-size: 0.62rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}

/* ----- Big winner overlay ----- */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.95rem;
}

/* ----- Interactive review charts (withdrawal speed + support) ----- */
.chart-row { display: grid; grid-template-columns: 9rem 1fr 4rem; align-items: center; gap: 0.75rem; margin: 0.55rem 0; }
.chart-row .chart-label { font-size: 0.85rem; color: var(--text); }
.chart-track { height: 0.85rem; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.chart-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.chart-fill.is-good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.chart-fill.is-mid  { background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); }
.chart-fill.is-slow { background: linear-gradient(90deg, #b91c1c, #f87171); }
.chart-val { font-size: 0.8rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ----- Tabs (payment + chart tabs) ----- */
.tab-btn { cursor: pointer; }
.tab-btn[aria-selected="true"] { background: var(--accent); color: #1a0d00; }

/* ----- Quick nav pills ----- */
.pill { border: 1px solid rgba(245,158,11,0.25); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--text); white-space: nowrap; transition: background 0.15s ease; }
.pill:hover { background: var(--surface-2); }

/* ----- Trust icon chips ----- */
.trust-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 0.9rem; background: var(--surface); border: 1px solid rgba(245,158,11,0.18); font-size: 0.8rem; }

/* =================================================================
 * GAME CARDS — 8×3 interactive grid with 3-D tilt + popover
 * ================================================================= */
.game-card {
  perspective: 600px;
  cursor: pointer;
}

.game-card__inner {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(245,158,11,0.12);
  will-change: transform;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  transform-style: preserve-3d;
}

.game-card__inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.game-card:hover .game-card__inner img { transform: scale(1.08); }

/* Shine / glare overlay */
.game-card__shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 1;
}
.game-card:hover .game-card__shine { opacity: 1; }

/* Popover overlay */
.game-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.52) 48%, transparent 100%);
  padding: 0.55rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-card:hover .game-card__overlay { opacity: 1; transform: translateY(0); }

/* Type badge (top-left corner) */
.game-card__type-badge {
  position: absolute; top: 0.35rem; left: 0.35rem;
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.13rem 0.42rem; border-radius: 999px; line-height: 1.6;
}
.game-card__type-badge--slot { background: rgba(245,158,11,0.22); color: #fbbf24; border: 1px solid rgba(245,158,11,0.45); }
.game-card__type-badge--live { background: rgba(239,68,68,0.22);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.45); }
.game-card__type-badge--show { background: rgba(168,85,247,0.22); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.45); }

/* Info block */
.game-card__info { text-align: center; }
.game-card__badge    { font-size: 0.56rem; font-weight: 700; color: var(--accent-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.08rem; }
.game-card__name     { font-size: 0.7rem; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 0.1rem; }
.game-card__provider { font-size: 0.58rem; color: rgba(255,255,255,0.48); margin-bottom: 0.42rem; }
.game-card__cta {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #1a0d00; font-size: 0.58rem; font-weight: 800;
  padding: 0.28rem 0.8rem; border-radius: 999px;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}
.game-card__cta:hover { filter: brightness(1.1); transform: scale(1.06); }
