/* DicePalace — dark navy + green CTA + Polish red/white accents */

:root {
  --navy-1: #050d1f;
  --navy-2: #0a1a3a;
  --navy-3: #102a5c;
  --green:  #16c172;      /* CTA */
  --green-2:#0fa55b;
  --red:    #dc143c;      /* Polish red */
  --white:  #ffffff;
  --gold:   #f5c518;
  --accent: var(--green);
  --accent-2: var(--green-2);
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.09);
  --muted: rgba(255,255,255,0.7);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(22,193,114,0.12), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(220,20,60,0.10), transparent 65%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--navy-1) 100%);
  background-attachment: fixed;
}

/* ----- Prose ----- */
.prose { line-height: 1.75; color: rgba(255,255,255,0.92); }
.prose h1 { font-size: 2.4rem; font-weight: 800; margin: 0 0 1.25rem; line-height: 1.15; background: linear-gradient(120deg,#fff 0%, var(--green) 60%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 0.85rem; color: #fff; border-left: 4px solid var(--green); padding-left: 0.75rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.55rem; color: #fff; }
.prose p { margin: 0.8rem 0; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: 0.8rem 0; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin: 0.8rem 0; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.7rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
.prose th { background: var(--surface); font-weight: 700; color: var(--green); }
.prose details { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; padding: 0.85rem 1rem; margin: 0.6rem 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 1rem; opacity: 0.9; font-style: italic; }

/* RG quiz */
.rg-quiz { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 1.5rem; padding: 1.75rem; }
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* ===== ANIMATIONS — float + particle ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
.float { animation: float 4.5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }
.float-delay { animation: float 5s ease-in-out 0.8s infinite; }

@keyframes particle-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.4; }
  50%  { transform: translate3d(25px, -35px, 0); opacity: 0.85; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.4; }
}
.particle { position: relative; overflow: hidden; }
.particle::before, .particle::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, var(--green) 1.4px, transparent 2px),
    radial-gradient(circle at 78% 60%, var(--red) 1.2px, transparent 2px),
    radial-gradient(circle at 45% 80%, #fff 1px, transparent 1.6px);
  background-size: 80px 80px, 110px 110px, 60px 60px;
  animation: particle-drift 14s ease-in-out infinite;
  opacity: 0.35;
}
.particle::after { animation-duration: 22s; animation-delay: -5s; opacity: 0.25; }

/* Dice 3D cube */
.dice-3d { width: 120px; height: 120px; position: relative; transform-style: preserve-3d; }
.dice-3d .face {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 18px;
  display: grid; place-items: center;
  box-shadow: inset 0 -6px 20px rgba(0,0,0,0.1), 0 18px 40px rgba(0,0,0,0.45);
}
.dice-3d .pip { width: 18px; height: 18px; background: #dc143c; border-radius: 50%; box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25); }
.dice-3d .f1 { transform: translateZ(60px); }
.dice-3d .f2 { transform: rotateY(180deg) translateZ(60px); }
.dice-3d .f3 { transform: rotateY(90deg)  translateZ(60px); }
.dice-3d .f4 { transform: rotateY(-90deg) translateZ(60px); }
.dice-3d .f5 { transform: rotateX(90deg)  translateZ(60px); }
.dice-3d .f6 { transform: rotateX(-90deg) translateZ(60px); }
@keyframes dice-spin {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(720deg) rotateY(1080deg); }
}
.dice-spin { animation: dice-spin 1.4s cubic-bezier(.25,.85,.35,1.05) forwards; }
.dice-idle { animation: float 4s ease-in-out infinite, dice-spin-slow 14s linear infinite; }
@keyframes dice-spin-slow {
  from { transform: rotateX(0) rotateY(0); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* Slot card */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.08); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.slot-card:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: 0 18px 40px -12px rgba(22,193,114,0.45); }
.slot-card img { width: 100%; height: 70%; object-fit: cover; }
.slot-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0.7rem; background: linear-gradient(180deg, transparent, rgba(5,13,31,0.95) 60%); }
.slot-card h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.slot-card .provider { font-size: 0.7rem; opacity: 0.7; }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--green); color: #04140a; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem; border-radius: 999px; text-transform: uppercase;
}
.slot-card .badge.red { background: var(--red); color: #fff; }

/* Big winner */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(5,13,31,0.78); backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem; border-radius: 1rem;
  border: 1px solid rgba(22,193,114,0.35);
  font-size: 0.95rem;
}

