/* ========================================
   YULETIDE PROJECTOR STYLES
   ======================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overscroll-behavior: none;
}

.grecaptcha-badge {
    display: none !important;
}

/* ===== FULLSCREEN CONTAINER ===== */
.yule-fullscreen {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.yule-projector {
    width: 100%;
    min-height: 100%;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== DESKTOP LAYOUT ===== */
.yule-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 16px 40px 40px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
    position: relative;
}

.yule-brand {
    position: absolute;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.yule-brand img {
    display: block;
    margin: 0 auto;
    width: 28vw;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}

.yule-columns {
    align-self: center;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-top: 90px; /* Reduced for more vertical space */
}

.yule-col {
    width: 22%;
    min-width: 220px;
    max-width: 340px;
    flex-shrink: 0;
}

.yule-heat-title {
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 24px;
}

.yule-band-tile {
    background: #000;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.6s ease, box-shadow 0.3s ease, outline 0.3s ease;
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.yule-band-tile.active {
    opacity: 1;
    outline: 3px solid #ffffff;
    box-shadow: 0 0 20px rgba(255,0,0,0.9), 0 0 40px rgba(255,0,0,0.6), 0 0 60px rgba(139,0,0,0.4);
    animation: activePulse 3s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255,0,0,0.9), 0 0 40px rgba(255,0,0,0.6), 0 0 60px rgba(139,0,0,0.4);
    }
    25% { 
        transform: scale(1.03) rotate(0.5deg); 
        box-shadow: 0 0 25px rgba(255,0,0,1), 0 0 50px rgba(255,0,0,0.7), 0 0 80px rgba(139,0,0,0.5);
    }
    50% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255,0,0,0.9), 0 0 40px rgba(255,0,0,0.6), 0 0 60px rgba(139,0,0,0.4);
    }
    75% { 
        transform: scale(1.03) rotate(-0.5deg); 
        box-shadow: 0 0 25px rgba(255,0,0,1), 0 0 50px rgba(255,0,0,0.7), 0 0 80px rgba(139,0,0,0.5);
    }
}

.yule-band-tile.played {
    opacity: 0.5;
}

/* Pre-draw shuffle - 50% opacity until locked */
.yule-band-tile.shuffling {
    opacity: 0.5;
}

/* Locked bands (previously drawn) - solid black glow */
.yule-band-tile.locked {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.8);
}

/* Just locked band (most recently drawn) - elastic scale + bounce + gold glow + particle burst + spotlight + electric crackle */
.yule-band-tile.locked.just-locked {
    animation: elasticPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, 
               crazyBounce 0.6s ease-in-out 0.8s 5,
               subtlePulse 2s ease-in-out 4s infinite;
    box-shadow: 0 0 35px rgba(255,215,0,1), 0 0 70px rgba(255,215,0,0.6);
    position: relative;
    overflow: visible;
    z-index: 10;
}

/* Particle burst container - ::before */
.yule-band-tile.locked.just-locked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    animation: particleBurst1 0.8s ease-out forwards;
    box-shadow:
        0 0 0 3px #ffd700, 0 0 10px 3px rgba(255,215,0,0.8),
        -40px -30px 0 2px #ff4444, -40px -30px 8px 2px rgba(255,68,68,0.6),
        40px -35px 0 2px #ffd700, 40px -35px 8px 2px rgba(255,215,0,0.6),
        -50px 20px 0 2px #ff6600, -50px 20px 8px 2px rgba(255,102,0,0.6),
        50px 25px 0 2px #ff4444, 50px 25px 8px 2px rgba(255,68,68,0.6),
        -20px -50px 0 2px #ffd700, -20px -50px 8px 2px rgba(255,215,0,0.6),
        25px 45px 0 2px #ff6600, 25px 45px 8px 2px rgba(255,102,0,0.6);
}

/* Spotlight sweep - ::after */
.yule-band-tile.locked.just-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,215,0,0.1) 30%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,215,0,0.1) 70%,
        transparent 100%
    );
    pointer-events: none;
    animation: spotlightSweep 4s ease-in-out 1s infinite;
    z-index: 20;
}

