:root {
    --night: #0a0b26;          /* Diwali midnight */
    --plum: #1b1a5c;
    --maroon: #2b1f78;          /* royal indigo (name kept from the HP clone) */
    --marigold: #ff9f1c;
    --saffron: #ff6b00;
    --gold: #ffd166;
    --gold-deep: #c98a00;
    --magenta: #e0187a;
    --leaf: #2e7d32;
    --ink: #1d1550;            /* text on gold/saffron */
    --cream: #fff4dc;
    --muted: #f3d9b8;
    --display: 'Yatra One', 'Poppins', serif;
}

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

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: var(--night);
    color: var(--cream);
    overflow-x: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Background ---------- */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255, 140, 40, 0.28), transparent 60%),
        radial-gradient(ellipse at 15% 90%, rgba(255, 107, 0, 0.25), transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(255, 209, 102, 0.18), transparent 50%),
        linear-gradient(160deg, var(--plum), var(--night) 70%);
}

/* Faint rangoli dots over everything */
.background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 209, 102, 0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

.sparkles {
    --tile: 400px;
    position: absolute;
    inset: 0 0 calc(-2 * var(--tile)) 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, var(--gold), transparent),
        radial-gradient(2px 2px at 30% 70%, var(--marigold), transparent),
        radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent),
        radial-gradient(2px 2px at 75% 55%, var(--gold), transparent),
        radial-gradient(1.5px 1.5px at 90% 30%, #fff, transparent),
        radial-gradient(2px 2px at 45% 90%, var(--magenta), transparent);
    background-size: var(--tile) var(--tile);
    animation: rise 30s linear infinite;
    opacity: 0.8;
    will-change: transform;
}

.sparkles--slow {
    --tile: 650px;
    animation-duration: 55s;
    opacity: 0.5;
}

@keyframes rise {
    to { transform: translateY(calc(-1 * var(--tile))); }
}

/* ---------- Header + toran ---------- */
.hp-header {
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--maroon), #3a2a96 50%, var(--maroon));
    border-bottom: 3px solid var(--gold);
    z-index: 50;
}

/* Acer wordmark on a white tile (brand green reads poorly on indigo) */
.hp-logo {
    height: 48px;
    padding: 9px 14px;
    margin-right: 1.5rem;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.header-text h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1.1;
}

.header-text p {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.header-diya {
    margin-left: auto;
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--marigold));
    animation: flicker 2.4s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Marigold garland with hanging mango leaves (tiled SVG) */
.toran {
    height: 56px;
    margin-top: -6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='56' viewBox='0 0 64 56'%3E%3Cpath d='M0 6 Q32 24 64 6' stroke='%23c98a00' stroke-width='2' fill='none'/%3E%3Cpath d='M32 16 C23 28 25 42 32 54 C39 42 41 28 32 16Z' fill='%232e7d32'/%3E%3Cpath d='M32 20 V50' stroke='%2381c784' stroke-width='1'/%3E%3Ccircle cx='32' cy='15' r='8' fill='%23ff6b00'/%3E%3Ccircle cx='32' cy='15' r='4.5' fill='%23ffb703'/%3E%3Ccircle cx='0' cy='6' r='8' fill='%23ffb703'/%3E%3Ccircle cx='64' cy='6' r='8' fill='%23ffb703'/%3E%3Ccircle cx='0' cy='6' r='4' fill='%23ff6b00'/%3E%3Ccircle cx='64' cy='6' r='4' fill='%23ff6b00'/%3E%3C/svg%3E") repeat-x;
    pointer-events: none;
    z-index: 40;
}

.hp-footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    background: rgba(10, 11, 38, 0.85);
    border-top: 1px solid rgba(255, 209, 102, 0.3);
}

/* ---------- Screens ---------- */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 1.5rem 1rem 3rem;
}

