html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #12181f;
    color: #e2e8f0;
}

body.menu-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* РОЗШИРЮЄМО КОНТЕЙНЕР */
.menu-container {
    background: #1e293b;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 1100px;
    max-width: 95vw;
    box-sizing: border-box;
    margin: auto;
}

.header { text-align: center; margin-bottom: 30px; }
h1 { margin: 0; color: #10b981; font-size: 32px; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 10px; }

.section-title { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; font-weight: 600; }

/* РОБИМО СІТКУ ГНУЧКОЮ ТА ВЕЛИКОЮ */
.core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* ЗБІЛЬШУЄМО КАРТКИ МАП */
.map-card {
    background-color: #334155;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid #334155;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0) 60%);
    z-index: 1;
    transition: all 0.2s ease;
}

.map-card .title, .map-card .score-badge, .delete-map-btn { position: relative; z-index: 2; }

.map-card .title {
    font-size: 22px;
    font-weight: bold;
    color: #f8fafc;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    line-height: 1.2;
}

.map-card:hover {
    transform: translateY(-5px);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.map-card:hover::before { background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.2) 70%); }

.map-card.active {
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.3);
}
.map-card.active::before { background: linear-gradient(to top, rgba(16, 185, 129, 0.85) 0%, rgba(15,23,42,0) 70%); }

.score-badge {
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    padding: 4px 10px; border-radius: 20px; font-size: 11px; color: #fbbf24;
    font-weight: 700; display: none; border: 1px solid rgba(255,255,255,0.1);
}

