/* DicePalace — custom CSS atop Tailwind CDN */

:root {
  --accent: #E11D2E;        /* red CTA */
  --accent-2: #8B0F1B;      /* deep red */
  --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);
}

html { scroll-behavior: smooth; background: #050505; }
body { background: radial-gradient(ellipse at top, #1a0507 0%, #050505 50%); }

/* ----- 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: #fff; }
.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); 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.75rem 1rem; margin: 0.5rem 0; }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; }

/* ----- Industry-voice 3D quote section ----- */
.quote-stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 30%;
  padding: 3rem 0;
}

.quote-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20,20,22,0.95) 0%, rgba(10,10,12,0.95) 100%);
  border: 1px solid rgba(225,29,46,0.35);
  border-radius: 1.75rem;
  padding: 3.25rem 3rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-6deg);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 18px 36px -12px rgba(225,29,46,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s ease;
}
.quote-card:hover {
  transform: rotateX(3deg) rotateY(-3deg) translateZ(20px);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 24px 50px -12px rgba(225,29,46,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* sheen highlight on the front face */
.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 60%, rgba(225,29,46,0.08) 100%);
  pointer-events: none;
}

/* depth layer beneath the card (drop-shadow plate) */
.quote-card::after {
  content: '';
  position: absolute;
  inset: 18px -22px -22px 18px;
  background: linear-gradient(135deg, #8B0F1B, #2a0508);
  border-radius: inherit;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.6;
  transform: translateZ(-60px);
}

.quote-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f87171;
  margin: 0 0 1rem;
  transform: translateZ(30px);
}

.quote-mark {
  position: absolute;
  top: -0.4rem;
  left: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  text-shadow: 0 8px 20px rgba(225,29,46,0.5);
  transform: translateZ(50px);
  pointer-events: none;
}

.quote-body {
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
  color: #f5f5f5;
  margin: 0 0 1.75rem;
  transform: translateZ(20px);
  position: relative;
}
@media (min-width: 768px) {
  .quote-body { font-size: 1.4rem; }
}

.quote-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  transform: translateZ(15px);
}

.quote-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -4px rgba(225,29,46,0.6);
  transform: translateZ(40px);
}

.quote-rating {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(225,29,46,0.4);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transform: translateZ(60px) rotateY(-4deg);
  box-shadow: 0 10px 22px -6px rgba(0,0,0,0.6);
}

/* floating dice in 3D space around the card */
.quote-die {
  position: absolute;
  font-size: 4rem;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 12px 28px rgba(225,29,46,0.55);
  pointer-events: none;
  user-select: none;
}
.quote-die--a {
  top: -10px; left: 4%;
  transform: translateZ(120px) rotate(-18deg);
  animation: quote-float-a 7s ease-in-out infinite;
}
.quote-die--b {
  top: 30%; right: 2%;
  font-size: 5rem;
  color: var(--accent);
  transform: translateZ(80px) rotate(14deg);
  animation: quote-float-b 9s ease-in-out infinite;
}
.quote-die--c {
  bottom: -10px; left: 8%;
  font-size: 3rem;
  transform: translateZ(140px) rotate(-8deg);
  animation: quote-float-c 8s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes quote-float-a {
  0%,100% { transform: translateZ(120px) translateY(0) rotate(-18deg); }
  50%     { transform: translateZ(140px) translateY(-12px) rotate(-10deg); }
}
@keyframes quote-float-b {
  0%,100% { transform: translateZ(80px) translateY(0) rotate(14deg); }
  50%     { transform: translateZ(110px) translateY(10px) rotate(22deg); }
}
@keyframes quote-float-c {
  0%,100% { transform: translateZ(140px) translateY(0) rotate(-8deg); }
  50%     { transform: translateZ(160px) translateY(-8px) rotate(2deg); }
}

@media (max-width: 768px) {
  .quote-card { padding: 3rem 1.5rem 2rem; transform: rotateX(3deg); }
  .quote-card:hover { transform: rotateX(1deg) translateZ(10px); }
  .quote-rating { position: static; margin-top: 1rem; display: inline-block; transform: none; }
  .quote-die--a, .quote-die--c { font-size: 2.5rem; }
  .quote-die--b { font-size: 3rem; }
}

/* ----- ANIMATIONS: tilt + shimmer (the 2 chosen) ----- */

/* 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(2deg) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(225, 29, 46, 0.4);
}

/* shimmer — sweeping light across CTA buttons */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(110deg, #fff 0%, var(--accent) 50%, #fff 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.45) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  pointer-events: none;
}

/* dice roll keyframe for hero accent (subtle, not one of the 2 main animations) */
@keyframes dice-spin { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.dice-bob { animation: dice-spin 5s ease-in-out infinite; display: inline-block; }

/* ----- Slot/game card ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, #1a1a1a, #0a0a0a); border: 1px solid rgba(225,29,46,0.15); }
.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 .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.slot-card h3 { font-size: 0.85rem; font-weight: 600; }
.slot-card p { font-size: 0.7rem; opacity: 0.7; }
.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.55rem; border-radius: 999px; letter-spacing: 0.02em;
}

/* ----- "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.7); backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem; border-radius: 1rem;
  font-size: 0.95rem; border: 1px solid rgba(225,29,46,0.3);
}

/* ----- Dice motif backgrounds ----- */
.dice-dots-bg {
  background-image:
    radial-gradient(circle at 15% 25%, rgba(225,29,46,0.08) 2px, transparent 3px),
    radial-gradient(circle at 80% 65%, rgba(225,29,46,0.06) 2px, transparent 3px),
    radial-gradient(circle at 45% 85%, rgba(255,255,255,0.04) 2px, transparent 3px);
  background-size: 120px 120px, 180px 180px, 90px 90px;
}

/* Section heading underline */
.section-h2 { position: relative; padding-bottom: 0.5rem; }
.section-h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 3.5rem; height: 3px; background: var(--accent); border-radius: 2px;
}
