/* -----------------------------------------------------------------
 * Dice Palace — custom CSS. Tailwind via CDN handles utilities.
 * Holds: design tokens, prose, RG quiz, 3D buttons,
 *        tilt + float animations, slot cards, popovers, trust card.
 * ----------------------------------------------------------------- */

:root {
  --accent: #ef4444;        /* red CTA */
  --accent-2: #2563eb;      /* blue CTA */
  --accent-red-ledge: #991b1b;
  --accent-blue-ledge: #1e40af;
  --bg: #050505;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
}

body { background: radial-gradient(1200px 700px at 50% -10%, #161616 0%, var(--bg) 60%); }

/* ----- Prose readability ----- */
.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: #fca5a5; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: #93c5fd; }
.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; }
.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; }
.prose details, .prose-invert details { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 0.75rem 1rem; margin: 0.6rem 0; }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; }

html { scroll-behavior: smooth; }

/* ----- 3D buttons (rounded, playful) ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-red-ledge);
  --btn-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700; line-height: 1;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 5px 0 0 var(--btn-ledge), 0 8px 14px -6px rgba(0,0,0,0.6);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.08); }
.btn-3d:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 4px -2px rgba(0,0,0,0.5); }
.btn-3d--blue { --btn-face: var(--accent-2); --btn-ledge: var(--accent-blue-ledge); }

/* ----- 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: tilt + float
 * ================================================================= */

/* tilt — subtle 3D card lift on hover */
.tilt { transition: transform 0.3s ease, box-shadow 0.3s ease; transform-style: preserve-3d; }
.tilt:hover {
  transform: perspective(800px) rotateX(3deg) rotateY(-3deg) translateY(-5px);
  box-shadow: 0 22px 44px -12px rgba(37, 99, 235, 0.35);
}

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

/* ----- Slot cards ----- */
.slot-card { position: relative; border-radius: 1.25rem; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); 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.06); }
.slot-card--poster { aspect-ratio: 2 / 3; }
.slot-card--poster .slot-meta {
  display: flex; flex-direction: column; gap: 0.15rem; justify-content: flex-end;
  padding: 0.85rem;
}
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 999px; z-index: 2;
}
.slot-card .slot-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); z-index: 2;
}

/* ----- Interactive slot popover ----- */
.slot-tile { position: relative; }
.slot-pop {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 0.75rem;
  background: rgba(5,5,5,0.92); backdrop-filter: blur(4px);
  border-radius: 1.25rem;
  opacity: 0; visibility: hidden; transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.slot-tile:hover .slot-pop, .slot-tile:focus-within .slot-pop { opacity: 1; visibility: visible; transform: scale(1); }

/* ----- Provider cloud ----- */
.provider-pill { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; transition: transform 0.15s ease, background 0.15s ease; }
.provider-pill:hover { transform: translateY(-2px); background: rgba(37,99,235,0.18); }

/* ----- Trustpilot rating card stars ----- */
.tp-stars { color: #ef4444; letter-spacing: 2px; }
.tp-bar { background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; height: 8px; }
.tp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ----- Review cards ----- */
.review-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 1.25rem; padding: 1.25rem; }
.review-card header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }

/* ----- 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; }

/* ----- bento + panels ----- */
.panel { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 1.5rem; }
