/* Award Reveal - Dramatic Full Screen Experience */
.award-reveal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Use dynamic viewport height for better iOS support */
    height: 100dvh;
    background: var(--gradient-purple);
    display: flex;
    flex-direction: column;
    z-index: var(--z-award-reveal);
    overflow: hidden; /* Prevent any unwanted scrolling */
    font-family: var(--font-system);
    /* iOS Safari specific fixes */
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(0, 0, 0); /* Force hardware acceleration */
    transform: translate3d(0, 0, 0);
}

/* PHASE 1: COUNTING VOTES */
.award-reveal-container.phase-counting {
    background: var(--gradient-dark-stage);
    animation: countingBackground 3s ease-in-out;
    justify-content: center;
    align-items: center;
}

.counting-animation {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    animation: countingSlideIn 0.8s ease-out;
}

.counting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.counting-title h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin: 0;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: titlePulse 2s ease-in-out infinite alternate;
}

.counting-subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-top: 1rem;
    animation: subtitleFadeIn 1s ease-out 0.5s both;
}

.vote-counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vote-number {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2);
    animation: numberGlow 0.3s ease-out;
    font-family: 'SF Mono', 'Monaco', monospace;
    line-height: 1;
}

.vote-label {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.counting-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto 0;
}

.vote-particles {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    height: 60px;
    align-items: flex-end;
}

.vote-particle {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: particleFloat 2s ease-in-out infinite alternate;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 4px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* PHASE 2: RESULTS ARE IN */
.award-reveal-container.phase-results {
    background: radial-gradient(circle at center, #ff6b6b, #ee5a24, #d63031);
    animation: resultsExplosion 2s ease-out;
    justify-content: center;
    align-items: center;
}

.results-in-animation {
    text-align: center;
    width: 100%;
    animation: resultsSlam 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.results-content {
    position: relative;
}

.results-text {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    color: white;
    margin: 0;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.3);
    animation: slamTextShake 0.6s ease-out;
    line-height: 1.1;
}

.results-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700, transparent);
    border-radius: 50%;
    animation: sparkleExplosion 1.5s ease-out forwards;
}

.sparkle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.sparkle:nth-child(2) { top: 30px; right: 30px; }
.sparkle:nth-child(3) { right: 0; top: 50%; transform: translateY(-50%); }
.sparkle:nth-child(4) { bottom: 30px; right: 30px; }
.sparkle:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.sparkle:nth-child(6) { bottom: 30px; left: 30px; }
.sparkle:nth-child(7) { left: 0; top: 50%; transform: translateY(-50%); }
.sparkle:nth-child(8) { top: 30px; left: 30px; }

/* PHASE 3: WINNER REVEAL - NEW FLEX LAYOUT */
.award-reveal-container.phase-winner {
    background: var(--gradient-purple);
    animation: winnerRevealBg 1s ease-out;
    /* Use flexbox to ensure proper layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* Remove fixed positioning issues */
    padding: 0;
    /* Ensure content starts at top */
    padding-top: env(safe-area-inset-top, 0px);
}

.winner-reveal-screen {
    width: 100%;
    max-width: 900px;
    /* Use flexbox instead of margins for better control */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: winnerSlideIn 0.8s ease-out;
    /* Fill available space but allow scrolling if needed */
    flex: 1;
    min-height: 0; /* Allow shrinking */
    /* Add padding for content spacing */
    padding: 1rem 1rem 0 1rem;
    /* Enable scrolling if content overflows */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.award-announcement {
    text-align: center;
    animation: announcementFadeIn 0.6s ease-out 0.3s both;
    /* Remove margin-bottom to rely on gap */
    margin: 0;
    flex-shrink: 0; /* Don't shrink this element */
}

.award-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: white;
    margin: 0;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 255, 255, 0.3);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NEW: Award description styling */
.award-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    padding: 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Winner Hero Card - Optimized for flexible layout */
.winner-hero-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    border-radius: 25px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    border: 3px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    animation: heroCardReveal 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    /* Allow shrinking if needed */
    flex-shrink: 1;
    min-width: 0;
}

.winner-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: heroCardShimmer 3s linear infinite 1s;
    pointer-events: none;
}

.winner-photo-section {
    position: relative;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: photoZoomIn 0.8s ease-out 1s both;
}

.winner-photo-container {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

/* Mobile-specific number positioning */
.winner-number-mobile {
    display: none;
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-purple-start);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: numberPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.4s both;
    z-index: 3;
}

