:root {
    --primary-bg: #0a0a0f;
    --glass-bg: rgba(18, 18, 24, 0.95); 
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-red: #ff0044;
    --accent-blue: #00ddee;
    --accent-green: #00ff88;
    --accent-yellow: #ffcc00;
    --text-main: #eeeeee;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    text-align: center;
    font-family: var(--font-body);
    overflow: hidden;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    font-size: 16px; 
}

/* Tło - Siatka Cyberpunkowa */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 221, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 221, 238, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(20deg) scale(1.2) translateY(-50px);
    opacity: 0.6;
}

.bg-vignette {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 40%, #000 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- LOGO --- */
#intro-image {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-image img {
    max-width: 60vw;
    max-height: 60vh;
}

#logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    display: none;
    text-align: center;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 70px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -3px;
    line-height: 0.9;
    text-shadow: 
        3px 3px 0px var(--accent-red),
        -2px -2px 10px rgba(255,255,255,0.2);
}

.logo-sub {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 10px;
    color: var(--accent-red);
    margin-top: 5px;
    text-shadow: 0 0 15px var(--accent-red);
}

.fade-out-anim {
    animation: fadeOut 1.0s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translate(-50%, -60%); visibility: hidden; }
}

/* --- PASEK ŁADOWANIA --- */
#loading-container {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    z-index: 100;
    display: none;
}

#loading-text {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--accent-red);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-align: left;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red);
    transition: width 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.loading-subtext {
    font-family: var(--font-head);
    font-size: 20px;
    color: #888;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: lowercase;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
}

/* --- PANELE GLASSMORPHISM --- */
.glass-panel {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    display: none; 
    z-index: 90;
    border-radius: 4px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

#main-menu { 
    width: 550px; 
    padding: 30px; 
    border-top: 3px solid var(--accent-red); 
}

.wide-panel { 
    width: 950px; 
    height: 600px;
    flex-direction: column; 
    border-top: 3px solid var(--accent-blue); 
}

h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #fff;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

/* --- MENU GŁÓWNE --- */
.player-stats-row {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 30px; 
    margin-bottom: 25px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.6), transparent); 
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#menu-reputation {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    min-width: 180px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

#xp-level {
    font-family: var(--font-head);
    color: var(--accent-blue);
    font-size: 14px;
    margin-top: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.xp-container {
    width: 100%;
    max-width: 160px;
    height: 6px; 
    background: #111;
    position: relative; 
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid #333;
}

#xp-bar-fill {
    height: 100%; width: 0%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    transition: width 0.5s ease;
}