/* Electric crackle border effect - uses a wrapper element we'll add via JS */
.yule-band-tile.locked.just-locked .electric-crackle {
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    pointer-events: none;
    z-index: 15;
    opacity: 1;
    animation: electricFadeIn 0.3s ease-out forwards, electricCrackle 0.15s ease-in-out infinite;
}

.yule-band-tile.locked.just-locked .electric-crackle::before,
.yule-band-tile.locked.just-locked .electric-crackle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    pointer-events: none;
}

.yule-band-tile.locked.just-locked .electric-crackle::before {
    border: 2px solid transparent;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,215,0,0.8) 20%, 
        rgba(255,255,255,1) 25%, 
        rgba(255,215,0,0.8) 30%,
        transparent 50%,
        rgba(100,200,255,0.8) 70%,
        rgba(255,255,255,1) 75%,
        rgba(100,200,255,0.8) 80%,
        transparent 100%
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: electricBorderMove 0.5s linear infinite;
}

.yule-band-tile.locked.just-locked .electric-crackle::after {
    box-shadow: 
        inset 0 0 8px rgba(255,215,0,0.4),
        inset 0 0 20px rgba(100,200,255,0.2),
        0 0 15px rgba(255,215,0,0.3),
        0 0 30px rgba(100,200,255,0.15);
    animation: electricGlow 0.2s ease-in-out infinite alternate;
}

/* Subtle persistent crackle after initial burst - add .subtle class via JS after 3s */
.yule-band-tile.locked.just-locked .electric-crackle.subtle {
    animation: electricCrackleSubtle 0.4s ease-in-out infinite;
    opacity: 0.4;
}

.yule-band-tile.locked.just-locked .electric-crackle.subtle::before {
    animation: electricBorderMoveSlow 2s linear infinite;
}

.yule-band-tile.locked.just-locked .electric-crackle.subtle::after {
    animation: electricGlowSubtle 0.5s ease-in-out infinite alternate;
}

@keyframes particleBurst1 {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes particleBurst2 {
    0% {
        transform: translate(-50%, -50%) scale(0.2) rotate(30deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8) rotate(60deg);
        opacity: 0;
    }
}

/* Elastic pop-in animation - starts at 1.5x, snaps down to 1x */
@keyframes elasticPop {
    0% { transform: scale(1.5); }
    30% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.97); }
    85% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes crazyBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    15% { transform: scale(1.06) rotate(-1.5deg); }
    30% { transform: scale(0.96) rotate(1.5deg); }
    45% { transform: scale(1.04) rotate(-1deg); }
    60% { transform: scale(0.98) rotate(1deg); }
    75% { transform: scale(1.02) rotate(-0.5deg); }
    90% { transform: scale(1) rotate(0.5deg); }
}

@keyframes glowFade {
    0% { box-shadow: 0 0 35px rgba(255,215,0,1), 0 0 70px rgba(255,215,0,0.6); }
    40% { box-shadow: 0 0 28px rgba(220,180,0,0.7), 0 0 50px rgba(180,130,0,0.4); }
    70% { box-shadow: 0 0 22px rgba(100,80,0,0.4), 0 0 35px rgba(50,40,0,0.2); }
    100% { box-shadow: 0 0 20px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.8); }
}

/* Subtle pulse after crazy bounce ends */
@keyframes subtlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255,215,0,0.3), 0 0 50px rgba(255,215,0,0.15); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2); }
}

