@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Russo+One&family=Pacifico&family=Playfair+Display:wght@700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --dm-black:     #000000;
    --dm-dark:      #1A1A1A;
    --dm-carbon:    #2C2C2C;
    --dm-gold:      #C8A96E;
    --dm-gold-light:#D4A853;
    --dm-cream:     #F5E6C8;
    --dm-white:     #FFFFFF;
    --radius:       16px;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dm-black);
    min-height: 100dvh;
    color: var(--dm-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ── BACKGROUND VIDEO ── */
.bg-video {
    position: fixed;
    top: -5%; left: -30%;
    width: 130vw; height: 110vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.bg-video-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
    pointer-events: none;
}

/* ── GOLD PARTICLES (replaces fire) ── */
.gold-particles {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 2; overflow: hidden;
}
.gold-particles span {
    position: absolute;
    bottom: -20px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--dm-gold);
    opacity: 0;
    animation: goldFloat 5s ease-in infinite;
}
.gold-particles span:nth-child(1)  { left: 5%;  animation-delay: 0s;   width: 3px; height: 3px; }
.gold-particles span:nth-child(2)  { left: 12%; animation-delay: .8s;  width: 2px; height: 2px; background: var(--dm-cream); }
.gold-particles span:nth-child(3)  { left: 22%; animation-delay: 1.6s; }
.gold-particles span:nth-child(4)  { left: 32%; animation-delay: .4s;  width: 3px; height: 3px; background: var(--dm-gold-light); }
.gold-particles span:nth-child(5)  { left: 42%; animation-delay: 2.2s; width: 2px; height: 2px; }
.gold-particles span:nth-child(6)  { left: 52%; animation-delay: 1.1s; background: var(--dm-cream); }
.gold-particles span:nth-child(7)  { left: 62%; animation-delay: .6s;  width: 3px; height: 3px; }
.gold-particles span:nth-child(8)  { left: 72%; animation-delay: 2s;   background: var(--dm-gold-light); }
.gold-particles span:nth-child(9)  { left: 82%; animation-delay: 2.8s; width: 3px; height: 3px; }
.gold-particles span:nth-child(10) { left: 92%; animation-delay: 1.4s; width: 2px; height: 2px; }
.gold-particles span:nth-child(11) { left: 8%;  animation-delay: 3.2s; background: var(--dm-cream); }
.gold-particles span:nth-child(12) { left: 38%; animation-delay: .2s;  width: 2px; height: 2px; }
.gold-particles span:nth-child(13) { left: 58%; animation-delay: 1.8s; }
.gold-particles span:nth-child(14) { left: 78%; animation-delay: 3s;   background: var(--dm-gold-light); width: 3px; height: 3px; }
.gold-particles span:nth-child(15) { left: 48%; animation-delay: .9s;  width: 2px; height: 2px; background: var(--dm-cream); }

