/* -----------------------------------------------------------------
 * Dice Palace — custom CSS (Tailwind via CDN handles utilities).
 * Neon dice / electric blue theme. Animations: shimmer + float.
 * ----------------------------------------------------------------- */

:root {
  --accent: #2bd9ff;        /* electric blue */
  --accent-2: #ff3df0;      /* neon magenta */
  --bg: #070b1f;            /* deep navy */
  --bg-2: #0c1230;          /* raised navy */
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #eaf2ff;
  --muted: rgba(234,242,255,0.62);
}

body { background: var(--bg); color: var(--text); }

/* Ambient neon glow behind the page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(43,217,255,0.16), transparent 70%),
    radial-gradient(55% 45% at 90% 10%, rgba(255,61,240,0.14), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(43,217,255,0.08), transparent 70%);
}

/* ----- Prose readability (no Tailwind typography plugin on the CDN) ----- */
.prose, .prose-invert { line-height: 1.75; }
.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.55rem; 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; color: var(--accent); }
.prose p, .prose-invert p { margin: 0.8rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.25rem; margin: 0.8rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.25rem; margin: 0.8rem 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: 1.25rem 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 { border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 0.5rem 1rem; margin: 0.6rem 0; background: var(--surface); }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; padding: 0.3rem 0; }

html { scroll-behavior: smooth; }

/* ----- Glassy surface helper ----- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.neon-border { box-shadow: 0 0 0 1px rgba(43,217,255,0.35), 0 0 24px -6px rgba(43,217,255,0.5); }

/* ----- 3D nav buttons ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: #119bbd;
  --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;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 14px -4px rgba(43,217,255,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.08); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 6px -2px rgba(43,217,255,0.5);
}
.btn-3d.alt { --btn-face: var(--accent-2); --btn-ledge: #b5169f; --btn-ink: #1a0418; }

/* ----- Pill CTA ----- */
.cta-pill {
  display: inline-block; font-weight: 700; border-radius: 999px;
  padding: 0.85rem 2rem; color: #03121a;
  background: linear-gradient(135deg, var(--accent), #6ee7ff);
  box-shadow: 0 10px 30px -8px rgba(43,217,255,0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(43,217,255,0.75); }

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

/* shimmer — sweeping light across accent headings */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #ffffff 45%, var(--accent-2) 70%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s 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(-10px); } }
.float { animation: float 5s ease-in-out infinite; }

/* ----- Poster card + interactive popover ----- */
.game-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 2 / 3; display: block; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.08); }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-card:hover img { transform: scale(1.06); }
.game-card:hover { box-shadow: 0 0 0 1px rgba(43,217,255,0.5), 0 12px 30px -10px rgba(43,217,255,0.55); }
.game-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.7rem; background: linear-gradient(to top, rgba(4,8,22,0.94), transparent); }
.game-card .meta h3 { font-size: 0.78rem; font-weight: 700; line-height: 1.1; }
.game-card .meta p { font-size: 0.64rem; opacity: 0.76; }
.game-card .badge { position: absolute; top: 0.5rem; left: 0.5rem; background: var(--accent); color: #03121a; font-size: 0.58rem; font-weight: 800; padding: 0.18rem 0.5rem; border-radius: 999px; letter-spacing: 0.02em; }

/* Popover revealed on hover/focus over a game poster */
.game-pop { position: relative; }
.game-pop .pop {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(6px);
  width: 260px; z-index: 20; opacity: 0; visibility: hidden;
  background: var(--bg-2); border: 1px solid rgba(43,217,255,0.4);
  border-radius: 0.9rem; padding: 0.85rem 0.95rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.8), 0 0 22px -8px rgba(43,217,255,0.5);
  transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none;
}
.game-pop .pop::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--bg-2); }
.game-pop:hover .pop, .game-pop:focus-within .pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.game-pop .pop h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.game-pop .pop p { font-size: 0.69rem; line-height: 1.45; opacity: 0.83; margin-bottom: 0.45rem; }
.game-pop .pop .row { display: flex; justify-content: space-between; font-size: 0.72rem; padding: 0.12rem 0; opacity: 0.9; }
.game-pop .pop .row span:last-child { color: var(--accent); font-weight: 600; }

/* ----- Recent big winner overlay ----- */
.big-winner { position: relative; }
.big-winner__overlay { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: rgba(4,8,22,0.66); backdrop-filter: blur(8px); padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.95rem; }

/* ----- Quick-nav chips ----- */
.chip { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.14); background: var(--surface); transition: border-color 0.15s ease, color 0.15s ease; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Sidebar ----- */
.side-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 0.75rem; font-size: 0.9rem; color: var(--muted); transition: background 0.15s ease, color 0.15s ease; }
.side-link:hover { background: var(--surface-2); color: #fff; }
.side-link .ic { width: 1.25rem; text-align: center; }

/* Latest bets */
.latest-bets table td, .latest-bets table th { padding: 0.35rem 0.4rem; }
