/* -----------------------------------------------------------------
 * Dicepalace — custom CSS. Tailwind CDN handles utilities.
 * Holds: float + shimmer keyframes, prose readability,
 *        RG quiz, slot cards, 3D nav buttons, left sidebar.
 * Palette: black bg, yellow + green CTAs.
 * ----------------------------------------------------------------- */

:root {
  --accent: #FFD400;       /* yellow CTA */
  --accent-2: #22C55E;     /* green CTA */
  --accent-2-dark: #15803D;
  --bg: #000000;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
}

/* ----- 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: var(--accent); }
.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; }
.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 ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: #B8990C;
  --btn-ink: #000;
  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);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 10px -4px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.05); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 4px -2px rgba(0,0,0,0.5);
}
.btn-3d.btn-green { --btn-face: var(--accent-2); --btn-ledge: var(--accent-2-dark); --btn-ink: #04210f; }

/* ----- Left sidebar ----- */
.layout-shell { display: block; }
@media (min-width: 1024px) {
  .layout-shell { display: grid; grid-template-columns: 270px 1fr; }
  .site-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.site-sidebar {
  background: linear-gradient(180deg, rgba(255,212,0,0.06), rgba(34,197,94,0.05));
  border-right: 1px solid rgba(255,255,255,0.08);
}
.site-sidebar a.side-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem; border-radius: 0.7rem;
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-sidebar a.side-link:hover { background: var(--surface-2); color: #fff; }

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

/* ----- shimmer (chosen) — sweeping yellow→green light pass ----- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #fff 45%, var(--accent-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ----- Slot card ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface); display: block; }
.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(0,0,0,0.85), transparent); }
.slot-card .card-meta h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.1; }
.slot-card .card-meta p { font-size: 0.7rem; color: var(--muted); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #000; font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}

.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,0.9);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,212,0,0.35);
  box-shadow: 0 18px 32px -18px rgba(0,0,0,1);
}
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, filter 0.45s ease; }
.game-card:hover img { transform: scale(1.06); filter: saturate(1.08); }
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 38%, rgba(0,0,0,0.76) 100%);
}
.game-card .card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 0.8rem; }
.game-card .card-meta h3 { font-size: 0.95rem; font-weight: 800; line-height: 1.1; }
.game-card .card-meta p { font-size: 0.72rem; color: rgba(255,255,255,0.72); }
.game-card .badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: rgba(255,255,255,0.9); color: #000; font-size: 0.68rem; font-weight: 800;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}

/* ----- 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.6); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; border-radius: 1rem;
  font-size: 0.95rem;
}
