/* ═══════════════════════════════════════════
   LUCKY BIRTHDAY CASINO — stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;600&family=Cinzel:wght@400;700;900&display=swap');

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #ffd700;
  --gold-dark:   #b8860b;
  --gold-light:  #ffe066;
  --neon-pink:   #ff2d78;
  --neon-cyan:   #00f5ff;
  --neon-purple: #bf00ff;
  --bg:          #070710;
  --bg2:         #0d0d1a;
  --green:       #0a2b1e;
  --green2:      #0f3d28;
  --card-red:    #c0392b;
  --text:        #f0e6c8;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── MARQUEE HEADER ───────────────────────── */
.marquee-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--gold), var(--neon-cyan), var(--gold), var(--neon-pink));
  background-size: 400% 100%;
  animation: gradientShift 4s linear infinite;
  padding: 10px 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.marquee-bar .track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-bar span {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 3px;
  color: #000;
  padding: 0 30px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gradientShift { 0%{background-position:0% 50%} 100%{background-position:400% 50%} }

/* ─── HERO SECTION ─────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
  background: var(--bg);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('casino_table_bg.webp') center/cover no-repeat;
  opacity: .12;
  z-index: 0;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 80%);
  z-index: 1;
}
#hero > * { position: relative; z-index: 2; }

.crown { font-size: 4rem; animation: bob 2.5s ease-in-out infinite; display: block; margin-bottom: 12px; }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-5deg)} 50%{transform:translateY(-16px) rotate(5deg)} }

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(.75rem, 2vw, .9rem);
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .85;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(255,215,0,.45));
  margin-bottom: 24px;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 340px;
}
.hero-divider::before, .hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-divider-icon { color: var(--gold); font-size: 1.2rem; }

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text);
  opacity: .9;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 42px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .3s ease;
  box-shadow: 0 0 20px rgba(255,215,0,.2), inset 0 0 0 rgba(255,215,0,0);
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 40px rgba(255,215,0,.6), 0 0 80px rgba(255,215,0,.2);
  transform: translateY(-3px);
}

/* floating chips in hero */
.chip-float {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 4px dashed;
  animation: floatChip linear infinite;
  opacity: .25;
  z-index: 1;
}
.chip-float:nth-child(1){left:8%;top:20%;border-color:var(--gold);animation-duration:14s;animation-delay:0s;}
.chip-float:nth-child(2){left:82%;top:15%;border-color:var(--neon-cyan);animation-duration:18s;animation-delay:-4s;}
.chip-float:nth-child(3){left:15%;top:75%;border-color:var(--neon-pink);animation-duration:12s;animation-delay:-7s;}
.chip-float:nth-child(4){left:75%;top:70%;border-color:var(--gold);animation-duration:9s;animation-delay:-2s;}
.chip-float:nth-child(5){left:50%;top:10%;border-color:var(--neon-purple);animation-duration:16s;animation-delay:-8s;}
@keyframes floatChip {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-40px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

/* ─── SECTION WRAPPERS ─────────────────────── */
.section {
  padding: 90px 20px;
  position: relative;
}
.section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* DIVIDER */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  max-width: 700px;
}

/* ─── SLOT MACHINE ─────────────────────────── */
#slots { background: var(--green); }
#slots::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,.07) 0%, transparent 70%);
}

.slot-machine {
  background: linear-gradient(145deg, #1a1a2e, #0d0d1a);
  border: 3px solid var(--gold-dark);
  border-radius: 24px;
  padding: 40px 20px 30px;
  max-width: 560px;
  margin: 0 auto 36px;
  box-shadow: 0 0 60px rgba(255,215,0,.15), inset 0 0 40px rgba(0,0,0,.5);
  position: relative;
}
.slot-machine::before {
  content: '🎰';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  filter: drop-shadow(0 0 10px rgba(255,215,0,.6));
}
.reels-wrap {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.reel {
  width: 110px; height: 130px;
  background: #000;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,.8);
}
.reel-face {
  font-size: 3.2rem;
  line-height: 130px;
  transition: none;
  user-select: none;
}
.reel-face.spinning {
  animation: reelSpin 0.08s linear infinite;
}
@keyframes reelSpin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-10px); }
  75%  { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
.reel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
  pointer-events: none;
}
.spin-btn {
  display: block;
  margin: 0 auto;
  padding: 14px 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 3px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(255,215,0,.4);
  transition: all .25s;
}
.spin-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(255,215,0,.6);
}
.spin-btn:disabled { opacity: .5; cursor: not-allowed; }

.slot-message {
  text-align: center;
  min-height: 64px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-light);
  margin-top: 22px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.slot-message.show { opacity: 1; transform: translateY(0); }

/* ─── FLIP CARD ────────────────────────────── */
#card-section { background: var(--bg2); }

