* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0a0a3a;
    color: white;
    min-height: 100vh;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="50" height="50" x="0" y="0" fill="%23131342" /><rect width="50" height="50" x="50" y="50" fill "%23131342" /></svg>');
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border: 4px solid #ff00ff;
    border-radius: 12px;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 10px #ff00ff;
    animation: neon-pulse 2s infinite alternate;
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.container.show {
    opacity: 1;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 8px;
    box-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, 0.5);
    border: 2px solid #00ffff;
}

h1 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700, 0 0 20px #ffd700;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2, h3 {
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
    letter-spacing: 1px;
}

.logo {
    height: 80px;
    margin: 10px 0;
    filter: drop-shadow(0 0 8px #ffd700);
}

.countries-container, .scoreboard-container, .announcement-container, .winner-container {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #ff00ff;
    border: 2px solid #ff00ff;
    position: relative;
}

.countries-container::before, .scoreboard-container::before, 
.announcement-container::before, .winner-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    animation: gradient-border 3s ease infinite;
}

.country-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"] {
    padding: 10px;
    border: 2px solid #00ffff;
    border-radius: 4px;
    background-color: #252560;
    color: white;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 0 8px #00ffff;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
}

button {
    padding: 10px 15px;
    background-color: #4a4a9a;
    color: white;
    border: 2px solid #ff00ff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px white;
    box-shadow: 0 0 10px #ff00ff;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

button:hover {
    background-color: #5a5aaa;
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff00ff;
}

button:disabled {
    background-color: #3a3a6a;
    cursor: not-allowed;
}

.action-button {
    background-color: #ffd700;
    color: #0a0a3a;
    font-weight: bold;
    padding: 12px 24px;
    font-size: 16px;
    display: block;
    margin: 20px auto;
    width: fit-content;
    border-radius: 8px;
    border: 3px solid #ff9900;
    box-shadow: 0 5px 0 #cc9900, 0 0 20px rgba(255, 215, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 14px;
}

.action-button:hover {
    background-color: #ffea00;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 7px 0 #cc9900, 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px white, 0 0 10px white;
}

.action-button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #cc9900, 0 0 15px rgba(255, 215, 0, 0.6);
}

.action-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.country-list {
    background-color: #252560;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #00ffff;
    box-shadow: inset 0 0 10px #00ffff;
}

.country-list ul {
    list-style-type: none;
}

.country-list li {
    padding: 10px;
    margin: 5px 0;
    background-color: #3a3a7a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 5px #00ffff;
    border-left: 3px solid #00ffff;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
}

.country-list li button {
    background-color: #ff4757;
    padding: 5px 10px;
}

.country-list li button:hover {
    background-color: #ff6b81;
}

.scoreboard-container {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #ff00ff;
    border: 2px solid #ff00ff;
    position: relative;
}

.scoreboard-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    animation: gradient-border 3s ease infinite;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ff00ff;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
}

th {
    background-color: #2a2a5a;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
    border-bottom: 2px solid #ff00ff;
}

tr:nth-child(even) {
    background-color: #252560;
}

tr:hover {
    background-color: #3a3a7a;
}

.announcement-container {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #ff00ff;
    border: 2px solid #ff00ff;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.announcement-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    animation: gradient-border 3s ease infinite;
}

.presenter {
    margin-bottom: 20px;
}

.voting-country {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
}

.announcement {
    font-size: 24px;
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    text-shadow: 0 0 5px white, 0 0 10px white;
}

.points-animation {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px gold;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.winner-container {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px #ff00ff;
    border: 2px solid #ff00ff;
    position: relative;
    animation: winner-pulse 2s infinite, neon-border 1.5s infinite alternate;
}

.winner-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    animation: gradient-border 3s ease infinite;
}

.winner-info {
    margin: 20px 0;
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 10px #ff9900, 0 0 20px #ff9900, 0 0 30px #ff9900;
    animation: text-flicker 1.5s infinite alternate, pixel-jump 0.5s infinite alternate;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
}

.hidden {
    display: none !important;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

.stats-section {
    padding: 10px;
    text-align: center;
    width: 45%;
}

.stats-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700;
    font-size: 16px;
}

.stats-list {
    list-style-type: none;
    padding: 0;
}

.stats-list li {
    background-color: #252560;
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
    border-left: 3px solid #ff00ff;
    box-shadow: 0 0 5px #ff00ff;
    animation: neon-pulse 1.5s infinite alternate;
}