@keyframes goldFloat {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: .6; }
    50%  { opacity: .4; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ── MILANESA RAIN (MRB burger-rain style) ── */
.milanesa-rain {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 3; overflow: hidden;
}
.milanesa-rain span {
    position: absolute;
    top: -80px;
    opacity: 0;
    animation: milanesaFall linear infinite;
}
.milanesa-rain span img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}
.milanesa-rain span:nth-child(1)  { left: 3%;  animation-duration: 7s;  animation-delay: 0s; }
.milanesa-rain span:nth-child(2)  { left: 12%; animation-duration: 9s;  animation-delay: 1.2s; }
.milanesa-rain span:nth-child(3)  { left: 22%; animation-duration: 8s;  animation-delay: 3s; }
.milanesa-rain span:nth-child(4)  { left: 32%; animation-duration: 10s; animation-delay: 0.5s; }
.milanesa-rain span:nth-child(5)  { left: 42%; animation-duration: 7.5s;animation-delay: 2s; }
.milanesa-rain span:nth-child(6)  { left: 52%; animation-duration: 9.5s;animation-delay: 4s; }
.milanesa-rain span:nth-child(7)  { left: 60%; animation-duration: 8.5s;animation-delay: 1s; }
.milanesa-rain span:nth-child(8)  { left: 70%; animation-duration: 7s;  animation-delay: 3.5s; }
.milanesa-rain span:nth-child(9)  { left: 78%; animation-duration: 10.5s;animation-delay: 0.8s; }
.milanesa-rain span:nth-child(10) { left: 87%; animation-duration: 8s;  animation-delay: 2.5s; }
.milanesa-rain span:nth-child(11) { left: 8%;  animation-duration: 9s;  animation-delay: 5s; }
.milanesa-rain span:nth-child(12) { left: 47%; animation-duration: 8s;  animation-delay: 1.8s; }
.milanesa-rain span:nth-child(13) { left: 65%; animation-duration: 7.5s;animation-delay: 4.5s; }
.milanesa-rain span:nth-child(14) { left: 93%; animation-duration: 9.5s;animation-delay: 0.3s; }
.milanesa-rain span:nth-child(15) { left: 25%; animation-duration: 10s; animation-delay: 3.2s; }
.milanesa-rain span:nth-child(16) { left: 6%;  animation-duration: 8.5s;animation-delay: 5.5s; }
.milanesa-rain span:nth-child(17) { left: 18%; animation-duration: 7.5s;animation-delay: 0.2s; }
.milanesa-rain span:nth-child(18) { left: 35%; animation-duration: 9s;  animation-delay: 2.8s; }
.milanesa-rain span:nth-child(19) { left: 44%; animation-duration: 8s;  animation-delay: 4.2s; }
.milanesa-rain span:nth-child(20) { left: 56%; animation-duration: 10s; animation-delay: 1.5s; }
.milanesa-rain span:nth-child(21) { left: 63%; animation-duration: 7s;  animation-delay: 3.8s; }
.milanesa-rain span:nth-child(22) { left: 73%; animation-duration: 9.5s;animation-delay: 0.7s; }
.milanesa-rain span:nth-child(23) { left: 80%; animation-duration: 8.5s;animation-delay: 5s; }
.milanesa-rain span:nth-child(24) { left: 88%; animation-duration: 7.5s;animation-delay: 2.2s; }
.milanesa-rain span:nth-child(25) { left: 95%; animation-duration: 9s;  animation-delay: 4.8s; }
.milanesa-rain span:nth-child(26) { left: 10%; animation-duration: 10.5s;animation-delay: 1.8s; }
.milanesa-rain span:nth-child(27) { left: 30%; animation-duration: 8s;  animation-delay: 3.5s; }
.milanesa-rain span:nth-child(28) { left: 50%; animation-duration: 7s;  animation-delay: 0.9s; }
.milanesa-rain span:nth-child(29) { left: 68%; animation-duration: 9.5s;animation-delay: 4.5s; }
.milanesa-rain span:nth-child(30) { left: 85%; animation-duration: 8.5s;animation-delay: 2.6s; }

@keyframes milanesaFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    5%   { opacity: .85; }
    90%  { opacity: .7; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ── SCREENS ── */
.screen {
    display: none;
    min-height: 100dvh;
    align-items: center; justify-content: center;
    padding: 1.5rem 1rem;
    position: relative; z-index: 5;
}
.screen.active {
    display: flex;
    animation: screenIn .5s cubic-bezier(.22,.68,0,1.15);
}
@keyframes screenIn {
    from { opacity: 0; transform: scale(.92) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── LOGO ── */
.logo-header { text-align: center; margin-bottom: 1.2rem; }

.logo-glow {
    position: relative;
    display: inline-block;
}
.logo-glow::after {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,169,110,.25) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}
.logo-glow img {
    width: 120px; height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--dm-gold);
    box-shadow: 0 0 20px rgba(200,169,110,.3), 0 8px 24px rgba(0,0,0,.5);
    animation: logoFloat 3s ease-in-out infinite;
}
.logo-glow.small img { width: 80px; height: 80px; border-width: 3px; }

.mascot-hero {
    display: block;
    margin: 0 auto .5rem;
    width: 220px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 8px 24px rgba(200,169,110,.3));
}