.card-scene {
  width: 260px; height: 380px;
  margin: 0 auto 30px;
  perspective: 1000px;
  cursor: pointer;
}
.card-3d {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.4,.2,.2,1);
  border-radius: 18px;
}
.card-scene:hover .card-3d, .card-3d.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-front {
  background: linear-gradient(145deg, #1a1a2e 0%, #0d0d20 100%);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 0 50px rgba(255,215,0,.2), 0 20px 60px rgba(0,0,0,.7);
}
.card-front-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.card-suit-big { font-size: 7rem; line-height: 1; filter: drop-shadow(0 0 20px rgba(255,215,0,.5)); }
.card-rank {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-corner {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
}
.card-corner.tl { top: 14px; left: 16px; }
.card-corner.br { bottom: 14px; right: 16px; transform: rotate(180deg); }

.card-back {
  background: linear-gradient(145deg, var(--green), var(--green2));
  border: 2px solid var(--gold-dark);
  transform: rotateY(180deg);
  box-shadow: 0 0 50px rgba(255,215,0,.2), 0 20px 60px rgba(0,0,0,.7);
  padding: 30px 24px;
  text-align: center;
}
.card-back-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.card-back-msg {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.card-back-emoji { font-size: 2.2rem; margin-top: 18px; display: block; }
.card-hint {
  text-align: center;
  font-size: .8rem;
  color: rgba(255,215,0,.4);
  letter-spacing: 2px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:.9} }

/* ─── CHIPS SECTION ────────────────────────── */
#chips-section { background: var(--green); }

.chips-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.chip-stack {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: 1px;
  border: 4px dashed;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  user-select: none;
  text-align: center;
  line-height: 1.3;
  flex-direction: column;
  gap: 2px;
}
.chip:hover  { transform: scale(1.18) rotate(12deg); }
.chip:active { transform: scale(0.95); }
.chip.gold   { background: var(--gold-dark); border-color: var(--gold-light); color: #000; }
.chip.red    { background: #8b0000; border-color: var(--neon-pink); color: #fff; }
.chip.blue   { background: #003366; border-color: var(--neon-cyan); color: #fff; }
.chip.purple { background: #3a0066; border-color: var(--neon-purple); color: #fff; }
.chip.vip {
  background: radial-gradient(circle at 35% 35%, #ffe066, #b8860b);
  border: 4px solid #fff;
  border-style: dashed;
  color: #000;
  box-shadow: 0 0 30px rgba(255,215,0,.8), 0 0 60px rgba(255,215,0,.3);
  animation: vipPulse 1.8s ease-in-out infinite;
}
.chip.vip:hover {
  transform: scale(1.22) rotate(-10deg);
  box-shadow: 0 0 50px rgba(255,215,0,1), 0 0 100px rgba(255,215,0,.5);
}
@keyframes vipPulse {
  0%,100% { box-shadow: 0 0 20px rgba(255,215,0,.6), 0 0 50px rgba(255,215,0,.2); }
  50%     { box-shadow: 0 0 50px rgba(255,215,0,1), 0 0 100px rgba(255,215,0,.5); }
}

/* ── CHIP CLICK DELTA ── */
.chip-delta {
  min-height: 36px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  pointer-events: none;
}
.chip-delta-anim {
  display: inline-block;
  animation: deltaFloat 1.6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes deltaFloat {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateY(-28px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-60px) scale(.8); }
}
.delta-positive { color: #00ff88; text-shadow: 0 0 12px rgba(0,255,136,.6); }
.delta-negative { color: #ff4466; text-shadow: 0 0 12px rgba(255,68,102,.6); }

/* chips hint line */
.chips-hint {
  text-align: center;
  margin-top: 28px;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: 2px;
  color: rgba(255,215,0,.45);
  animation: pulse 3s ease-in-out infinite;
}

.chip-counter-wrap { text-align: center; }
.chip-counter-label {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 10px;
}
.chip-counter-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,215,0,.4));
}
.chip-counter-sub {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: rgba(255,215,0,.6);
  margin-top: 6px;
}

/* ─── FORTUNE WHEEL MODAL ──────────────────── */
.wheel-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.wheel-backdrop.open { display: block; }

.wheel-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  z-index: 1001;
  width: min(520px, 96vw);
  max-height: 96vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #0d0d20, #0a1a10);
  border: 2px solid var(--gold-dark);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 0 80px rgba(255,215,0,.25), 0 40px 120px rgba(0,0,0,.9);
  transition: transform .35s cubic-bezier(.4,.2,.2,1), opacity .35s;
  opacity: 0;
}
.wheel-modal.open {
  display: block;
  animation: modalIn .35s cubic-bezier(.4,.2,.2,1) forwards;
}
@keyframes modalIn {
  from { transform: translate(-50%,-50%) scale(.88); opacity: 0; }
  to   { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
}
.wheel-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: rgba(255,215,0,.6);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color .2s, transform .2s;
}
.wheel-close:hover { color: var(--gold); transform: rotate(90deg); }

.wheel-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem,4vw,2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  letter-spacing: 3px;
}
.wheel-balance-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,215,0,.08);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: 50px;
  padding: 8px 24px;
  margin-bottom: 18px;
}
.wheel-bal-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: 2px;
  color: rgba(255,215,0,.7);
}
.wheel-bal-value {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,.5);
}