.winner-photo, .winner-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.winner-photo-placeholder {
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-initials {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.photo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
    animation: photoGlow 2s ease-in-out infinite alternate 1.5s;
    z-index: 1;
}

.winner-info {
    animation: infoSlideUp 0.6s ease-out 1.2s both;
}

.winner-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-purple-start);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    animation: numberPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.4s both;
}

.winner-name {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #333;
    margin: 0;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: nameReveal 0.8s ease-out 1.6s both;
}

.winner-lastname {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 800;
    color: #555;
    margin: 0.5rem 0 0;
    animation: lastnameReveal 0.8s ease-out 1.8s both;
}

/* Winner Actions - Flexible sizing */
.winner-actions {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: actionsSlideIn 0.8s ease-out 2.2s both;
    flex-shrink: 0; /* Don't shrink share section */
}

.share-section {
    text-align: center;
}

.share-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop Share Buttons - Default display */
.desktop-share-buttons {
    display: flex;
    gap: 0.8rem;
}

/* Mobile Share Button - Hidden by default */
.mobile-share-buttons {
    display: none;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    /* Enhanced touch responsiveness for mobile */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    /* Prevent any lag on iOS */
    -webkit-touch-callout: none;
    -webkit-appearance: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Enhanced mobile share button for better iOS compatibility */
.share-btn.mobile-share {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    /* Extra iOS-specific optimizations */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Improve button responsiveness */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: transform;
}

/* Add loading state for share button */
.share-btn.mobile-share:active {
    transform: scale(0.98) translateZ(0);
    transition: transform 0.1s ease;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
}

.share-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-icon svg {
    width: 16px;
    height: 16px;
}

/* Navigation Section - NOW INLINE, NO FLOATING */
.navigation-section {
    width: 100%;
    text-align: center;
    /* Remove all positioning and z-index */
    position: static;
    /* Make it part of normal document flow */
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126,234, 0.1) 50%, rgba(102, 126, 234, 0.2) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    margin: 1rem;
    padding: 0.8rem 0;
    /* Prevent shrinking */
    flex-shrink: 0;
}

.award-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 48px;
}

.award-counter {
    flex: 0 0 auto;
    text-align: center;
    order: 2;
}

.award-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.prev-award-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    text-transform: none;
    letter-spacing: 0;
    flex: 0 0 auto;
    min-height: 36px;
    order: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Enhanced touch responsiveness */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.next-award-btn, .finish-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    text-transform: none;
    letter-spacing: 0;
    flex: 0 0 auto;
    min-height: 36px;
    order: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Enhanced touch responsiveness */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.finish-btn {
    background: var(--gradient-purple);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Invisible spacer when no prev button */
.nav-spacer {
    flex: 0 0 auto;
    width: 80px;
    order: 1;
}

.prev-award-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

.next-award-btn:hover, .finish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.finish-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-arrow, .btn-checkmark {
    font-size: 1rem;
    font-weight: bold;
    animation: iconBounce 1.5s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes countingBackground {
    from { filter: brightness(0.8); }
    to { filter: brightness(1); }
}

@keyframes countingSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes numberGlow {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes particleFloat {
    0% { transform: translateY(20px); opacity: 0.7; }
    100% { transform: translateY(-10px); opacity: 1; }
}

@keyframes resultsExplosion {
    0% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.5) contrast(1.3); }
    100% { filter: brightness(1) contrast(1); }
}

@keyframes resultsSlam {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    70% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slamTextShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes sparkleExplosion {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(2) rotate(360deg);
    }
}

@keyframes winnerRevealBg {
    from { filter: brightness(0.8); }
    to { filter: brightness(1); }
}

@keyframes winnerSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes announcementFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroCardShimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes photoZoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes photoGlow {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.1); }
}

@keyframes numberPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nameReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lastnameReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes infoSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statsReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes actionsSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* RESPONSIVE DESIGN - SHARE BUTTONS */
/* Mobile devices - show single Web Share button, hide desktop buttons */
@media (max-width: 768px) {
    .desktop-share-buttons {
        display: none;
    }
    
    .mobile-share-buttons {
        display: flex;
        justify-content: center;
    }
    
    .share-btn.mobile-share {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        /* Additional mobile optimizations */
        min-height: 48px; /* Larger touch target */
        min-width: 120px;
    }
}

/* Desktop - only hide mobile buttons (desktop buttons shown by default) */
@media (min-width: 769px) {
    .mobile-share-buttons {
        display: none;
    }
}