.format-note {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff;
    text-align: center;
}

.format-title {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ffd700;
}

.format-note ul {
    text-align: left;
    margin: 10px 0 10px 20px;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.format-note ul li {
    margin-bottom: 8px;
    text-shadow: 0 0 5px #00ffff;
}

.qualified {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px #ffd700;
    font-size: 24px;
    text-align: center;
}

@keyframes pulse-row {
    0% {
        background-color: #ffd700 !important;
        transform: scale(1);
    }
    50% {
        background-color: #ff9900 !important;
        transform: scale(1.02);
    }
    100% {
        background-color: #ffd700 !important;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        left: -200%;
    }
    100% {
        left: 200%;
    }
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    }
    to {
        box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
    }
}

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

@keyframes winner-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes neon-border {
    from {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff9900, 0 0 40px #ff9900;
    }
    to {
        box-shadow: 0 0 20px #fff, 0 0 30px #ffbd3e, 0 0 40px #ffbd3e, 0 0 50px #ffbd3e;
    }
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pixel-jump {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes arcade-pulse {
    from {
        text-shadow: 0 0 15px #ff9900, 0 0 25px #ff6600, 0 0 35px #ff3300;
        transform: scale(1) rotate(-2deg);
    }
    to {
        text-shadow: 0 0 25px #ff9900, 0 0 35px #ff6600, 0 0 45px #ff3300, 0 0 55px #ff0000;
        transform: scale(1.1) rotate(2deg);
    }
}

@keyframes neon-highlight {
    from {
        box-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700;
    }
    to {
        box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
    }
}

@keyframes scale {
    0% {
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.8);
    }
    100% {
        transform: scale(1);
    }
}

.twelve-points {
    animation: scale 1s ease-in-out, arcade-pulse 0.7s infinite alternate;
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px #ff9900, 0 0 25px #ff6600, 0 0 35px #ff3300;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.televote-points-animation {
    animation: scale 0.5s ease-in-out, arcade-pulse 0.7s infinite alternate;
    font-size: 42px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px #00aaff, 0 0 25px #0077ff, 0 0 35px #0044ff;
    font-family: 'Press Start 2P', cursive, 'Arial', sans-serif;
}

.highlight {
    background-color: #ffd700 !important;
    color: #0a0a3a !important;
    font-weight: bold;
    animation: pulse-row 1s infinite, neon-highlight 1.5s infinite alternate;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #ffd700, inset 0 0 5px #ffd700;
    border-left: 5px solid #ff9900;
}

.ai-button {
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    margin-left: 10px;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 0 10px #00ff88;
    transition: all 0.3s;
}

.ai-button:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 20px #00ff88;
    transform: scale(1.05);
}

.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ai-modal-content {
    background-color: #1a1a4a;
    border: 3px solid #00ffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    height: 70%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px #00ffff;
    animation: neon-pulse 2s infinite alternate;
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 9px 9px 0 0;
}

.ai-modal-header h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #0a0a3a;
    margin: 0;
}

.ai-message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    line-height: 1.5;
}

.ai-message.user {
    background-color: #2a2a5a;
    border-left: 4px solid #00ffff;
    margin-left: 20px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.ai-message.assistant {
    background-color: #3a3a7a;
    border-left: 4px solid #ffd700;
    margin-right: 20px;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
}

.ai-input-container {
    display: flex;
    padding: 15px;
    border-top: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 0 0 9px 9px;
    gap: 10px;
}

.ai-input-container input {
    flex: 1;
    padding: 12px;
    background-color: #1a1a4a;
    border: 2px solid #00ffff;
    border-radius: 6px;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    box-shadow: 0 0 8px #00ffff;
}

.ai-input-container button {
    padding: 12px 20px;
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff88;
    transition: all 0.3s;
}

.ai-input-container button:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 20px #00ff88;
    transform: scale(1.05);
}

.ai-input-container button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.odds-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.odds-modal-content {
    background-color: #1a1a4a;
    border: 3px solid #ffd700;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px #ffd700;
    animation: neon-pulse 2s infinite alternate;
}

.odds-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 9px 9px 0 0;
}

.odds-modal-header h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
}

.odds-instructions {
    padding: 15px;
    background-color: #252560;
    border-bottom: 1px solid #ff00ff;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    line-height: 1.6;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.odds-list {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #0a0a3a;
}

