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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

canvas {
    display: block;
}

/* Lock screen / instructions overlay */
#blocker {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#blocker:not(.hidden) {
    backdrop-filter: blur(4px);
}

#blocker.hidden {
    display: none;
}

#instructions {
    text-align: center;
    max-width: 600px;
}

#instructions h1 {
    font-size: 3rem;
    letter-spacing: 0.3em;
    color: #0ff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 0.25em;
}

#instructions .subtitle {
    font-size: 1rem;
    color: #888;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2em;
}

.controls-grid {
    display: flex;
    gap: 3em;
    justify-content: center;
    margin-bottom: 2em;
    text-align: left;
    font-size: 0.9rem;
    line-height: 2;
    color: #aaa;
}

.controls-grid h3 {
    color: #0ff;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #333;
    padding-bottom: 0.3em;
}

.key {
    display: inline-block;
    background: #222;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #0ff;
    margin-right: 6px;
    min-width: 24px;
    text-align: center;
}

.start-msg {
    color: #0ff;
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* HUD */
#hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    --ch-spread: 3px;
}

#stance-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #0ff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

#speed-indicator {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 0.75rem;
    color: #888;
    font-family: monospace;
}

#esc-hint {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.1em;
    font-family: monospace;
}

/* ---- Settings Panel ---- */
#settings-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(6px);
}

#settings-panel.hidden {
    display: none;
}

.settings-window {
    background: #0d0d14;
    border: 1px solid #1a3a3a;
    border-radius: 6px;
    width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.08);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #1a2a2a;
}

.settings-header h2 {
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: #0ff;
    margin: 0;
}

.settings-header button {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.settings-header button:hover {
    color: #0ff;
}

.settings-body {
    padding: 12px 20px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0ff;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #162828;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #bbb;
    font-size: 0.85rem;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-value {
    font-family: monospace;
    font-size: 0.8rem;
    color: #0ff;
    min-width: 32px;
    text-align: right;
}

/* Range slider */
.setting-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: #1a2a2a;
    border-radius: 2px;
    outline: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0ff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

/* Toggle / mode buttons */
.toggle-btn, .mode-btn {
    background: #151520;
    border: 1px solid #2a2a3a;
    color: #888;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 3px;
    min-width: 72px;
    text-align: center;
    transition: all 0.15s;
}

.toggle-btn:hover, .mode-btn:hover {
    border-color: #0ff;
    color: #ccc;
}

.toggle-btn.active, .mode-btn.active {
    background: rgba(0, 255, 255, 0.1);
    border-color: #0ff;
    color: #0ff;
}

/* Footer */
.settings-footer {
    padding: 12px 20px;
    border-top: 1px solid #1a2a2a;
    text-align: center;
}

.settings-footer button {
    background: none;
    border: 1px solid #333;
    color: #666;
    padding: 6px 20px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 0.1em;
    transition: all 0.15s;
}

.settings-footer button:hover {
    border-color: #c33;
    color: #f66;
}

#settings-back-to-lobby {
    margin-left: 12px;
    border-color: #663333;
    color: #cc6666;
}

#settings-back-to-lobby:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: #cc3333;
    color: #ff5555;
}

/* ---- Weapon HUD ---- */
#weapon-hud {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

#weapon-name {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #0ff;
    margin-bottom: 6px;
}

#heat-bar-container,
#charge-bar-container {
    position: relative;
    width: 200px;
    height: 6px;
    background: #111;
    border: 1px solid #2a2a3a;
    border-radius: 3px;
    margin: 4px auto;
    overflow: hidden;
}

#heat-bar,
#charge-bar {
    height: 100%;
    width: 0%;
    background: #0ff;
    transition: width 0.05s linear;
    border-radius: 2px;
}

#heat-label,
#charge-label {
    position: absolute;
    right: -50px;
    top: -2px;
    font-size: 0.55rem;
    color: #555;
    letter-spacing: 0.1em;
    font-family: monospace;
}

#charge-bar {
    background: #ffdd00;
}

.hidden {
    display: none !important;
}

#weapon-status {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin-top: 4px;
    height: 1em;
    font-family: monospace;
}

#weapon-slots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

#weapon-slots .slot {
    font-size: 0.6rem;
    font-family: monospace;
    letter-spacing: 0.1em;
    color: #444;
    padding: 2px 8px;
    border: 1px solid #222;
    border-radius: 2px;
    transition: all 0.15s;
}

