.live-page {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.32), transparent 16rem),
        radial-gradient(circle at 18% 20%, rgba(216, 164, 173, 0.5), transparent 28rem),
        radial-gradient(circle at 80% 70%, rgba(155, 184, 163, 0.38), transparent 26rem),
        linear-gradient(135deg, #4f2f38, #8b5b65 52%, #c6a15b);
    color: var(--white);
}

.live-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(1rem, 2.4vw, 1.8rem);
    padding:
        max(1rem, env(safe-area-inset-top))
        max(1.1rem, env(safe-area-inset-right))
        max(1.1rem, env(safe-area-inset-bottom))
        max(1.1rem, env(safe-area-inset-left));
}

.live-stage::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    pointer-events: none;
}

.live-header,
.live-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.live-header {
    min-width: 0;
}

.live-header .logo-section {
    min-width: 0;
}

.live-header .brand-name {
    color: var(--white);
}

.live-header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.live-sound-toggle {
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
}

.live-sound-toggle.active {
    background: rgba(255, 255, 255, 0.28);
}

.live-badge {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-hero {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    min-width: 0;
    padding: clamp(0.5rem, 2vh, 1rem) 0;
}

.live-hero .eyebrow {
    color: #ffe4a3;
}

.live-hero h1 {
    max-width: 920px;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1;
}

.live-number-wrap {
    position: relative;
    display: grid;
    width: min(78vw, 560px);
    max-height: 42vh;
    max-height: 42svh;
    aspect-ratio: 1.35;
    place-items: center;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 223, 227, 0.88)),
        var(--white);
    box-shadow:
        0 35px 90px rgba(52, 42, 45, 0.34),
        inset 0 0 60px rgba(198, 161, 91, 0.25);
    overflow: hidden;
}

.live-number-wrap::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 90deg, transparent, rgba(198, 161, 91, 0.28), transparent, rgba(216, 164, 173, 0.3), transparent);
    animation: live-rotate 7s linear infinite;
}

.live-number {
    position: relative;
    z-index: 1;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: clamp(6.5rem, min(28vw, 26vh), 18rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 8px 18px rgba(139, 91, 101, 0.18);
}

.live-number.spinning {
    animation: live-number-spin 0.16s linear infinite;
}

.live-number.winner-pop {
    animation: live-winner-pop 1.05s ease;
}

.live-status {
    max-width: 760px;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.live-mode,
.live-footer {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.live-instagram {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(52, 42, 45, 0.16);
}

.live-instagram:hover {
    background: rgba(255, 255, 255, 0.28);
}

.live-page .fireworks-layer {
    position: fixed;
}

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

@keyframes live-number-spin {
    0% {
        transform: translateY(-8px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        transform: translateY(8px) scale(1.02);
        filter: blur(0);
    }
}

@keyframes live-winner-pop {
    0% {
        transform: scale(0.66);
    }
    45% {
        transform: scale(1.16);
    }
    100% {
        transform: scale(1);
    }
}

@media (min-width: 900px) {
    .live-stage {
        gap: clamp(1.6rem, 3vw, 2.8rem);
        padding:
            max(1.8rem, env(safe-area-inset-top))
            max(2.5rem, env(safe-area-inset-right))
            max(1.8rem, env(safe-area-inset-bottom))
            max(2.5rem, env(safe-area-inset-left));
    }

    .live-stage::before {
        inset: 1.6rem;
    }

    .live-hero {
        padding: clamp(1rem, 3vh, 2.2rem) 0;
    }

    .live-hero h1 {
        max-width: 1080px;
        margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
        font-size: clamp(4rem, 6vw, 6.8rem);
    }

    .live-number-wrap {
        width: min(62vw, 760px);
        max-height: 52vh;
        max-height: 52svh;
        margin-bottom: clamp(1.3rem, 3vh, 2rem);
    }

    .live-number {
        font-size: clamp(10rem, min(22vw, 31vh), 20rem);
    }

    .live-status {
        max-width: 980px;
        font-size: clamp(1.55rem, 2vw, 2.35rem);
    }

    .live-mode,
    .live-footer {
        font-size: 1.05rem;
    }
}

@media (max-width: 720px) {
    .live-stage {
        padding:
            max(1rem, env(safe-area-inset-top))
            max(1.25rem, env(safe-area-inset-right))
            max(1.25rem, env(safe-area-inset-bottom))
            max(1.25rem, env(safe-area-inset-left));
    }

    .live-header,
    .live-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .live-header-tools {
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.85rem;
    }

    .live-number-wrap {
        width: min(92vw, 440px);
        max-height: 36vh;
        max-height: 36svh;
    }

    .live-hero h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.15rem, 11vw, 4rem);
    }

    .live-status {
        font-size: clamp(1rem, 5vw, 1.45rem);
    }

    .live-footer {
        text-align: center;
    }

    .live-instagram {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .live-stage {
        padding:
            max(0.95rem, env(safe-area-inset-top))
            max(1.15rem, env(safe-area-inset-right))
            max(1.15rem, env(safe-area-inset-bottom))
            max(1.15rem, env(safe-area-inset-left));
    }

    .live-stage::before {
        inset: 0.7rem;
    }

    .live-header .brand-name {
        font-size: 1.2rem;
    }

    .live-header-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .live-sound-toggle,
    .live-badge {
        justify-content: center;
        width: 100%;
    }

    .live-number {
        font-size: clamp(5.5rem, 34vw, 8rem);
    }
}

@media (max-height: 640px) and (orientation: landscape) {
    .live-stage {
        gap: 0.6rem;
    }

    .live-hero {
        align-content: start;
    }

    .live-hero h1 {
        margin-bottom: 0.75rem;
        font-size: clamp(2rem, 7vh, 3rem);
    }

    .live-number-wrap {
        width: min(46vw, 360px);
        max-height: 34vh;
        margin-bottom: 0.75rem;
    }

    .live-number {
        font-size: clamp(4.5rem, 20vh, 8rem);
    }

    .live-status {
        font-size: clamp(1rem, 4vh, 1.35rem);
    }
}
