* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

body.clean-theme {
    background: linear-gradient(135deg, #e0f2f7 0%, #b3e5fc 100%);
    color: #333;
}

/* Top bar (centered) */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #00ff00;
    color: #00ff00;
    z-index: 1001;
}
body.clean-theme #top-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #2196f3;
    color: #2196f3;
}
#top-bar .top-label { font-weight: bold; }
#ca-value { font-family: monospace; }

/* Offset */
#game-container { margin-top: 54px; }

/* Twitter/X floating button */
#x-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.4);
    z-index: 1001;
}
body.clean-theme #x-button {
    background: rgba(255, 255, 255, 0.95);
    color: #2196f3;
    border-color: #2196f3;
    box-shadow: 0 0 16px rgba(33, 150, 243, 0.3);
}

#game-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    width: 95vw;
    height: 95vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

body.clean-theme #game-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#left-panel, #right-panel {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#left-panel {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

body.clean-theme #left-panel {
    background: rgba(255, 255, 255, 0.95);
    border-color: #2196f3;
    box-shadow: 0 0 25px rgba(33, 150, 243, 0.4);
}

#right-panel {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

body.clean-theme #right-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#multiplier-display {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 8px #00ff00;
}

body.clean-theme #multiplier-display {
    text-shadow: none;
    color: #2196f3;
}

#game-arena {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

#game-canvas {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ff00;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 400px;
    min-height: 400px;
}

body.clean-theme #game-canvas {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

body.clean-theme .stat-item {
    border-bottom-color: rgba(33, 150, 243, 0.3);
}

.stat-label {
    font-weight: bold;
    color: #00ff00;
}

body.clean-theme .stat-label {
    color: #2196f3;
}

#score-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

body.clean-theme #score-board {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
}

.player-score {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    min-width: 120px;
}

body.clean-theme .player-score {
    background: rgba(255, 255, 255, 0.8);
    border-color: #2196f3;
}

.player-name {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 0 5px #00ff00;
}

body.clean-theme .player-name {
    text-shadow: none;
    color: #2196f3;
}

.lives {
    font-size: 24px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff0000;
    animation: pulse 2s infinite;
}

body.clean-theme .lives {
    text-shadow: 0 0 5px #ff6b6b;
}

.vs-display {
    font-size: 28px;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    animation: pulse 1.5s infinite;
}

body.clean-theme .vs-display {
    color: #ff9800;
    text-shadow: 0 0 5px #ff9800;
}

#character-selection {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

#character-selection.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(30%);
}

.logo-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.logo-option:hover {
    border-color: #00ff00;
}

body.clean-theme .logo-option:hover {
    border-color: #2196f3;
}

.logo-option.selected {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

body.clean-theme .logo-option.selected {
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.logo-option img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff00;
    transition: all 0.3s ease;
}

body.clean-theme .logo-option img {
    border-color: #2196f3;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #00ff00;
    font-size: 14px;
}

body.clean-theme button {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border-color: #2196f3;
}

button:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
    transform: translateY(-2px);
}

body.clean-theme button:hover:not(:disabled) {
    background: rgba(33, 150, 243, 0.2);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#theme-switcher {
    background: linear-gradient(45deg, #00ff00, #ffff00);
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

body.clean-theme #theme-switcher {
    background: linear-gradient(45deg, #2196f3, #ff9800);
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

#theme-switcher:hover {
    background: linear-gradient(45deg, #ffff00, #00ff00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: translateY(-3px) scale(1.05);
}

body.clean-theme #theme-switcher:hover {
    background: linear-gradient(45deg, #ff9800, #2196f3);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
    transform: translateY(-3px) scale(1.05);
}

#victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

body.clean-theme #victory-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.victory-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #00ff00;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    max-width: 600px;
    width: 90%;
    animation: victory-appear 0.5s ease-out;
}

body.clean-theme .victory-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: #2196f3;
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.6);
    color: #333;
}

.victory-header {
    margin-bottom: 30px;
}

.victory-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #00ff00;
    animation: winner-glow 2s infinite;
}

body.clean-theme .victory-header h1 {
    text-shadow: 0 0 10px #2196f3;
    color: #2196f3;
}

.winner-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #00ff00;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

body.clean-theme .winner-avatar {
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.victory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #00ff00;
}

body.clean-theme .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: #2196f3;
}

.stat-card h3 {
    margin-bottom: 10px;
    color: #00ff00;
}

body.clean-theme .stat-card h3 {
    color: #2196f3;
}

