/* -----------------------------------------------------------------
 * DicePalace — custom CSS (Tailwind CDN handles utilities)
 * Black background, red CTA, modern 3D casino. Tables-first.
 * Animations kept: tilt + shimmer.
 * ----------------------------------------------------------------- */

:root {
  --accent: #e11d2a;        /* primary red CTA */
  --accent-2: #8c0f18;      /* deep maroon ledge / gradient pair */
  --accent-glow: rgba(225, 29, 42, 0.45);
  --gold: #f2c14e;          /* dice pip / premium highlight */
  --bg: #07070a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.62);
}

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

/* Felt-table radial glow behind dark sections */
.felt {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(225, 29, 42, 0.10), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(242, 193, 78, 0.06), transparent 60%);
}

/* ----- 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.6rem; font-weight: 800; margin: 2.25rem 0 0.75rem; line-height: 1.3; letter-spacing: -0.01em; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p, .prose-invert p { margin: 0.75rem 0; color: var(--text); }
.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); 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.92rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th, .prose-invert th { background: var(--surface); font-weight: 700; color: #fff; }
.prose details, .prose-invert details { border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0.6rem 0; background: var(--surface); }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 700; color: #fff; }

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

/* Ghost / outline button */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.1rem; border-radius: 0.7rem; font-weight: 700;
  color: #fff; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(225, 29, 42, 0.10); }

/* Big red 3D CTA pill */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #f23040, var(--accent));
  box-shadow: 0 6px 0 0 var(--accent-2), 0 14px 30px -8px var(--accent-glow);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-cta:hover { filter: brightness(1.05); }
.btn-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 0 var(--accent-2), 0 6px 14px -6px var(--accent-glow); }

/* Section cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.card-hl { border-color: rgba(225, 29, 42, 0.4); box-shadow: 0 0 0 1px rgba(225, 29, 42, 0.15) inset; }

/* ----- 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 — tilt + shimmer
 * ================================================================= */

/* 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 24px 48px -14px var(--accent-glow);
}

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

/* ----- Slot / game card aspect ratio + hover glow ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); background: var(--surface); }
.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; background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px; letter-spacing: 0.02em;
}

/* Dice pips bullet for quick-facts */
.pip { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--gold); margin-right: 0.5rem; vertical-align: middle; }

/* Pros / cons */
.pc-pro::before { content: "✓"; color: #34d399; font-weight: 800; margin-right: 0.5rem; }
.pc-con::before { content: "✕"; color: var(--accent); font-weight: 800; margin-right: 0.5rem; }

/* Hero full-bleed background */
.hero-bg {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,7,10,0.72), rgba(7,7,10,0.92)),
    radial-gradient(900px 420px at 70% 10%, rgba(225,29,42,0.22), transparent 60%);
  background-size: cover; background-position: center;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -80px 80px -40px var(--bg); }

/* Rating ring */
.rating-num { font-variant-numeric: tabular-nums; }