#weapon-slots .slot.active {
    color: #0ff;
    border-color: #0ff;
    background: rgba(0, 255, 255, 0.08);
}

/* ---- Scope Overlay (Ion Sniper ADS) ---- */
#scope-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.scope-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 28%,
        rgba(0, 0, 0, 0.6) 35%,
        rgba(0, 0, 0, 0.95) 45%,
        #000 50%
    );
}

.scope-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56vh;
    height: 56vh;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 221, 0, 0.4);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(255, 221, 0, 0.1),
        inset 0 0 20px rgba(255, 221, 0, 0.05);
}

.scope-crosshair-h,
.scope-crosshair-v {
    position: absolute;
    background: rgba(255, 221, 0, 0.5);
}

.scope-crosshair-h {
    top: 50%;
    left: 50%;
    width: 40vh;
    height: 1px;
    transform: translate(-50%, -50%);
}

.scope-crosshair-v {
    top: 50%;
    left: 50%;
    width: 1px;
    height: 40vh;
    transform: translate(-50%, -50%);
}

/* Mil-dot marks on scope */
.scope-crosshair-h::before,
.scope-crosshair-h::after,
.scope-crosshair-v::before,
.scope-crosshair-v::after {
    content: '';
    position: absolute;
    background: rgba(255, 221, 0, 0.6);
}

.scope-crosshair-h::before,
.scope-crosshair-h::after {
    width: 1px;
    height: 6px;
    top: -3px;
}

.scope-crosshair-h::before { left: 25%; }
.scope-crosshair-h::after { right: 25%; }

.scope-crosshair-v::before,
.scope-crosshair-v::after {
    width: 6px;
    height: 1px;
    left: -3px;
}

.scope-crosshair-v::before { top: 25%; }
.scope-crosshair-v::after { bottom: 25%; }

/* ---- Map Overlay ---- */
#map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 300;
    backdrop-filter: blur(4px);
}

#map-overlay.hidden {
    display: none;
}

.map-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 12px;
}

.map-header h2 {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: #fff;
    margin: 0;
}

.map-hint {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.1em;
    font-family: monospace;
}

#map-canvas {
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ---- Lobby ---- */
#lobby-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: all;
    transition: opacity 0.6s ease;
}

#lobby-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.lobby-top {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.lobby-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 200, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.lobby-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: #88bbcc;
    margin-top: 8px;
    text-transform: uppercase;
}

.lobby-bottom {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#play-btn {
    background: linear-gradient(135deg, #00aadd, #0077aa);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    padding: 16px 80px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 170, 220, 0.4), 0 0 40px rgba(0, 170, 220, 0.15);
    transition: all 0.2s ease;
}

#play-btn:hover {
    background: linear-gradient(135deg, #00ccff, #0099cc);
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(0, 200, 255, 0.6), 0 0 60px rgba(0, 200, 255, 0.2);
}

#play-btn:active {
    transform: scale(0.98);
}

.lobby-tip {
    margin-top: 16px;
    font-size: 0.75rem;
    color: #667;
    letter-spacing: 0.15em;
    font-style: italic;
}

/* ---- Top Navigation Bar (Fortnite-style) ---- */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    z-index: 510;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 8px 0 12px;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 40px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    pointer-events: all;
}