/* Spotlight sweep animation */
@keyframes spotlightSweep {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    45% { left: 150%; opacity: 1; }
    50% { left: 150%; opacity: 0; }
    55% { left: -100%; opacity: 0; }
    60% { opacity: 1; }
    95% { left: 150%; opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

/* Electric crackle animations */
@keyframes electricFadeIn {
    0% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes electricCrackle {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(1px, -1px) scale(1.002); }
    50% { transform: translate(-1px, 1px) scale(0.998); }
    75% { transform: translate(1px, 1px) scale(1.001); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes electricCrackleSubtle {
    0% { transform: translate(0, 0); }
    50% { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(0, 0); }
}

@keyframes electricBorderMove {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes electricBorderMoveSlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes electricGlow {
    0% { 
        box-shadow: 
            inset 0 0 8px rgba(255,215,0,0.4),
            inset 0 0 20px rgba(100,200,255,0.2),
            0 0 15px rgba(255,215,0,0.3),
            0 0 30px rgba(100,200,255,0.15);
    }
    100% { 
        box-shadow: 
            inset 0 0 12px rgba(255,215,0,0.6),
            inset 0 0 25px rgba(100,200,255,0.3),
            0 0 20px rgba(255,215,0,0.5),
            0 0 40px rgba(100,200,255,0.25);
    }
}

@keyframes electricGlowSubtle {
    0% { 
        box-shadow: 
            inset 0 0 4px rgba(255,215,0,0.15),
            inset 0 0 10px rgba(100,200,255,0.08),
            0 0 8px rgba(255,215,0,0.1),
            0 0 15px rgba(100,200,255,0.05);
    }
    100% { 
        box-shadow: 
            inset 0 0 6px rgba(255,215,0,0.2),
            inset 0 0 12px rgba(100,200,255,0.1),
            0 0 10px rgba(255,215,0,0.15),
            0 0 20px rgba(100,200,255,0.08);
    }
}

.yule-band-logo {
    width: 52px;
    height: 52px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yule-band-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.yule-band-text {
    display: flex;
    flex-direction: column;
}

.yule-band-name {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.yule-band-time {
    font-size: 20px;
    opacity: 0.8;
}

/* ===== CENTER AREA ===== */
.yule-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 90px; /* Push logo down below brand */
}

/* ===== CORNER LOGOS ===== */
.yule-corner-logo {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 50;
    pointer-events: none;
}

.yule-corner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yule-corner-logo.bottom-left {
    left: 22px;
    bottom: 22px;
}

.yule-corner-logo.bottom-right {
    right: 22px;
    bottom: 22px;
}

.yule-main-logo {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 650px;
}

.yule-main-logo > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Hide mobile view on desktop */
.yule-mobile-view {
    display: none;
}

.yule-mobile-timer-bar {
    display: none;
}

/* ===== FOOTER TIMER (DESKTOP) ===== */
.yule-footer {
    text-align: center;
    font-size: 18px;
    margin-top: 14px;
}

.yule-timer {
    margin-top: 4px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 140px;
    line-height: 1;
    transition: color 0.3s;
}

.yule-timer.over {
    color: #ff3b30;
}

/* ===== MOBILE TOP TIMER (hidden on desktop) ===== */
.yule-top-timer {
    display: none;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 6px;
}

.yule-top-timer.over {
    color: #ff3b30;
}

/* ========================================
   MOBILE PORTRAIT LAYOUT
   ======================================== */
@media (max-width: 900px) and (orientation: portrait) {
    /* Simple scrolling page */
    html, body {
        height: auto;
        min-height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: #000;
        -webkit-overflow-scrolling: touch;
    }
    
    .yule-fullscreen {
        position: relative;
        min-height: 100vh;
        overflow: visible;
        background: #000;
    }
    
    .yule-projector {
        position: relative;
        min-height: 100vh;
        overflow: visible;
        background: #000;
    }
    
    /* Hide desktop view on mobile portrait */
    .yule-desktop-view {
        display: none !important;
    }
    
    /* Hide corner logos on mobile portrait */
    .yule-corner-logo {
        display: none !important;
    }
    
    /* Mobile view - normal document flow */
    .yule-mobile-view {
        display: block;
        width: 100%;
        min-height: 100vh;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Header - stacked layout for better display */
    .yule-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 16px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
        box-sizing: border-box;
        background: linear-gradient(180deg, #000 0%, #111 100%);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Top row: brand logo and timer */
    .yule-mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 16px;
    }
    
    .yule-mobile-brand {
        flex: 0 0 auto;
    }
    
    .yule-mobile-brand img {
        height: 60px;
        width: auto;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
    }
    
    .yule-mobile-timer {
        font-size: 42px;
        font-weight: 900;
        letter-spacing: 2px;
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }
    
    .yule-mobile-timer.over {
        color: #ff3b30;
    }
    
    /* Current band area - large centered logo */
    .yule-mobile-current-band {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .yule-mobile-band-logo {
        width: 50vw;
        height: 50vw;
        max-width: 200px;
        max-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(30,30,30,0.8);
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }
    
    .yule-mobile-band-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .yule-mobile-elf {
        position: absolute;
        inset: 0;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .yule-mobile-elf img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .yule-mobile-elf.hidden {
        opacity: 0;
    }
    
    /* Show band name on mobile */
    .yule-mobile-band-name {
        font-size: 20px;
        font-weight: 800;
        margin-top: 12px;
        text-align: center;
    }
    
    .yule-mobile-mode-label {
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.6;
        margin-top: 8px;
    }
    
    /* Hide up next strip */
    .yule-mobile-upnext {
        display: none !important;
    }
    
    /* Scroll area - normal block */
    .yule-mobile-scroll {
        display: block;
        width: 100%;
        padding: 16px;
        padding-bottom: 40px;
        box-sizing: border-box;
        background: #000;
    }
    
    /* Heat sections */
    .yule-mobile-heat {
        background: rgba(20,20,20,0.6);
        border-radius: 12px;
        padding: 14px;
        border: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 20px;
    }
    
    .yule-mobile-heat-title {
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.6;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .yule-mobile-heat-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Mobile band tiles */
    .yule-mobile-band-tile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        background: rgba(40,40,40,0.6);
        border-radius: 10px;
        transition: all 0.5s ease;
    }
    
    .yule-mobile-band-tile.active {
        background: rgba(139,0,0,0.25);
        outline: 2px solid #ffffff;
        box-shadow: 0 0 15px rgba(255,0,0,0.8), 0 0 30px rgba(139,0,0,0.5);
        animation: activePulse 3s ease-in-out infinite;
    }
    
    .yule-mobile-band-tile.played {
        opacity: 0.4;
    }
    
    /* Pre-draw shuffle - 50% opacity until locked */
    .yule-mobile-band-tile.shuffling {
        opacity: 0.5;
    }

    /* Locked bands (previously drawn) - solid black glow */
    .yule-mobile-band-tile.locked {
        opacity: 1;
        background: rgba(30,30,30,0.9);
        box-shadow: 0 0 15px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.8);
    }
    
    /* Just locked band (most recently drawn) - elastic scale + bounce + gold glow + particle burst + spotlight + electric crackle */
    .yule-mobile-band-tile.locked.just-locked {
        animation: elasticPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, 
                   crazyBounce 0.6s ease-in-out 0.8s 5,
                   subtlePulse 2s ease-in-out 4s infinite;
        box-shadow: 0 0 25px rgba(255,215,0,1), 0 0 50px rgba(255,215,0,0.6);
        position: relative;
        overflow: visible;
        z-index: 10;
    }
    
    /* Mobile particle burst */
    .yule-mobile-band-tile.locked.just-locked::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        pointer-events: none;
        animation: particleBurst1 0.8s ease-out forwards;
        box-shadow:
            0 0 0 2px #ffd700, 0 0 6px 2px rgba(255,215,0,0.8),
            -30px -20px 0 1px #ff4444, -30px -20px 5px 1px rgba(255,68,68,0.5),
            30px -25px 0 1px #ffd700, 30px -25px 5px 1px rgba(255,215,0,0.5),
            -35px 15px 0 1px #ff6600, -35px 15px 5px 1px rgba(255,102,0,0.5),
            35px 18px 0 1px #ff4444, 35px 18px 5px 1px rgba(255,68,68,0.5);
    }
    
    /* Mobile spotlight sweep */
    .yule-mobile-band-tile.locked.just-locked::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,215,0,0.1) 30%,
            rgba(255,255,255,0.3) 50%,
            rgba(255,215,0,0.1) 70%,
            transparent 100%
        );
        pointer-events: none;
        animation: spotlightSweep 4s ease-in-out 1s infinite;
        z-index: 20;
        border-radius: 10px;
    }
    
    /* Mobile electric crackle */
    .yule-mobile-band-tile.locked.just-locked .electric-crackle {
        position: absolute;
        inset: -2px;
        border-radius: 12px;
        pointer-events: none;
        z-index: 15;
        opacity: 1;
        animation: electricFadeIn 0.3s ease-out forwards, electricCrackle 0.15s ease-in-out infinite;
    }
    
    .yule-mobile-band-tile.locked.just-locked .electric-crackle::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        border: 2px solid transparent;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255,215,0,0.8) 20%, 
            rgba(255,255,255,1) 25%, 
            rgba(255,215,0,0.8) 30%,
            transparent 50%,
            rgba(100,200,255,0.8) 70%,
            rgba(255,255,255,1) 75%,
            rgba(100,200,255,0.8) 80%,
            transparent 100%
        ) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: electricBorderMove 0.5s linear infinite;
    }
    
    .yule-mobile-band-tile.locked.just-locked .electric-crackle::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        box-shadow: 
            inset 0 0 6px rgba(255,215,0,0.4),
            inset 0 0 15px rgba(100,200,255,0.2),
            0 0 10px rgba(255,215,0,0.3),
            0 0 20px rgba(100,200,255,0.15);
        animation: electricGlow 0.2s ease-in-out infinite alternate;
    }
    
    .yule-mobile-band-tile.locked.just-locked .electric-crackle.subtle {
        animation: electricCrackleSubtle 0.4s ease-in-out infinite;
        opacity: 0.4;
    }
    
    .yule-mobile-band-tile.locked.just-locked .electric-crackle.subtle::before {
        animation: electricBorderMoveSlow 2s linear infinite;
    }
    
    .yule-mobile-band-tile.locked.just-locked .electric-crackle.subtle::after {
        animation: electricGlowSubtle 0.5s ease-in-out infinite alternate;
    }
    
    .yule-mobile-tile-num {
        font-size: 14px;
        font-weight: 800;
        opacity: 0.4;
        min-width: 20px;
        text-align: center;
    }
    
    .yule-mobile-tile-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .yule-mobile-tile-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .yule-mobile-tile-info {
        flex: 1;
        min-width: 0;
    }
    
    .yule-mobile-tile-name {
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .yule-mobile-tile-time {
        font-size: 12px;
        opacity: 0.6;
        margin-top: 2px;
    }
}

/* ========================================
   MOBILE LANDSCAPE - Show rotate message
   ======================================== */

/* Rotate overlay - hidden by default */
.yule-rotate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #fff;
}

