:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-gold: #ffd700;
    --accent-gold-dim: #ccaa00;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --border-subtle: #2d2d42;
    --border-focus: #ffd700;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-sharp: 0 2px 8px rgba(0, 0, 0, 0.5);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    
    --font-display: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

body {
    font-family: var(--font-system);
    background-color: var(--bg-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(22, 33, 62, 0.8) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
    }

    .nav-header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }

    .leaderboards-container {
        grid-template-columns: 2fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-performance {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    html {
        background: var(--bg-primary) !important;
    }
    
    body {
        background: var(--bg-primary) !important;
        background-image: 
            linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%),
            radial-gradient(circle at top left, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
            radial-gradient(circle at bottom right, rgba(22, 33, 62, 0.3) 0%, transparent 40%);
        background-attachment: scroll;
        background-size: 100% 100%, 50% 50%, 50% 50%;
        background-position: center, top left, bottom right;
        background-repeat: no-repeat;
    }
    
    .app-container {
        background: transparent;
        min-height: 100vh;
    }

    .nav-header {
        background: var(--bg-secondary);
    }

    .main-content {
        padding: 1rem;
    }
    
    .nav-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .vote-options {
        gap: 0.75rem;
    }
    
    .vote-option {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        background: rgba(26, 26, 46, 0.9);

    }

    .game-actions {
        flex-direction: column;
    }
    
    .recent-game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .leaderboard-header-row,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 60px 50px;
        font-size: 0.8rem;
    }
    
    .leaderboard-header-row span:nth-child(5),
    .leaderboard-row span:nth-child(5) {
        display: none;
    }
    
    .game-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-game-btn {
        align-self: stretch;
        text-align: center;
    }
    
    .winner-item {
        grid-template-columns: 1fr auto;
        gap: 0.25rem;
    }
    
    .profile-actions,
    .leaderboard-actions {
        flex-direction: column;
    }
}

/* Enhanced Profile Styles */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.join-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.score-breakdown {
    margin-bottom: 3rem;
}

.score-breakdown h2 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.games-performance {
    display: grid;
    gap: 1.5rem;
}

.game-performance-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}

.game-performance-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.perf-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 6px;
}

.perf-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
}

.perf-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Recent Games Section */
.recent-games-section {
    margin-bottom: 3rem;
}

