/* Thanksgiving Color Palette */
:root {
    --thanksgiving-orange: #D2691E;
    --thanksgiving-dark-orange: #CC5500;
    --thanksgiving-cranberry: #8B0000;
    --thanksgiving-gold: #DAA520;
    --thanksgiving-brown: #8B4513;
    --thanksgiving-sage: #6B8E23;
    --thanksgiving-cream: #FAEBD7;
    --thanksgiving-tan: #D2B48C;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--thanksgiving-cream);
    color: #333;
}

a, .btn-link {
    color: var(--thanksgiving-dark-orange);
}

a:hover, .btn-link:hover {
    color: var(--thanksgiving-cranberry);
}

.btn-primary {
    color: #fff;
    background-color: var(--thanksgiving-orange);
    border-color: var(--thanksgiving-dark-orange);
}

.btn-primary:hover {
    background-color: var(--thanksgiving-dark-orange);
    border-color: var(--thanksgiving-cranberry);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Thanksgiving Theme Styles */
.module-card {
    background: linear-gradient(135deg, white 0%, var(--thanksgiving-cream) 100%);
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    margin: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 24px rgba(139, 69, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--thanksgiving-orange),
        var(--thanksgiving-gold),
        var(--thanksgiving-cranberry));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(139, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 20px rgba(139, 69, 19, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.card:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--thanksgiving-orange) 0%, var(--thanksgiving-dark-orange) 100%);
    color: white;
    font-weight: bold;
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.card-body {
    padding: 1.5rem;
}

/* Tournament Rankings */
.player-ranking {
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    border-left: 5px solid var(--thanksgiving-gold);
    padding: 1.25rem;
    margin: 0.75rem 0;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(139, 69, 19, 0.08);
    position: relative;
    overflow: hidden;
}

.player-ranking::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg,
        var(--thanksgiving-gold),
        var(--thanksgiving-orange));
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.player-ranking:hover {
    transform: translateX(4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(139, 69, 19, 0.12);
}

.player-ranking.rank-change {
    animation: rankChange 0.5s ease;
}

@keyframes rankChange {
    0% {
        transform: translateX(-20px);
        opacity: 0.5;
        box-shadow:
            0 8px 16px rgba(218, 165, 32, 0.3),
            0 0 20px rgba(218, 165, 32, 0.4);
    }
    50% {
        transform: translateX(10px);
        box-shadow:
            0 12px 24px rgba(218, 165, 32, 0.4),
            0 0 30px rgba(218, 165, 32, 0.5);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.rank-bar {
    background: linear-gradient(90deg,
        var(--thanksgiving-gold) 0%,
        var(--thanksgiving-orange) 100%);
    height: 36px;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding-left: 12px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.rank-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%);
}

/* Winner Celebration */
.celebration-container {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg,
        var(--thanksgiving-cream) 0%,
        var(--thanksgiving-tan) 50%,
        var(--thanksgiving-cream) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.celebration-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 70%);
    animation: celebration-glow 8s ease-in-out infinite;
}

@keyframes celebration-glow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 0.8; }
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.podium {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-place {
    background: var(--thanksgiving-gold);
    border: 4px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    animation: riseUp 1s ease;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.podium-place::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%);
}