.nav-tab:hover { border-bottom-color: rgba(255,255,255,0.2); }
.nav-tab:hover .nav-label { color: #ccc; }

.nav-tab.active {
    border-bottom-color: #0cf;
}

.nav-tab.active .nav-icon { color: #0cf; }
.nav-tab.active .nav-label { color: #fff; }

.nav-icon {
    font-size: 1.3rem;
    color: #556;
    transition: color 0.2s;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #667;
    font-family: monospace;
    transition: color 0.2s;
}

/* Nav pages */
.nav-page {
    position: absolute;
    inset: 0;
    padding-top: 80px;
}

.nav-page.hidden { display: none; }

/* Lobby page — keep title and play centered */
.nav-page .lobby-title {
    text-align: center;
    margin-top: 5%;
}

.nav-page .lobby-subtitle {
    text-align: center;
}

.lobby-center {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Locker page */
.locker-header {
    text-align: center;
    margin-bottom: 16px;
}

.locker-header h2 {
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 0.3em;
    margin: 0;
}

.locker-sub {
    font-size: 0.75rem;
    color: #667;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

.locker-content {
    display: flex;
    justify-content: center;
    padding: 0 40px;
    max-height: 55vh;
    overflow-y: auto;
}

.locker-cat-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #0cf;
    margin-bottom: 12px;
    font-family: monospace;
    border-bottom: 1px solid rgba(0,200,255,0.15);
    padding-bottom: 6px;
}

.locker-preview {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.preview-label {
    font-size: 0.55rem;
    color: #556;
    letter-spacing: 0.2em;
    font-family: monospace;
}

.preview-skin-name {
    font-size: 1.1rem;
    color: #0cf;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

/* Stats page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 450px;
    margin: 20px auto;
    padding: 0 20px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stats-val {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
}

.stats-label {
    font-size: 0.6rem;
    color: #667;
    letter-spacing: 0.2em;
    font-family: monospace;
    margin-top: 6px;
}

/* ---- Skin Selector ---- */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 550px;
}

.skin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.skin-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.skin-card.selected {
    border-color: #0cf;
    background: rgba(0, 200, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);
}

.skin-swatch {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.skin-name {
    font-family: monospace;
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.skin-card.selected .skin-name { color: #0cf; }

.lobby-left {
    position: absolute;
    bottom: 25%;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lobby-stat {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #556;
    font-family: monospace;
}

.lobby-val {
    color: #0cf;
    font-weight: bold;
    margin-left: 6px;
}

/* ---- Multiplayer HUD ---- */
#health-hud {
    position: absolute;
    bottom: 70px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.health-bar-bg {
    width: 160px;
    height: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 3px;
    overflow: hidden;
}

.health-bar-fill {
    width: 100%;
    height: 100%;
    background: #44cc44;
    transition: width 0.2s ease;
    border-radius: 2px;
}

#health-text {
    font-size: 0.8rem;
    font-family: monospace;
    color: #44cc44;
    font-weight: bold;
}

#player-count {
    font-size: 0.65rem;
    font-family: monospace;
    color: #888;
    letter-spacing: 0.1em;
    margin-left: 12px;
}

/* Damage flash */
.damage-flash {
    position: fixed;
    inset: 0;
    background: rgba(200, 30, 30, 0.3);
    pointer-events: none;
    z-index: 400;
    animation: flashOut 0.3s ease forwards;
}

@keyframes flashOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Death screen */
#death-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 450;
    animation: fadeInOut 3s ease forwards;
}

.death-text {
    font-size: 3rem;
    font-weight: 900;
    color: #cc3322;
    letter-spacing: 0.3em;
    text-shadow: 0 0 20px rgba(200, 50, 30, 0.5);
}

.death-sub {
    font-size: 0.9rem;
    color: #888;
    margin-top: 12px;
    letter-spacing: 0.2em;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---- Inventory HUD ---- */
#inventory-hud {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.inv-slots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.inv-slot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.65rem;
    color: #666;
    min-width: 60px;
    justify-content: center;
    position: relative;
}

.inv-slot.active {
    border-color: #0ff;
    color: #0ff;
    background: rgba(0, 255, 255, 0.08);
}

.inv-slot.has-item {
    color: #aaa;
}

.inv-key {
    font-size: 0.55rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 0 4px;
    color: #888;
}

.inv-label {
    letter-spacing: 0.1em;
}

.inv-divider {
    width: 1px;
    height: 20px;
    background: #333;
    margin: 0 4px;
}

.inv-icon {
    font-size: 0.8rem;
}

.inv-count {
    font-size: 0.7rem;
    color: #aaa;
}

.consumable-slot {
    min-width: 45px;
}

/* ---- Pickup Prompt ---- */
#pickup-prompt {
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    text-align: center;
    font-family: monospace;
}

#pickup-prompt.hidden {
    display: none;
}

.prompt-key {
    display: inline-block;
    background: #222;
    border: 1px solid #0ff;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 0.9rem;
    color: #0ff;
    margin-right: 6px;
}

.prompt-text {
    font-size: 0.8rem;
    color: #ddd;
    letter-spacing: 0.1em;
}

/* ---- Shield Bar ---- */
.shield-bar-bg {
    width: 160px;
    height: 8px;
    background: #111;
    border: 1px solid #335;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    gap: 2px;
    padding: 1px;
}

/* #4: Shield bar with 4 distinct segments (each 25 HP) */
.shield-segment {
    flex: 1;
    height: 100%;
    background: #1a1a2a;
    border-radius: 1px;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(68, 136, 255, 0.15);
}

.shield-segment.active {
    background: linear-gradient(to top, #3366cc, #55aaff);
    box-shadow: 0 0 6px rgba(68, 136, 255, 0.5), inset 0 1px 2px rgba(255,255,255,0.2);
    border-color: rgba(68, 136, 255, 0.4);
}

#shield-text {
    font-size: 0.7rem;
    font-family: monospace;
    color: #4488ff;
    font-weight: bold;
    margin-left: 6px;
}

/* ---- Drop System HUD ---- */
#drop-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    pointer-events: none;
    text-align: center;
    padding-top: 60px;
}

#drop-hud.hidden {
    display: none;
}

#drop-altitude {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: monospace;
    color: #fff;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#drop-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: #0ff;
    letter-spacing: 0.25em;
    margin-top: 12px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* ---- Zone HUD ---- */
#zone-hud {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    align-items: center;
    pointer-events: none;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 4px;
    z-index: 60;
}

#zone-timer {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#alive-count {
    font-size: 0.75rem;
    color: #ccc;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 3px;
}