.recent-games-section h2 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.games-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-history-item {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.game-history-item.winner {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.game-history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.game-history-info {
    flex: 1;
}

.game-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.game-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.game-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.game-title {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.game-result {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-badge.winner {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.result-badge.participant {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
}

.points {
    color: var(--accent-gold);
    font-weight: 600;
    font-family: var(--font-mono);
}

.view-game-btn {
    color: var(--accent-gold);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-game-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Platform Stats */
.platform-stats {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.platform-stat {
    text-align: center;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem 1rem;
}

.platform-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.platform-stat .stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Leaderboard Tables */
.leaderboards-container {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.overall-leaderboard h2 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.leaderboard-table {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.leaderboard-header-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 60px 60px;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.5);
    font-weight: 600;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 60px 60px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
    align-items: center;
}

.leaderboard-row:hover {
    background: rgba(22, 33, 62, 0.3);
}

.leaderboard-row.current-user {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.rank {
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.display-name {
    font-weight: 600;
    color: var(--text-primary);
}

.username {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.score {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
}

.games, .average {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-align: center;
}

/* Secondary Leaderboards */
.secondary-leaderboards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-leaderboard h3, .recent-winners h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.mini-leaderboard {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
}

.mini-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mini-leaderboard-item:last-child {
    border-bottom: none;
}

.mini-leaderboard-item.current-user {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0 -0.5rem;
}

.mini-rank {
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 1.5rem;
    text-align: center;
}

.mini-player {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.mini-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.mini-score {
    color: var(--accent-gold);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.mini-games {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Recent Winners */
.winners-list {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
}

.winner-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.winner-item:last-child {
    border-bottom: none;
}

.winner-name {
    font-weight: 600;
    color: var(--text-primary);
}

.winner-game {
    color: var(--text-secondary);
    font-size: 0.9rem;
    grid-column: 1;
}

.winner-points {
    color: var(--success);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.winner-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: right;
}

.empty-leaderboard, .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.profile-actions, .leaderboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-header {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dim) 100%);
    color: var(--bg-primary) !important;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.nav-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
    background: var(--accent-gold);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    cursor: pointer;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    background: none;
}

.nav-dropdown-content a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
}

.nav-user {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-gold) !important;
}

.nav-games {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.flash-messages {
    margin-bottom: 2rem;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    animation: slideInDown 0.3s ease;
}

.flash-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--error);
}

.flash-icon {
    font-size: 1.2rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
}

.card {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(22, 33, 62, 0.5);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-system);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(22, 33, 62, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-system);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dim) 100%);
    color: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
    background: var(--accent-gold);
}

.btn-secondary {
    background: rgba(22, 33, 62, 0.8);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(22, 33, 62, 1);
    border-color: var(--accent-gold);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.vote-option-wrapper {
    position: relative;
}

.vote-option-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vote-option {
    display: block;
    background: rgba(22, 33, 62, 0.3);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vote-option:hover {
    border-color: var(--accent-gold);
    background: rgba(22, 33, 62, 0.5);
    transform: translateX(8px);
}

.vote-option-wrapper input[type="radio"]:checked + .vote-option {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 215, 0, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3), var(--glow-gold);
    transform: translateX(8px);
}

.vote-option-wrapper input[type="radio"]:checked + .vote-option .vote-option-number {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.vote-option-wrapper input[type="radio"]:checked + .vote-option .vote-option-label {
    color: var(--accent-gold);
    font-weight: 700;
}

.vote-option-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.vote-option-number {
    font-family: var(--font-mono);
    color: var(--accent-gold);
    font-weight: 700;
    margin-right: 0.75rem;
}

.results-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.result-item {
    background: rgba(22, 33, 62, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-option {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.result-votes {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
}

.result-bar {
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-dim) 100%);
    transition: width 0.8s ease;
}

.winner-highlight {
    border-color: var(--success) !important;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
}

.polls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-item {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.poll-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.poll-topic {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.poll-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.poll-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-closed {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.app-footer {
    background: rgba(15, 15, 26, 0.9);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-style: italic;
}

.footer-text em {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-note {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.user-welcome {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.user-welcome h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.user-welcome p {
    color: var(--text-secondary);
    margin: 0;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Games Section */
.games-section {
    margin-bottom: 4rem;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 2rem;
}

.games-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover:not(.coming-soon) {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--glow-gold);
}

.coming-soon {
    opacity: 0.6;
    border-style: dashed;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.game-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.game-stats {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Dashboard Section */
.dashboard-section {
    margin-top: 3rem;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.dashboard-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.dashboard-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.recent-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.game-info {
    flex: 1;
}

.game-type {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.game-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.25rem 0;
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.game-status {
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.game-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.game-status.closed {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
}

.leaderboard-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 1.5rem;
}

.player-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.player-score {
    font-family: var(--font-mono);
    color: var(--accent-gold);
    font-weight: 600;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
}

.empty-state a {
    color: var(--accent-gold);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Username Page Styles */
.username-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.username-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.username-form {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

/* Profile & Leaderboard Styles */
.profile-header, .leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

.profile-info {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.profile-card {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.profile-card h2 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.username {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coming-soon {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.coming-soon h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Players List in Game */
.players-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.players-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.player-item.current-user {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-joined {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Winners Display */
.winners-announcement {
    margin-bottom: 3rem;
}

.winner-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-color: var(--success);
    text-align: center;
}

.winner-card h3 {
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.winner-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.winner-text strong {
    color: var(--success);
    font-weight: 700;
}

.winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.winner-badge {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.winner-name {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.winner-points {
    font-family: var(--font-mono);
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

/* All Players Results */
.all-players-section {
    margin: 3rem 0;
}

.all-players-section h3 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.players-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.player-result-item.winner {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.player-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.player-result-choice {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.score-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.score-badge.winner {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.score-badge.participant {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .winners-list {
        flex-direction: column;
    }
    
    .winner-badge {
        width: 100%;
        text-align: center;
    }
    
    .player-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .score-badge {
        align-self: center;
    }
}

/* ============================================
   JACKBOX-STYLE LOBBY SYSTEM
   ============================================ */

/* Jackbox Hero Section */
.jackbox-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.jackbox-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Lobby Action Cards */
.lobby-actions {
    margin-bottom: 4rem;
}

.action-cards {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.action-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: var(--glow-gold);
}

.action-card:hover::before {
    transform: scale(1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.action-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    line-height: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-item h4 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   LOBBY FORMS
   ============================================ */

.create-lobby-header,
.join-lobby-header,
.join-name-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.create-lobby-form,
.join-lobby-form,
.join-name-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lobby-form,
.name-form {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.options-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.topic-input {
    font-size: 1.1rem;
    font-weight: 600;
}

.option-input {
    font-family: var(--font-display);
}

.lobby-code-input {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.create-info,
.join-help {
    max-width: 500px;
    margin: 0 auto;
}

.info-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.code-example {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Lobby Code Display */
.lobby-code-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    display: inline-block;
}

.code-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-family: var(--font-mono);
}

.lobby-code {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lobby-code:hover {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.copy-btn {
    margin-left: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.lobby-details {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-item {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ============================================
   LOBBY WAITING ROOM
   ============================================ */

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 1rem;
}

.lobby-title {
    flex: 1;
}

.lobby-title h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.lobby-code-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.lobby-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-count {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.owner-badge {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Players Grid */
.players-section {
    margin-bottom: 3rem;
}

.players-section h2 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-display);
}

.players-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 2rem;
}

.player-card {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.player-card.owner {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

.player-card.current-player {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.player-card.empty {
    border-style: dashed;
    opacity: 0.5;
}

.player-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    font-family: var(--font-display);
}

.player-avatar.empty {
    background: var(--border-subtle);
    color: var(--text-muted);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.role-badge {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Host Controls */
.host-controls {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.control-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.control-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.control-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.settings-form {
    margin-bottom: 1rem;
}

.settings-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.game-options {
    margin-bottom: 1.5rem;
}

.game-option {
    position: relative;
    margin-bottom: 1rem;
}

.game-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.game-option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-option input[type="radio"]:checked + .game-option-label {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.game-icon {
    font-size: 1.5rem;
}

.game-name {
    font-weight: 600;
    color: var(--text-primary);
}

.game-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rounds-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rounds-selection label {
    color: var(--text-secondary);
    font-weight: 500;
}

.need-players {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.danger-zone {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.05);
}

/* Waiting Message */
.waiting-message {
    text-align: center;
    margin: 2rem 0;
}

.waiting-animation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   GAME ROUND STYLES
   ============================================ */

.round-setup-header,
.round-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.round-setup-header h1,
.round-header h1 {
    margin-bottom: 1rem;
}

.progress-bar {
    background: rgba(108, 117, 125, 0.2);
    border-radius: 10px;
    height: 20px;
    margin: 1rem auto;
    max-width: 400px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-gold) 0%, #ffed4e 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--bg-primary);
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.round-progress {
    margin-bottom: 2rem;
}

.round-label {
    display: block;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

/* Timer */
.timer-display {
    margin: 2rem 0;
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
}

.timer-circle.warning {
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.timer-circle.critical {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    animation: pulse-critical 1s infinite;
}

@keyframes pulse-critical {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timer-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Round Question */
.round-question {
    text-align: center;
    margin: 3rem 0;
}

.round-question h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.strategy-reminder {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.strategy-reminder strong {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Vote Submission Status */
.submitted-card {
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success);
}

.submitted-card h3 {
    color: var(--success);
    margin-bottom: 1rem;
}

.waiting-status {
    margin-top: 2rem;
}

.voting-progress-bar {
    background: rgba(108, 117, 125, 0.2);
    border-radius: 10px;
    height: 16px;
    margin: 1rem 0;
    overflow: hidden;
}

.voting-progress-fill {
    background: var(--success);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.owner-controls {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   RESULTS SCREENS
   ============================================ */

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.results-header h1 {
    margin-bottom: 1rem;
}

.round-topic {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-display);
}

.results-content {
    margin-bottom: 3rem;
}

.vote-breakdown {
    margin-bottom: 3rem;
}

.vote-breakdown h3 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.result-item {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.result-item.second-place {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--glow-gold);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-info {
    flex: 1;
}

.result-place {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-option {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-family: var(--font-display);
}

.winner-badge {
    background: var(--success);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-stats {
    text-align: right;
}

.result-votes {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.result-percentage {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.result-bar {
    background: rgba(108, 117, 125, 0.2);
    border-radius: 8px;
    height: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.result-bar-fill {
    background: linear-gradient(90deg, var(--text-secondary) 0%, var(--accent-gold) 100%);
    height: 100%;
    transition: width 1s ease;
    border-radius: 8px;
}

.result-item.second-place .result-bar-fill {
    background: linear-gradient(90deg, var(--accent-gold) 0%, #ffed4e 100%);
}

/* Round Winners */
.round-winners {
    margin: 3rem 0;
    text-align: center;
}

.round-winners h3 {
    color: var(--success);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.winner-card {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
}

.winner-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.winner-info {
    text-align: center;
}

.winner-name {
    display: block;
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.winner-choice {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.winner-points {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Lobby Standings */
.lobby-standings {
    margin: 3rem 0;
}

.lobby-standings h3 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.standings-list {
    max-width: 500px;
    margin: 0 auto;
}

.standing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.standing-item.top-3 {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

.standing-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 2rem;
    text-align: center;
}

.standing-player {
    flex: 1;
}

.standing-name {
    font-weight: 600;
    color: var(--text-primary);
}

.standing-score {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
}

/* Game Controls */
.game-controls {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

/* ============================================
   FINAL RESULTS & PODIUM
   ============================================ */

.final-results-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.final-results-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-results-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.games-summary {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Podium */
.podium-section {
    margin: 4rem 0;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.podium-position {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.podium-player {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.podium-player.winner {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--glow-gold);
}

.podium-crown {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.podium-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    font-family: var(--font-display);
}

.podium-name {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.podium-score {
    display: block;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
}

.podium-base {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-mono);
}

.podium-position.first .podium-base {
    padding: 2rem 1rem;
}

.podium-position.second .podium-base {
    padding: 1.5rem 1rem;
    background: #c0c0c0;
    color: var(--bg-primary);
}

.podium-position.third .podium-base {
    padding: 1rem;
    background: #cd7f32;
    color: var(--bg-primary);
}

/* Full Rankings */
.full-rankings {
    margin: 4rem 0;
}

.full-rankings h3 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.rankings-list {
    max-width: 600px;
    margin: 0 auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ranking-item.winner {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--glow-gold);
}

.ranking-position {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.5rem;
    min-width: 3rem;
    text-align: center;
}

.ranking-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.ranking-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-display);
}

.ranking-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.ranking-stats {
    text-align: right;
}

.ranking-score {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.3rem;
}

/* Games Summary */
.games-summary-section {
    margin: 3rem 0;
    text-align: center;
}

.games-summary-section h3 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.games-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-summary-item {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.game-type {
    font-weight: 600;
    color: var(--text-primary);
}

.game-time {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Final Actions */
.final-actions {
    text-align: center;
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

.host-final-controls {
    margin-bottom: 2rem;
}

.destruction-warning {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 2rem;
}

.waiting-for-host {
    margin-bottom: 2rem;
}

.thanks-message {
    margin-top: 3rem;
    text-align: center;
}

.thanks-message h3 {
    color: var(--success);
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN UPDATES
   ============================================ */

@media (max-width: 768px) {
    .lobby-header {
        flex-direction: column;
        text-align: center;
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .jackbox-hero h1 {
        font-size: 2.5rem;
    }
    
    .round-question h1 {
        font-size: 2rem;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-position {
        max-width: 250px;
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-stats {
        text-align: left;
    }
    
    .winners-list {
        flex-direction: column;
        align-items: center;
    }
    
    .winner-card {
        width: 100%;
        max-width: 250px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .game-options {
        flex-direction: column;
    }
    
    .rounds-selection {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ranking-item {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .ranking-stats {
        text-align: left;
        width: 100%;
    }
}

/* Button Variants */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
    color: white;
    border: 2px solid var(--success);
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: var(--bg-primary);
    border: 2px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   LOBBY SETUP PAGE
   ============================================ */

.setup-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.setup-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.setup-header h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.setup-content {
    margin-bottom: 3rem;
}

.setup-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .setup-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.setup-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-list {
    margin-bottom: 2rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.setting-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.setting-actions {
    text-align: center;
}

/* Status Info */
.status-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.status-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
}

.status-details {
    flex: 1;
}

.status-value {
    display: block;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.status-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Instructions */
.setup-instructions {
    margin-bottom: 3rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.instruction-item.complete {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.instruction-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
    margin-top: 0.25rem;
}

.instruction-content {
    flex: 1;
}

.instruction-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.instruction-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Setup Actions */
.setup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Share Helper */
.share-helper {
    margin-bottom: 2rem;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-option strong {
    color: var(--text-primary);
    min-width: 100px;
}

.share-input {
    flex: 1;
    min-width: 200px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: text;
}

.share-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.share-text p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-message {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.share-message:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Poll Setup Styles */
.poll-setup-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.round-info {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.round-badge,
.poll-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.creator-info {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

/* Turn Order Display */
.poll-progress {
    margin-bottom: 3rem;
    text-align: center;
}

.turn-order {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.turn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.turn-item.current {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--accent-gold);
}

.turn-item.completed {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success);
}

.turn-item.upcoming {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid var(--border-subtle);
}

.turn-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
}

.turn-item.current .turn-number {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.turn-item.completed .turn-number {
    background: var(--success);
    color: white;
}

.turn-item.upcoming .turn-number {
    background: var(--text-muted);
    color: var(--bg-primary);
}

.turn-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Wait Page Styles */
.wait-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.creator-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.creator-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    font-family: var(--font-display);
}

.creator-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Turn List */
.turn-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.turn-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.turn-item.current {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.turn-item.completed {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
    opacity: 0.8;
}

.turn-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-display);
}

.turn-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.turn-name {
    font-weight: 600;
    color: var(--text-primary);
}

.turn-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.turn-indicator {
    font-size: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .round-info {
        flex-direction: column;
        align-items: center;
    }
    
    .turn-order {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .turn-item {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
    }
    
    .turn-list .turn-item {
        flex-wrap: wrap;
        text-align: center;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-actions {
        flex-direction: column;
    }
    
    .setup-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .share-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-option strong {
        min-width: auto;
    }
    
    .share-input {
        width: 100%;
    }
    
    .status-info {
        gap: 1rem;
    }
    
    .status-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .instruction-item {
        flex-direction: column;
        text-align: center;
    }
    
    .instruction-icon {
        width: auto;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card, .poll-item {
    animation: fadeInUp 0.4s ease;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

@supports (-webkit-touch-callout: none) {
    html, body {
        background-color: var(--bg-primary) !important;
    }
    
    body {
        -webkit-background-size: cover;
        background-size: cover;
        background-attachment: scroll !important;
    }
    
    @media (max-width: 767px) {
        html, body, .app-container {
            background: var(--bg-primary) !important;
        }
        
        body {
            background-image: 
                radial-gradient(circle at top left, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(22, 33, 62, 0.3) 0%, transparent 40%) !important;
        }
    }
}