.screen.show {
    display: flex;
    animation: fadeIn 0.5s ease-out forwards;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.title,
.main-title {
    font-family: var(--display);
    font-weight: 400;
    color: var(--gold);
    text-shadow: 0 3px 0 var(--maroon), 0 0 24px rgba(255, 159, 28, 0.45);
}

.title {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.main-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.greeting-line {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
    min-height: 1.5em;
}

/* ---------- Registration ---------- */
.form-container {
    position: relative;
    background: linear-gradient(180deg, rgba(43, 31, 120, 0.92), rgba(27, 26, 92, 0.95));
    padding: 2.25rem 2.5rem 1.25rem;
    border-radius: 24px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.12), 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 440px;
    width: 92%;
}

/* corner kalash-style ornaments */
.form-container::before,
.form-container::after {
    content: "✺";
    position: absolute;
    top: 10px;
    font-size: 1.4rem;
    color: var(--gold);
    opacity: 0.8;
}
.form-container::before { left: 16px; }
.form-container::after { right: 16px; }

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 1rem 1.1rem;
    font-size: 1.05rem;
    font-family: inherit;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 209, 102, 0.45);
    background: rgba(10, 11, 38, 0.55);
    color: #fff;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: #d9b9a0; font-weight: 400; }

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.2);
}

.submit-button,
.respin-button {
    padding: 1rem 1.5rem;
    font-family: inherit;
    background: linear-gradient(180deg, var(--marigold), var(--saffron));
    color: #2b0a00;
    border: none;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 0 #a33f00, 0 10px 25px rgba(255, 107, 0, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}

.submit-button:hover,
.respin-button:hover { transform: translateY(-2px); }

.submit-button:active,
.respin-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #a33f00, 0 4px 12px rgba(255, 107, 0, 0.45);
}

.submit-button:disabled { opacity: 0.6; cursor: wait; }

.terms-link {
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.terms-link:hover { color: var(--gold); }

.terms-dialog {
    margin: auto;
    width: min(640px, 92vw);
    max-height: 86vh;
    padding: 0;
    border: 2px solid var(--gold);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--maroon), var(--plum));
    color: var(--cream);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.terms-dialog::backdrop { background: rgba(10, 11, 38, 0.8); }

.terms-dialog[open] { display: flex; flex-direction: column; }

.terms-dialog h2 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--gold);
    font-size: 1.6rem;
    padding: 1.25rem 1.5rem 0.25rem;
}

.terms-dialog .terms-sub {
    padding: 0 1.5rem 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 209, 102, 0.3);
}

.terms-body {
    overflow-y: auto;
    padding: 1rem 1.5rem 0.5rem 2.6rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
    user-select: text;
}

.terms-body li { margin-bottom: 0.55rem; }
.terms-body strong { color: var(--gold); }

.terms-dialog form {
    display: flex;
    padding: 0.75rem 1.5rem 1.25rem;
}

.terms-close {
    flex: 1;
    padding: 0.8rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #2b0a00;
    background: linear-gradient(180deg, var(--marigold), var(--saffron));
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.error {
    color: #ffb4b4;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.5em;
}

/* ---------- Prize side panels ---------- */
.wheel-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1340px;
    flex-wrap: wrap;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.side-prize-card {
    background: linear-gradient(180deg, rgba(255, 244, 220, 0.12), rgba(255, 244, 220, 0.04));
    border: 1.5px solid rgba(255, 209, 102, 0.5);
    border-radius: 18px;
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: float 4s ease-in-out infinite;
}

.side-panel .side-prize-card:nth-child(2) { animation-delay: -1s; }
.side-panel .side-prize-card:nth-child(3) { animation-delay: -2s; }
.side-panel .side-prize-card:nth-child(4) { animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.side-prize-card img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 8px;
}


.side-prize-card span {
    color: var(--cream);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    padding: 0 6px;
}

/* Regular prizes: 2-column grid beside the form */
.side-panel--grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 14px;
    justify-content: center;
}

/* ---------- Bumper prize ---------- */
.bumper-card {
    position: relative;
    overflow: hidden;
    width: 230px;
    height: 262px;
    border: 3px solid var(--gold);
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.28), rgba(43, 31, 120, 0.6));
    box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.15), 0 14px 40px rgba(0, 0, 0, 0.55);
}