/* #7: Match timer in HUD */
#match-timer {
    font-size: 0.7rem;
    color: #aaa;
    letter-spacing: 0.1em;
    font-family: monospace;
    padding: 3px 8px;
}

/* ---- Victory Screen ---- */
#victory-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.victory-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffdd00;
    letter-spacing: 0.2em;
    text-shadow: 0 0 40px rgba(255, 221, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.victory-sub {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 16px;
    letter-spacing: 0.2em;
}

/* ---- Floating Damage Numbers ---- */
.damage-number {
    position: fixed;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: monospace;
    pointer-events: none;
    z-index: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 50, 50, 0.3);
    transform: translate(-50%, 0);
}

/* ---- Kill Feed ---- */
#kill-feed {
    position: absolute;
    top: 42px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    z-index: 60;
}

.kill-entry {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.65rem;
    color: #ccc;
    transition: opacity 0.5s;
    white-space: nowrap;
}

.kf-killer { color: #ffffff; font-weight: bold; }
.kf-icon { color: #888; margin: 0 4px; font-size: 0.7rem; }
.kf-victim { color: #ff4444; }
.kill-entry.my-kill {
    background: rgba(0, 255, 255, 0.12);
    border-left: 2px solid #0ff;
}
.kill-entry.my-kill .kf-killer { color: #0ff; }

/* ---- Damage Direction Indicator ---- */
.damage-direction {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 120px;
    margin-top: -140px;
    pointer-events: none;
    z-index: 500;
    background: linear-gradient(to bottom, rgba(255, 30, 30, 0.8), transparent);
    clip-path: polygon(30% 0%, 70% 0%, 55% 100%, 45% 100%);
    animation: dmgDirFade 0.8s ease forwards;
}

@keyframes dmgDirFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---- Storm Damage Vignette ---- */
#storm-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 399;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(80, 20, 160, 0.3) 70%,
        rgba(60, 10, 130, 0.5) 100%
    );
}

/* ---- Shield Crack Effect ---- */
.shield-crack {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 401;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(60, 120, 255, 0.4) 60%,
        rgba(40, 80, 255, 0.2) 100%
    );
    animation: shieldCrackAnim 0.4s ease forwards;
}

@keyframes shieldCrackAnim {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ---- Elimination Popup ---- */
.elim-popup {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 500;
    font-family: monospace;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 4px;
    border-left: 3px solid #ff4444;
    letter-spacing: 0.1em;
    transition: all 0.5s ease;
}

.elim-icon {
    color: #ff4444;
    font-weight: bold;
    margin-right: 8px;
}

.elim-popup strong {
    color: #ff6644;
}

/* ---- Elimination Counter ---- */
#elim-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #888;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 3px;
}

#elim-count {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    margin-right: 6px;
}

/* ---- Corner Minimap (circular) ---- */
#corner-minimap {
    position: absolute;
    top: 10px;
    left: 10px;
    pointer-events: none;
}

#minimap-canvas {
    display: block;
}

/* ---- Compass Bar (top of screen) ---- */
#compass-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 18px;
    pointer-events: none;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 61;
}

#compass-bar span {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.6rem;
    color: #888;
}

/* ---- Storm Screen Overlay (when outside zone) ---- */
#storm-screen {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 397;
    background: rgba(80, 20, 160, 0.4);
    opacity: 0;
    transition: opacity 0.5s;
    mix-blend-mode: multiply;
}

/* ---- Low Health Warning ---- */
#low-health-warn {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 398;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(200, 20, 20, 0.25) 80%,
        rgba(180, 10, 10, 0.4) 100%
    );
}

