/* -----------------------------------------------------------------
 * Dicepalace — custom CSS (Tailwind CDN handles utilities)
 * Palette: black background, green CTA, rounded with thick borders.
 * Animations chosen for this build: float + shimmer.
 * ----------------------------------------------------------------- */

:root {
  --accent: #22c55e;        /* primary green CTA */
  --accent-2: #15803d;      /* darker green — gradient pair / button ledge */
  --accent-soft: rgba(34, 197, 94, 0.12);
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border: 2px solid rgba(34, 197, 94, 0.35);
  --border-thick: 3px solid rgba(34, 197, 94, 0.45);
  --radius-lg: 1.75rem;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); }

/* Reusable "panel" — rounded with thick green border */
.panel {
  background: var(--surface);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
}

/* ----- Prose readability (Tailwind CDN has no typography plugin) ----- */
.prose, .prose-invert { line-height: 1.7; }
.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: 2rem 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); }
.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.25rem 0; }
.prose a, .prose-invert a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose-invert strong { font-weight: 700; }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; border: var(--border); border-radius: 1rem; overflow: hidden; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
.prose th, .prose-invert th { background: var(--accent-soft); font-weight: 600; }
.prose details, .prose-invert details { border: var(--border); border-radius: 1rem; padding: 0.5rem 1rem; margin: 0.5rem 0; background: var(--surface); }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }

/* ----- 3D nav buttons (always present) ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-2);
  --btn-ink: #04130a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 0.9rem;
  font-weight: 700; line-height: 1;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 10px -4px rgba(0,0,0,0.6);
  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 4px -2px rgba(0,0,0,0.6);
}

/* Outline variant for the secondary CTA */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.1rem; border-radius: 0.9rem; font-weight: 600;
  color: var(--accent); border: var(--border-thick); text-decoration: none;
  transition: background 0.15s ease;
}
.btn-outline:hover { background: var(--accent-soft); }

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }
.rg-quiz input[type="radio"] { accent-color: var(--accent); }

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

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

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

/* ----- Slot card aspect ratio + popover ----- */
.slot-card {
  position: relative; border-radius: 1.25rem; overflow: hidden; aspect-ratio: 2 / 3;
  border: var(--border); 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 .badge {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2;
  background: var(--accent); color: #04130a; font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.slot-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0.5rem 0.6rem; font-size: 0.8rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}
/* Popover revealed on hover/focus of the slot tile */
.slot-tile { position: relative; }
.slot-popover {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) scale(0.96);
  width: 14rem; z-index: 20; opacity: 0; pointer-events: none;
  background: #0a0a0a; border: var(--border-thick); border-radius: 1rem;
  padding: 0.85rem 0.95rem; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.8);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.slot-popover::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--accent-2);
}
.slot-tile:hover .slot-popover,
.slot-tile:focus-within .slot-popover {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1);
}
.slot-popover h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; }
.slot-popover .rtp { color: var(--accent); font-weight: 700; }

/* ----- Sidebar nav ----- */
.sidebar-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem; border-radius: 0.9rem;
  border: 2px solid transparent; color: var(--muted); font-weight: 600;
  transition: all 0.15s ease;
}
.sidebar-link:hover { color: #fff; background: var(--accent-soft); border-color: rgba(34,197,94,0.4); }

/* ----- Promotions slider ----- */
.promo-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
.promo-track::-webkit-scrollbar { height: 8px; }
.promo-track::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 999px; }
.promo-slide { scroll-snap-align: start; flex: 0 0 88%; }
@media (min-width: 768px) { .promo-slide { flex: 0 0 32%; } }

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

/* Quick-nav pills */
.pill {
  display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px;
  border: var(--border); color: #fff; font-size: 0.85rem; font-weight: 600;
  transition: background 0.15s ease;
}
.pill:hover { background: var(--accent-soft); }
