/* ============================================
   PENALTY SHOOTOUT - RESPONSIVE STYLES
   ============================================ */

:root {
    --field-green: #2ecc71;
    --field-dark: #27ae60;
    --goal-white: #ecf0f1;
    --goal-net: #95a5a6;
    --ball-color: #ffffff;
    --ball-shadow: #34495e;
    --keeper-color: #e74c3c;
    --bar-bg: #34495e;
    --bar-indicator: #3498db;
    --bar-success: #2ecc71;
    --text-dark: #2c3e50;
}

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

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.game-icon-small {
    width: 35px;
    height: 35px;
    border-radius: 5px;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: white;
    color: #667eea;
}

/* Game Info */
.game-info {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.score-container {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Game Screen */
.game-screen {
    position: relative;
    background: linear-gradient(to bottom, #87ceeb 0%, #87ceeb 40%, var(--field-green) 40%, var(--field-green) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Modal Screens */
.modal {
    position: absolute;
    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;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
}

.input-group {
    margin: 20px 0;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #7f8c8d;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-content button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Mode Selection */
.mode-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mode-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.mode-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.mode-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Country Selection */
.country-modal {
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.country-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.country-header h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 800;
}

.country-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
}

.search-container {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.search-container input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.search-container input:focus {
    border-color: #ffd700;
    box-shadow: 0 8px 32px rgba(255,215,0,0.3), 0 0 0 3px rgba(255,215,0,0.2);
    transform: translateY(-2px);
}

.country-grid-wrapper {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    max-height: calc(95vh - 350px);
    overflow-y: auto;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.country-grid-wrapper::-webkit-scrollbar {
    width: 12px;
}

.country-grid-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.country-grid-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
}

.country-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover {
    border-color: #ffd700;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.4);
}

.country-card:hover::before {
    opacity: 1;
}

.country-card.selected {
    border-color: #00ff88;
    background: linear-gradient(135deg, #00ff88 0%, #00d4aa 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.6);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 255, 136, 0.6); }
    50% { box-shadow: 0 25px 80px rgba(0, 255, 136, 0.9); }
}

.country-flag {
    font-size: 5rem;
    margin-bottom: 15px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.country-card:hover .country-flag {
    transform: scale(1.15) rotateY(15deg);
    filter: drop-shadow(0 8px 16px rgba(255,215,0,0.4));
}

.country-card.selected .country-flag {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 20px rgba(0,255,136,0.6));
}

.country-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a237e;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.country-card.selected .country-name {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-size: 1.1rem;
}

.action-buttons {
    position: sticky;
    bottom: 0;
    padding: 25px 30px;
    background: linear-gradient(180deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.98) 100%);
    display: flex;
    gap: 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.back-mode-btn {
    flex: 1;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.start-tournament-btn {
    flex: 2;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a237e;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

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

.start-tournament-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.7);
}

.start-tournament-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.start-tournament-btn:not(:disabled) {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 12px 48px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.4); }
}

/* Tournament Bracket */
.bracket-modal {
    max-width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 0;
    border-radius: 25px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.bracket-header {
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,237,78,0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(255,215,0,0.3);
}

.bracket-header h2 {
    color: #ffd700;
    margin: 0 0 15px 0;
    font-size: 2.8rem;
    text-shadow: 0 0 30px rgba(255,215,0,0.5), 0 4px 15px rgba(0,0,0,0.5);
    font-weight: 900;
    letter-spacing: 2px;
}

.tournament-stage {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 15px 30px;
    color: #0f2027;
    display: inline-block;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 8px 32px rgba(255,215,0,0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 3px solid rgba(255,255,255,0.3);
}

.bracket-wrapper {
    padding: 30px;
    max-height: calc(95vh - 200px);
    overflow-y: auto;
}

.bracket-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.bracket-wrapper::-webkit-scrollbar {
    width: 14px;
}

.bracket-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 10px 0;
}

.bracket-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    border: 3px solid rgba(15, 32, 39, 0.3);
}

.bracket-match {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,240,0.95) 100%);
    border: 3px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.bracket-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bracket-match:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 60px rgba(255,215,0,0.4);
    border-color: #ffd700;
}

.bracket-match:hover::before {
    opacity: 1;
}

.bracket-match.player-match {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(255,255,255,0.95) 100%);
    box-shadow: 0 10px 50px rgba(0,255,136,0.4);
}

.bracket-match.player-match::before {
    background: linear-gradient(90deg, #00ff88 0%, #00d4aa 50%, #00ff88 100%);
    opacity: 1;
}

.bracket-match.completed {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.bracket-team:last-child {
    border-bottom: none;
}

.bracket-team:hover {
    background: rgba(255,215,0,0.1);
    padding-left: 30px;
}

.bracket-team.winner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-weight: bold;
}

.bracket-team.winner::before {
    content: '🏆';
    position: absolute;
    left: 8px;
    font-size: 1.5rem;
    animation: trophyBounce 1s ease-in-out infinite;
}

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

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-flag {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.bracket-team:hover .team-flag {
    transform: scale(1.2);
}

.team-name {
    font-size: 1.15rem;
    color: #0f2027;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bracket-team.winner .team-name {
    color: #0f2027;
    font-size: 1.2rem;
}

.team-score {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f2027;
    min-width: 50px;
    text-align: center;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(30,30,30,0.95));
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,215,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.5);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Game Area */
.game-area {
    min-height: 600px;
    position: relative;
}

.field {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(to bottom, 
        #87ceeb 0%, 
        #87ceeb 30%, 
        var(--field-green) 30%, 
        var(--field-dark) 35%,
        var(--field-green) 35%, 
        var(--field-green) 100%
    );
}

/* Goal Area */
.goal-area {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    height: 250px;
    perspective: 1000px;
}

.goal-net {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.05) 100%
    );
    border: 5px solid white;
    border-radius: 5px;
    box-shadow: 
        0 0 0 3px #333,
        inset 0 -10px 30px rgba(0,0,0,0.3);
}