@keyframes glowPulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.tagline {
    font-family: 'Russo One', sans-serif;
    font-size: .85rem;
    color: var(--dm-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: .6rem;
    text-shadow: 1px 1px 0 var(--dm-black);
}
.gold-text {
    color: var(--dm-gold-light);
    text-shadow: 0 0 10px rgba(200,169,110,.5);
}

/* ── CARD ── */
.card {
    background: linear-gradient(170deg, rgba(26,26,26,.85) 0%, rgba(10,10,10,.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200,169,110,.2);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.03);
    position: relative; overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--dm-gold), var(--dm-gold-light), var(--dm-gold), transparent);
}

/* ── MASCOT IMAGES ── */
.mascot-img {
    display: block;
    margin: 0 auto .8rem;
    width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}
.mascot-bounce {
    animation: mascotBounce 2.5s ease-in-out infinite;
}
.mascot-celebrate {
    animation: mascotPop .6s cubic-bezier(.22,.68,0,1.4);
}
@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-8px) rotate(-2deg); }
    70% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes mascotPop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.prize-img {
    display: block;
    margin: 0 auto .5rem;
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 4px 12px rgba(200,169,110,.3));
}

/* ── FORM ── */
form { display: flex; flex-direction: column; gap: .6rem; }

.input-group { display: flex; flex-direction: column; gap: .2rem; }

label {
    font-family: 'Russo One', sans-serif;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dm-gold);
    opacity: .8;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(200,169,110,.15);
    background: rgba(255,255,255,.04);
    color: var(--dm-white);
    font-size: 1rem; font-weight: 500;
    outline: none;
    transition: all .3s ease;
}
input::placeholder { color: rgba(255,255,255,.2); }
input:focus {
    border-color: var(--dm-gold);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(200,169,110,.1), 0 0 20px rgba(200,169,110,.06);
    transform: translateY(-1px);
}

.checkbox-group { flex-direction: row; }
.checkbox-label {
    display: flex; align-items: center; gap: .5rem;
    font-family: 'Segoe UI', sans-serif;
    font-size: .8rem;
    color: var(--dm-cream);
    cursor: pointer;
    opacity: .7;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--dm-gold);
}
.email-field { transition: all .3s ease; }

.win-subtitle {
    font-family: 'Russo One', sans-serif;
    font-size: .9rem;
    color: var(--dm-cream);
    opacity: .7;
    letter-spacing: 2px;
    margin-bottom: .5rem;
}

/* ── BUTTONS ── */
.btn-dimitris {
    width: 100%; padding: 1rem 1.2rem;
    border: 2px solid var(--dm-black);
    border-radius: 14px;
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.15rem; cursor: pointer;
    transition: transform .1s, box-shadow .1s;
    letter-spacing: 1.5px; text-transform: uppercase;
    background: var(--dm-gold);
    color: var(--dm-black);
    box-shadow: 0 6px 0 #1A1A1A, 0 10px 24px rgba(0,0,0,.5);
    position: relative;
    text-shadow: none;
}
.btn-dimitris:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #1A1A1A, 0 14px 32px rgba(0,0,0,.6);
}
.btn-dimitris:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1A1A1A, 0 4px 8px rgba(0,0,0,.4);
}
.btn-dimitris:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.btn-dimitris.btn-gold {
    background: linear-gradient(135deg, var(--dm-gold) 0%, var(--dm-gold-light) 100%);
    color: var(--dm-black);
}

.btn-pulse { animation: btnPulse 2.5s ease-in-out infinite; }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 6px 0 #1A1A1A, 0 10px 24px rgba(0,0,0,.5); }
    50%      { box-shadow: 0 6px 0 #1A1A1A, 0 10px 24px rgba(0,0,0,.5), 0 0 30px rgba(200,169,110,.2); }
}

/* ── SPIN BUTTON ── */
.btn-spin-cta {
    max-width: 240px;
    font-size: 1.4rem; padding: 1.1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dm-gold) 0%, #A08040 100%);
}
.btn-spin-text, .btn-spin-fire {
    display: block; transition: transform .3s, opacity .3s;
}
.btn-spin-fire {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--dm-cream) 0%, var(--dm-gold) 100%);
    color: var(--dm-black);
    transform: translateY(100%); opacity: 0;
    text-shadow: none;
    font-size: 1.4rem; letter-spacing: 1.5px;
}
.btn-spin-cta:hover .btn-spin-text { transform: translateY(-100%); opacity: 0; }
.btn-spin-cta:hover .btn-spin-fire { transform: translateY(0); opacity: 1; }

