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

body {
    font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1529900748604-07564a03e7a6?q=80&w=2070');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid #ffd700;
    backdrop-filter: blur(5px);
}

.music-btn {
    background: #ffd700;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.music-btn:hover {
    transform: scale(1.05);
}

.music-text {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Music wave animation */
.music-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.music-wave span {
    width: 3px;
    height: 8px;
    background: #ffd700;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.music-wave.active span {
    animation: wave 0.5s infinite alternate;
}

.music-wave span:nth-child(1) { animation-delay: 0s; }
.music-wave span:nth-child(2) { animation-delay: 0.1s; }
.music-wave span:nth-child(3) { animation-delay: 0.2s; }
.music-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0% { height: 5px; }
    100% { height: 15px; }
}

/* Main container */
.game-container {
    max-width: 1000px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 60px 60px 40px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(255, 215, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 20;
}

/* Mode Selection */
.mode-selection {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 30px;
}

.mode-selection h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.mode-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #ffd700;
    border-radius: 40px;
    cursor: pointer;
    background: white;
    color: #2c3e50;
    transition: all 0.3s;
}

.mode-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(46,204,113,0.3);
}

.multiplayer-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(46,204,113,0.1);
    border-radius: 20px;
}

/* Player Form */
.player-form-section {
    padding: 30px;
    text-align: center;
}

.logo-area {
    margin-bottom: 20px;
}

.football-bounce {
    font-size: 4rem;
    animation: footballSpin 2s infinite;
    display: inline-block;
}

@keyframes footballSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.logo-area h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #2c3e50, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.subtitle {
    color: #e67e22;
    font-size: 1rem;
    font-weight: bold;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,215,0,0.5);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #ffd700;
    border-radius: 30px;
    font-family: inherit;
    background: white;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230,126,34,0.3);
}

.play-center-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 60px;
    cursor: pointer;
    margin-top: 20px;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(46,204,113,0.4);
    animation: pulseGlow 1s infinite;
    transition: transform 0.2s;
}

.play-center-btn:hover {
    transform: scale(1.05);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 25px rgba(46,204,113,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 40px rgba(46,204,113,0.8), 0 0 20px gold; transform: scale(1.02); }
}

/* Game Section */
.game-section.hidden {
    display: none;
}

.header {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 20px;
    text-align: center;
}

.score-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 10px;
}

.turn-indicator {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #ffd700;
    color: #2c3e50;
    padding: 8px;
    border-radius: 30px;
}

.game-area {
    padding: 25px;
}

.player-card {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    border-radius: 40px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cartoon-avatar {
    font-size: 5rem;
    animation: bounce 0.5s ease;
}

.player-country {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
    color: #2c3e50;
}

.jersey {
    display: inline-block;
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.clues-box {
    background: rgba(236, 240, 241, 0.95);
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ffd700;
}

.clue {
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border-radius: 25px;
    font-size: 1rem;
}

.clue:first-child {
    background: linear-gradient(135deg, #ffeaa7, #ffd700);
    font-weight: bold;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .options {
        grid-template-columns: 1fr;
    }
}

.option-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 16px 12px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 5px 0 #1f618d;
}

.option-btn:hover {
    transform: translateY(-2px);
}

.option-btn.correct {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.option-btn.wrong {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.message {
    background: linear-gradient(135deg, #ffd700, #f39c12);
    padding: 15px;
    border-radius: 30px;
    text-align: center;
}

.message.hidden {
    display: none;
}

.next-btn, .play-again-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
}

.play-again-btn.hidden {
    display: none;
}

.game-footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    padding: 15px 20px;
    text-align: center;
    border-top: 3px solid #ffd700;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.partner-label {
    color: #ffd700;
    font-weight: bold;
}

.partner {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

.partner-heart {
    color: #ff6b6b;
    animation: heartbeat 1s infinite;
}

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

.designer {
    color: #ffd700;
    font-size: 0.9rem;
}

.designer strong {
    color: #f39c12;
    font-size: 1rem;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .play-center-btn { font-size: 1.3rem; padding: 14px 30px; }
    .logo-area h1 { font-size: 1.5rem; }
    .football-bounce { font-size: 2.5rem; }
    .music-control { padding: 5px 12px; }
    .music-text { font-size: 0.7rem; }
}