.bumper-card img {
    width: 140px;
    height: 140px;
    border: 3px solid var(--gold);
    margin: 8px 0 8px;
}

.bumper-card span {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--gold);
}

.bumper-ribbon {
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
    color: var(--ink);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

/* Light sweep across the card (transform only, GPU-friendly) */
.bumper-card::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-15deg);
    animation: shine 3.5s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes shine {
    0%, 55% { transform: skewX(-15deg) translateX(0); }
    100% { transform: skewX(-15deg) translateX(450%); }
}

/* Bumper slice on the wheel: dark text on gold, gold-framed image */
.slice-text.slice-text--bumper {
    color: var(--ink);
    text-shadow: none;
}

.slice-text--bumper .slice-image {
    border: 2px solid var(--maroon);
}

/* ---------- Wheel ---------- */
.wheel-stage {
    --size: min(450px, calc(100vh - 350px)); /* keep SPIN above the fold on short laptop screens */
    position: relative;
    display: grid;
    place-items: center;
    padding: 34px;
}

/* Slowly rotating rangoli halo behind the wheel */
.mandala {
    position: absolute;
    width: calc(var(--size) * 1.42);
    height: calc(var(--size) * 1.42);
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(255, 209, 102, 0.35) 0 4deg, transparent 4deg 15deg),
        repeating-conic-gradient(from 7.5deg, rgba(224, 24, 122, 0.3) 0 3deg, transparent 3deg 15deg);
    -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 62%, transparent 70%);
    mask: radial-gradient(circle, transparent 46%, #000 47%, #000 62%, transparent 70%);
    animation: spinSlow 60s linear infinite;
    will-change: transform;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

.wheel-container {
    position: relative;
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Golden rim with marquee bulbs */
.rim {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    /* 24px ring = the inset above */
    background: radial-gradient(circle closest-side, transparent calc(100% - 25px), var(--gold-deep) calc(100% - 24px), var(--gold) calc(100% - 12px), var(--gold-deep) 100%);
    box-shadow: 0 0 40px rgba(255, 159, 28, 0.55), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.bulb {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff7d1;
    box-shadow: 0 0 8px 2px var(--gold);
    animation: blink 1s steps(1) infinite;
}

.bulb:nth-child(even) { animation-delay: 0.5s; }

.spinning .bulb { animation-duration: 0.25s; }
.spinning .bulb:nth-child(even) { animation-delay: 0.125s; }

@keyframes blink {
    50% { opacity: 0.25; }
}

.pointer {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 48px solid var(--gold);
    transform-origin: 50% 0; /* flicks from its top, like a roulette clapper */
    z-index: 10;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}

.pointer::after {
    content: "";
    position: absolute;
    top: -58px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--saffron);
    border: 3px solid var(--gold);
}

.wheel {
    --slice: 45deg;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    /* Duration set from SPIN_MS in script.js. Gentle start, long smooth glide, slow crawl at the end. */
    transition: transform 8s cubic-bezier(0.3, 0.3, 0.45, 1);
    will-change: transform;
    box-shadow: inset 0 0 0 6px var(--gold-deep), inset 0 0 40px rgba(0, 0, 0, 0.45);
}

/* Gold divider lines between slices (behind the labels) */
.wheel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(var(--gold) 0 0.8deg, transparent 0.8deg var(--slice));
}

/* One slice's content, laid along its radius: [label][photo at the rim] */
.slice-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 84px;
    transform-origin: 0% 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-right: 16px;
    color: #fff;
    font-weight: 800;
    font-size: calc(var(--size) / 36);   /* 12.5px on a 450px wheel, 10.3px on 370px */
    line-height: 1.15;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Label band = the slice's content width (radius minus its 16px rim padding) minus gap (8),
   SPIN button clearance (64, button radius 55 + margin) and the photo (size/10),
   so a name can never run under the button; long names wrap to two centred lines. */
.slice-text span {
    width: calc(100% - 72px - var(--size) / 10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slice-text span small {
    white-space: nowrap;
    font-size: 0.8em;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* Left-half slices: label turned the right way up (photo stays at the rim) */
.slice-text--flip span { transform: rotate(180deg); }

.slice-image {
    flex: none;
    width: calc(var(--size) / 10);
    height: calc(var(--size) / 10);
    object-fit: contain;
    margin-bottom: 4px;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}


.spin-button {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6d5, var(--gold) 45%, var(--gold-deep));
    border: 5px solid var(--maroon);
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: transform 0.1s;
}

.spin-button::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    animation: pulse 1.6s ease-out infinite;
    pointer-events: none;
}

.spin-button:active { transform: scale(0.94); }

.spin-button:disabled {
    cursor: not-allowed;
    filter: saturate(0.6);
}

.spin-button:disabled::after { animation: none; opacity: 0; }

@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.35); opacity: 0; }
}