/* ── ERROR ── */
.error-msg {
    text-align: center;
    background: rgba(200,169,110,.15);
    border: 1px solid var(--dm-gold);
    border-radius: 10px;
    padding: .7rem 1rem; font-size: .85rem; font-weight: 600;
    color: var(--dm-cream);
    margin-top: .5rem; animation: shake .4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.hidden { display: none !important; }

/* ── WHEEL ── */
.wheel-container {
    display: flex; flex-direction: column;
    align-items: center; gap: 1.4rem;
    width: 100%; padding: .5rem 1rem;
}

.greeting-text {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.3rem; text-align: center;
    color: var(--dm-cream);
    text-shadow: 2px 2px 0 var(--dm-black), 0 0 20px rgba(200,169,110,.1);
}

.wheel-stage {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* LED Ring */
.led-ring {
    position: absolute;
    width: calc(82vw + 40px); height: calc(82vw + 40px);
    max-width: 360px; max-height: 360px;
    border-radius: 50%;
    pointer-events: none; z-index: 0;
}
.led-ring .led {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dm-gold);
    box-shadow: 0 0 6px var(--dm-gold);
    opacity: .3;
    transition: opacity .15s, box-shadow .15s;
}
.led-ring .led.on {
    opacity: 1;
    box-shadow: 0 0 10px var(--dm-gold), 0 0 20px rgba(200,169,110,.4);
}

.wheel-wrapper {
    position: relative; display: inline-block; z-index: 1;
}

.wheel-arrow {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--dm-gold);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.8));
    z-index: 10;
    animation: arrowBob 1.2s ease-in-out infinite;
}
.wheel-arrow::after {
    content: '';
    position: absolute;
    top: -28px; left: -10px;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 8px solid rgba(200,169,110,.3);
}

@keyframes arrowBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(5px); }
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow:
        0 0 0 5px var(--dm-gold),
        0 0 0 8px var(--dm-black),
        0 0 0 11px rgba(200,169,110,.2),
        0 0 40px rgba(200,169,110,.1),
        0 12px 48px rgba(0,0,0,.6);
    display: block;
    max-width: 310px; width: 82vw;
    height: 82vw; max-height: 310px;
}

/* ── RESULT ── */
.result-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.win-flash {
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(200,169,110,.15) 0%, transparent 70%);
    animation: winFlash 1.5s ease-out;
    pointer-events: none;
}
@keyframes winFlash {
    0%   { opacity: 1; transform: scale(.5); }
    100% { opacity: 0; transform: scale(2); }
}