.goal-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.goal-section {
    border: 1px solid rgba(255,255,255,0.3);
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    transition: all 0.3s ease;
}

/* Ball */
.ball {
    position: absolute;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.5),
        inset -3px -3px 8px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid #333;
}

.ball::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), transparent);
    border-radius: 50%;
}

.ball::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, transparent 30%, #000 30%, #000 32%, transparent 32%),
        radial-gradient(circle at 70% 30%, transparent 30%, #000 30%, #000 32%, transparent 32%),
        radial-gradient(circle at 50% 70%, transparent 35%, #000 35%, #000 37%, transparent 37%);
    border-radius: 50%;
}

/* Goalkeeper */
.goalkeeper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    z-index: 50;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* Instruction Text */
.instruction-text {
    position: absolute;
    top: 320px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    z-index: 200;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Click Target for Goalkeeper */
.click-target {
    position: absolute;
    top: 50px;
    width: 100%;
    height: 250px;
    z-index: 300;
    cursor: pointer;
}

.target-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,0,0,0.6), rgba(255,0,0,0.2));
    border: 3px solid red;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
    transition: all 0.3s;
}

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

/* Control Bars */
.control-bars {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    background: rgba(0,0,0,0.85);
    padding: 15px;
    border-radius: 12px;
    z-index: 200;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.bar-container {
    margin-bottom: 10px;
}

.bar-label {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bar-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

.bar-track {
    position: relative;
    height: 22px;
    background: var(--bar-bg);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.bar-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 11px;
    animation: barMove 2s linear infinite;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

@keyframes barMove {
    0% { left: 0%; }
    50% { left: calc(100% - 20px); }
    100% { left: 0%; }
}

.bar-indicator.stopped {
    animation: none;
    background: var(--bar-success);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.shoot-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shoot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.shoot-btn:active {
    transform: translateY(0);
}

/* Game Over Screen */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.game-over-content {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.game-over-content h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-over-content p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 10px 0;
}

.record-box {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    color: white;
    font-weight: bold;
}

.restart-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .game-icon-small {
        width: 30px;
        height: 30px;
    }
    
    .info-value {
        font-size: 1.5rem;
    }
    
    .field {
        height: 500px;
    }
    
    .goal-area {
        width: 90%;
        height: 200px;
    }
    
    .click-target {
        height: 200px;
    }
    
    .ball {
        width: 28px;
        height: 28px;
        bottom: 50px;
    }
    
    .goalkeeper {
        font-size: 40px;
    }
    
    .instruction-text {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .control-bars {
        max-width: 350px;
        padding: 15px;
    }
    
    .target-circle {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .game-container {
        padding: 5px;
    }
    
    .header {
        padding: 10px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 1rem;
    }
    
    .game-icon-small {
        width: 25px;
        height: 25px;
    }
    
    .back-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .game-info {
        padding: 10px;
        gap: 10px;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 1.3rem;
    }
    
    .field {
        height: 450px;
    }
    
    .goal-area {
        top: 40px;
        width: 95%;
        height: 180px;
    }
    
    .click-target {
        top: 40px;
        height: 180px;
    }
    
    .ball {
        width: 25px;
        height: 25px;
        bottom: 45px;
    }
    
    .goalkeeper {
        font-size: 35px;
    }
    
    .target-circle {
        width: 50px;
        height: 50px;
    }
    
    .instruction-text {
        font-size: 0.9rem;
        padding: 10px 15px;
        top: 240px;
    }
    
    .control-bars {
        max-width: 95%;
        padding: 10px;
        bottom: 10px;
    }
    
    .bar-label {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .bar-icon {
        font-size: 1rem;
    }
    
    .bar-track {
        height: 20px;
    }
    
    .bar-indicator {
        width: 16px;
    }
    
    .bar-indicator {
        width: 15px;
    }
    
    .shoot-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .target-circle {
        width: 45px;
        height: 45px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .game-over-content {
        padding: 30px 20px;
    }
    
    .game-over-content h2 {
        font-size: 1.8rem;
    }
    
    .game-over-content p {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .header h1 {
        font-size: 0.9rem;
    }
    
    .field {
        height: 400px;
    }
    
    .goal-area {
        height: 150px;
    }
    
    .ball {
        width: 22px;
        height: 22px;
        bottom: 40px;
    }
    
    .goalkeeper {
        font-size: 30px;
    }
    
    .instruction-text {
        font-size: 0.8rem;
        top: 200px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .field {
        height: 350px;
    }
    
    .goal-area {
        top: 30px;
        height: 140px;
    }
    
    .click-target {
        top: 30px;
        height: 140px;
    }
    
    .ball {
        bottom: 35px;
    }
    
    .instruction-text {
        top: 180px;
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .control-bars {
        bottom: 5px;
        padding: 8px;
    }
    
    .bar-container {
        margin-bottom: 8px;
    }
    
    .bar-label {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .bar-icon {
        font-size: 0.95rem;
    }
    
    .bar-track {
        height: 18px;
    }
    
    .bar-indicator {
        width: 14px;
    }
    
    .goalkeeper {
        font-size: 30px;
    }
}

/* Tournament Screens Responsive */
@media (max-width: 768px) {
    .mode-btn {
        padding: 25px 20px;
    }
    
    .mode-icon {
        font-size: 2.5rem;
    }
    
    .country-modal {
        max-width: 98vw;
        border-radius: 20px;
    }
    
    .country-header h2 {
        font-size: 2rem;
        padding: 15px;
    }
    
    .country-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .country-grid-wrapper {
        padding: 15px 20px;
        max-height: calc(95vh - 320px);
    }
    
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .country-card {
        padding: 20px 12px;
        min-height: 120px;
    }
    
    .country-flag {
        font-size: 4rem;
    }
    
    .country-name {
        font-size: 0.95rem;
    }
    
    .bracket-modal {
        max-width: 98vw;
        border-radius: 20px;
    }
    
    .bracket-header h2 {
        font-size: 2.2rem;
    }
    
    .tournament-stage {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
    
    .bracket-wrapper {
        padding: 20px;
    }
    
    .bracket-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .bracket-team {
        padding: 16px 20px;
    }
    
    .team-flag {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-score {
        font-size: 1.5rem;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .mode-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mode-btn {
        padding: 20px;
    }
    
    .country-modal {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .country-header {
        padding: 20px;
    }
    
    .country-header h2 {
        font-size: 1.6rem;
    }
    
    .country-subtitle {
        font-size: 0.9rem;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .search-container input {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .country-grid-wrapper {
        padding: 12px 15px;
        max-height: calc(100vh - 320px);
    }
    
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .country-card {
        padding: 18px 10px;
        min-height: 110px;
        border-width: 2px;
    }
    
    .country-flag {
        font-size: 3.5rem;
    }
    
    .country-name {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
    }
    
    .back-mode-btn,
    .start-tournament-btn {
        width: 100%;
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .bracket-modal {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .bracket-header {
        padding: 20px;
    }
    
    .bracket-header h2 {
        font-size: 1.8rem;
    }
    
    .tournament-stage {
        font-size: 1rem;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    
    .bracket-wrapper {
        padding: 15px;
        max-height: calc(100vh - 180px);
    }
    
    .bracket-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bracket-team {
        padding: 15px 18px;
    }
    
    .team-flag {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 0.95rem;
    }
    
    .team-score {
        font-size: 1.4rem;
        padding: 6px 12px;
    }
}