/* ---- Heat Arc (near crosshair) ---- */
#heat-arc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 51;
}

/* ---- Kill Streak Popup ---- */
.kill-streak-popup {
    position: fixed;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffdd00;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(255, 221, 0, 0.6), 0 2px 8px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.5s;
}

/* ---- Storm Warning ---- */
#storm-warn {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: #9944ff;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(150, 60, 255, 0.6);
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.5s;
}

/* ---- Match Stats (death/victory screen) ---- */
.match-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-val {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
}

.stat-label {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 0.2em;
    font-family: monospace;
}

/* ==== BALLISTIC MODE ==== */

/* Role Select */
#role-select-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 600;
}

.role-select-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.role-grid {
    display: flex;
    gap: 12px;
}

.role-card {
    width: 140px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.role-card:hover {
    border-color: rgba(0, 200, 255, 0.4);
    background: rgba(0, 200, 255, 0.06);
}

.role-card.selected {
    border-color: #0cf;
    background: rgba(0, 200, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.role-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.role-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.role-desc {
    font-size: 0.6rem;
    color: #889;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-family: monospace;
}

.role-guns {
    font-size: 0.55rem;
    color: #0cf;
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* Ballistic HUD */
#ballistic-hud {
    pointer-events: none;
}

#bal-round-info {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 4px;
}

#bal-timer {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

#bal-team-label {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

#bal-bomb-status {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

#bal-defuse-bar {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background: #222;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
}

#bal-defuse-bar span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.7rem;
    color: #0cf;
    letter-spacing: 0.15em;
}

#bal-defuse-fill {
    height: 100%;
    width: 0%;
    background: #0cf;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* Round result popup */
#bal-round-result {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.5s;
}

/* Match result */
#bal-match-result {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 600;
}

.bal-match-text {
    font-size: 3rem;
    font-weight: 900;
    color: #ffdd00;
    letter-spacing: 0.2em;
    text-shadow: 0 0 40px rgba(255, 221, 0, 0.5);
}

.bal-match-sub {
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 0.15em;
    margin-top: 12px;
}

#bal-lobby-btn {
    margin-top: 30px;
    padding: 14px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #00aadd, #0077aa);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 170, 220, 0.4);
}

/* Game mode selector in lobby */
.mode-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mode-card {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.mode-card:hover {
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(0, 200, 255, 0.05);
}

.mode-card.selected {
    border-color: #0cf;
    background: rgba(0, 200, 255, 0.1);
}

.mode-card .mode-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.mode-card .mode-desc {
    font-size: 0.55rem;
    color: #778;
    font-family: monospace;
}

/* ---- Elimination Banner ---- */
#elim-banner {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 500;
    transition: all 0.5s ease;
}

.eb-title {
    font-size: 0.7rem;
    color: #ff4444;
    letter-spacing: 0.3em;
    font-family: monospace;
    font-weight: 700;
}

.eb-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.15em;
    margin-top: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.eb-weapon {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 0.2em;
    font-family: monospace;
    margin-top: 6px;
}

/* ---- Quick Message ---- */
.quick-msg {
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.5s;
}

/* ---- #5: Better Crosshair ---- */

.ch-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

.ch-line {
    position: absolute;
    background: rgba(0, 255, 255, 0.7);
}

.ch-top, .ch-bottom {
    width: 2px;
    height: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.ch-left, .ch-right {
    width: 8px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.ch-top { bottom: calc(50% + var(--ch-spread)); }
.ch-bottom { top: calc(50% + var(--ch-spread)); }
.ch-left { right: calc(50% + var(--ch-spread)); }
.ch-right { left: calc(50% + var(--ch-spread)); }

/* ---- #4: Pickup Notification ---- */
.pickup-notif {
    position: fixed;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 18px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.5s;
    text-transform: uppercase;
}

/* ---- #16: Emote Wheel ---- */
#emote-wheel {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    z-index: 500;
    pointer-events: none;
}

.emote-title {
    font-family: monospace;
    font-size: 0.65rem;
    color: #0cf;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    text-align: center;
}

.emote-option {
    font-family: monospace;
    font-size: 0.75rem;
    color: #ccc;
    padding: 4px 0;
}

.emote-key {
    display: inline-block;
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 0 5px;
    color: #0cf;
    font-size: 0.65rem;
    margin-right: 8px;
}

/* ---- #18: Overheat Text ---- */
#overheat-text {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 1rem;
    font-weight: 900;
    color: #ff4422;
    letter-spacing: 0.2em;
    pointer-events: none;
    z-index: 500;
    text-shadow: 0 0 10px rgba(255, 50, 0, 0.5);
}