.add-new { background: transparent !important; border: 2px dashed #475569 !important; color: #94a3b8; justify-content: center; align-items: center; }
.add-new::before { display: none; }
.add-new:hover { border-color: #cbd5e1 !important; color: #cbd5e1; }
.add-new .icon { font-size: 28px; margin-bottom: 8px; }
.add-new .title { text-shadow: none; font-size: 14px; margin: 0; color: #94a3b8; }

.delete-map-btn { position: absolute; top: 8px; right: 8px; color: #ef4444; font-size: 18px; cursor: pointer; display: none; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,0.5); }
.delete-map-btn:hover { background: #ef4444; color: white; }
.map-card:hover .delete-map-btn { display: block; }

/* РОЗСУВАЄМО НАЛАШТУВАННЯ */
.settings-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: #0f172a;
    padding: 30px;
    border-radius: 16px;
}

.setting-group { flex: 1; }
.setting-group label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #475569;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    appearance: none; /* Прибирає стандартну стрілку браузера */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: 0.2s;
}

select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

.btn-start { width: 100%; padding: 18px; background-color: #10b981; color: #ffffff; font-weight: bold; font-size: 18px; border: none; border-radius: 12px; cursor: pointer; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.btn-start:hover { background-color: #059669; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #1e293b; padding: 30px; border-radius: 16px; width: 450px; max-width: 90%; position: relative; transform: translateY(-20px); transition: transform 0.2s ease; border: 1px solid #334155; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #94a3b8; cursor: pointer; }
.close-btn:hover { color: #ef4444; }

.search-box { display: flex; gap: 10px; margin-bottom: 15px; }
.search-box input { flex: 1; padding: 12px 15px; font-size: 15px; border-radius: 8px; border: 1px solid #334155; background: #0f172a; color: white; outline: none; }
.search-box button { padding: 12px 20px; background: #3b82f6; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.search-box button:hover { background: #2563eb; }
.btn-draw { background: #10b981 !important; }
.btn-draw:hover { background: #059669 !important; }

.search-results { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.search-item { background: #334155; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 14px; border: 1px solid transparent; }
.search-item:hover { background: #475569; border-color: #3b82f6; }

#editor-modal .modal-content { width: 900px; max-width: 95%; height: 80vh; display: flex; flex-direction: column; }
.editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.editor-header h2 { margin: 0; color: #f8fafc; }
#point-counter { color: #94a3b8; font-weight: bold; }
.editor-controls { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.editor-controls button { padding: 10px 15px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; color: white; transition: 0.2s; }

#btn-toggle-mode { background: #3b82f6; }
#btn-toggle-mode.active-draw { background: #ef4444; }
#btn-undo { background: #64748b; }
#btn-undo:hover { background: #475569; }
#btn-save-map { background: #10b981; }
#btn-save-map:disabled { background: #334155; color: #94a3b8; cursor: not-allowed; }

#editor-map-wrapper { flex: 1; width: 100%; display: flex; flex-direction: column; position: relative; }
#editor-map { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 12px; border: 2px solid #334155; cursor: grab; }
#editor-map.drawing-cursor { cursor: crosshair; }

body.game-page { overflow: hidden; }

#pano { width: 100%; height: 100%; transition: filter 0.3s ease; }
.blurred { filter: blur(20px) brightness(0.5); }

#top-left-panel { position: absolute; top: 20px; left: 20px; z-index: 1000; display: flex; gap: 10px; }
#timer-panel { background: rgba(0, 0, 0, 0.8); color: white; padding: 10px 20px; border-radius: 8px; font-size: 24px; font-weight: bold; font-family: monospace; border: 1px solid #334155; }
.danger-time { color: #ef4444 !important; }

#pause-btn { background: rgba(0, 0, 0, 0.8); color: #f8fafc; border: 1px solid #334155; border-radius: 8px; padding: 0 15px; font-size: 16px; cursor: pointer; transition: 0.2s; font-weight: bold; display: flex; align-items: center; }
#pause-btn:hover { background: rgba(255, 255, 255, 0.2); }

#pause-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 9999; display: none; flex-direction: column; justify-content: center; align-items: center; }
.pause-title { font-size: 48px; color: #10b981; font-weight: bold; margin-bottom: 30px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }

#info-panel { position: absolute; top: 20px; right: 20px; z-index: 1000; background: rgba(0, 0, 0, 0.8); color: white; padding: 10px 20px; border-radius: 8px; font-size: 18px; font-weight: bold; border: 1px solid #334155; }

#reset-btn { position: absolute; bottom: 30px; left: 30px; z-index: 1000; padding: 10px 20px; font-size: 16px; font-weight: bold; background-color: rgba(0,0,0,0.8); color: white; border: 1px solid #334155; border-radius: 8px; cursor: pointer; transition: 0.2s; }
#reset-btn:hover { background-color: #334155; transform: scale(1.05); }

#map-container { position: absolute; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

#map {
    width: 320px; height: 240px; border: 3px solid #1e293b;
    border-radius: 8px; opacity: 0.7; transition: all 0.3s ease;
}

#map:not(.expanded):hover {
    opacity: 1; width: 450px; height: 350px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#map.expanded {
    width: 88vw !important;
    height: 80vh !important;
    max-width: 1500px;
    max-height: 850px;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

#expand-map-btn {
    position: absolute;
    bottom: 35px;
    right: 10px;
    width: 36px; height: 36px;
    background: #1e293b; border: 2px solid #334155; border-radius: 6px;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    z-index: 2000; transition: 0.2s;
}

#expand-map-btn:hover { background: #334155; }

#submit-btn { padding: 14px 28px; font-size: 16px; font-weight: bold; background-color: #10b981; color: white; border: none; border-radius: 8px; cursor: pointer; display: none; transition: 0.2s; text-transform: uppercase; }
#submit-btn:hover { background-color: #059669; transform: translateY(-2px); }

#result-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(15, 23, 42, 0.95); color: white; padding: 25px 40px; border-radius: 16px; font-size: 18px; display: none; z-index: 9999; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.6); border: 1px solid #334155; }
.action-btn { margin-top: 15px; padding: 12px 20px; font-size: 16px; font-weight: bold; color: white; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.btn-next { background-color: #3b82f6; margin-right: 10px; }
.btn-next:hover { background-color: #2563eb; }
.btn-exit { background-color: #ef4444; }
.btn-exit:hover { background-color: #dc2626; }
.btn-share { background-color: #8b5cf6; width: 100%; margin-top: 10px !important; }
.btn-share:hover { background-color: #7c3aed; }

.map-fullscreen { opacity: 1 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; border: none !important; }
.container-fullscreen { bottom: 0 !important; right: 0 !important; width: 100% !important; height: 100% !important; }

/* Екран плавного завантаження */
#loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #0f172a; z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px;
    color: #10b981; font-size: 20px; font-weight: bold; letter-spacing: 1px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-overlay.hidden { opacity: 0; visibility: hidden; }

/* Крутилка (Спінер) для завантаження */
.spinner {
    width: 40px; height: 40px; border: 4px solid rgba(16, 185, 129, 0.3);
    border-top: 4px solid #10b981; border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Неонові бейджі хардкору */
#restrictions-panel {
    position: absolute; top: 80px; right: 20px; z-index: 1000;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
    pointer-events: none;
}
.restriction-badge {
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5; padding: 6px 14px; border-radius: 8px;
    font-size: 13px; font-weight: bold; letter-spacing: 1px;
    backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Робимо цифри балів великими та зеленими */
.score-value { color: #10b981; font-size: 24px; font-weight: 900; }

/* --- АРХІТЕКТУРА ЕКРАНІВ --- */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    z-index: 10;
    padding: 30px 0;
    box-sizing: border-box;
}

#landing-screen {
    align-items: center;
    padding: 0;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

#lobby-screen {
    z-index: 20;
}

/* --- ВІЗУАЛ СПЛЕШ-ЕКРАНУ --- */
.grid-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
    animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    font-size: 64px;
    font-weight: 900;
    color: #f8fafc;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.subtitle {
    color: #94a3b8;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* Неонова кнопка старту */
.glow-button {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
    padding: 18px 50px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.2);
}
.glow-button:hover {
    background: #10b981;
    color: #0f172a;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* --- ПАНЕЛЬ СТАТИСТИКИ --- */
.stats-dashboard {
    display: flex;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #10b981;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

@media screen and (max-width: 768px) {
    .menu-container {
        width: 90%;
        padding: 25px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .core-grid {
        grid-template-columns: 1fr;
    }
    .settings-row {
        flex-direction: column;
        gap: 15px;
    }
    .logo-icon { font-size: 48px; }
    .logo-text { font-size: 42px; }
    .subtitle { font-size: 14px; letter-spacing: 2px; }
    #top-left-panel {
        top: 10px; left: 10px;
        flex-direction: column;
        gap: 5px;
    }
    #timer-panel {
        padding: 8px 12px;
        font-size: 18px;
    }
    #pause-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    #info-panel {
        top: 10px; right: 10px;
        font-size: 13px;
        padding: 6px 10px;
    }
    #restrictions-panel {
        top: 50px; right: 10px;
    }
    .restriction-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    #reset-btn {
        bottom: 120px; left: 10px;
        padding: 8px 12px;
        font-size: 14px;
    }
    #map-container {
        bottom: 15px; right: 15px;
    }
    #map:not(.expanded):not(.map-fullscreen) {
        width: 90px;
        height: 90px;
        border-width: 2px;
        border-radius: 12px;
    }
    #expand-map-btn {
        bottom: 20px; right: 20px;
        width: 30px; height: 30px;
        padding: 4px;
    }
    #map.expanded {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        width: 100vw !important;
        height: 65vh !important;
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        border-top: 4px solid #10b981 !important;
        z-index: 2000;
    }
    #map.expanded ~ #expand-map-btn {
        position: fixed;
        bottom: calc(65vh + 15px);
        right: 15px;
        background: #1e293b;
        z-index: 2001;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
    #map.expanded ~ #submit-btn {
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        z-index: 2001;
        font-size: 18px;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    }
    #result-panel {
        width: 90%;
        padding: 20px;
        font-size: 16px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    #editor-modal .modal-content {
        height: 90vh;
    }

    /* Універсальний фікс модального вікна пошуку для вузьких екранів */
    .search-box {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .search-box input,
    .search-box button {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 12px !important;
    }
}

/* Максимально ущільнюємо інтерфейс для горизонтального режиму телефону */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* --- ФІКС ТАБЛО РЕЗУЛЬТАТІВ --- */
    #result-panel {
        top: 5px !important;
        padding: 6px 15px !important;
        font-size: 13px !important;
        width: auto !important;
        min-width: 250px !important;
        background: rgba(15, 23, 42, 0.85) !important;
        white-space: nowrap;
    }
    #result-panel h2 {
        display: none !important;
    }
    #result-panel br {
        display: none !important;
    }
    .score-value {
        font-size: 16px !important;
    }
    #result-panel div[style*="display:flex"] {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        justify-content: center !important;
        margin-top: 6px !important;
    }
    #result-panel .action-btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
        margin: 0 !important;
        width: auto !important;
    }

    /* --- ФІКС РЕДАКТОРА МАПИ (Малювання) --- */
    #editor-modal .modal-content {
        height: 96vh !important;
        padding: 10px !important;
        justify-content: flex-start;
    }
    .editor-header {
        display: none !important;
    }
    .editor-controls {
        margin-bottom: 5px !important;
        flex-wrap: nowrap !important;
    }
    .editor-controls button, .search-box input, .search-box button {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .history-filters { display: flex; gap: 10px; margin-bottom: 15px; }
.history-filters select { padding: 8px; font-size: 13px; border-radius: 6px; flex: 1; background: #334155; color: white; border: 1px solid #475569; }
.tag-pill { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; margin-right: 5px; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-mode-easy { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-mode-hard { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.tag-rounds { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }
.tag-perms { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-nmpz { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.4); box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }

/* Прокачана кнопка старту */
.btn-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: 1px solid #34d399 !important;
}

.btn-start::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-start:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-start:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
    transform: translateY(-2px);
}

#header-avatar { width: 36px !important; height: 36px !important; }
#header-nickname { font-size: 20px !important; }

}