.win-title {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 2.2rem;
    color: var(--dm-gold);
    text-shadow: 3px 3px 0 var(--dm-black), 0 0 40px rgba(200,169,110,.2);
    margin-bottom: .3rem;
    letter-spacing: 3px;
    animation: titleReveal .5s ease-out .2s both;
}
@keyframes titleReveal {
    from { transform: scale(.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.prize-reveal {
    margin: 1rem 0 1.5rem;
    animation: prizeReveal .5s ease-out .5s both;
}
@keyframes prizeReveal {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.prize-label {
    display: block;
    font-size: .8rem;
    color: var(--dm-cream);
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .3rem;
}
.prize-name {
    display: block;
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.6rem;
    color: var(--dm-gold);
    text-shadow: 2px 2px 0 var(--dm-black);
    padding: .6rem 1rem;
    background: rgba(200,169,110,.08);
    border: 1px solid rgba(200,169,110,.2);
    border-radius: 12px;
}

/* ── FINAL ── */
.final-msg {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dm-cream);
    margin-bottom: .5rem;
}
.final-sub {
    margin-top: 1.2rem;
    font-size: .82rem;
    color: var(--dm-cream);
    opacity: .5;
    line-height: 1.6;
}
.final-sub strong { color: var(--dm-gold); opacity: 1; }

.whatsapp-badge {
    display: inline-flex;
    align-items: center; gap: .5rem;
    background: linear-gradient(135deg, #25D366 0%, #20bd5a 100%);
    color: white;
    padding: .6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700; font-size: .85rem;
    margin-top: .8rem;
    box-shadow: 0 4px 0 #1a9e4a, 0 8px 20px rgba(37,211,102,.25);
    letter-spacing: .5px;
    animation: badgePop .4s ease-out .6s both;
}
@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
.whatsapp-badge svg { width: 18px; height: 18px; fill: white; }

.whatsapp-badge.btn-claim-wpp {
    padding: .8rem 1.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.whatsapp-badge.btn-claim-wpp:active {
    transform: scale(.95);
    box-shadow: 0 2px 0 #1a9e4a;
}

.point-arrow {
    font-size: 1.6rem;
    animation: bounceDown .7s ease-in-out infinite;
    margin: .3rem 0 0;
    line-height: 1;
    color: var(--dm-gold);
}
.point-arrow::after { content: '\25BC'; }
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50%      { transform: translateY(8px); opacity: 1; }
}

/* ── LOCK ── */
.lock-card { text-align: center; }

.lock-title {
    font-family: 'Bowlby One SC', sans-serif;
    color: var(--dm-gold);
    font-size: 1.3rem;
    text-shadow: 2px 2px 0 var(--dm-black);
    margin-bottom: .3rem;
}
.lock-sub {
    color: var(--dm-cream);
    font-size: .95rem;
}
.lock-footer {
    color: var(--dm-cream);
    opacity: .4;
    font-size: .78rem;
    margin-top: .8rem;
}

.countdown {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 2.8rem;
    color: var(--dm-gold);
    margin: 1rem 0;
    text-shadow: 3px 3px 0 var(--dm-black);
    letter-spacing: 5px;
    background: rgba(0,0,0,.35);
    display: inline-block;
    padding: .6rem 1.8rem;
    border-radius: 14px;
    border: 1px solid rgba(200,169,110,.12);
}

/* ── MUSIC TOGGLE ── */
.music-toggle {
    position: fixed;
    bottom: 16px; right: 16px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,110,.25);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    color: var(--dm-gold);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 95;
    transition: all .2s;
    opacity: .6;
}
.music-toggle:hover { opacity: 1; border-color: var(--dm-gold); }
.music-toggle.playing {
    opacity: 1;
    border-color: var(--dm-gold);
    animation: musicPulse 1s ease-in-out infinite;
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,110,.3); }
    50%      { box-shadow: 0 0 0 8px rgba(200,169,110,0); }
}

#confetti-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 100;
}

/* ── DIMITRI SPEECH BUBBLE ── */
.dimitri-speech {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: none;
    max-width: 380px;
    width: 90%;
}
.speech-inner {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.speech-avatar {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.speech-bubble {
    background: linear-gradient(135deg, rgba(26,26,26,.95) 0%, rgba(10,10,10,.95) 100%);
    border: 1px solid rgba(200,169,110,.4);
    border-radius: 16px 16px 16px 4px;
    padding: 10px 16px;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 20px rgba(200,169,110,.05);
}
.speech-bubble span {
    font-family: 'Segoe UI', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dm-cream);
    line-height: 1.4;
}
.speech-pop {
    animation: speechPop .4s cubic-bezier(.22,.68,0,1.4);
}
@keyframes speechPop {
    0%   { transform: translateX(-50%) scale(0) translateY(20px); opacity: 0; }
    100% { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; }
}

/* ── SHARE BUTTON ── */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: .6rem;
    padding: .8rem 1.2rem;
    border: 2px solid rgba(200,169,110,.3);
    border-radius: 14px;
    background: transparent;
    color: var(--dm-gold);
    font-family: 'Russo One', sans-serif;
    font-size: .85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all .2s;
}
.btn-share:hover {
    background: rgba(200,169,110,.1);
    border-color: var(--dm-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200,169,110,.15);
}
.btn-share:active {
    transform: translateY(1px);
}
.btn-share:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.btn-share svg {
    flex-shrink: 0;
}