/* ---- Player Name Input ---- */
.name-input-row {
    margin-bottom: 16px;
}

#player-name-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 20px;
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

#player-name-input:focus {
    border-color: #0cf;
}

#player-name-input::placeholder {
    color: #556;
}

/* ---- Drop Tip ---- */
#drop-tip {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: #aab;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 24px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    pointer-events: none;
    z-index: 160;
    max-width: 400px;
    text-align: center;
    border-left: 3px solid #0cf;
}

/* ---- Lobby Player List ---- */
#lobby-player-list {
    margin-bottom: 16px;
    min-height: 30px;
}

.lobby-player-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    margin-bottom: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

.lp-name {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    min-width: 100px;
}

.lp-status {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
}

/* ---- FPS Counter (F3 toggle) ---- */
#fps-counter {
    position: fixed;
    top: 6px;
    left: 6px;
    font-family: monospace;
    font-size: 0.65rem;
    color: #0f0;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 9999;
    pointer-events: none;
}

/* ---- Kill Feed Better Formatting (#5) ---- */
.kf-weapon {
    color: #888;
    font-size: 0.55rem;
    margin-left: 4px;
    letter-spacing: 0.05em;
}

/* ---- Weapon Damage in Inventory (#6) ---- */
.inv-dmg {
    font-size: 0.5rem;
    color: #ff6644;
    font-family: monospace;
    margin-left: 4px;
}

/* ---- Match Timer (#7) — styled inside #zone-hud, no extra positioning needed ---- */

/* ---- Inventory Slot Keybind Labels (#8) ---- */
.inv-keybind {
    position: absolute;
    top: -8px;
    left: 2px;
    font-size: 0.5rem;
    color: #666;
    font-family: monospace;
    font-weight: bold;
}

/* ---- Storm Damage Red Vignette (#9) ---- */
#storm-damage-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 399;
    opacity: 0;
    transition: opacity 0.2s;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(200, 20, 20, 0.35) 70%,
        rgba(180, 10, 10, 0.55) 100%
    );
}

/* ---- Crouch Accuracy Indicator (#10) ---- */
#crosshair.crouch-accurate .ch-dot {
    background: rgba(68, 255, 68, 0.9);
    box-shadow: 0 0 4px rgba(68, 255, 68, 0.6);
}

/* ---- Headshot Text (#23) ---- */
.headshot-text {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffdd00;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(255, 221, 0, 0.6), 0 2px 6px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.4s;
}

/* ---- Grenade Arc Preview (#25) ---- */
#grenade-arc {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 49;
}

/* ---- Victory Stats Animation (#28) ---- */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-item .stat-val.animate-count {
    animation: countUp 0.6s ease-out forwards;
}

/* ---- Login / Account Screen ---- */
#login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0a1628 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s;
}

#login-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.login-box {
    text-align: center;
    width: 380px;
    max-width: 90vw;
}

.login-title {
    font-size: 2.8rem;
    letter-spacing: 0.3em;
    color: #0ff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    margin-bottom: 0.1em;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #556;
    letter-spacing: 0.25em;
    margin-bottom: 2.5em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #667;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s;
}

.login-tab:first-child { border-radius: 6px 0 0 6px; }
.login-tab:last-child { border-radius: 0 6px 6px 0; }

.login-tab.active {
    background: rgba(0, 200, 255, 0.15);
    border-color: rgba(0, 200, 255, 0.4);
    color: #0cf;
}

.login-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #99a;
}

#login-overlay input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#login-overlay input:focus {
    border-color: rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.05);
}

#login-overlay input::placeholder {
    color: #445;
}

.login-error {
    color: #ff4466;
    font-size: 0.8rem;
    min-height: 1.2em;
}

.login-btn {
    padding: 14px;
    background: linear-gradient(135deg, #00aadd, #0077aa);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background: linear-gradient(135deg, #00ccff, #0099cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3);
}

.login-guest-btn {
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #556;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.login-guest-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #99a;
}

/* ---- Account bar in lobby ---- */
.lobby-account-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-name {
    color: #0cf;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.account-name.guest {
    color: #556;
}

.logout-btn {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #667;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    border-color: rgba(255, 70, 70, 0.4);
    color: #f66;
    background: rgba(255, 70, 70, 0.08);
}
