.game-container {
    min-height: 100vh;
    position: relative;
}

.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 13, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 137, 64, 0.2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small a {
    font-family: 'Londrina Solid', cursive;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.game-view {
    padding: 0 !important;
    margin: 0 !important;
}

.streetview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.game-top-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    align-items: center;
    background: rgba(15, 13, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 137, 64, 0.3);
    pointer-events: auto;
}

.round-info, .score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.round-label, .score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.round-number, .score-value {
    font-family: 'Londrina Solid', cursive;
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-display {
    font-family: 'Londrina Solid', cursive;
    font-size: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 120px;
    text-align: center;
}

.timer-display.warning {
    animation: timerPulse 1s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(250, 250, 57, 0.8)); }
}

.lifelines-panel {
    position: absolute;
    top: 120px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.lifeline-btn {
    background: rgba(15, 13, 21, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 137, 64, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-family: 'Balsamiq Sans', cursive;
    min-width: 100px;
}

.lifeline-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 137, 64, 0.5);
}

.lifeline-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lifeline-icon {
    font-size: 2.5rem;
}

.lifeline-name {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.map-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 13, 21, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 137, 64, 0.3);
    border-radius: 20px;
    padding: 20px;
    width: 500px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.map-panel.minimized .map-container {
    display: none;
}

.map-panel.minimized {
    width: auto;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.map-header h3 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.map-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.map-toggle:hover {
    background: rgba(255, 137, 64, 0.2);
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scoreboard-mini {
    position: absolute;
    top: 120px;
    right: 20px;
    background: rgba(15, 13, 21, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 137, 64, 0.3);
    border-radius: 20px;
    padding: 20px;
    min-width: 250px;
    max-width: 350px;
    pointer-events: auto;
    max-height: 500px;
    overflow-y: auto;
}

.scoreboard-mini h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

.scoreboard-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 700;
}

.scoreboard-mini-item.me {
    background: rgba(255, 137, 64, 0.2);
    border: 2px solid rgba(255, 137, 64, 0.5);
}

.scoreboard-mini-item .rank {
    font-family: 'Londrina Solid', cursive;
    font-size: 1.5rem;
    min-width: 30px;
}

.scoreboard-mini-item .avatar {
    font-size: 1.8rem;
}

.scoreboard-mini-item .name {
    flex: 1;
    font-size: 1.1rem;
}

.scoreboard-mini-item .score {
    font-family: 'Londrina Solid', cursive;
    font-size: 1.3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-map-container {
    margin: 40px 0;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.result-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-stat .stat-icon {
    font-size: 3.5rem;
}

.result-stat .stat-content {
    flex: 1;
}

.result-stat .stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-stat .stat-value {
    font-family: 'Londrina Solid', cursive;
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranking-row {
    display: grid;
    grid-template-columns: 100px 1fr 150px 150px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    font-weight: 700;
}

.ranking-row:hover {
    background: rgba(255, 137, 64, 0.1);
}

@media (max-width: 1200px) {
    .map-panel {
        width: 400px;
    }

    .scoreboard-mini {
        display: none;
    }
}

@media (max-width: 768px) {
    .game-top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .timer-display {
        font-size: 3rem;
    }

    .map-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }

    .lifelines-panel {
        flex-direction: row;
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 570px;
    }

    .lifeline-btn {
        min-width: auto;
        flex: 1;
        padding: 10px;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }
}