/* ── LIVE COUNTER ── */
.live-counter {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200,169,110,.2);
    font-size: .75rem;
    color: var(--dm-cream);
    flex-wrap: wrap;
}
.live-counter strong {
    color: var(--dm-gold);
    font-size: .85rem;
}
.counter-fire {
    font-size: 1rem;
    animation: counterPulse 1.5s ease-in-out infinite;
}
.counter-sep {
    color: rgba(200,169,110,.3);
    margin: 0 2px;
}
@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── TRIVIA ── */
.trivia-card { text-align: center; }
.trivia-title {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.6rem;
    color: var(--dm-gold);
    text-shadow: 2px 2px 0 var(--dm-black);
    margin-bottom: .3rem;
}
.trivia-sub {
    font-size: .85rem;
    color: var(--dm-cream);
    opacity: .7;
    margin-bottom: 1rem;
}
.trivia-question {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    color: var(--dm-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.trivia-options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.trivia-opt {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid rgba(200,169,110,.25);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    color: var(--dm-cream);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.trivia-opt:hover:not(:disabled) {
    border-color: var(--dm-gold);
    background: rgba(200,169,110,.08);
    transform: translateY(-1px);
}
.trivia-opt:disabled { cursor: not-allowed; opacity: .6; }
.trivia-opt.trivia-correct {
    border-color: #4CAF50 !important;
    background: rgba(76,175,80,.15) !important;
    color: #4CAF50 !important;
    opacity: 1 !important;
}
.trivia-opt.trivia-wrong {
    border-color: #f44336 !important;
    background: rgba(244,67,54,.15) !important;
    color: #f44336 !important;
    opacity: 1 !important;
}
.trivia-feedback {
    margin-top: 1rem;
    padding: .8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    animation: screenIn .3s ease;
}
.trivia-win {
    background: rgba(76,175,80,.12);
    border: 1px solid rgba(76,175,80,.3);
    color: #4CAF50;
}
.trivia-lose {
    background: rgba(200,169,110,.1);
    border: 1px solid rgba(200,169,110,.2);
    color: var(--dm-cream);
}

/* ── SELFIE ── */
.selfie-card { text-align: center; padding: 1.5rem 1rem; }
.selfie-title {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.3rem;
    color: var(--dm-gold);
    margin-bottom: .8rem;
}
.selfie-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto .8rem;
    aspect-ratio: 9/16;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--dm-gold);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    background: #000;
}
.selfie-video, .selfie-canvas {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.selfie-video { transform: scaleX(-1); }
.selfie-overlay-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}
.selfie-frame-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 8px;
    background: rgba(0,0,0,.7);
    color: var(--dm-gold);
    font-family: 'Russo One', sans-serif;
    font-size: .7rem;
    letter-spacing: 3px;
    text-align: center;
    z-index: 2;
}
.selfie-frame-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px;
    background: rgba(0,0,0,.7);
    color: var(--dm-gold);
    font-family: 'Bowlby One SC', sans-serif;
    font-size: .85rem;
    text-align: center;
    z-index: 2;
}

/* ── SELFIE BUTTON ── */
.btn-selfie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: .5rem;
    padding: .75rem 1.2rem;
    border: 2px solid rgba(200,169,110,.4);
    border-radius: 14px;
    background: rgba(200,169,110,.08);
    color: var(--dm-gold);
    font-family: 'Russo One', sans-serif;
    font-size: .85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s;
}
.btn-selfie:hover {
    background: rgba(200,169,110,.15);
    border-color: var(--dm-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200,169,110,.15);
}

/* ── GOLDEN SPIN ── */
.golden-overlay {
    position: fixed; inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.95);
    animation: goldenFadeIn .5s ease;
}
@keyframes goldenFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.golden-rays {
    position: absolute; inset: 0;
    background:
        repeating-conic-gradient(
            rgba(200,169,110,0.05) 0deg 10deg,
            transparent 10deg 20deg
        );
    animation: goldenRotate 10s linear infinite;
}
@keyframes goldenRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.golden-content {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: goldenBounceIn .8s cubic-bezier(.22,.68,0,1.4);
}
@keyframes goldenBounceIn {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.golden-icon {
    animation: crownFloat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(200,169,110,0.5));
    margin-bottom: .5rem;
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.golden-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.5rem;
    background: linear-gradient(180deg, #F5E6C8 0%, #D4A853 25%, #C8A96E 50%, #D4A853 75%, #F5E6C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(139,105,20,0.6));
    letter-spacing: 8px;
    animation: goldenPulse 2s ease-in-out infinite;
    margin: .5rem 0;
}
@keyframes goldenPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(139,105,20,0.5)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 4px 16px rgba(200,169,110,0.7)); }
}