/* ---------- Prize modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 38, 0.88);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

.modal-content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--maroon), var(--plum));
    padding: 3.5rem 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 2px solid var(--gold);
    box-shadow: 0 0 60px rgba(255, 159, 28, 0.45);
    max-width: 520px;
    width: 100%;
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-toran {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40' viewBox='0 0 64 40'%3E%3Cpath d='M0 0 Q32 18 64 0' stroke='%23c98a00' stroke-width='2' fill='none'/%3E%3Cpath d='M32 12 C25 22 27 32 32 40 C37 32 39 22 32 12Z' fill='%232e7d32'/%3E%3Ccircle cx='32' cy='10' r='7' fill='%23ff6b00'/%3E%3Ccircle cx='32' cy='10' r='4' fill='%23ffb703'/%3E%3C/svg%3E") repeat-x;
}

@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.congrats {
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.1rem;
    color: #fff;
    line-height: 1.2;
}

.congrats span { color: var(--gold); }

.modal-sub {
    color: var(--muted);
    margin-top: 0.5rem;
}

#prizeName {
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.6rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
}

#prizeImageContainer {
    position: relative;
    margin: 0.5rem 0 1.5rem;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prize-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 209, 102, 0.35) 0 10deg, transparent 10deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
    mask: radial-gradient(circle, #000 20%, transparent 70%);
    animation: spinSlow 12s linear infinite;
    will-change: transform;
}

#prizeImage {
    position: relative;
    max-width: 220px;
    max-height: 200px;
    background: #fff;
    border-radius: 18px;
    padding: 10px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}




.send-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.send-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.send-button {
    flex: 1;
    max-width: 180px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    border: 2px solid transparent;
    transition: transform 0.15s;
}

.send-button:hover { transform: translateY(-2px); }
.send-button--wa { background: #13773b; }

.respin-button { width: 100%; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .wheel-layout { gap: 20px; }
    .wheel-stage { --size: min(400px, calc(100vh - 350px)); }
    .side-prize-card { width: 120px; height: 120px; }
    .side-prize-card img { width: 76px; height: 76px; }
    .bumper-card { width: 190px; height: 225px; }
    .bumper-card img { width: 110px; height: 110px; }
}

@media (max-width: 768px) {
    .hp-header { padding: 0.75rem 1rem; }
    .header-text h2 { font-size: 1.2rem; }
    .wheel-layout { flex-direction: column; gap: 24px; }
    .side-panel { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .side-panel--grid { grid-template-columns: repeat(3, auto); }
    .side-prize-card:not(.bumper-card) { width: 104px; height: 104px; }
    .side-prize-card:not(.bumper-card) img { width: 62px; height: 62px; }
    .form-container { order: -1; padding: 2rem 1.25rem 1.5rem; }
    .title { font-size: 1.9rem; }
    .main-title { font-size: 2rem; }
    .wheel-stage { padding: 30px 10px; }
    .wheel-stage { --size: 300px; }
    .slice-image { width: 32px; height: 32px; }
    .slice-text { font-size: 0.58rem; padding-right: 10px; gap: 5px; }
    .slice-text span { width: calc(100% - 92px); }
    .spin-button { width: 72px; height: 72px; font-size: 1.15rem; }
    .modal-content { padding: 3rem 1.25rem 1.5rem; }
    #prizeName { font-size: 2rem; }
}