.yule-rotate-icon {
    font-size: 80px;
    line-height: 1;
}

.yule-rotate-text {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes rotatePhone {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-30deg); }
    75% { transform: rotate(-90deg); }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    html {
        touch-action: manipulation;
    }
    
    .yule-rotate-overlay {
        display: flex !important;
    }
    
    .yule-rotate-icon {
        animation: rotatePhone 2s ease-in-out infinite;
    }
    
    .yule-fullscreen {
        display: none !important;
    }
}

@media screen and (max-width: 900px) and (orientation: portrait) {
    html {
        touch-action: manipulation;
    }
    
    .yule-rotate-overlay {
        display: none !important;
    }
    
    .yule-fullscreen {
        display: block !important;
    }
}

/* ========================================
   FULL-SCREEN OVERLAYS
   ======================================== */
.yule-overlay-wrap {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.yule-overlay-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Spitfire overlay - sits under presents, covers entire screen */
.yule-overlay-spitfire {
    z-index: 99998;
}

.yule-overlay-spitfire img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Presents overlay - on top, flashes, stays contained */
.yule-overlay-presents {
    z-index: 99999;
    transition: opacity 0.15s ease;
}

.yule-overlay-presents.hidden {
    opacity: 0;
}

/* Elf mode - covers the entire band logo area with solid background */
.yule-elf-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: #000;
    transition: opacity 0.15s ease;
}

.yule-elf-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yule-elf-overlay.hidden {
    opacity: 0;
}

/* ===== PHASE IMAGES ===== */
.yule-phase-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
}

.yule-phase-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
