/* -----------------------------------------------------------------
 * DicePalace — custom CSS (Tailwind CDN handles utilities)
 * Palette: neon midnight blue — midnight navy bg, cyan + magenta neon.
 * Holds: shimmer + float keyframes, prose, RG quiz, 3D nav buttons,
 *        slot cards + filter UI, sidebar layout, big-winner overlay.
 * ----------------------------------------------------------------- */

:root {
  --accent: #22d3ee;        /* cyan neon */
  --accent-2: #d946ef;      /* magenta neon */
  --bg: #070b1f;            /* midnight navy */
  --bg-2: #0c1330;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #e8edff;
  --muted: rgba(220,228,255,0.62);
  --line: rgba(120,140,220,0.16);
}

body {
  background:
    radial-gradient(900px 500px at 85% -8%, rgba(217,70,239,0.16), transparent 60%),
    radial-gradient(900px 600px at -5% 5%, rgba(34,211,238,0.16), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

/* neon text helper */
.neon { text-shadow: 0 0 8px rgba(34,211,238,0.55), 0 0 22px rgba(34,211,238,0.25); }
.neon-mag { text-shadow: 0 0 8px rgba(217,70,239,0.55), 0 0 22px rgba(217,70,239,0.25); }

/* ----- Page shell: main + right sidebar ----- */
.shell { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .with-sidebar { grid-template-columns: minmax(0,1fr) 20rem; align-items: start; }
}
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 5rem; }
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

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

html { scroll-behavior: smooth; }

/* ----- 3D nav buttons ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: #0e7490;
  --btn-ink: #03121a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700; line-height: 1; font-size: 0.85rem;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 14px -4px rgba(34,211,238,0.4);
  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.08); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 6px -2px rgba(34,211,238,0.4);
}
.btn-3d.alt { --btn-face: var(--accent-2); --btn-ledge: #86198f; --btn-ink: #fff0ff; box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 14px -4px rgba(217,70,239,0.4); }

/* primary CTA pill */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 999px; font-weight: 800;
  color: #03121a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -8px rgba(217,70,239,0.5); text-decoration: none;
}
.cta:hover { filter: brightness(1.06); }

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

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

/* shimmer — sweeping light across accent headings/CTAs */
@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;
}

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

/* ----- Slot cards + filter UI ----- */
.slot-card { position: relative; display: block; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg-2); }
.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; inset: auto 0 0 0; padding: 0.6rem 0.7rem 0.55rem; background: linear-gradient(transparent, rgba(3,7,20,0.92)); }
.slot-card .meta h3 { font-size: 0.82rem; font-weight: 700; color: #fff; line-height: 1.15; }
.slot-card .meta p { font-size: 0.68rem; color: var(--muted); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #03121a; font-size: 0.62rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px; letter-spacing: 0.02em;
}
.slot-card.is-hidden { display: none; }

.filter-btn {
  font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  cursor: pointer; transition: all 0.15s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #03121a; border-color: var(--accent); }

/* ----- chips / quick-nav ----- */
.chip { display: inline-flex; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--line); color: var(--muted); background: var(--surface); text-decoration: none; }
.chip:hover { color: #fff; border-color: var(--accent); }

/* ----- generic surface card ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }

/* ----- big winner overlay ----- */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(3,7,20,0.66); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.95rem; color: #fff;
  border: 1px solid var(--line);
}

/* tables inside home cards */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: #fff; font-weight: 600; }
.tbl td { color: var(--muted); }