.golden-sub {
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    color: #D4A853;
    letter-spacing: 8px;
    opacity: .7;
    animation: goldenSubFade 1s ease .5s both;
}
@keyframes goldenSubFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: .7; transform: translateY(0); }
}

.golden-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8A96E, transparent);
    margin: 1rem auto 0;
    animation: goldenDivFade 1.5s ease .8s both;
}
@keyframes goldenDivFade {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 120px; }
}

.golden-rare {
    font-family: 'Pacifico', cursive;
    font-size: 1.05rem;
    color: #D4A853;
    margin-top: 1.2rem;
    opacity: 0;
    animation: goldenRareFade 1.5s ease 1.5s forwards;
    line-height: 1.6;
}
@keyframes goldenRareFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: .9; transform: translateY(0); }
}

/* Golden mode body class */
body.golden-mode .bg-video-overlay {
    background: rgba(0,0,0,0.5) !important;
}
body.golden-mode .gold-particles span {
    background: #D4A853 !important;
    width: 6px !important;
    height: 6px !important;
    animation-duration: 3s !important;
}
body.golden-mode .milanesa-rain {
    display: none;
}
body.golden-mode .card {
    border-color: rgba(200,169,110,0.5) !important;
}
body.golden-mode .card::before {
    background: linear-gradient(90deg, transparent, #D4A853, #C8A96E, #D4A853, transparent) !important;
    height: 3px !important;
}
body.golden-mode .greeting-text {
    color: #D4A853 !important;
    text-shadow: 0 0 20px rgba(200,169,110,0.4) !important;
}
body.golden-mode .led-ring .led {
    background: #D4A853 !important;
    box-shadow: 0 0 8px #C8A96E !important;
}
body.golden-mode .led-ring .led.on {
    box-shadow: 0 0 12px #D4A853, 0 0 25px rgba(200,169,110,0.5) !important;
}
body.golden-mode #wheelCanvas {
    box-shadow:
        0 0 0 5px #D4A853,
        0 0 0 8px #000,
        0 0 0 11px rgba(200,169,110,0.3),
        0 0 40px rgba(200,169,110,0.2),
        0 12px 48px rgba(0,0,0,.6) !important;
}
body.golden-mode .wheel-arrow {
    border-top-color: #D4A853 !important;
    filter: drop-shadow(0 0 8px rgba(200,169,110,0.6)) !important;
}
body.golden-mode .btn-spin-cta {
    background: linear-gradient(135deg, #D4A853 0%, #8B6914 100%) !important;
    box-shadow: 0 6px 0 #5C4510, 0 0 20px rgba(200,169,110,0.2) !important;
}
body.golden-mode .win-title {
    background: linear-gradient(180deg, #F5E6C8, #D4A853, #C8A96E, #D4A853, #F5E6C8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 4px 10px rgba(139,105,20,0.5)) !important;
}

/* ── FLOATING ACTION BUTTONS ── */
.fab-ranking, .fab-referral {
    position: fixed;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(200,169,110,.4);
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 85;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fab-ranking {
    bottom: 76px; left: 16px;
}
.fab-referral {
    bottom: 132px; left: 16px;
}
.fab-ranking:hover, .fab-referral:hover {
    border-color: var(--dm-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(200,169,110,.2);
}

/* ── RANKING PANEL ── */
.ranking-panel {
    position: fixed; inset: 0;
    z-index: 200;
    display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    animation: screenIn .3s ease;
}
.ranking-inner {
    background: linear-gradient(170deg, #1A1A1A 0%, #0A0A0A 100%);
    border: 1px solid rgba(200,169,110,.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 90%; max-width: 380px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.ranking-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    color: var(--dm-cream); font-size: 1.8rem;
    cursor: pointer; opacity: .5;
    transition: opacity .2s;
}
.ranking-close:hover { opacity: 1; }
.ranking-title {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.3rem;
    color: var(--dm-gold);
    text-align: center;
    margin-bottom: .3rem;
}
.ranking-prize {
    text-align: center;
    font-size: .8rem;
    color: var(--dm-cream);
    opacity: .7;
    margin-bottom: 1rem;
}
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(200,169,110,.1);
    transition: all .2s;
}
.rank-row.rank-1 {
    background: rgba(200,169,110,.1);
    border-color: var(--dm-gold);
    box-shadow: 0 0 20px rgba(200,169,110,.1);
}
.rank-pos {
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 1.2rem;
    color: var(--dm-gold);
    width: 32px;
    text-align: center;
}
.rank-1 .rank-pos { font-size: 1.5rem; }
.rank-name {
    flex: 1;
    font-weight: 600;
    color: var(--dm-cream);
    font-size: .9rem;
}
.rank-phone {
    font-size: .75rem;
    color: rgba(245,230,200,.3);
}
.rank-plays {
    font-family: 'Russo One', sans-serif;
    color: var(--dm-gold);
    font-size: .85rem;
}
.ranking-footer {
    text-align: center;
    font-size: .75rem;
    color: rgba(245,230,200,.3);
    margin-top: 1rem;
}


/* ── REFERRAL PANEL ── */
.referral-panel {
    position: fixed; inset: 0;
    z-index: 200;
    display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    animation: screenIn .3s ease;
}
.referral-inner {
    background: linear-gradient(170deg, #1A1A1A 0%, #0A0A0A 100%);
    border: 1px solid rgba(200,169,110,.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 90%; max-width: 380px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.referral-sub {
    font-size: .85rem;
    color: var(--dm-cream);
    opacity: .7;
    margin-bottom: 1rem;
}
.referral-link-box {
    display: flex;
    gap: 0;
    margin-bottom: .8rem;
}
.referral-link-input {
    flex: 1;
    padding: .7rem .8rem;
    border: 1px solid rgba(200,169,110,.3);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: rgba(0,0,0,.4);
    color: var(--dm-gold);
    font-size: .75rem;
    font-weight: 600;
    font-family: monospace;
}
.btn-copy-ref {
    padding: .7rem 1rem;
    border: 1px solid var(--dm-gold);
    border-radius: 0 10px 10px 0;
    background: var(--dm-gold);
    color: #000;
    font-weight: 800;
    font-size: .75rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.btn-copy-ref:active { transform: scale(.95); }
.btn-share-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: .7rem;
    border: 1px solid rgba(200,169,110,.25);
    border-radius: 10px;
    background: transparent;
    color: var(--dm-gold);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.btn-share-ref:hover {
    background: rgba(200,169,110,.08);
    border-color: var(--dm-gold);
}
.referral-stats {
    margin-top: .8rem;
    font-size: .8rem;
    color: var(--dm-cream);
    opacity: .5;
}

/* ── SCREEN SHAKE ── */
.screen-shake .screen.active { animation: screenShake .5s ease; }
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-4px) rotate(-.5deg); }
    30% { transform: translateX(4px) rotate(.5deg); }
    50% { transform: translateX(-3px); }
    70% { transform: translateX(3px); }
    90% { transform: translateX(-1px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 360px) {
    .card { padding: 1.5rem 1.2rem; }
    .logo-glow img { width: 100px; height: 100px; }
    .win-title { font-size: 1.8rem; }
    .prize-name { font-size: 1.3rem; }
    .btn-dimitris { font-size: 1rem; }
    .countdown { font-size: 2.2rem; }
    .tagline { letter-spacing: 3px; font-size: .75rem; }
}

@media (min-width: 500px) {
    .card { padding: 2.5rem 2rem; }
    .logo-glow img { width: 140px; height: 140px; }
    #wheelCanvas { max-width: 370px; max-height: 370px; }
    .led-ring { max-width: 420px; max-height: 420px; }
}
