/* -----------------------------------------------------------------
 * Dice Palace — custom CSS (Tailwind via CDN handles utilities).
 * Design brief: neon dice / electric. Dark slate base, neon magenta
 * + cyan glow, dice motifs. Chosen animations: shimmer + tilt.
 * ----------------------------------------------------------------- */

:root {
  --accent: #ff2bd6;        /* neon magenta — primary CTA */
  --accent-2: #22d3ee;      /* neon cyan — gradient pair / ledge */
  --bg: #0a0a14;            /* deep slate page background */
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #f4f4ff;
  --muted: rgba(244,244,255,0.65);
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,43,214,0.12), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(34,211,238,0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* ----- Neon helpers ----- */
.neon-text {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(255,43,214,0.55), 0 0 18px rgba(255,43,214,0.35);
}
.neon-cyan {
  color: var(--accent-2);
  text-shadow: 0 0 6px rgba(34,211,238,0.55), 0 0 18px rgba(34,211,238,0.35);
}
.neon-border {
  border: 1px solid rgba(255,43,214,0.35);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.12), 0 0 24px -8px rgba(255,43,214,0.5);
}
.neon-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
}
.cta-grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  color: #08080f;
}

/* Dice pip motif used as a small decorative glyph */
.dice-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 0.4rem;
  background: linear-gradient(160deg, #1b1b2e, #0e0e1a);
  border: 1px solid rgba(34,211,238,0.4);
  box-shadow: inset 0 0 8px rgba(34,211,238,0.25);
  font-size: 0.9rem;
}

/* ----- Prose readability (Tailwind CDN has no typography plugin) ----- */
.prose, .prose-invert { line-height: 1.7; 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: 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; }
.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-2); 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(255,255,255,0.1); text-align: left; }
.prose th, .prose-invert th { background: var(--surface); font-weight: 600; color: #fff; }
.prose details, .prose-invert details { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; padding: 0.5rem 1rem; margin: 0.5rem 0; }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }

html { scroll-behavior: smooth; }

/* ----- 3D nav buttons (always present, independent of chosen animations) ----- */
.btn-3d {
  --btn-face: #15152a;
  --btn-ledge: var(--accent-2);
  --btn-ink: #f4f4ff;
  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: var(--btn-face);
  border: 1px solid rgba(34,211,238,0.35);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 14px -4px rgba(34,211,238,0.45);
  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.25); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 6px -2px rgba(34,211,238,0.45);
}

/* High-visibility PLAY CTA with stronger 3D depth and glow. */
.btn-play-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07070d;
  text-decoration: none;
  background: linear-gradient(145deg, #ffe96a 0%, #ffbe2f 48%, #ff8b1a 100%);
  border: 1px solid rgba(255, 243, 177, 0.9);
  box-shadow:
    0 5px 0 #c45500,
    0 10px 20px rgba(255, 139, 26, 0.55),
    0 0 0 2px rgba(255, 234, 122, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
  animation: play-pulse 2s ease-in-out infinite;
}

.btn-play-3d:hover {
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 6px 0 #c45500,
    0 14px 28px rgba(255, 139, 26, 0.62),
    0 0 0 2px rgba(255, 234, 122, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-play-3d:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #c45500,
    0 4px 10px rgba(255, 139, 26, 0.5),
    0 0 0 2px rgba(255, 234, 122, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

/* =================================================================
 * ANIMATIONS — chosen for this build: shimmer + tilt.
 * ================================================================= */

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

/* tilt — subtle 3D card lift on hover (neon glow) */
.tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.tilt:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 20px 45px -12px rgba(255,43,214,0.4), 0 0 25px -8px rgba(34,211,238,0.45);
}

/* ----- Slot card aspect ratio + hover glow ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; background: #11111f; border: 1px solid rgba(255,255,255,0.06); }
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.slot-card:hover img { transform: scale(1.05); }
.slot-card .card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.7rem; background: linear-gradient(0deg, rgba(8,8,15,0.92), transparent); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #08080f; font-size: 0.65rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  box-shadow: 0 0 12px -2px rgba(255,43,214,0.7);
}

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

/* quick-nav pills */
.pill {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--accent); color: #fff; }

@keyframes play-pulse {
  0%,
  100% {
    box-shadow:
      0 5px 0 #c45500,
      0 10px 20px rgba(255, 139, 26, 0.55),
      0 0 0 2px rgba(255, 234, 122, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow:
      0 5px 0 #c45500,
      0 14px 30px rgba(255, 139, 26, 0.68),
      0 0 0 3px rgba(255, 234, 122, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}