.podium.first .podium-place {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg,
        #FFD700 0%,
        #FFA500 50%,
        #FFD700 100%);
    animation: riseUp 1s ease, first-glow 2s ease-in-out infinite;
    box-shadow:
        0 12px 24px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

@keyframes first-glow {
    0%, 100% { box-shadow:
        0 12px 24px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% { box-shadow:
        0 12px 24px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
}

.podium.second .podium-place {
    width: 140px;
    height: 170px;
    background: linear-gradient(135deg,
        #E8E8E8 0%,
        #C0C0C0 50%,
        #A8A8A8 100%);
    box-shadow:
        0 8px 16px rgba(192, 192, 192, 0.4),
        0 0 30px rgba(192, 192, 192, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.podium.third .podium-place {
    width: 140px;
    height: 130px;
    background: linear-gradient(135deg,
        #CD8032 0%,
        #CD7F32 50%,
        #8B4513 100%);
    box-shadow:
        0 6px 12px rgba(205, 127, 50, 0.4),
        0 0 25px rgba(205, 127, 50, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

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

.player-name-podium {
    margin-top: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--thanksgiving-brown);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--thanksgiving-gold);
    animation: confetti-fall 3s linear infinite;
    border-radius: 2px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(300px) rotate(360deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(600px) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

/* Voting Interface */
.game-list-item {
    padding: 1rem;
    margin: 0.75rem 0;
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(210, 180, 140, 0.1);
    position: relative;
    overflow: hidden;
}

.game-list-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--thanksgiving-tan), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.game-list-item:hover {
    border-color: var(--thanksgiving-orange);
    background: linear-gradient(135deg, var(--thanksgiving-cream) 0%, white 100%);
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(210, 105, 30, 0.15);
}

.game-list-item.selected {
    background: linear-gradient(135deg, var(--thanksgiving-orange) 0%, var(--thanksgiving-dark-orange) 100%);
    color: white;
    border-color: var(--thanksgiving-dark-orange);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(210, 105, 30, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ranked-list {
    min-height: 200px;
    background: linear-gradient(135deg, #fafafa 0%, white 100%);
    border: 2px dashed var(--thanksgiving-sage);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: inset 0 2px 8px rgba(107, 142, 35, 0.05);
}

.ranked-item {
    background: linear-gradient(135deg, var(--thanksgiving-gold) 0%, #DAA520 100%);
    color: white;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(218, 165, 32, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.ranked-item:hover {
    transform: translateX(4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tie-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
}

.tie-button-container button {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tie-button-container .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: 2px solid #ff9800;
    font-weight: bold;
}

.tied-player-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-badge {
    background: linear-gradient(135deg, var(--thanksgiving-cranberry) 0%, #660000 100%);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.rank-badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
}

/* Button Styles */
.btn-secondary {
    background-color: var(--thanksgiving-sage);
    border-color: var(--thanksgiving-sage);
    color: white;
}

.btn-secondary:hover {
    background-color: #556B2F;
    border-color: #556B2F;
}

.btn-success {
    background-color: var(--thanksgiving-sage);
    border-color: var(--thanksgiving-sage);
}

.btn-danger {
    background-color: var(--thanksgiving-cranberry);
    border-color: var(--thanksgiving-cranberry);
}

/* Material Symbols Icon Alignment */
.material-symbols-outlined {
    vertical-align: text-bottom;
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}

/* Welcome Screen Animations */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--thanksgiving-cream) 0%,
        var(--thanksgiving-orange) 50%,
        var(--thanksgiving-gold) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-content {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: welcome-fade-in 1s ease;
}

@keyframes welcome-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    animation: sparkle-twinkle 3s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: welcome-bounce 1s ease 0.3s backwards;
}

@keyframes welcome-bounce {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    60% {
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(139, 69, 19, 0.3),
        0 0 40px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
}

.welcome-voter-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--thanksgiving-brown);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-block;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(10px);
}

.welcome-election-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(139, 69, 19, 0.15);
    backdrop-filter: blur(10px);
    animation: card-slide-up 0.8s ease 0.6s backwards;
}

@keyframes card-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.election-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--thanksgiving-orange), var(--thanksgiving-gold));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.election-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--thanksgiving-brown);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.election-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--thanksgiving-brown);
}

.detail-icon {
    font-size: 1.5rem;
}

.welcome-instructions {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(139, 69, 19, 0.12);
    animation: card-slide-up 0.8s ease 0.9s backwards;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: instruction-pop 0.5s ease backwards;
}

.instruction-item:nth-child(1) { animation-delay: 1.2s; }
.instruction-item:nth-child(2) { animation-delay: 1.4s; }
.instruction-item:nth-child(3) { animation-delay: 1.6s; }

.instruction-item:last-child {
    margin-bottom: 0;
}

@keyframes instruction-pop {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.instruction-number {
    background: linear-gradient(135deg, var(--thanksgiving-cranberry), #990000);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow:
        0 4px 8px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.instruction-text {
    font-size: 1.125rem;
    color: var(--thanksgiving-brown);
    font-weight: 500;
}

.btn-start-voting {
    width: 100%;
    background: linear-gradient(135deg,
        var(--thanksgiving-orange) 0%,
        var(--thanksgiving-dark-orange) 50%,
        var(--thanksgiving-cranberry) 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 60px;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow:
        0 8px 16px rgba(139, 0, 0, 0.3),
        0 16px 32px rgba(139, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: button-glow 2s ease 1.8s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.btn-start-voting::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-start-voting:hover::before {
    transform: translateX(100%);
}

.btn-start-voting:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 12px 24px rgba(139, 0, 0, 0.4),
        0 24px 48px rgba(139, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-start-voting:active {
    transform: scale(0.98);
}

.btn-arrow {
    font-size: 2rem;
    transition: transform 0.3s;
}

.btn-start-voting:hover .btn-arrow {
    transform: translateX(10px);
}

.voting-interface {
    animation: voting-fade-in 0.8s ease;
}

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

.fade-in {
    animation: voting-fade-in 0.8s ease;
}

/* Drum Roll Animation */
.drumroll-container {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #2a1a0a, #000000);
    border-radius: 20px;
    margin-bottom: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: drumroll-pulse 2s ease-in-out infinite;
}

@keyframes drumroll-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(218, 165, 32, 0.3),
            inset 0 0 60px rgba(218, 165, 32, 0.1);
    }
    50% {
        box-shadow:
            0 0 40px rgba(218, 165, 32, 0.5),
            inset 0 0 80px rgba(218, 165, 32, 0.2);
    }
}

.drumroll-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.drumroll-drums {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.drum {
    font-size: 5rem;
    animation: drum-bounce 0.6s ease-in-out infinite;
}

.drum-left {
    animation-delay: 0s;
}

.drum-center {
    animation-delay: 0.2s;
}

.drum-right {
    animation-delay: 0.4s;
}

@keyframes drum-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

.drumroll-title {
    color: var(--thanksgiving-gold);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow:
        0 0 10px rgba(218, 165, 32, 0.5),
        0 0 20px rgba(218, 165, 32, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: title-glow 1.5s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(218, 165, 32, 0.5),
            0 0 20px rgba(218, 165, 32, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        opacity: 0.8;
        text-shadow:
            0 0 20px rgba(218, 165, 32, 0.8),
            0 0 40px rgba(218, 165, 32, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.drumroll-dots {
    color: var(--thanksgiving-gold);
    font-size: 3rem;
    margin: 1rem 0;
    letter-spacing: 0.5rem;
}

.drumroll-dots span {
    animation: dot-blink 1.4s infinite;
}

.drumroll-dots span:nth-child(1) {
    animation-delay: 0s;
}

.drumroll-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.drumroll-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-blink {
    0%, 20%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.drumroll-subtitle {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    margin-top: 2rem;
    animation: subtitle-fade 2s ease-in-out infinite;
}

@keyframes subtitle-fade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Welcome Screen Mobile Fixes */
    .welcome-screen {
        padding: 1rem;
    }

    .welcome-content {
        max-width: 100%;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-voter-name {
        font-size: 1.5rem;
        padding: 0.5rem 1.5rem;
    }

    .welcome-election-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .election-name {
        font-size: 1.75rem;
    }

    .welcome-instructions {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .instruction-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .instruction-text {
        font-size: 1rem;
    }

    .btn-start-voting {
        padding: 1.25rem 2rem;
        font-size: 1.5rem;
    }

    /* Ranked Items Mobile Fixes */
    .ranked-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ranked-item > div:first-child {
        width: 100%;
    }

    .ranked-item > div:last-child {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Make buttons in ranked items better on mobile */
    .ranked-item .btn-sm {
        flex: 1 1 auto;
        min-width: 80px;
    }

    /* Available games list mobile */
    .game-list-item {
        padding: 0.75rem;
    }

    .game-list-item .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .game-list-item .d-flex.align-items-center.justify-content-between > div {
        width: 100%;
    }

    .game-list-item .d-flex.align-items-center.justify-content-between > div:last-child {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .game-list-item .btn-sm {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 2rem;
    }

    .election-name {
        font-size: 1.5rem;
    }

    .detail-item {
        font-size: 1rem;
    }

    .btn-start-voting {
        padding: 1rem 1.5rem;
        font-size: 1.25rem;
    }

    /* Smaller margins on mobile for voting interface */
    .voting-interface {
        margin-top: 1rem;
    }

    .voting-interface h1 {
        font-size: 1.75rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    /* Adjust rank badge to stay circular on small screens */
    .rank-badge {
        min-width: 40px;
    }

    /* Drum roll mobile adjustments */
    .drumroll-container {
        padding: 1.5rem;
        min-height: 400px;
    }

    .drumroll-drums {
        gap: 1.5rem;
    }

    .drum {
        font-size: 3rem;
    }

    .drumroll-title {
        font-size: 2rem;
    }

    .drumroll-dots {
        font-size: 2rem;
    }

    .drumroll-subtitle {
        font-size: 1.5rem;
    }
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Voter Rankings Table */
.game-choice {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(139, 69, 19, 0.08);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--thanksgiving-brown);
    border: 1px solid rgba(139, 69, 19, 0.15);
    transition: all 0.2s ease;
}

.game-choice:hover {
    background-color: rgba(139, 69, 19, 0.12);
    border-color: rgba(139, 69, 19, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-highlighted {
    background-color: var(--thanksgiving-orange) !important;
    color: white !important;
    border-color: var(--thanksgiving-dark-orange) !important;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(210, 105, 30, 0.5);
}

.game-highlighted:hover {
    background-color: var(--thanksgiving-dark-orange) !important;
    transform: translateY(-1px) scale(1.05);
}

.table-striped tbody tr:hover {
    background-color: rgba(218, 165, 32, 0.05);
}

.table thead th {
    border-bottom: 2px solid var(--thanksgiving-brown);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Blazor Error UI - Hidden by default, shown only on errors */
#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui .reload {
        color: white;
        text-decoration: underline;
    }

/* Feedback Invitation Card */
.feedback-invitation-card {
    background: linear-gradient(135deg,
        var(--thanksgiving-cream) 0%,
        white 50%,
        var(--thanksgiving-cream) 100%);
    border: 2px solid var(--thanksgiving-gold);
    box-shadow:
        0 8px 16px rgba(218, 165, 32, 0.2),
        0 0 40px rgba(218, 165, 32, 0.1);
    transition: all 0.3s ease;
}

.feedback-invitation-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(218, 165, 32, 0.3),
        0 0 60px rgba(218, 165, 32, 0.15);
}