/* RESPONSIVE DESIGN - MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .award-reveal-container {
        /* Use smaller dynamic viewport height on mobile */
        height: 100dvh;
    }
    
    .award-reveal-container.phase-winner {
        /* Ensure proper top spacing for mobile */
        padding-top: max(env(safe-area-inset-top, 0px), 0.5rem);
    }
    
    .winner-reveal-screen {
        padding: 0.5rem 0.8rem 0 0.8rem;
        gap: 0.8rem;
    }
    
    /* Hide desktop number, show mobile number */
    .winner-number {
        display: none;
    }
    
    .winner-number-mobile {
        display: block;
    }
    
    .winner-photo-container {
        width: 180px;
        height: 180px;
    }
    
    .winner-initials {
        font-size: 3rem;
    }
    
    .vote-total {
        padding: 0.6rem 1.2rem;
    }
    
    .vote-count {
        font-size: 2.2rem;
    }
    
    .vote-text {
        font-size: 0.95rem;
    }
    
    .counting-content {
        gap: 2rem;
    }

    .counting-title h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .counting-subtitle {
        font-size: 1.2rem;
    }

    .vote-number {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .vote-label {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .results-text {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .award-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .winner-hero-card {
        padding: 1.8rem 1.3rem 1.3rem;
        max-width: 420px;
    }

    .share-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .share-buttons {
        gap: 0.6rem;
    }

    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .navigation-section {
        margin: 0.8rem;
        padding: 0.7rem 0;
    }
    
    .award-navigation {
        padding: 0 0.8rem;
        height: 44px;
    }
    
    .prev-award-btn, .next-award-btn, .finish-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.8rem;
        min-height: 36px;
        border-radius: 18px;
    }
    
    .award-number {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-arrow, .btn-checkmark {
        font-size: 0.95rem;
    }
    
    .nav-spacer {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .award-reveal-container.phase-winner {
        padding-top: max(env(safe-area-inset-top, 0px), 0.3rem);
    }

    .winner-reveal-screen {
        padding: 0.3rem 0.5rem 0 0.5rem;
        gap: 0.7rem;
    }
    
    .winner-photo-container {
        width: 160px;
        height: 160px;
    }
    
    .winner-number-mobile {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
        bottom: -6px;
        right: -6px;
    }
    
    .vote-total {
        padding: 0.5rem 1rem;
    }
    
    .vote-count {
        font-size: 2rem;
    }
    
    .vote-text {
        font-size: 0.9rem;
    }

    .counting-content {
        gap: 1.5rem;
    }

    .vote-particles {
        height: 40px;
        margin-bottom: 1.5rem;
    }

    .vote-particle {
        width: 10px;
        height: 10px;
    }

    .winner-hero-card {
        padding: 1.5rem 1rem;
        max-width: 350px;
    }

    .winner-initials {
        font-size: 2.8rem;
    }

    .winner-actions {
        gap: 0.8rem;
    }

    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .share-btn.mobile-share {
        min-height: 44px; /* Maintain good touch target on small screens */
        min-width: 100px;
    }
    
    .navigation-section {
        margin: 0.5rem;
        padding: 0.6rem 0;
        border-radius: 16px;
    }
    
    .award-navigation {
        gap: 0.8rem;
        padding: 0 0.6rem;
        height: 40px;
    }
    
    .prev-award-btn, .next-award-btn, .finish-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-height: 32px;
        border-radius: 16px;
    }
    
    .award-number {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn-arrow, .btn-checkmark {
        font-size: 0.85rem;
    }
    
    .nav-spacer {
        width: 76px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .award-reveal-container {
        /* Force iOS Safari to use correct viewport */
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
    
    .award-reveal-container.phase-winner {
        /* Additional iOS Safari padding fixes */
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
    }
    
    /* Enhanced iOS touch handling for share buttons */
    .share-btn.mobile-share {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        background-clip: padding-box;
    }
    
    /* Improve button responsiveness on iOS */
    .prev-award-btn, .next-award-btn, .finish-btn {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}

/* Very short screens - landscape phones */
@media (max-height: 600px) and (orientation: landscape) {
    .winner-hero-card {
        max-width: 350px;
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .winner-photo-container {
        width: 100px;
        height: 100px;
    }
    
    .winner-number-mobile {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
        bottom: -6px;
        right: -6px;
    }
    
    .winner-initials {
        font-size: 2rem;
    }
    
    .award-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .navigation-section {
        margin: 0.3rem;
        padding: 0.4rem 0;
    }
    
    .award-navigation {
        height: 36px;
    }
    
    .winner-reveal-screen {
        gap: 0.5rem;
    }
}