.odds-item {
    display: flex;
    align-items: center;
    background-color: #2a2a5a;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px;
    cursor: move;
    transition: all 0.3s;
    box-shadow: 0 0 8px #ff00ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.odds-item:hover {
    background-color: #3a3a7a;
    box-shadow: 0 0 15px #ff00ff;
    transform: scale(1.02);
}

.odds-item:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.odds-rank {
    background-color: #ffd700;
    color: #0a0a3a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
    box-shadow: 0 0 10px #ffd700;
    text-shadow: none;
}

#share-results-button {
    background-color: #00ff88;
    color: #0a0a3a;
    border: 3px solid #00cc66;
    margin-top: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

#share-results-button:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
    transform: translateY(-2px) scale(1.05);
}

.editable-score {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #1a1a4a;
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #ffd700;
    box-shadow: 0 0 5px #ffd700;
    text-shadow: 0 0 3px #ffd700;
}

.score-input {
    width: 35px;
    background-color: #0a0a3a;
    border: 1px solid #00ffff;
    border-radius: 3px;
    color: white;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 2px;
}

.score-input:focus {
    outline: none;
    box-shadow: 0 0 8px #00ffff;
}

.settings-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #4a4a9a;
    color: white;
    border: 2px solid #00ffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #00ffff;
}

.settings-button:hover {
    background-color: #5a5aaa;
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff;
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.settings-modal-content {
    background-color: #1a1a4a;
    border: 3px solid #00ffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 70%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px #00ffff;
    animation: neon-pulse 2s infinite alternate;
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 9px 9px 0 0;
}

.settings-modal-header h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
}

.settings-content {
    padding: 20px;
    background-color: #0a0a3a;
    border-radius: 0 0 9px 9px;
}

.setting-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #ffd700;
}

.language-select {
    width: 100%;
    padding: 10px;
    background-color: #252560;
    border: 2px solid #00ffff;
    border-radius: 6px;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    box-shadow: 0 0 8px #00ffff;
}

.language-select:focus {
    outline: none;
    box-shadow: 0 0 15px #00ffff;
}

.language-select option {
    background-color: #252560;
    color: white;
    padding: 5px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff6b6b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: gradient-shift 3s ease-in-out infinite;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
}

.stage {
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff9900);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto;
    box-shadow: 0 0 30px #ffd700, 0 0 60px rgba(255, 215, 0, 0.5);
    animation: stage-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.stage::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    border-radius: 55px;
    z-index: -1;
    animation: gradient-border 2s ease infinite;
}

.performer {
    font-size: 36px;
    animation: performer-dance 0.8s ease-in-out infinite alternate;
    text-shadow: 0 0 20px white;
}

.audience {
    display: flex;
    justify-content: space-around;
    width: 400px;
    margin: 0 auto 40px auto;
    flex-wrap: wrap;
    gap: 10px;
}

.fan {
    font-size: 24px;
    animation: fan-jump 1s ease-in-out infinite;
    text-shadow: 0 0 10px white;
}

.fan1 { animation-delay: 0s; }
.fan2 { animation-delay: 0.1s; }
.fan3 { animation-delay: 0.2s; }
.fan4 { animation-delay: 0.3s; }
.fan5 { animation-delay: 0.4s; }
.fan6 { animation-delay: 0.5s; }
.fan7 { animation-delay: 0.6s; }
.fan8 { animation-delay: 0.7s; }

.loading-text h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
    margin-bottom: 20px;
    animation: title-pulse 2s ease-in-out infinite alternate;
}

.loading-text p {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    animation: text-flicker 1.5s ease-in-out infinite;
}

.loading-screen.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    pointer-events: none;
}

.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff6b6b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    animation: gradient-shift 3s ease-in-out infinite;
}

.thank-you-content {
    text-align: center;
    color: white;
    padding: 40px;
    background-color: rgba(26, 26, 74, 0.9);
    border: 3px solid #ffd700;
    border-radius: 20px;
    box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
    animation: thank-you-glow 2s ease-in-out infinite alternate;
    max-width: 600px;
}

.thank-you-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
    margin-bottom: 25px;
    animation: title-pulse 2s ease-in-out infinite alternate;
}