#menu-money {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.05);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.currency { font-size: 18px; color: #fff; }

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* --- PRZYCISKI --- */
button {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    background: #222;
    color: #fff;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

.big-btn {
    grid-column: span 3;
}

#btn-race { grid-column: span 2; height: 70px; font-size: 22px; }
#btn-career { grid-column: span 1; height: 70px; font-size: 18px; }

.tile-btn {
    height: 90px;
    font-size: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.tile-btn:hover { background: #2a2a2a; border-color: #555; }
.btn-icon { font-size: 22px; margin-bottom: 2px; display: block; }

.glow-red {
    background: linear-gradient(135deg, #a00020, #600010);
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.2);
    border-left: 4px solid var(--accent-red);
}
.glow-blue {
    background: linear-gradient(135deg, #005f6b, #003036);
    box-shadow: 0 0 20px rgba(0, 221, 238, 0.2);
    border-left: 4px solid var(--accent-blue);
}

.action-btn {
    width: 100%; padding: 12px; margin: 0;
    font-size: 16px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.back-btn {
    width: 200px; padding: 10px; margin-top: 15px;
    background: transparent; border: 1px solid #444; color: #888;
    clip-path: none;
}
.back-btn:hover { background: #fff; color: #000; }
.full-width { width: 100%; }

.green { background: #27ae60; }
.blue { background: #2980b9; }
.orange { background: #d35400; }

.distance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.dist-card {
    background: #15151a;
    border: 1px solid #333;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border-top: 3px solid #333;
}

.dist-card:hover {
    background: #1e1e24;
    border-color: #555;
    border-top-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 68, 0.15);
}

.dist-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dist-value {
    font-family: var(--font-head);
    font-size: 32px; 
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.dist-unit {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.dist-metric {
    font-size: 12px;
    color: var(--accent-blue);
    background: rgba(0, 221, 238, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* --- SKLEP I INNE MENU WEWNĘTRZNE --- */
.shop-wrapper, .garage-container, .tuning-container, .market-container, .career-layout {
    display: flex; gap: 20px; flex: 1; overflow: hidden; margin-top: 10px; 
    /* KLUCZOWE DLA FIREFOX/CHROME W ZAGNIEŻDŻONYM FLEXIE */
    min-height: 0; 
}

#shop-categories, #tuning-categories {
    width: 150px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px;
    /* FIX PRZEWIJANIA */
    overflow-y: auto;
    max-height: 100%;
    padding-right: 5px; 
}

.shop-cat-btn, .tuning-cat-btn {
    padding: 10px; font-size: 13px; text-align: left;
    background: rgba(255,255,255,0.03); border-left: 2px solid transparent;
    clip-path: none;
    /* FIX UCINANIA PRZYCISKÓW */
    flex-shrink: 0; 
}

.shop-cat-btn:hover, .tuning-cat-btn:hover { background: rgba(255,255,255,0.1); }
.shop-cat-btn.active, .tuning-cat-btn.active { 
    background: rgba(255,255,255,0.1); border-left-color: var(--accent-yellow); color: var(--accent-yellow);
}

#shop-items, #tuning-items, #garage-list, #market-lot {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    padding: 15px;
    overflow-y: auto;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

.shop-item, .tuning-item, .garage-item {
    background: #1e1e24; border: 1px solid #333; margin-bottom: 8px; padding: 12px;
    display: flex; flex-direction: column;
}

#garage-preview, #market-details {
    flex: 1.5;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    padding: 20px;
    display: flex; flex-direction: column;
}

#garage-stats-vmax, #garage-stats-accel, #detail-vmax, #detail-accel {
    color: var(--accent-green); font-family: var(--font-body); font-weight: bold;
}
.garage-stats-grid, .detail-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    background: rgba(255,255,255,0.05); padding: 10px; margin: 15px 0;
    border-radius: 4px; text-align: left;
}
.garage-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

#game-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
}
#game {
    width: 100%; background: #111;
    border-top: 2px solid var(--accent-red); border-bottom: 2px solid var(--accent-red);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
#controls-hint {
    margin-top: 15px; color: #888; font-family: var(--font-head); letter-spacing: 1px;
}

/* ============================================================
   PRZYCISKI DOTYKOWE
   ============================================================ */
#touch-controls {
    display: none; /* domyślnie ukryte — pokazują się na touch/mobile */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 12px 20px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 50;
    gap: 16px;
}

@media (pointer: coarse), (max-width: 768px) {
    #touch-controls {
        display: flex;
    }
    #controls-hint {
        display: none;
    }
}

.touch-btn {
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: transform 0.08s ease, filter 0.08s ease;
    gap: 4px;
    flex: 1;
    height: 100px;
    font-family: var(--font-head, 'Orbitron', sans-serif);
}

.touch-gas-btn {
    background: linear-gradient(160deg, rgba(255, 0, 68, 0.85) 0%, rgba(180, 0, 40, 0.9) 100%);
    border: 2px solid rgba(255, 80, 100, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.touch-shift-btn {
    background: linear-gradient(160deg, rgba(0, 180, 220, 0.85) 0%, rgba(0, 100, 160, 0.9) 100%);
    border: 2px solid rgba(0, 220, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 180, 220, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.touch-icon {
    font-size: 32px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.touch-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.touch-btn.active {
    transform: scale(0.93);
    filter: brightness(1.4);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.3);
}

/* game-container position handled above */

/* ============================================================
   OSIĄGNIĘCIA — PANEL
   ============================================================ */
#achievements-panel {
    width: 600px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#achievements-panel h2 {
    font-family: var(--font-head, 'Orbitron', sans-serif);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 3px;
}

.ach-progress-bar-wrap {
    margin-bottom: 16px;
}

.ach-progress-label {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.ach-progress-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

#ach-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffcc00, #ff8800);
    border-radius: 4px;
    transition: width 0.5s ease;
}

#ach-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    max-height: 55vh;
}

#ach-list::-webkit-scrollbar { width: 4px; }
#ach-list::-webkit-scrollbar-track { background: transparent; }
#ach-list::-webkit-scrollbar-thumb { background: rgba(255,204,0,0.3); border-radius: 2px; }

.ach-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    transition: transform 0.15s ease;
}

.ach-card.unlocked {
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.4);
}

.ach-card.locked {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.ach-card.secret.locked {
    background: rgba(100, 0, 200, 0.06);
    border-color: rgba(150, 0, 255, 0.2);
}

.ach-icon {
    font-size: 28px;
    min-width: 36px;
    text-align: center;
    filter: grayscale(0);
}

.ach-card.locked .ach-icon {
    filter: grayscale(1) opacity(0.5);
}

.ach-info {
    flex: 1;
    text-align: left;
}

.ach-name {
    font-family: var(--font-head, 'Orbitron', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.ach-card.unlocked .ach-name {
    color: #ffcc00;
}

.ach-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.ach-check {
    color: #00ff88;
    font-size: 20px;
    font-weight: 900;
    min-width: 24px;
    text-align: center;
}

/* ============================================================
   OSIĄGNIĘCIA — POPUP
   ============================================================ */
.achievement-popup {
    position: fixed;
    top: 20px;
    right: -420px;
    width: 360px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3), 0 8px 32px rgba(0,0,0,0.6);
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.achievement-popup.show {
    right: 20px;
}

.achievement-popup.hide {
    right: -420px;
    transition: right 0.4s ease-in;
}

.ach-popup-icon {
    font-size: 42px;
    min-width: 48px;
    text-align: center;
    animation: achIconPulse 0.6s ease;
}

@keyframes achIconPulse {
    0% { transform: scale(0.5) rotate(-15deg); }
    70% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.ach-popup-text {
    flex: 1;
    text-align: left;
}

.ach-popup-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #ffcc00;
    font-family: var(--font-head, 'Orbitron', sans-serif);
    margin-bottom: 4px;
}

.ach-popup-name {
    font-family: var(--font-head, 'Orbitron', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.ach-popup-desc {
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
}

/* ============================================================
   TRYB TURNIEJU
   ============================================================ */

/* Panel intro */
.tournament-intro {
    width: 520px;
    max-width: 95vw;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
}

.tourn-intro-badge {
    font-size: 56px;
    animation: tournPulse 2s ease-in-out infinite;
}

@keyframes tournPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px #ff8c00); }
    50%       { transform: scale(1.15); filter: drop-shadow(0 0 24px #ff8c00); }
}

.tourn-intro-desc {
    text-align: center;
    line-height: 1.6;
    color: #ccc;
    width: 100%;
}

.tourn-intro-desc p { margin-bottom: 16px; }

.tourn-rules {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tourn-rule {
    font-size: 14px;
    color: #ddd;
}

/* Overlay między-rundowy i końcowy */
.tournament-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.tournament-card {
    background: #0f0f1a;
    border-radius: 16px;
    padding: 40px 48px;
    min-width: 380px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.tournament-card.won   { border: 2px solid #ffcc00; box-shadow: 0 0 60px rgba(255,204,0,0.25); }
.tournament-card.lost  { border: 2px solid #ff3344; box-shadow: 0 0 60px rgba(255,50,60,0.2); }
.tournament-card.inter-round { border: 2px solid #ff8c00; box-shadow: 0 0 60px rgba(255,140,0,0.2); }

.tourn-badge { font-size: 64px; }

.tourn-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.tourn-stat {
    font-size: 16px;
    color: #aaa;
    letter-spacing: 1px;
}

.tourn-stat span { color: #fff; font-weight: 700; }

.tourn-bonus {
    background: rgba(255,204,0,0.15);
    border: 1px solid rgba(255,204,0,0.4);
    border-radius: 6px;
    padding: 8px 16px;
    color: #ffcc00;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.tourn-rounds {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 8px 0;
}

.tourn-round-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 60px;
    letter-spacing: 1px;
}

.tourn-round-dot.done    { background: rgba(0,255,100,0.12); border: 1px solid rgba(0,255,100,0.4); color: #00ff88; }
.tourn-round-dot.current { background: rgba(255,140,0,0.15); border: 1px solid rgba(255,140,0,0.6); color: #ff8c00; }
.tourn-round-dot.pending { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15); color: #555; }

.tourn-round-dot small { font-size: 11px; font-weight: 400; opacity: 0.8; }

.tourn-btn {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff8c00, #ff4400);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.tourn-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.tourn-btn:active { transform: scale(0.97); }

/* HUD turnieju podczas wyścigu */
#tournament-hud {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,140,0,0.6);
    border-radius: 8px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: #ff8c00;
    z-index: 200;
    letter-spacing: 2px;
}

#tournament-hud .hud-round { font-weight: 700; }
#tournament-hud .hud-time  { color: #fff; }

/* ============================================================
   SELEKTOR JĘZYKA
   ============================================================ */
#lang-selector {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #888;
    font-family: var(--font-head, 'Orbitron', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.lang-btn.active {
    background: rgba(255, 204, 0, 0.15);
    border-color: rgba(255, 204, 0, 0.6);
    color: #ffcc00;
}

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

.menu-header h2 {
    margin: 0;
}