/* Bet row */
.wheel-bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.wheel-bet-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: 2px;
  color: rgba(255,215,0,.7);
}
.wheel-bet-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bet-preset {
  padding: 6px 14px;
  background: rgba(255,215,0,.1);
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 50px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.bet-preset:hover, .bet-preset.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 12px rgba(255,215,0,.5);
}
.bet-input {
  width: 100px;
  padding: 7px 12px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 8px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  text-align: center;
  outline: none;
}
.bet-input:focus { border-color: var(--gold); box-shadow: 0 0 8px rgba(255,215,0,.3); }

/* Wheel canvas wrapper */
.wheel-wrap {
  position: relative;
  width: 360px;
  max-width: 100%;
  margin: 0 auto 20px;
}
.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--gold);
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.8));
  line-height: 1;
}
#wheel-canvas {
  display: block;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255,215,0,.2), 0 0 80px rgba(0,0,0,.8);
}

.wheel-spin-btn {
  width: 100%;
  margin-bottom: 16px;
}

.wheel-result {
  min-height: 54px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--gold-light);
  padding: 8px;
  border-radius: 10px;
  transition: background .4s;
}
.wheel-result.win  { background: rgba(0,255,100,.1); border: 1px solid rgba(0,255,100,.3); color: #00ff88; }
.wheel-result.loss { background: rgba(255,60,60,.1);  border: 1px solid rgba(255,60,60,.3);  color: #ff4466; }
.wheel-result.jackpot {
  background: rgba(255,215,0,.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  animation: jackpotGlow 1s ease-in-out infinite alternate;
}
@keyframes jackpotGlow {
  from { box-shadow: 0 0 10px rgba(255,215,0,.4); }
  to   { box-shadow: 0 0 40px rgba(255,215,0,.9); }
}

/* Legend */
.wheel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.legend-item {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid;
}
.legend-item.black   { border-color: #555; color: #aaa; }
.legend-item.yellow  { border-color: #b8860b; color: var(--gold); }
.legend-item.red     { border-color: #c0392b; color: #ff6b6b; }
.legend-item.jackpot { border-color: var(--gold); color: var(--gold); background: rgba(255,215,0,.1); }

/* ─── FOOTER ───────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,215,0,.15);
  padding: 40px 20px;
  text-align: center;
}
.footer-suits { font-size: 1.8rem; margin-bottom: 12px; letter-spacing: 8px; }
.footer-text {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: 3px;
  color: rgba(255,215,0,.4);
  text-transform: uppercase;
}

/* ─── CONFETTI ─────────────────────────────── */
.confetti-piece {
  position: fixed;
  top: -20px;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) scale(.5); opacity: 0; }
}

/* ─── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 520px) {
  .reels-wrap { gap: 8px; }
  .reel { width: 85px; height: 100px; }
  .reel-face { font-size: 2.4rem; line-height: 100px; }
  .card-scene { width: 220px; height: 320px; }
}

/* ─── WHEEL STEP LABELS ─────────────────────── */
.wheel-step-label {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: 3px;
  color: rgba(255,215,0,.6);
  text-align: center;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

/* Fix wheel-wrap to match 400px canvas */
.wheel-wrap {
  width: 400px !important;
}

/* ─── COLOR SELECTOR BUTTONS ────────────────── */
.color-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4px;
}
.color-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
  letter-spacing: 1px;
}
.color-btn em { font-style: normal; font-size: .9em; opacity: .75; }

/* Black */
.cb-black  { background: #111; border-color: #444; color: #ccc; }
.cb-black:hover  { border-color: #888; color: #fff; }
.cb-black.selected  {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,.35), inset 0 0 10px rgba(255,255,255,.07);
}
/* Yellow */
.cb-yellow  { background: #1a1000; border-color: #7a5500; color: var(--gold); }
.cb-yellow:hover  { border-color: var(--gold-dark); }
.cb-yellow.selected {
  border-color: var(--gold);
  color: #ffe;
  box-shadow: 0 0 18px rgba(255,215,0,.55), inset 0 0 10px rgba(255,215,0,.1);
}
/* Red */
.cb-red  { background: #1a0000; border-color: #660000; color: #ff7777; }
.cb-red:hover  { border-color: #cc3333; }
.cb-red.selected {
  border-color: #ff4444;
  color: #ffaaaa;
  box-shadow: 0 0 18px rgba(255,68,68,.55), inset 0 0 10px rgba(255,68,68,.1);
}
/* Green */
.cb-green  { background: #001a00; border-color: #004400; color: #44cc44; }
.cb-green:hover  { border-color: #00aa33; }
.cb-green.selected {
  border-color: #00ff55;
  color: #aaffcc;
  box-shadow: 0 0 18px rgba(0,255,85,.55), inset 0 0 10px rgba(0,255,85,.1);
  animation: greenPulse 1.5s ease-in-out infinite;
}
@keyframes greenPulse {
  0%,100% { box-shadow: 0 0 14px rgba(0,255,85,.45); }
  50%     { box-shadow: 0 0 30px rgba(0,255,85,.85); }
}