.thank-you-content p {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.enjoy-text {
    font-size: 18px !important;
    color: #ff00ff !important;
    text-shadow: 0 0 15px #ff00ff !important;
    animation: text-sparkle 1.5s ease-in-out infinite alternate;
    margin-top: 30px !important;
}

.thank-you-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    pointer-events: none;
}

@keyframes thank-you-glow {
    from {
        box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 60px #ffd700, 0 0 120px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

@keyframes text-sparkle {
    from {
        text-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff;
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 25px #ff00ff, 0 0 35px #ff00ff, 0 0 45px #ff00ff;
        transform: scale(1.05);
    }
}

@keyframes gradient-shift {
    0% { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff6b6b 100%); }
    33% { background: linear-gradient(135deg, #ff6b6b 0%, #1e3c72 50%, #2a5298 100%); }
    66% { background: linear-gradient(135deg, #2a5298 0%, #ff6b6b 50%, #1e3c72 100%); }
    100% { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff6b6b 100%); }
}

@keyframes stage-glow {
    from {
        box-shadow: 0 0 30px #ffd700, 0 0 60px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 50px #ffd700, 0 0 100px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

@keyframes performer-dance {
    from {
        transform: translateY(0) rotate(-5deg);
    }
    to {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes fan-jump {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

@keyframes title-pulse {
    from {
        text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 30px #ffd700, 0 0 60px #ffd700, 0 0 80px #ffd700;
        transform: scale(1.02);
    }
}

.secret-unlock-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a4a;
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
    animation: secret-glow 2s ease-in-out infinite alternate;
}

.unlock-content h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ffd700;
    animation: sparkle 1s ease-in-out infinite alternate;
}

.unlock-content p {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ffff;
    line-height: 1.5;
}

.secret-unlocked {
    animation: title-sparkle 2s ease-in-out infinite;
}

.secret-unlock-message.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

@keyframes secret-glow {
    from {
        box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        box-shadow: 0 0 60px #ffd700, 0 0 120px rgba(255, 215, 0, 0.8);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

@keyframes sparkle {
    from {
        text-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700;
    }
    to {
        text-shadow: 0 0 25px #ffd700, 0 0 35px #ffd700, 0 0 45px #ffd700;
    }
}

@keyframes title-sparkle {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700, 0 0 20px #ffd700;
    }
    50% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700;
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700, 0 0 20px #ffd700;
    }
}

.news-button {
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    transition: all 0.3s;
}

.news-button:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 15px #00ff88;
    transform: scale(1.05);
}

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.news-modal-content {
    background-color: #1a1a4a;
    border: 3px solid #00ff88;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 30px #00ff88;
    animation: neon-pulse 2s infinite alternate;
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 9px 9px 0 0;
}

.news-modal-header h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
}

.news-content {
    padding: 20px;
    background-color: #0a0a3a;
    border-radius: 0 0 9px 9px;
}

.news-fact {
    color: #00ff88;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ff88;
}

.news-disclaimer {
    color: #ff00ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    font-style: italic;
    text-shadow: 0 0 3px #ff00ff;
}

.fun-fact {
    font-family: 'Press Start 2P', cursive;
    animation: fact-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 8px #ff00ff;
}

@keyframes fact-glow {
    from {
        text-shadow: 0 0 8px #ff00ff;
    }
    to {
        text-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff;
    }
}

.adhd-minigame {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 250px;
    height: 200px;
    background-color: rgba(26, 26, 74, 0.9);
    border: 2px solid #ffd700;
    border-radius: 10px;
    z-index: 999;
    box-shadow: 0 0 15px #ffd700;
    animation: neon-pulse 3s infinite alternate;
}

.minigame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #252560;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #ffd700;
}

.minigame-title {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-shadow: 0 0 5px #ffd700;
}

.minigame-score {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-shadow: 0 0 5px #00ffff;
}

.minigame-area {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.bubble {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    animation: bubble-float 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.bubble:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(120deg);
    }
    66% {
        transform: translateY(5px) rotate(240deg);
    }
}

.tutorial-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #00ff88;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.tutorial-button:hover {
    background-color: #00ffaa;
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ff88;
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tutorial-popup {
    background-color: #1a1a4a;
    border: 3px solid #ffd700;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
    animation: tutorial-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.tutorial-center {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ff00ff;
    background-color: #252560;
    border-radius: 12px 12px 0 0;
}

.tutorial-header h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
    margin: 0;
}

.tutorial-progress {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #00ffff;
}

.tutorial-content {
    padding: 25px;
    background-color: #0a0a3a;
}

.tutorial-content p {
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 3px #ffffff;
}

.tutorial-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #252560;
    border-radius: 0 0 12px 12px;
    border-top: 2px solid #ff00ff;
    gap: 10px;
}

.tutorial-btn {
    padding: 10px 15px;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.tutorial-btn.primary {
    background-color: #ffd700;
    color: #0a0a3a;
    border-color: #ff9900;
    box-shadow: 0 0 10px #ffd700;
}

.tutorial-btn.primary:hover {
    background-color: #ffea00;
    box-shadow: 0 0 20px #ffd700;
    transform: scale(1.05);
}

.tutorial-btn.secondary {
    background-color: #4a4a9a;
    color: white;
    border-color: #ff00ff;
    box-shadow: 0 0 8px #ff00ff;
}

.tutorial-btn.secondary:hover {
    background-color: #5a5aaa;
    box-shadow: 0 0 15px #ff00ff;
    transform: scale(1.05);
}

.tutorial-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px #ffd700, 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6) !important;
    border-radius: 8px;
    animation: tutorial-highlight-pulse 2s ease-in-out infinite;
}

.tutorial-complete-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a4a;
    border: 3px solid #00ff88;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 0 40px #00ff88, 0 0 80px rgba(0, 255, 136, 0.5);
    animation: tutorial-complete-glow 2s ease-in-out infinite alternate;
}

.tutorial-complete-content h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ffd700;
    animation: sparkle 1s ease-in-out infinite alternate;
}

.tutorial-complete-content p {
    color: #00ff88;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ff88;
    line-height: 1.5;
}

.tutorial-complete-message.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

@keyframes tutorial-glow {
    from {
        box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        box-shadow: 0 0 60px #ffd700, 0 0 120px rgba(255, 215, 0, 0.8);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.tutorial-center .tutorial-glow {
    from {
        box-shadow: 0 0 40px #ffd700, 0 0 80px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 60px #ffd700, 0 0 120px rgba(255, 215, 0, 0.8);
    }
}

@keyframes tutorial-highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px #ffd700, 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6) !important;
    }
    50% {
        box-shadow: 0 0 0 8px #ffd700, 0 0 30px #ffd700, 0 0 60px rgba(255, 215, 0, 0.8) !important;
    }
}