.stat-card p {
    margin: 5px 0;
    font-size: 14px;
}

.victory-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.victory-actions button {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.victory-footer {
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    padding-top: 20px;
    font-size: 18px;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

body.clean-theme .victory-footer {
    border-top-color: rgba(33, 150, 243, 0.3);
    color: #ff9800;
    text-shadow: 0 0 5px #ff9800;
}

.hidden {
    display: none !important;
}

h3 {
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ff00;
}

body.clean-theme h3 {
    text-shadow: none;
    color: #2196f3;
}

ul {
    list-style: none;
    margin-bottom: 15px;
}

li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

body.clean-theme li {
    border-bottom-color: rgba(33, 150, 243, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes hurt {
    0% { transform: scale(1); opacity: 1; }
    15% { transform: scale(1.4); opacity: 0.5; }
    30% { transform: scale(0.7); opacity: 0.8; }
    45% { transform: scale(1.3); opacity: 0.6; }
    60% { transform: scale(0.9); opacity: 0.9; }
    75% { transform: scale(1.2); opacity: 0.7; }
    90% { transform: scale(0.95); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes heal {
    0% { transform: scale(1); }
    20% { transform: scale(1.25); }
    40% { transform: scale(0.95); }
    60% { transform: scale(1.2); }
    80% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

@keyframes victory-appear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes winner-glow {
    0%, 100% { text-shadow: 0 0 15px #00ff00; }
    50% { text-shadow: 0 0 25px #00ff00, 0 0 35px #00ff00; }
}

/* Clean theme animation variant (valid syntax) */
@keyframes winner-glow-blue {
    0%, 100% { text-shadow: 0 0 10px #2196f3; }
    50% { text-shadow: 0 0 20px #2196f3, 0 0 30px #2196f3; }
}

/* Use the blue animation when clean theme is active */
body.clean-theme .victory-header h1 {
    animation-name: winner-glow-blue !important;
}

/* Mobile UI - Scrollable Layout */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }
    
    #game-container {
        flex-direction: column;
        min-height: 100vh;
        width: 100%;
        padding: 10px;
        gap: 15px;
        box-sizing: border-box;
        overflow: visible;
    }
    
    /* Section 1: Game Area (Top Priority) */
    #center-panel {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.9);
        padding: 15px;
        border-radius: 15px;
        border: 2px solid #00ff00;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }
    
    body.clean-theme #center-panel {
        background: rgba(255, 255, 255, 0.95);
        border-color: #2196f3;
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
    }
    
    #multiplier-display {
        font-size: 18px;
        padding: 12px;
        text-align: center;
        background: rgba(0, 255, 0, 0.1);
        border-radius: 10px;
        border: 1px solid #00ff00;
        margin-bottom: 10px;
    }
    
    body.clean-theme #multiplier-display {
        background: rgba(33, 150, 243, 0.1);
        border-color: #2196f3;
    }
    
    #game-arena {
        width: 100%;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        border: 2px solid #00ff00;
        margin-bottom: 10px;
    }
    
    body.clean-theme #game-arena {
        background: rgba(255, 255, 255, 0.8);
        border-color: #2196f3;
    }
    
    /* Ensure canvas never exceeds arena */
    #game-arena {
        position: relative;
        overflow: hidden;
    }
    #game-canvas {
        max-width: 100%;
        max-height: 100%;
        /* Allow inline JS sizing to take effect for perfect square */
    }
    
    #game-canvas {
        width: 280px;
        height: 280px;
        border-radius: 10px;
    }
    
    /* Section 2: Score Board */
    #score-board {
        padding: 12px;
        margin: 0;
        background: rgba(0, 255, 0, 0.1);
        border-radius: 10px;
        border: 1px solid #00ff00;
        margin-bottom: 10px;
    }
    
    body.clean-theme #score-board {
        background: rgba(33, 150, 243, 0.1);
        border-color: #2196f3;
    }
    
    .player-score {
        min-width: 90px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 8px;
    }
    
    body.clean-theme .player-score {
        background: rgba(255, 255, 255, 0.6);
        border-color: rgba(33, 150, 243, 0.3);
    }
    
    .player-name {
        font-size: 12px;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .lives {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .vs-display {
        font-size: 22px;
        margin: 0 10px;
    }
    
    /* Section 3: Character Selection */
    #character-selection {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        margin: 0;
        padding: 10px 0;
    }
    
    .logo-option {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 3px solid #666;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.3);
    }
    
    body.clean-theme .logo-option {
        background: rgba(255, 255, 255, 0.6);
    }
    
    .logo-option.selected {
        border-color: #00ff00;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
        transform: scale(1.1);
    }
    
    body.clean-theme .logo-option.selected {
        border-color: #2196f3;
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.8);
    }
    
    .logo-option img {
        width: 65px;
        height: 65px;
        border-radius: 50%;
    }
    
    /* Section 4: Start Button */
    #start-button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        margin: 0;
        border-radius: 10px;
        font-weight: bold;
    }
    
    /* Section 5: Leaderboard & Stats */
    #left-panel {
        order: 2;
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 15px;
        border: 2px solid #00ff00;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        margin-top: 15px;
    }
    
    body.clean-theme #left-panel {
        background: rgba(255, 255, 255, 0.95);
        border-color: #2196f3;
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
    }
    
    #left-panel h3 {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
        color: #00ff00;
        text-shadow: 0 0 10px #00ff00;
    }
    
    body.clean-theme #left-panel h3 {
        color: #2196f3;
        text-shadow: 0 0 5px #2196f3;
    }
    
    #leaderboard-list {
        list-style: none;
        padding: 0;
        margin-bottom: 20px;
    }
    
    #leaderboard-list li {
        padding: 10px;
        margin-bottom: 8px;
        background: rgba(0, 255, 0, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        text-align: center;
        font-weight: bold;
    }
    
    body.clean-theme #leaderboard-list li {
        background: rgba(33, 150, 243, 0.1);
        border-color: rgba(33, 150, 243, 0.3);
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 8px;
        background: rgba(0, 255, 0, 0.05);
    }
    
    body.clean-theme .stat-item {
        background: rgba(33, 150, 243, 0.05);
        border-color: rgba(33, 150, 243, 0.3);
    }
    
    .stat-label {
        font-size: 14px;
        font-weight: bold;
    }
    
    /* Section 6: Controls */
    #right-panel {
        order: 3;
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 15px;
        border: 1px solid #00ff00;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
        margin-top: 15px;
    }
    
    body.clean-theme #right-panel {
        background: rgba(255, 255, 255, 0.9);
        border-color: #2196f3;
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
    }
    
    #right-panel h3 {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
        color: #00ff00;
        text-shadow: 0 0 10px #00ff00;
    }
    
    body.clean-theme #right-panel h3 {
        color: #2196f3;
        text-shadow: 0 0 5px #2196f3;
    }
    
    #right-panel ul {
        display: block;
        margin-bottom: 15px;
    }
    
    #right-panel li {
        font-size: 12px;
        margin-bottom: 5px;
        padding: 5px;
        background: rgba(0, 255, 0, 0.05);
        border-radius: 5px;
    }
    
    body.clean-theme #right-panel li {
        background: rgba(33, 150, 243, 0.05);
    }
    
    #theme-switcher, #reset-stats {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Mobile Victory Overlay - Improved */
    .victory-content {
        width: 90%;
        padding: 25px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 20px;
    }
    
    .victory-header h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .winner-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .victory-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .stat-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .stat-card p {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .victory-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .victory-actions button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .victory-footer {
        font-size: 16px;
        padding-top: 15px;
        margin-top: 15px;
    }
}

#center-panel .share-link {
    display: inline-block;
    margin: 6px 0 10px;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    transition: all 0.2s ease;
}

#center-panel .share-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

body.clean-theme #center-panel .share-link {
    border-color: #2196f3;
    color: #2196f3;
    background: rgba(33, 150, 243, 0.08);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

body.clean-theme #center-panel .share-link:hover {
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

/* Desktop: one-screen, no scroll */
@media (min-width: 769px) {
    html, body {
        height: 100%;
        overflow: hidden; /* no scroll on desktop */
    }
    #game-container {
        height: calc(100% - 54px);
        display: grid;
        grid-template-columns: 260px 1fr 260px;
        grid-gap: 16px;
        padding: 16px;
        box-sizing: border-box;
    }
    #left-panel, #center-panel, #right-panel {
        overflow: hidden;
    }
    #center-panel {
        display: flex;
        flex-direction: column;
        min-height: 0; /* allow flex child to shrink */
    }
    #multiplier-display,
    #score-board,
    #character-selection,
    #start-button {
        flex: 0 0 auto;
    }
    #game-arena {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 300px;
    }
    #game-canvas {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
}

/* Mobile keeps scroll from previous media queries */