/* Polish flag accent bar */
.pl-flag-bar { background: linear-gradient(180deg, #fff 0 50%, var(--red) 50% 100%); }
.pl-stripe { background: repeating-linear-gradient(90deg, var(--red) 0 12px, #fff 12px 24px); height: 4px; }

/* Bento card */
.bento { background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 1.25rem; padding: 1.5rem; position: relative; overflow: hidden; }
.bento::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(22,193,114,0.25), transparent 70%); border-radius: 50%; }

/* CTA pulse */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,193,114,0.55); }
  50%      { box-shadow: 0 0 0 18px rgba(22,193,114,0); }
}
.cta-pulse { animation: cta-pulse 2.4s ease-out infinite; }

/* Payment carousel */
.pay-carousel-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes pay-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pay-carousel { display: flex; gap: 1.25rem; width: max-content; animation: pay-scroll 35s linear infinite; }
.pay-carousel:hover { animation-play-state: paused; }
.pay-tile {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem; border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  min-width: 180px;
}
.pay-tile .dot { width: 10px; height: 10px; border-radius: 50%; }

/* Tournaments / shop card */
.feature-card {
  background: linear-gradient(160deg, rgba(22,193,114,0.12) 0%, rgba(255,255,255,0.02) 60%);
  border: 1px solid rgba(22,193,114,0.25);
  border-radius: 1.5rem;
  padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--green); }
.feature-card.red { background: linear-gradient(160deg, rgba(220,20,60,0.14), rgba(255,255,255,0.02) 60%); border-color: rgba(220,20,60,0.25); }
.feature-card.red:hover { border-color: var(--red); }
.coin-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(245,197,24,0.18); border: 1px solid rgba(245,197,24,0.4); color: var(--gold); font-weight: 700; font-size: 0.78rem; }

/* Dice game */
.dice-game-wrap {
  background: radial-gradient(circle at 50% 30%, rgba(22,193,114,0.18), transparent 60%), linear-gradient(180deg, #061533 0%, #020a1c 100%);
  border: 1px solid rgba(22,193,114,0.3);
  border-radius: 2rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.dice-game-wrap .felt-stripes { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 16px, #fff 16px 32px); }
.dice-game-wrap .felt-stripes.bottom { top: auto; bottom: 0; }
.dice-svg-stage { perspective: 900px; height: 220px; display: grid; place-items: center; }

/* Popup modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop.open { display: flex; animation: modal-fade 0.25s ease; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: linear-gradient(160deg, #0a1a3a, #051028); border: 1px solid rgba(22,193,114,0.4); border-radius: 1.5rem; padding: 2rem; max-width: 480px; width: 100%; text-align: center; position: relative; box-shadow: 0 30px 80px -10px rgba(22,193,114,0.4); }
.modal-card .close { position: absolute; top: 0.85rem; right: 1rem; background: transparent; color: #fff; opacity: 0.6; font-size: 1.5rem; line-height: 1; cursor: pointer; border: 0; }

/* Latest bets */
.bet-row.flash { animation: bet-flash 0.6s ease; }
@keyframes bet-flash { from { background: rgba(22,193,114,0.18); } to { background: transparent; } }

/* Marquee for banks logo cloud */
@keyframes bank-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.bank-cloud-track { display: flex; gap: 2rem; width: max-content; animation: bank-scroll 28s linear infinite; align-items: center; }
.bank-logo {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  color: #0a1a3a; font-weight: 800; letter-spacing: -0.02em;
  padding: 0.85rem 1.5rem; border-radius: 0.85rem;
  white-space: nowrap; min-width: 160px; height: 64px;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.bank-logo.red { background: var(--red); color: #fff; }
.bank-logo.navy { background: #0a1a3a; color: #fff; border: 1px solid rgba(255,255,255,0.15); }

/* Flying banner */
#flying-banner { transition: transform 0.4s ease, opacity 0.4s ease; }
#flying-banner.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* Hero */
.hero-bg-glow {
  position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,193,114,0.35), transparent 65%);
  filter: blur(40px);
}
.hero-bg-glow.red { background: radial-gradient(circle, rgba(220,20,60,0.3), transparent 65%); }

/* CTA */
.btn-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #04140a; font-weight: 800;
  padding: 0.85rem 1.85rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 0; cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(22,193,114,0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -8px rgba(22,193,114,0.85); }
.btn-ghost {
  background: transparent; color: #fff;
  padding: 0.75rem 1.45rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--green); background: rgba(22,193,114,0.1); }

/* Provider chip */
.provider-chip { padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; font-weight: 500; }

/* Tier bars in VIP table */
.tier-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.tier-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }

/* Section heading utility */
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); padding: 0.25rem 0.75rem; border: 1px solid rgba(22,193,114,0.4); border-radius: 999px; background: rgba(22,193,114,0.08); }