@keyframes tutorial-complete-glow {
    from {
        box-shadow: 0 0 40px #00ff88, 0 0 80px rgba(0, 255, 136, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        box-shadow: 0 0 60px #00ff88, 0 0 120px rgba(0, 255, 136, 0.8);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.mode-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mode-selection-content {
    background-color: #1a1a4a;
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 40px #ffd700;
    animation: neon-pulse 2s infinite alternate;
    max-width: 600px;
}

.mode-selection-content h2 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #ffd700;
}

.mode-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-button {
    background-color: #252560;
    border: 3px solid #00ffff;
    border-radius: 12px;
    padding: 30px 20px;
    width: 250px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px #00ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mode-button:hover {
    background-color: #3a3a7a;
    transform: scale(1.05);
    box-shadow: 0 0 25px #00ffff;
}

.mode-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.mode-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
    margin-bottom: 10px;
}

.mode-description {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    line-height: 1.4;
    margin-top: 2px;
}

.multiplayer-lobby {
    background-color: rgba(26, 26, 74, 0.9);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff00ff;
}

.lobby-header h2 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    text-shadow: 0 0 10px #ffd700;
}

.lobby-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.lobby-info {
    background-color: #252560;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ff00ff;
}

.room-info {
    margin-bottom: 20px;
}

.room-info p {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #00ffff;
}

.game-mode-selector h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ffd700;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.mode-option:hover {
    background-color: #3a3a7a;
}

.mode-option input[type="radio"] {
    accent-color: #00ffff;
    transform: scale(1.2);
    margin-top: 2px;
}

.mode-option span {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #00ffff;
    min-width: 80px;
}

.mode-desc {
    color: #ff00ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-shadow: 0 0 3px #ff00ff;
    line-height: 1.4;
    margin-top: 2px;
}

.players-list {
    background-color: #252560;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ff00ff;
}

