@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --burgundy: #680c12;
    --burgundy-dark: #45060a;
    --green: #0a4d2c;
    --gold: #e5b342;
    --cream: #fffaf0;
    --ink: #2b1818;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body.ruleta-page {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    padding: 18px 12px 36px; color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    background: radial-gradient(circle at 50% 35%, #fff 0, #f0eee9 58%, #d8d5ce 100%);
}
#snowCanvas, #confettiCanvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
}
#snowCanvas { z-index: 1; }
#confettiCanvas { z-index: 30; }
.ruleta-wrap { position: relative; z-index: 2; width: 100%; max-width: 760px; margin: auto; }
.brand-header {
    display: flex; align-items: center; justify-content: center; gap: 22px;
    margin: 0 auto 18px; padding: 10px 14px; max-width: 680px;
}
.brand-logo-box { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.brand-logo { display: block; width: 150px; max-width: 42vw; max-height: 76px; object-fit: contain; }
.brand-subtitle { color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.brand-divider { width: 2px; height: 58px; background: linear-gradient(transparent, #9e6b14, transparent); }
.brand-slogan { margin: 0; color: #9b7733; font-size: clamp(13px, 2.6vw, 18px); font-style: italic; line-height: 1.35; }
.intro { text-align: center; margin: 8px auto 20px; }
.eyebrow { display: inline-block; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.intro h1 { margin: 6px 0 8px; color: var(--burgundy); font-size: clamp(27px, 5vw, 43px); font-weight: 900; line-height: 1.12; text-shadow: 0 2px 0 #fff; }
.intro p { margin: 0; color: #5b4545; font-size: clamp(13px, 2.5vw, 17px); }
.game-card {
    max-width: 680px; margin: 0 auto; padding: clamp(18px, 4vw, 30px);
    border: 1px solid rgba(183, 124, 25, .25); border-radius: 24px;
    background: rgba(255,255,255,.91); box-shadow: 0 18px 42px rgba(45,25,5,.13);
}
.participant-form { max-width: 440px; margin: auto; }
.prizes-preview { margin: 0 auto 24px; padding: 18px; border: 1px solid #e5cf9d; border-radius: 16px; background: linear-gradient(135deg,#fffdf7,#fff8e8); }
.prizes-preview h2 { margin: 0 0 6px; color: var(--burgundy); text-align: center; font-size: 18px; }
.prizes-preview > p { margin: 0 0 14px; color: #75665a; text-align: center; font-size: 12px; line-height: 1.5; }
.prizes-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.prize-preview-item { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #eee2c9; border-radius: 11px; background: #fff; text-align: left; }
.prize-preview-dot { flex: 0 0 11px; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--prize-color); box-shadow: 0 0 0 3px color-mix(in srgb,var(--prize-color) 17%,white); }
.prize-preview-item strong { display: block; color: #4c2020; font-size: 11px; line-height: 1.35; }
.prize-preview-item small { display: block; margin-top: 4px; color: #766969; font-size: 10px; line-height: 1.4; }
.wheel-action-buttons { display: flex; justify-content: center; gap: 12px; width: 100%; margin-top: 18px; }
.wheel-control-btn { min-width: 140px; min-height: 48px; padding: 12px 22px; border: 2px solid #f5d77c; border-radius: 999px; color: #fff; font: 900 14px 'Montserrat',Arial,sans-serif; letter-spacing: .4px; cursor: pointer; box-shadow: 0 6px 15px #0002; }
.wheel-start-btn { background: linear-gradient(#16834b,#0a4d2c); }
.wheel-stop-btn { background: linear-gradient(#a81724,#680c12); }
.wheel-control-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.35); }

.participant-form h2 { margin: 0 0 7px; text-align: center; color: var(--burgundy); font-size: 22px; }
.participant-form > p { color: #665; text-align: center; font-size: 13px; line-height: 1.55; }
.participant-form label { display: block; margin: 15px 0 6px; color: #453333; font-size: 13px; font-weight: 800; }
.participant-form input {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d7c9bd;
    border-radius: 11px; background: #fff; color: #2b1818; font: inherit; font-size: 15px;
}
.participant-form input:focus { outline: 3px solid rgba(10,77,44,.13); border-color: var(--green); }
.form-note { margin: 13px 0 0 !important; color: #766 !important; font-size: 12px !important; }
.form-status { min-height: 20px; margin: 10px 0 0 !important; color: var(--burgundy) !important; font-weight: 700; }
.spin-cta-btn, .whatsapp-btn {
    display: flex; align-items: center; justify-content: center; width: 100%;
    min-height: 52px; margin-top: 18px; padding: 13px 20px; border: 2px solid #f7d56e;
    border-radius: 999px; background: linear-gradient(#9c111a, #680c12 60%, #470509);
    color: #fff; font-family: inherit; font-size: 14px; font-weight: 900;
    letter-spacing: .4px; text-align: center; text-decoration: none; cursor: pointer;
    box-shadow: 0 7px 18px rgba(104,12,18,.28), 0 0 0 2px #8a580c;
}
.spin-cta-btn:disabled { opacity: .6; cursor: wait; }
.wheel-area { text-align: center; }
.wheel-area[hidden], .participant-form[hidden], .payment-box[hidden], .modal-backdrop[hidden] { display: none !important; }
.wheel-stage { display: flex; flex-direction: column; align-items: center; }
.wheel-wrapper {
    position: relative; width: min(88vw, 490px); aspect-ratio: 1;
    filter: drop-shadow(0 17px 24px rgba(45,25,5,.34));
}
.golden-rim {
    position: absolute; inset: 0; padding: 6.7%; border-radius: 50%;
    background: conic-gradient(from 25deg,#b87c19,#ffe885 45deg,#d19422 95deg,#fff2b2 145deg,#99620d 200deg,#ffdf73 255deg,#c4861b 310deg,#b87c19);
    box-shadow: inset 0 3px 6px #ffffffd9, inset 0 -5px 10px #5c3504cc, 0 0 0 3px #f7d36c, 0 0 0 6px #8a560b;
}
.inner-wheel-cavity { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #2b0608; box-shadow: inset 0 6px 14px #000d, 0 0 0 3px #7a4c09, 0 0 0 5px #ffe588; }
#wheelCanvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.bulbs-ring { position: absolute; z-index: 5; inset: 0; border-radius: 50%; pointer-events: none; }
.bulb {
    position: absolute; width: 3.4%; height: 3.4%; min-width: 8px; min-height: 8px;
    border-radius: 50%; transform: translate(-50%,-50%);
    background: radial-gradient(circle at 35% 35%,#fff,#fffbe0 45%,#ffd257 85%,#d6931a);
    box-shadow: 0 0 6px 2px #fff8cce6, 0 0 14px 4px #ffcd4ba6;
}
.bulb.dim { opacity: .45; }
.pointer-container { position: absolute; z-index: 8; top: -4.5%; left: 50%; width: 15%; height: 16%; transform: translateX(-50%); transform-origin: 50% 18%; filter: drop-shadow(0 5px 6px #0007); }
.pointer-container svg { display: block; width: 100%; height: 100%; }
.wheel-corner-holly { position: absolute; z-index: 7; top: 2%; left: 2%; font-size: clamp(28px, 6vw, 48px); transform: rotate(-25deg); filter: drop-shadow(0 3px 4px #0005); pointer-events: none; }
.center-medallion {
    position: absolute; z-index: 6; top: 50%; left: 50%; width: 23%; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center; transform: translate(-50%,-50%);
    border: 5px solid #f6d365; border-radius: 50%; background: radial-gradient(circle at 32% 28%,#fff6be,#f5c64c 42%,#c78818 80%,#7a4b06);
    box-shadow: 0 5px 13px #0008, inset 0 2px 5px #ffffffd9, inset 0 -3px 6px #633904;
}
.center-medallion span { display: grid; place-items: center; width: 76%; height: 76%; border-radius: 50%; background: #fff8e8; color: var(--burgundy); font-family: Cinzel, Georgia, serif; font-size: clamp(9px, 2vw, 14px); font-weight: 900; }
.pedestal { width: min(62vw, 320px); height: 45px; margin-top: -2px; border: 4px solid #9e6b14; border-top: 8px solid #fff0a6; border-radius: 15px 15px 48% 48%; background: linear-gradient(90deg,#7a4b06,#e6ad35,#fff4bf,#d49824,#6e4204); box-shadow: 0 12px 16px #2d190559; }
.controls-bar { margin-top: 15px; text-align: center; }
.pill-badge { display: inline-block; padding: 7px 15px; border: 1px solid #d8b45c; border-radius: 999px; background: #fffaf0; color: var(--burgundy); font-size: 12px; font-weight: 800; }
#statusText { min-height: 24px; margin: 12px 0 0; color: var(--green); font-size: 14px; font-weight: 800; }
.payment-box { margin-top: 22px; padding: 22px; border: 1px solid #e4c77d; border-radius: 18px; background: #fffaf0; text-align: center; }
.payment-box h3 { margin: 0 0 8px; color: var(--burgundy); }
.payment-box p { color: #5c4a4a; font-size: 14px; line-height: 1.6; }
.qr-img { display: block; width: 190px; max-width: 70%; height: auto; margin: 16px auto; border-radius: 12px; }
.rules { max-width: 680px; margin: 22px auto; padding: 22px 26px; border: 1px solid #e4d6bd; border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: 0 10px 25px #2d19051a; }
.rules h2 { margin: 0 0 12px; color: var(--burgundy); font-size: 19px; }
.rules ul { margin: 0; padding-left: 21px; }
.rules li { margin: 8px 0; color: #5b4b4b; font-size: 13px; line-height: 1.55; }
.ruleta-wrap footer { padding: 12px; color: #746969; font-size: 12px; text-align: center; }
.modal-backdrop {
    position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(24,6,8,.76); backdrop-filter: blur(5px);
}
.modal-card {
    position: relative; width: 100%; max-width: 430px; padding: 30px 24px 24px;
    border: 4px solid var(--gold); border-radius: 25px; background: linear-gradient(#fffdf9,#f7f1e6);
    box-shadow: 0 24px 48px #0008, inset 0 0 0 2px #fff8dc; text-align: center;
}
.modal-close-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 1px solid #decda8; border-radius: 50%; background: #fff; color: var(--burgundy); font-size: 24px; cursor: pointer; }
.modal-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--burgundy); color: #ffe89e; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.modal-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 15px auto; border: 3px solid #9e6b14; border-radius: 50%; background: radial-gradient(circle at 30% 30%,#fff7d6,#f0c254); font-size: 34px; }
.modal-card h2 { margin: 8px 0; color: var(--burgundy); font-size: 23px; line-height: 1.25; }
.modal-card p { color: #493737; font-size: 14px; line-height: 1.55; }
.coupon-box { display: flex; flex-direction: column; gap: 6px; margin: 18px 0; padding: 12px; border: 2px dashed #c78b20; border-radius: 12px; background: #fff; }
.coupon-box span { color: #7a5c24; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.coupon-box strong { color: var(--green); font-family: monospace; font-size: 14px; overflow-wrap: anywhere; }
.modal-card .whatsapp-btn { background: linear-gradient(#0e6b3d,#0a4d2c); box-shadow: 0 7px 17px #0a4d2c55; }
@media (max-width: 520px) {
    body.ruleta-page { padding: 12px 9px 26px; }
    .brand-header { flex-direction: column; gap: 8px; margin-bottom: 12px; }
    .brand-divider { width: 130px; height: 2px; background: linear-gradient(90deg,transparent,#9e6b14,transparent); }
    .brand-slogan { text-align: center; }
    .game-card { padding: 17px 13px; border-radius: 18px; }
    .prizes-preview { padding: 14px 11px; }
    .prizes-preview-grid { grid-template-columns: 1fr; }
    .wheel-action-buttons { gap: 8px; }
    .wheel-control-btn { min-width: 0; flex: 1; padding: 11px 10px; }
    .wheel-wrapper { width: min(88vw, 430px); }
    .rules { padding: 18px 17px; }
}

/* ==========================================================
   LIDENA · EXPERIENCIA PREMIUM DE RULETA
   Capa visual renovada: festiva, elegante y con más energía
   ========================================================== */
:root {
    --wine: #74121d;
    --wine-deep: #3d0710;
    --evergreen: #075b3b;
    --evergreen-deep: #063c2a;
    --champagne: #f4d98b;
    --gold-bright: #f6c85d;
    --paper: #fffdf8;
}

body.ruleta-page {
    position: relative;
    isolation: isolate;
    padding: 22px 16px 44px;
    background:
      radial-gradient(ellipse at 8% 12%, rgba(15,104,66,.13), transparent 28%),
      radial-gradient(ellipse at 94% 7%, rgba(180,35,48,.13), transparent 25%),
      radial-gradient(ellipse at 50% 80%, rgba(232,190,91,.18), transparent 35%),
      linear-gradient(145deg, #f7f4ed 0%, #fffdf8 48%, #f1ece2 100%);
}
body.ruleta-page::before,
body.ruleta-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(176,130,43,.13);
    border-radius: 50%;
    pointer-events: none;
}
body.ruleta-page::before { top: -150px; left: -130px; box-shadow: 0 0 0 18px rgba(176,130,43,.025), 0 0 0 38px rgba(176,130,43,.02); }
body.ruleta-page::after { right: -150px; bottom: -150px; box-shadow: 0 0 0 18px rgba(176,130,43,.025), 0 0 0 38px rgba(176,130,43,.02); }
.ruleta-wrap { max-width: 920px; }
.brand-header {
    max-width: 790px;
    margin-bottom: 22px;
    padding: 12px 22px;
    border: 1px solid rgba(191,157,91,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 8px 26px rgba(53,29,15,.055);
    backdrop-filter: blur(8px);
}
.brand-logo { width: 142px; max-height: 70px; }
.brand-subtitle { font-size: 10px; letter-spacing: 4.2px; }
.brand-divider { background: linear-gradient(transparent, #c79b48, transparent); }
.brand-slogan { color: #92702f; font-weight: 600; letter-spacing: .2px; }
.intro { position: relative; margin: 24px auto 26px; padding: 8px 12px 2px; }
.eyebrow {
    padding: 7px 15px;
    border: 1px solid rgba(7,91,59,.18);
    border-radius: 999px;
    background: rgba(7,91,59,.07);
    color: var(--evergreen);
    font-size: 10px;
    letter-spacing: 3.2px;
}
.intro h1 {
    margin: 13px 0 9px;
    color: var(--wine);
    font-size: clamp(30px, 5.3vw, 48px);
    letter-spacing: -1.4px;
    text-shadow: 0 2px 0 #fff, 0 8px 22px rgba(116,18,29,.09);
}
.intro p { color: #6c5750; font-size: clamp(13px, 2.2vw, 16px); }
.game-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: 22px;
    max-width: 850px;
    padding: clamp(20px, 3.5vw, 32px);
    border: 1px solid rgba(194,157,87,.42);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,252,245,.96));
    box-shadow: 0 24px 60px rgba(62,28,20,.12), 0 4px 12px rgba(62,28,20,.045), inset 0 1px 0 #fff;
}
.prizes-preview {
    align-self: stretch;
    margin: 0;
    padding: 23px 19px;
    border: 1px solid #e8d7ae;
    border-radius: 21px;
    background:
      radial-gradient(circle at 100% 0%, rgba(246,200,93,.18), transparent 34%),
      linear-gradient(155deg, #fffdf7, #fff8e9);
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(117,78,22,.055);
}
.prizes-preview h2 { font-size: 19px; line-height: 1.3; }
.prizes-preview > p { margin: 7px 0 18px; font-size: 12px; }
.prizes-preview-grid { grid-template-columns: 1fr; gap: 10px; }
.prize-preview-item {
    align-items: center;
    min-height: 58px;
    padding: 12px 13px;
    border: 1px solid rgba(225,210,181,.8);
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 3px 9px rgba(69,40,17,.035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prize-preview-item:hover { transform: translateY(-2px); border-color: #d7b66d; box-shadow: 0 8px 18px rgba(69,40,17,.08); }
.prize-preview-dot { flex-basis: 12px; width: 12px; height: 12px; margin-top: 0; }
.prize-preview-item strong { color: #51212a; font-size: 12px; line-height: 1.4; }
.prize-preview-item small { margin-top: 3px; font-size: 10px; }
.participant-form {
    align-self: center;
    width: 100%;
    max-width: none;
    padding: 24px 22px;
    border: 1px solid #eee4d5;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(54,32,20,.055);
}
.participant-form::before {
    content: "PASO 1 · TUS DATOS";
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7,91,59,.08);
    color: var(--evergreen);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.6px;
}
.participant-form h2 { margin-bottom: 7px; font-size: 22px; }
.participant-form > p { margin-top: 0; }
.participant-form label { margin: 17px 0 7px; font-size: 12px; }
.participant-form input {
    min-height: 51px;
    padding: 13px 15px;
    border: 1px solid #e0d4c7;
    border-radius: 13px;
    background: #fdfcf9;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.participant-form input:focus { outline: none; border-color: #0b8051; background: #fff; box-shadow: 0 0 0 4px rgba(10,115,72,.1); }
.form-note { padding: 9px 10px; border-radius: 9px; background: #f7f5ef; }
.spin-cta-btn {
    position: relative;
    min-height: 56px;
    margin-top: 19px;
    border: 1px solid #f3d27b;
    background: linear-gradient(110deg, #7f101c, #a91929 48%, #650b16);
    box-shadow: 0 9px 20px rgba(116,18,29,.22), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 4px rgba(213,174,91,.13);
    letter-spacing: .8px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.spin-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 13px 25px rgba(116,18,29,.28), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 4px rgba(213,174,91,.17); }
.spin-cta-btn:active { transform: translateY(0); }
#wheelArea { grid-column: 1 / -1; padding: 20px 12px 8px; border-top: 1px solid #eee3d0; }
.wheel-area::before {
    content: "PASO 2 · ¡ES TU MOMENTO!";
    display: inline-block;
    margin: 0 auto 17px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(116,18,29,.07);
    color: var(--wine);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
}
.wheel-wrapper { width: min(82vw, 510px); filter: drop-shadow(0 20px 25px rgba(45,25,5,.25)); }
.golden-rim { padding: 6.2%; box-shadow: inset 0 3px 7px #ffffffeb, inset 0 -5px 10px #5c3504bb, 0 0 0 3px #f7d36c, 0 0 0 7px #8a560b, 0 0 0 10px rgba(246,211,108,.45); }
.center-medallion { width: 24%; border-width: 6px; }
.pedestal { margin-top: 4px; }
.controls-bar { max-width: 520px; margin: 22px auto 0; padding: 18px; border: 1px solid #eadbbd; border-radius: 19px; background: linear-gradient(145deg,#fffdf8,#fff8eb); box-shadow: 0 8px 22px rgba(65,39,15,.06); }
.pill-badge { border-color: #d8b45c; background: #fff5d9; color: #785313; }
#statusText { color: var(--evergreen-deep); line-height: 1.5; }
.wheel-action-buttons { gap: 14px; margin-top: 16px; }
.wheel-control-btn { min-width: 160px; min-height: 52px; border-width: 1px; letter-spacing: .8px; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.wheel-control-btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 20px #0003; }
.wheel-start-btn { background: linear-gradient(135deg,#0c8050,#075334); }
.wheel-stop-btn { background: linear-gradient(135deg,#b51e2e,#700c18); }
#resultBox { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 500px; }
#paymentBox { grid-column: 1 / -1; width: 100%; }
.rules {
    max-width: 850px;
    margin: 22px auto;
    padding: 23px 27px;
    border: 1px solid rgba(194,157,87,.3);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 28px rgba(45,25,5,.055);
}
.rules h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.rules h2::before { content: "✦"; color: #b48735; }
.rules li { padding-left: 3px; }
.ruleta-wrap footer { color: #81746a; letter-spacing: .3px; }
.modal-card { border-width: 3px; box-shadow: 0 24px 55px #0008, inset 0 0 0 2px #fff8dc; }

@media (max-width: 700px) {
    body.ruleta-page { padding: 12px 10px 28px; }
    .brand-header { max-width: 500px; margin-bottom: 15px; padding: 11px 14px; }
    .brand-logo { width: 132px; }
    .intro { margin: 19px auto 20px; }
    .intro h1 { letter-spacing: -.8px; }
    .game-card { grid-template-columns: 1fr; gap: 15px; padding: 15px; border-radius: 23px; }
    .prizes-preview { padding: 18px 15px; }
    .prizes-preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .prize-preview-item { min-height: 66px; padding: 10px; }
    .prize-preview-item strong { font-size: 10.5px; }
    .prize-preview-item small { font-size: 9px; }
    .participant-form { padding: 20px 16px; }
    #wheelArea { padding: 18px 0 4px; }
    .wheel-wrapper { width: min(86vw, 440px); }
    .controls-bar { padding: 15px 12px; }
    .wheel-control-btn { min-width: 0; flex: 1; padding: 12px 9px; font-size: 12px; }
    .rules { margin: 17px auto; padding: 19px 17px; }
}
@media (max-width: 380px) {
    .prizes-preview-grid { grid-template-columns: 1fr; }
    .brand-slogan { font-size: 12px; }
    .wheel-action-buttons { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* AJUSTE DE LEGIBILIDAD: PREMIOS Y RULETA EN MAYOR FORMATO */
.ruleta-wrap { max-width: 1120px; }
.game-card {
    max-width: 1080px;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 26px;
    padding: clamp(24px, 3.8vw, 42px);
}
.prizes-preview {
    min-width: 0;
    padding: 30px 26px;
    border-radius: 24px;
}
.prizes-preview h2 { font-size: 22px; }
.prizes-preview > p { font-size: 14px; margin: 9px 0 20px; }
.prizes-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.prize-preview-item {
    min-height: 88px;
    padding: 15px 14px;
    gap: 12px;
    border-radius: 15px;
}
.prize-preview-dot { flex-basis: 14px; width: 14px; height: 14px; }
.prize-preview-item strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.prize-preview-item small { font-size: 12px; line-height: 1.5; }
.participant-form { padding: 30px 26px; }
#wheelArea { padding: 30px 12px 14px; }
.wheel-wrapper { width: min(88vw, 640px); }
.controls-bar { max-width: 650px; padding: 22px 26px; }
.wheel-control-btn { min-width: 190px; min-height: 58px; font-size: 15px; }

@media (max-width: 820px) {
    .game-card { grid-template-columns: 1fr; max-width: 720px; gap: 18px; }
    .prizes-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .participant-form { max-width: none; }
    .wheel-wrapper { width: min(90vw, 590px); }
}
@media (max-width: 520px) {
    .game-card { padding: 17px 13px; }
    .prizes-preview { padding: 22px 16px; }
    .prizes-preview h2 { font-size: 19px; }
    .prizes-preview > p { font-size: 12px; }
    .prizes-preview-grid { grid-template-columns: 1fr; gap: 10px; }
    .prize-preview-item { min-height: 72px; padding: 13px; }
    .prize-preview-item strong { font-size: 13px; }
    .prize-preview-item small { font-size: 11px; }
    .participant-form { padding: 22px 16px; }
    #wheelArea { padding: 24px 0 8px; }
    .wheel-wrapper { width: min(94vw, 540px); }
    .wheel-control-btn { min-height: 54px; font-size: 13px; }
}


/* LAYOUT FINAL: RUEDA ARRIBA Y CONTROLES INMEDIATAMENTE DEBAJO */
#wheelArea {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    padding: clamp(20px, 3vw, 34px) 10px 18px;
}
#wheelArea[hidden] { display: none !important; }
.wheel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.wheel-wrapper {
    width: min(92vw, 650px);
    max-width: 650px;
    margin-inline: auto;
}
.pedestal {
    width: min(66%, 420px);
    margin: 5px auto 0;
}
.controls-bar {
    display: block;
    width: min(100%, 650px);
    max-width: 650px;
    margin: 24px auto 0;
    padding: clamp(18px, 3vw, 26px);
    box-sizing: border-box;
    text-align: center;
}
.controls-bar .pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 20px;
    font-size: 15px;
}
#statusText {
    margin: 14px 0 0;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 900;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.wheel-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin: 20px auto 0;
}
.wheel-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 900;
}
.wheel-control-btn:disabled {
    opacity: .58;
    filter: saturate(.55);
}
@media (max-width: 520px) {
    #wheelArea { padding: 20px 0 8px; }
    .wheel-wrapper { width: min(96vw, 540px); }
    .pedestal { width: 70%; }
    .controls-bar { margin-top: 20px; padding: 17px 13px; }
    .wheel-action-buttons { gap: 10px; margin-top: 16px; }
    .wheel-control-btn { min-height: 56px; padding: 12px 8px; font-size: 13px; }
}


/* AJUSTE DE PROPORCION: RULETA AL 75% PARA MOSTRAR LOS BOTONES EN PANTALLA */
#wheelArea {
    padding: clamp(12px, 2vw, 20px) 8px 12px;
}
#wheelArea .wheel-wrapper {
    width: min(75vw, 488px);
    max-width: 488px;
}
#wheelArea .pedestal {
    width: min(58%, 330px);
    margin-top: 3px;
}
#wheelArea .controls-bar {
    width: min(100%, 590px);
    margin-top: 14px;
    padding: 16px 20px;
}
#wheelArea .wheel-action-buttons {
    margin-top: 14px;
    gap: 12px;
}
#wheelArea .wheel-control-btn {
    min-height: 54px;
}
@media (max-width: 520px) {
    #wheelArea { padding: 10px 0 8px; }
    #wheelArea .wheel-wrapper { width: min(76vw, 360px); max-width: 360px; }
    #wheelArea .pedestal { width: 62%; }
    #wheelArea .controls-bar { margin-top: 10px; padding: 13px 11px; }
    #wheelArea .controls-bar .pill-badge { min-height: 32px; padding: 6px 14px; font-size: 13px; }
    #wheelArea #statusText { margin-top: 9px; font-size: clamp(13px, 3.7vw, 16px); }
    #wheelArea .wheel-action-buttons { margin-top: 11px; gap: 9px; }
    #wheelArea .wheel-control-btn { min-height: 48px; padding: 10px 6px; font-size: 12px; }
}


/* El listado de premios solo se muestra durante el registro inicial. */
.prizes-preview[hidden] { display: none !important; }