.players-list h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ffd700;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 8px 0;
    background-color: #3a3a7a;
    border-radius: 6px;
    border-left: 3px solid #00ffff;
    box-shadow: 0 0 5px #00ffff;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.player-name {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #00ffff;
    flex: 1;
}

.player-countries {
    color: #ff00ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-shadow: 0 0 3px #ff00ff;
}

.host-badge {
    background-color: #ffd700;
    color: #0a0a3a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    font-weight: bold;
}

.competitive-scores {
    grid-column: span 3;
    background-color: #252560;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ffd700;
    margin-top: 20px;
}

.competitive-scores h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ffd700;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #3a3a7a;
    border-radius: 6px;
    border-left: 3px solid #ffd700;
}

.score-player {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #00ffff;
}

.score-points {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #ffd700;
    font-weight: bold;
}

.lobby-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #ff00ff;
}

.secondary-button {
    background-color: #4a4a9a;
    color: white;
    border: 2px solid #ff00ff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 0 0 8px #ff00ff;
}

.secondary-button:hover {
    background-color: #5a5aaa;
    box-shadow: 0 0 15px #ff00ff;
    transform: scale(1.05);
}

.multiplayer-info {
    background-color: #252560;
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #00ffff;
    text-align: center;
}

.multiplayer-info p {
    color: #00ffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin: 5px 0;
    text-shadow: 0 0 5px #00ffff;
}

.multiplayer-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.lobby-chat {
    background-color: #252560;
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #00ffff;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.lobby-chat h3 {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ffd700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background-color: #0a0a3a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ff00ff;
}

.chat-message {
    margin: 8px 0;
    padding: 8px;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    line-height: 1.4;
    background-color: #3a3a7a;
    border-left: 3px solid #00ffff;
}

.chat-message .chat-username {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px #ffd700;
    margin-right: 8px;
}

.chat-message .chat-text {
    color: #ffffff;
    text-shadow: 0 0 3px #ffffff;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 8px;
    background-color: #1a1a4a;
    border: 2px solid #00ffff;
    border-radius: 4px;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    box-shadow: 0 0 5px #00ffff;
}

.chat-input-container input:focus {
    outline: none;
    box-shadow: 0 0 10px #00ffff;
}

.chat-send-button {
    padding: 8px 15px;
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    transition: all 0.3s;
    box-shadow: 0 0 8px #00ff88;
}

.chat-send-button:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 15px #00ff88;
    transform: scale(1.05);
}

.chat-send-button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#national-final-mode {
    background-color: #ff00ff;
    color: #0a0a3a;
    border: 2px solid #cc00cc;
    margin-left: 10px;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 0 10px #ff00ff;
    transition: all 0.3s;
}

#national-final-mode:hover {
    background-color: #ff33ff;
    box-shadow: 0 0 20px #ff00ff;
    transform: scale(1.05);
}

.nf-songs-list {
    background-color: #0a0a3a;
    border: 2px solid #00ffff;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

.nf-song-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #252560;
    border-radius: 6px;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 5px #ff00ff;
}

.nf-song-entry input {
    flex: 1;
    padding: 8px;
    background-color: #1a1a4a;
    border: 2px solid #00ffff;
    border-radius: 4px;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    box-shadow: 0 0 5px #00ffff;
}

.nf-song-entry input:focus {
    outline: none;
    box-shadow: 0 0 8px #00ffff;
}

#add-nf-song {
    margin-top: 10px;
    background-color: #00ff88;
    color: #0a0a3a;
    border: 2px solid #00cc66;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    transition: all 0.3s;
}

#add-nf-song:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 15px #00ff88;
    transform: scale(1.05);
}

#start-nf-competition {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
}

#nf-instructions p {
    color: #00ffff !important;
    font-family: 'Press Start 2P', cursive !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
}

#nf-instructions strong {
    color: #ffd700 !important;
    text-shadow: 0 0 5px #ffd700 !important;
}

.remove-nf-song {
    background-color: #ff4757;
    color: white;
    border: 2px solid #ff3742;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    transition: all 0.3s;
    box-shadow: 0 0 5px #ff4757;
}

.remove-nf-song:hover {
    background-color: #ff6b81;
    box-shadow: 0 0 10px #ff4757;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lobby-content {
        grid-template-columns: 1fr;
    }
    
    .competitive-scores {
        grid-column: span 1;
    }
    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-button {
        width: 100%;
        max-width: 300px;
    }
}