* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #090910;
    --background-soft: #11111b;
    --panel: rgba(24, 24, 36, 0.86);
    --panel-solid: #1b1b29;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --yellow: #ffd43b;
    --yellow-light: #ffe37a;
    --green: #42df7d;
    --red: #ff5c5c;
    --orange: #ffad33;
    --text: #f4f4f5;
    --muted: #9d9dad;
    --blur: blur(18px);
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(100, 75, 180, 0.12),
            transparent 35%
        ),
        var(--background);

    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}

/* ============================================================
   NORMÁL ÉS JÁTÉK FEJLÉC (VÉGLEGES LOGÓS ÉS FIXÁLT VERZIÓ)
   ============================================================ */

.topbar,
.game-topbar {
    position: fixed; /* Fixen a képernyő legtetejére rögzítjük */
    top: 0;
    left: 0;
    z-index: 3000; /* Minden oldalsáv és térkép felett kell elhelyezkednie */

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    width: 100%;
    height: 70px; /* Fix standard magasság, hogy pontosan passzoljon a számításokhoz */
    padding: 0 36px;
    box-sizing: border-box;

    background: rgba(15, 15, 22, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: var(--blur);
}

.main-nav,
.game-locked-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Elosztja a három új konténert: Bal, Közép, Jobb */
    flex-wrap: wrap;
    gap: 20px;

    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
}

/* --- LOGÓ ÉS MÁRKA KONTÉNER (BAL OLDAL) --- */
.nav-brand-container {
    display: flex;
    align-items: center;
}

.nav-logo-brand {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff !important; /* Fixen teli fehér, nem sárgul be aktív menüpontként */
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav-logo-brand:hover {
    opacity: 0.85;
    background: transparent !important;
    border-bottom: none !important; /* Kizárjuk, hogy aláhúzást kapjon */
}

/* --- MENÜPONTOK KONTÉNERE (KÖZÉP) --- */
.nav-links-container {
    display: flex;
    align-items: center;
    gap: 24px; /* Kényelmes távolság a navigációs elemek között */
}

.nav-links-container a,
.main-nav a,
.main-nav a:link,
.main-nav a:visited,
.main-nav a:hover,
.main-nav a:active,
.main-nav a:focus {
    display: inline-flex;
    align-items: center;
    padding: 8px 3px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links-container a:hover {
    color: var(--yellow);
}

.nav-links-container a.active,
.nav-links-container a.active:visited {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

/* --- FELHASZNÁLÓ ÉS KIJELENTKEZÉS (JOBB OLDAL) --- */
.nav-user-container {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Kivettük a margin-left: auto-t, mert a szülő justify-content-je már jobbra tolja */
}

.nav-user {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.nav-logout,
.give-up-button {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 92, 92, 0.4);
    border-radius: 10px;
    background: rgba(255, 92, 92, 0.12);
    color: var(--red);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-logout:hover,
.give-up-button:hover {
    background: rgba(255, 92, 92, 0.25);
}

/* --- JÁTÉK KÖZBENI SPECIÁLIS MENÜ ELEMEK --- */
.game-status-brand {
    color: var(--yellow);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-status-brand span {
    color: var(--muted);
    font-weight: 500;
}

.game-status-user {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    margin-left: auto; /* Játék közben ez tolja el a Feladom gomb mellé a nevet */
}

/* --- JÁTÉK HUD (ÉLET, IDŐ, FILMEK) --- */
.game-hud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.remaining-movies,
.score-display,
.timer-display {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.remaining-movies {
    color: var(--muted);
}

.score-display strong {
    color: var(--green);
}

.timer-display {
    min-width: 100px;
    color: var(--green);
}

.timer-display.warning {
    color: var(--orange);
}

.timer-display.danger {
    color: var(--red);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================================
   OLDALAK FELSŐ TÁVOLSÁGÁNAK BEÁLLÍTÁSA (FIX NAVBAR MIATT)
   ============================================================ */

/* Minden különálló oldal fő containerének adunk egy 90px-es felső margót, 
   hogy a 70px-es fix menüsor alatt kényelmesen, 20px-es tiszta szünettel kezdődjenek */
.dashboard,
.profile-page,
.leaderboard-page,
.battlepass-page {
    margin-top: 10px !important;
}

/* JAVÍTÁS: A játékmenet tárolóját is pontosan a navbar alá igazítjuk */
.game-container {
    margin-top: 70px !important;
    height: calc(100vh - 70px) !important;
}

/* ============================================================
   JÁTÉK ELRENDEZÉS (MODERN OLDALSÁVOS, TAKARÁSMENTES MODELL)
   ============================================================ */

.game-container {
    display: flex;
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    background: #0b0b0d;
}

.image-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(.result-banner:not(.hidden)) .image-section,
body:has(.game-over-panel:not(.hidden)) .image-section {
    padding-left: 400px; 
}

#movieImage {
    max-width: 100%;
    max-height: calc(100% - 130px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.year-panel {
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
    padding: 16px 24px;
    background: var(--panel-solid, #1e1e24);
    border: 1px solid var(--border-strong, #2a2a32);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
    box-sizing: border-box;
    z-index: 10;
}

/* INTERAKTÍV TÉRKÉP SZEKCIÓ (JAVÍTOTT - STABIL ALAPMÉRETTEL) */
.map-section {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    
    /* Kényszerített induló méretek az Arénához és a sima játékhoz is */
    width: 240px !important;
    height: 180px !important;
    opacity: 0.85;
    
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    border-radius: 16px;
    padding: 6px;
    background: rgba(30, 30, 36, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong, #2a2a32);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Egérrávitelre megnövelt méret játék közben */
.map-section:hover,
.map-section:focus-within {
    width: 480px !important;
    height: 360px !important;
    opacity: 1;
}

/* Eredményhirdetéskor középre igazított méret */
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) .map-section.map-results-active {
    width: 500px !important;   
    height: 350px !important;
    opacity: 1 !important;
    right: 380px !important;   
    bottom: 20px !important;   
}

/* Maga a Leaflet térképterület kitölti a szekciót */
#map {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

#guessBtn {
    width: 100%;
    padding: 10px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

/* ============================================================
   BAL OLDALSÁV: UTOLSÓ TIPP KIÉRTÉKELÉSE
   ============================================================ */
.result-banner {
    position: fixed;
    z-index: 2400;
    top: 70px;
    left: 0; /* Bal szélre rögzítve */

    width: 360px; /* Fix, kompakt szélesség */
    height: calc(100vh - 70px);

    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;

    overflow-y: auto;
    overflow-x: hidden;

    border-right: 1px solid var(--border-strong);
    border-top: none;
    border-left: none;
    border-bottom: none;
    border-radius: 0 24px 24px 0;

    background: rgba(26, 26, 31, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.6);
    text-align: left;
    
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-banner.hidden {
    display: none !important;
}

/* ============================================================
   JOBB OLDALSÁV: JÁTÉK VÉGE PANEL (JAVÍTOTT - NEM TAKAR)
   ============================================================ */
.game-over-panel {
    position: fixed;
    z-index: 2500; /* Legfelül legyen */
    top: 70px;     /* A game-topbar magassága alatt kezdődik */
    right: 0;      /* JAVÍTÁS: Jobb szélre rögzítve, így nem csúszik a bal sávra! */

    width: 360px;  /* Ugyanolyan széles, mint a bal sáv */
    height: calc(100vh - 70px); /* Teljes magasság a topbar alatt */

    padding: 30px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;

    overflow-y: auto;
    overflow-x: hidden;

    border-left: 1px solid var(--border-strong);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 24px 0 0 24px; /* Csak a bal oldali sarkok kerekítettek */

    background: rgba(30, 30, 36, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);

    text-align: center;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-over-panel.hidden {
    display: none !important;
}

/* ============================================================
   KÖZÉPSŐ RÉSZ: FILM KÉP ÉS SZÜLŐSZEKCIÓ IGAZÍTÁSA
   ============================================================ */
.game-container {
    display: flex;
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    background: #0b0b0d;
}

.image-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: padding 0.3s ease;
}

/* JAVÍTÁS: Ha mindkét ablak nyitva van az utolsó körben, a kép szekció kétoldalról húzódjon be középre */
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) .image-section {
    padding-left: 380px;  /* Helyet hagy a bal sávnak */
    padding-right: 380px; /* Helyet hagy a jobb sávnak */
}

/* JAVÍTÁS: A film képének és az évszámsávnak összeszűkítése, hogy ne lógjanak be az oldalsávok alá */
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) #movieImage,
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) .year-panel {
    max-width: calc(100vw - 780px) !important; 
    transition: max-width 0.3s ease;
}

#movieImage {
    max-width: 100%;
    max-height: calc(100% - 130px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.year-panel {
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
    padding: 16px 24px;
    background: var(--panel-solid, #1e1e24);
    border: 1px solid var(--border-strong, #2a2a32);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
    box-sizing: border-box;
    z-index: 10;
}

/* ============================================================
   KÖZÉP-ALUL: INTERAKTÍV TÉRKÉP SZEKCIÓ POZICIONÁLÁSA
   ============================================================ */
.map-section {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 240px;
    height: 180px;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    padding: 6px;
    background: rgba(30, 30, 36, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong, #2a2a32);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Játék közbeni egérrávitel */
.map-section:hover, .map-section:focus-within {
    width: 480px;
    height: 360px;
    opacity: 1;
}

/* JAVÍTÁS: Ha a kiértékelés ÉS a játék vége panel is aktív, a nagy térképet eltoljuk középre a kép alá! */
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) .map-section.map-results-active {
    width: 500px !important;   /* Kompakt nagy méret */
    height: 350px !important;
    opacity: 1 !important;
    right: 380px !important;   /* Pontosan a jobb oldali panel MELLÉ tolja be balra a térképet */
    bottom: 20px !important;   /* Alul középen marad */
}

#map {
    width: 100%;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

#guessBtn {
    width: 100%;
    padding: 10px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

/* ============================================================
   BELSŐ PANEL FORMÁZÁSOK & ANIMÁCIÓK
   ============================================================ */
.game-over-panel h2 { margin-bottom: 6px; color: var(--yellow); font-size: 26px; }
.game-over-panel p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.rounds-highlight { margin: 16px 0; padding: 16px; border: 1px solid rgba(255, 212, 59, 0.3); border-radius: 16px; background: rgba(255, 212, 59, 0.06); }
.rounds-highlight span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.rounds-highlight strong { color: var(--yellow); font-size: 42px; font-weight: 900; line-height: 1; }
.xp-gain-box { margin: 16px 0; padding: 14px; border: 1px solid rgba(66, 223, 125, 0.3); border-radius: 16px; background: rgba(66, 223, 125, 0.05); }
.xp-gain-box span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.xp-gain-box strong { color: var(--green); font-size: 24px; font-weight: 800; }
.level-up-text { margin-top: 6px; color: var(--yellow); font-weight: 800; font-size: 14px; }
.statistics { margin: 20px 0 25px; display: flex; flex-direction: column; gap: 12px; text-align: left; background: rgba(0, 0, 0, 0.15); padding: 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.03); }
.statistics div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); padding-bottom: 8px; }
.statistics div:last-child { border-bottom: none; padding-bottom: 0; }
.statistics span { color: var(--muted); }
.statistics strong { color: var(--text, #ffffff); }
.game-over-buttons { display: flex; flex-direction: column; gap: 10px; }

.result-title { font-size: 22px; font-weight: 900; color: #ffffff; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.result-description { font-size: 13px; line-height: 1.5; color: var(--muted); background: rgba(0, 0, 0, 0.2); padding: 12px; border-radius: 10px; margin-top: auto; }
.badge-row { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.badge { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-strong); padding: 10px; border-radius: 12px; }
.badge-main { font-size: 15px; font-weight: 700; color: #ffffff; }
.badge-sub { font-size: 11px; color: var(--muted); }
.score-line { font-size: 14px; font-weight: 700; color: var(--yellow); text-align: center; padding: 8px; background: rgba(255, 212, 59, 0.05); border-radius: 8px; border: 1px dashed rgba(255, 212, 59, 0.2); }
#nextRoundBtn { width: 100%; padding: 14px; font-size: 15px; font-weight: 800; margin-top: 5px; }

@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ============================================================
   GOMBOK
   ============================================================ */

.primary-button,
.secondary-button,
.danger-button {
    display: block;
    width: 100%;

    min-height: 48px;
    padding: 13px 20px;

    border-radius: 13px;

    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.primary-button {
    border: none;

    background: var(--green);
    color: #0e2216;
}

.primary-button:hover {
    background: #70ed9d;
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--border-strong);

    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.danger-button {
    border: 1px solid rgba(255, 92, 92, 0.45);

    background: rgba(255, 92, 92, 0.18);
    color: #ff8989;
}

/* ============================================================
   TÉRKÉP KÉNYSZERÍTETT NAGY MÉRETE JÁTÉK VÉGÉN ÉS KIHIRDETÉSNÉL
   ============================================================ */

/* Amikor ez az osztály aktív, a térkép fixen nagy marad, nem zsugorodik össze */
.map-section.map-results-active {
    width: 550px !important;
    height: 400px !important;
    opacity: 1 !important;
    bottom: 25px !important;
    right: 25px !important;
}

/* Becsúszó animáció deklarációja */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ============================================================
   SAJÁT MODAL ÉS ÉRTESÍTÉS
   ============================================================ */

.custom-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 3, 8, 0.78);
    backdrop-filter: blur(8px);
}

.custom-modal.hidden {
    display: none;
}

.custom-modal-card {
    width: min(440px, 100%);
    padding: 28px;

    border: 1px solid var(--border-strong);
    border-radius: 22px;

    background: var(--panel-solid);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);

    text-align: center;
}

.custom-modal-icon {
    margin-bottom: 10px;
    font-size: 34px;
}

.custom-modal-card h2 {
    margin-bottom: 10px;

    color: var(--yellow);
    font-size: 24px;
}

.custom-modal-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;

    margin-top: 22px;
}

.custom-modal-actions button {
    flex: 1;
}

.notify {
    position: fixed;
    z-index: 9999;
    right: 24px;
    bottom: 24px;
    left: auto;
    top: auto;

    max-width: 380px;
    padding: 14px 18px;

    border: 1px solid var(--border-strong);
    border-radius: 13px;

    background: #242436;
    color: var(--text);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.notify.error {
    border-color: rgba(255, 92, 92, 0.5);
    color: #ff9696;
}

.notify.success {
    border-color: rgba(66, 223, 125, 0.5);
    color: var(--green);
}

/* ============================================================
   AUTH OLDALAK
   ============================================================ */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: min(400px, 100%);
    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--panel);
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
    backdrop-filter: var(--blur);

    text-align: center;
}

.auth-card h1 {
    margin-bottom: 7px;

    color: var(--yellow);
    font-size: 28px;
}

.auth-card h2 {
    margin-bottom: 22px;

    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 7px;

    text-align: left;
}

.auth-card label {
    margin-top: 10px;

    color: var(--muted);
    font-size: 13px;
}

.auth-card input {
    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.auth-card input:focus {
    outline: none;
    border-color: var(--yellow);
}

.auth-message {
    min-height: 20px;
    margin-top: 15px;

    font-size: 14px;
}

.auth-message.error {
    color: var(--red);
}

.auth-message.success {
    color: var(--green);
}

.auth-switch {
    margin-top: 18px;

    color: var(--muted);
    font-size: 13px;
}

.auth-switch a {
    color: var(--yellow);
}

/* ============================================================
   GEOGUESSR-MENTES MOZI-STÍLUSÚ MODERN MŰSZERFAL (DASHBOARD)
   ============================================================ */
.dashboard-body {
    background-color: #0d0d12 !important;
    background-image: 
        radial-gradient(circle at 75% 30%, rgba(255, 212, 59, 0.03) 0px, transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(66, 223, 125, 0.02) 0px, transparent 45%) !important;
}

.movie-modern-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    max-width: 1050px;
    margin: 20px auto 50px; /* JAVÍTVA: A 100px margó törölve, így eltűnik a csúnya sáv! */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- BAL OLDALI VEZÉRLŐ PANEL --- */
.dash-panel-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cinema-welcome-card {
    background: var(--panel, #14141b);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--blur);
}

.cinema-welcome-card .eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted, #8a8a93);
    display: block;
    margin-bottom: 2px;
}

.cinema-welcome-card h2 {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--text, #ffffff);
}

.game-modes-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mode-card {
    background: #13131a;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.mode-card:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.solo-card:hover {
    transform: translateY(-2px);
    border-color: var(--yellow, #ffd43b);
    box-shadow: 0 10px 30px rgba(255, 212, 59, 0.06);
}

/* Aréna hover: ranked zöld izzás */
.arena-card:hover {
    transform: translateY(-2px);
    border-color: #42df7d;
    box-shadow: 0 10px 30px rgba(66, 223, 125, 0.06);
}

.mode-icon { font-size: 26px; }
.mode-info h3 { margin: 0 0 3px; font-size: 15px; color: var(--yellow, #ffd43b); font-weight: 800; }
.mode-info p { margin: 0; font-size: 12.5px; color: var(--muted, #8a8a93); line-height: 1.4; }
.mode-arrow { margin-left: auto; color: var(--muted); font-weight: bold; transition: transform 0.2s; }
.mode-card:hover .mode-arrow { transform: translateX(2px); color: #fff; }

.mode-badge-neon {
    position: absolute;
    top: 0;
    right: 18px;
    background: #42df7d;
    color: #0b0b0f;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.5px;
}

.mini-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stat-box { background: var(--panel, #14141b); border: 1px solid var(--border, rgba(255,255,255,0.08)); padding: 14px; border-radius: 14px; text-align: center; }
.mini-stat-box span { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted, #8a8a93); font-weight: 800; margin-bottom: 2px; }
.mini-stat-box strong { font-size: 16px; color: #fff; font-weight: 800; }

.arena-stat-accent { border-left: 3px solid #42df7d !important; }

/* --- JOBB OLDALI PANEL PANEL --- */
.dash-panel-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

/* ============================================================
   KÖZPONTI BEOLVASZTOTT MOZI VETÍTŐTEREM STÍLUS (style.css)
   ============================================================ */

/* FŐOLDAL ÉS OLDALAK FELSŐ ELTOLÁSA (Megakadályozza a fixed menü mögé csúszást) */
.page-content, 
.movie-modern-dashboard, 
.leaderboard-page, 
.profile-page,
.dashboard {
    padding-top: 95px !important; /* Biztonságos távolság a 70px magas fixed menütől */
    box-sizing: border-box;
}

/* FŐOLDAL (DASHBOARD) KÖZÉPRE IGAZÍTÁSA ÉS ELRENDEZÉSE */
.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 850px; /* Egységessé teszi a belső kártyák szélességét */
    margin: 0 auto;  /* Vízszintesen középre teszi a teljes konténert */
    gap: 20px;       /* Egységes térköz a szekciók között */
    min-height: calc(100vh - 70px); /* Kitölti a menü alatti tiszta képernyőmagasságot */
}

/* FŐ HŐS SZEKCIÓ (A nagy kártya) */
.dashboard-hero {
    width: 100%;
    background: var(--panel, rgba(24, 24, 36, 0.86));
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.dashboard-hero h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #ffffff;
}

.dashboard-subtitle {
    color: var(--muted, #9d9dad);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.hero-button {
    background: var(--yellow, #ffd43b);
    color: #090910;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.hero-button:hover {
    background: var(--yellow-light, #ffe37a);
    transform: translateY(-1px);
}

/* STATISZTIKAI KÁRTYÁK (3 oszlopos grid) */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.stat-card {
    background: var(--panel, rgba(24, 24, 36, 0.86));
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card span {
    color: var(--muted, #9d9dad);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card strong {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

/* ALSÓ GYORS LINKEK (2 oszlopos grid) */
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.dashboard-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--panel, rgba(24, 24, 36, 0.86));
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dashboard-link-card:hover {
    background: var(--panel-solid, #1b1b29);
    border-color: var(--yellow, #ffd43b);
    transform: translateY(-2px);
}

.dashboard-link-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dashboard-link-card h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-link-card p {
    margin: 0;
    color: var(--muted, #9d9dad);
    font-size: 13px;
    line-height: 1.4;
}

/* VETÍTŐTEREM KÖZPONTI BLOKK */
.cinema-center-piece {
    position: relative;
    width: 100%;
    height: 220px; 
    display: flex;
    flex-direction: column-reverse; /* FÜGGŐLEGES OSZLOP ÉS MEGFORDÍTOTT SORREND */
    justify-content: center;
    align-items: center;
    gap: 16px; /* Tiszta, fix távolság a név és a profilkép között */
    background: radial-gradient(circle at center, #181822 0%, #0d0d12 100%);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    padding: 24px;
    text-align: center;
}

/* Felül elhelyezkedő név és rang doboza */
.cinema-user-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 3;
    order: 1; /* Ez kényszeríti legfelülre a nevet */
}

.cinema-user-meta h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cinema-user-meta .user-title-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted, #9d9dad);
    margin: 0;
    min-height: 14px;
}

/* Alul elhelyezkedő lebegő profilkép tárolója */
.cinema-clapper-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    order: 2; /* Ez kényszeríti a név alá a profilképet */
    animation: floatCinemaAvatar 4s ease-in-out infinite;
}

/* Vetítőgép neon izzása pontosan az avatar mögött */
.cinema-glow-backdrop {
    position: absolute;
    top: 55%; /* Lejjebb tolva, hogy a profilkép mögött központosuljon */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 212, 59, 0.12) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 1;
    animation: pulseCinemaGlow 4s ease-in-out infinite;
}

/* ============================================================
   MINDENKORI XP ÉS SZINT KÖVETŐ PANEL (style.css)
   ============================================================ */
.xp-tracker-card {
    background: var(--panel, rgba(24, 24, 36, 0.86));
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xp-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-level-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted, #9d9dad);
    letter-spacing: 0.5px;
}

.xp-level-badge {
    background: rgba(255, 212, 59, 0.15);
    color: var(--yellow, #ffd43b);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 212, 59, 0.25);
}

/* Progress bar csík tárolója */
.xp-progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Aktuális XP növekedési sáv neonos animációval */
.xp-progress-bar {
    height: 100%;
    width: 0%; /* Ezt a JS fogja dinamikusan állítani (pl. 45%) */
    background: linear-gradient(90deg, #ffd43b 0%, #ffad33 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 212, 59, 0.4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Szép, egyenletes növekedési animáció */
}

.xp-tracker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.xp-numeric-display {
    color: #ffffff;
}

.xp-next-level-tip {
    color: var(--muted, #9d9dad);
}

/* BATTLEPASS PROMÓCIÓS SZEKCIÓ */
.battlepass-promo-card {
    background: linear-gradient(135deg, rgba(28, 19, 58, 0.5) 0%, rgba(15, 10, 38, 0.75) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.bp-promo-header { 
    display: flex; 
    justify-content: space-between; 
    font-size: 11px; 
    text-transform: uppercase; 
    font-weight: 800; 
    color: #a78bfa; 
    margin-bottom: 10px; 
}

.battlepass-promo-card h3 { margin: 0 0 6px; color: #fff; font-size: 17px; font-weight: 900; }
.battlepass-promo-card p { margin: 0 0 16px; color: #cbd5e1; font-size: 13px; line-height: 1.4; }

.bp-promo-btn {
    display: block;
    text-align: center;
    background: #8b5cf6;
    color: #fff;
    text-decoration: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.bp-promo-btn:hover { background: #7c3aed; transform: translateY(-1px); }

/* GYORS LINKEK EGY SORBAN */
.sidebar-links-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }

.sidebar-shortcut-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    text-decoration: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sidebar-shortcut-link:hover {
    background: #141419;
    color: var(--yellow, #ffd43b);
    border-color: var(--yellow, #ffd43b);
    transform: translateY(-2px);
}

/* ANIMÁCIÓK */
@keyframes floatCinemaAvatar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(0.5deg); }
}
@keyframes pulseCinemaGlow {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.15); opacity: 0.16; }
}

/* RESPONSIVE JAVÍTÁSOK */
@media (max-width: 800px) {
    .movie-modern-dashboard, .dashboard { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        margin: 10px auto; 
        padding: 16px;
    }
    .dashboard-stats {
        grid-template-columns: 1fr; /* Mobilnézetben egymás alá rakja a statokat */
    }
    .dashboard-links {
        grid-template-columns: 1fr; /* Mobilnézetben egymás alá rakja a linkeket */
    }
    .cinema-center-piece { height: 140px; }
}

/* ============================================================
   PROFIL / TOPLISTA / BATTLEPASS
   ============================================================ */

.page-body {
    min-height: 100vh;
}

.page-content {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.page-content h1 {
    margin-bottom: 25px;
    color: var(--yellow);
}

.page-content h2 {
    margin: 30px 0 15px;
    color: var(--muted);
    font-size: 19px;
}

.page-subtitle {
    margin-top: -15px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-box {
    padding: 19px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stat-box span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);
    font-size: 13px;
}

.stat-box strong {
    color: var(--yellow);
    font-size: 21px;
}

.history-table {
    width: 100%;
    margin-top: 10px;

    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 13px 14px;

    border-bottom: 1px solid var(--border);

    font-size: 14px;
    text-align: left;
}

.history-table th {
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   BATTLEPASS
   ============================================================ */

.battlepass-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.eyebrow {
    margin-bottom: 6px;

    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.battlepass-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(255, 212, 59, 0.12),
            transparent 60%
        ),
        var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur);
}

.battlepass-hero h1 {
    margin-bottom: 6px;
    color: var(--yellow);
    font-size: 30px;
}

.battlepass-hero-icon {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-strong);
    border-radius: 20px;

    background: rgba(255, 212, 59, 0.1);
    font-size: 34px;
}

.xp-progress-card {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.05);
}

.xp-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 12px;
}

.xp-progress-level {
    display: flex;
    align-items: baseline;
    gap: 10px;

    color: var(--muted);
    font-size: 14px;
}

.xp-progress-level strong {
    color: var(--yellow);
    font-size: 22px;
}

.xp-progress-value {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.xp-progress-bar-track {
    width: 100%;
    height: 16px;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.xp-progress-bar-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(90deg, var(--yellow), #fff0a4);
    box-shadow: 0 0 18px rgba(255, 212, 59, 0.5);

    transition: width 0.4s ease;
}

.xp-progress-note {
    margin-top: 12px;

    color: var(--muted);
    font-size: 13px;
}

.battlepass-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.05);
}

.info-card-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);

    font-size: 22px;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-card-body span {
    color: var(--muted);
    font-size: 12px;
}

.info-card-body strong {
    color: var(--yellow);
    font-size: 19px;
}

.info-card-body small {
    color: var(--muted);
    font-size: 11px;
}

.rewards-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.section-heading h2 {
    color: var(--text);
    font-size: 21px;
}

.reward-status-summary {
    padding: 8px 16px;

    border: 1px solid rgba(255, 212, 59, 0.35);
    border-radius: 999px;

    background: rgba(255, 212, 59, 0.08);
    color: var(--yellow);

    font-size: 13px;
    font-weight: 700;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.reward-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 22px 18px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);
    text-align: center;

    transition: transform 0.15s ease;
}

.reward-card:hover {
    transform: translateY(-3px);
}

.reward-card.reward-locked {
    opacity: 0.6;
}

.reward-card.reward-unlocked {
    border-color: rgba(255, 212, 59, 0.55);
    background: rgba(255, 212, 59, 0.07);
}

.reward-card.reward-claimed {
    border-color: rgba(66, 223, 125, 0.5);
    background: rgba(66, 223, 125, 0.07);
}

.reward-level-badge {
    margin-bottom: 12px;
    padding: 4px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
}

.reward-name {
    margin-bottom: 8px;

    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.reward-description {
    min-height: 36px;
    margin-bottom: 16px;

    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.reward-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.claim-button {
    width: 100%;
    padding: 10px 18px;

    border: none;
    border-radius: 12px;

    background: var(--yellow);
    color: #14141b;

    font-size: 14px;
    font-weight: 800;
}

.claim-button:hover {
    background: var(--yellow-light);
}

.loading-card {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 50px 20px;

    color: var(--muted);
}

.loading-spinner {
    width: 34px;
    height: 34px;

    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--yellow);
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 60px 20px;

    border: 1px dashed var(--border-strong);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.empty-state-icon {
    font-size: 40px;
}

.empty-state h2 {
    color: var(--yellow);
}

.empty-state p {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .game-hud {
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 800px) {
    .topbar,
    .game-topbar {
        min-height: 74px;
        padding: 12px 18px;
    }

    .main-nav {
        gap: 12px;
    }

    .nav-user {
        margin-left: 0;
    }

    .game-status-brand {
        width: 100%;
        font-size: 15px;
    }

    .game-status-user {
        order: 2;
    }

    .give-up-button {
        order: 3;
    }

    .game-hud {
        gap: 8px;
        flex-wrap: wrap;
    }

    .remaining-movies,
    .timer-display,
    .score-display {
        min-width: auto;
        padding: 8px 12px;
        font-size: 13px;
    }

    .game-container {
        height: calc(100vh - 74px);
    }

    .year-panel {
        top: 18px;
        padding: 17px 20px;
    }

    .year-value {
        font-size: 31px;
    }

    .map-section {
        right: 12px;
        bottom: 12px;

        width: calc(100% - 24px);
        height: 310px;
    }

    .result-banner {
        top: 16px;
        width: calc(100% - 24px);
        padding: 20px;
    }

    .badge-row {
        flex-direction: column;
    }

    .game-over-panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 22px;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .custom-modal-actions {
        flex-direction: column;
    }

    .notify {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
    }

    .dashboard,
    .page-content {
        width: calc(100% - 28px);
        padding-top: 30px;
    }

    .dashboard-hero {
        padding: 40px 20px;
    }

    .dashboard-hero h1 {
        font-size: 30px;
    }

    .dashboard-stats,
    .dashboard-links,
    .stats-summary,
    .battlepass-info-grid {
        grid-template-columns: 1fr;
    }

    .battlepass-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .battlepass-hero-icon {
        align-self: flex-end;
    }

    .xp-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 500px) {
    .game-hud {
        justify-content: space-between;
        width: 100%;
    }

    .remaining-movies {
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timer-display {
        min-width: 85px;
    }

    .score-display {
        min-width: 90px;
    }
}

/* ============================================================
   GAME OVER PANEL — TOVÁBBFEJLESZTETT MEGJELENÉS
   ============================================================ */

.game-over-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    border: 1px solid var(--border-strong);

    background: rgba(255, 212, 59, 0.1);
    font-size: 30px;

    animation: gameOverPop 0.35s ease-out;
}

@keyframes gameOverPop {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-over-panel {
    animation: gameOverFade 0.25s ease-out;
}

@keyframes gameOverFade {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================================
   PROFIL OLDAL — MODERN ELRENDEZÉS
   ============================================================ */

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 30px 34px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(circle at top left, rgba(255, 212, 59, 0.1), transparent 55%),
        var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur);
}

.profile-avatar {
    flex-shrink: 0;

    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;
    border: 1px solid var(--border-strong);

    background: rgba(255, 212, 59, 0.12);
    font-size: 36px;
}

.profile-hero-text h1 {
    margin: 4px 0 6px;
    color: var(--yellow);
    font-size: 28px;
}

/* ============================================================
   VIZUÁLIS JÁTÉKSTÚDIÓS RANGLÉTRA (style.css)
   ============================================================ */
.career-timeline-section {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.ranks-timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 20px;
    margin-top: 20px;
}

/* A Geoguessr stílusú összekötő vonal */
.timeline-connecting-line {
    position: absolute;
    top: 20px;
    left: 42px;
    bottom: 20px;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

/* Egy alapértelmezett, zárolt rang sor dizájnja */
.timeline-rank-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    border-radius: 14px;
    z-index: 2;
    transition: all 0.4s ease;
    opacity: 0.5; /* Halvány, mert még nem érte el */
}

/* Nagy kör az emojinak */
.timeline-rank-badge {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #1a1a26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-rank-info {
    flex: 1;
}

.timeline-rank-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.rank-req {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: var(--muted, #9d9dad);
    font-weight: 600;
}

.timeline-rank-status {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted, #9d9dad);
    letter-spacing: 0.5px;
}

/* 🌟 AZ AKTUÁLISAN ELÉRT RANG PRÉMIUM KIEMELÉSE 🌟 */
.timeline-rank-item.current-rank {
    opacity: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(24, 24, 36, 0.9) 100%);
    border-left: 4px solid var(--current-rank-color, #ffd43b);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-rank-item.current-rank .timeline-rank-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--current-rank-color, #ffd43b);
    box-shadow: 0 0 15px var(--current-rank-color, #ffd43b);
}

.timeline-rank-item.current-rank .timeline-rank-status {
    color: var(--current-rank-color, #ffd43b);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================
   KÉTHASÁBOS KÖZPONTI PROFIL DESIGN
   ============================================================ */
.profile-two-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Bal hasáb fix 280px a létrának, a jobb hasáb kapja a maradék helyet */
    gap: 28px;
    width: 100%;
    align-items: start;
    margin-top: 20px;
}

/* Bal oldali konténer formázása */
.profile-layout-left {
    position: sticky;
    top: 95px; /* Gördítéskor a képernyő tetején ragad a ranglétra, ha nagyon hosszú lenne a táblázat */
}

.career-timeline-section-modern {
    background: var(--panel, rgba(24, 24, 36, 0.86));
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.section-heading-timeline {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    padding-bottom: 12px;
}

.section-heading-timeline h3 {
    margin: 4px 0 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* Ranglétra tömörítése a hasábhoz */
.ranks-timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 10px;
}

.timeline-connecting-line {
    position: absolute;
    top: 15px;
    left: 28px;
    bottom: 15px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.timeline-rank-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(20, 20, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 10px 16px;
    border-radius: 12px;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.timeline-rank-badge {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: #151522;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-rank-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.rank-req {
    margin: 1px 0 0 0;
    font-size: 11px;
    color: var(--muted, #9d9dad);
}

.timeline-rank-status {
    font-size: 11px;
    font-weight: 800;
    margin-left: auto;
    color: var(--muted, #9d9dad);
}

/* Aktuális rang kiemelése a hasábban */
.timeline-rank-item.current-rank {
    opacity: 1;
    background: rgba(27, 27, 41, 0.9);
    border-left: 3px solid var(--current-rank-color, #ffd43b);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-rank-item.current-rank .timeline-rank-badge {
    border-color: var(--current-rank-color, #ffd43b);
    box-shadow: 0 0 10px var(--current-rank-color, #ffd43b);
}

.timeline-rank-item.current-rank .timeline-rank-status {
    color: var(--current-rank-color, #ffd43b);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Jobb oldali hasáb belső elemei */
.profile-layout-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Reszponzivitás: Ha kicsi a monitor vagy mobilról nézik, egymás alá ugranak vissza a hasábok */
@media (max-width: 1000px) {
    .profile-two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-layout-left {
        position: static;
    }
}

/* ============================================================
   JÁTÉKSTÚDIÓS PRÉMIUM PROFIL XP PANEL (style.css)
   ============================================================ */
.profile-xp-container-modern {
    background: linear-gradient(135deg, var(--panel, rgba(24, 24, 36, 0.86)) 0%, #131322 100%);
    backdrop-filter: var(--blur, blur(18px));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-xp-header-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Játékstúdiós Szint jelvény dizájn */
.profile-level-badge-zone {
    background: rgba(255, 212, 59, 0.08);
    border: 2px solid var(--yellow, #ffd43b);
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 90px;
}

.level-badge-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted, #9d9dad);
    letter-spacing: 1px;
}

.level-badge-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--yellow, #ffd43b);
    line-height: 1.1;
    margin-top: 2px;
}

/* Szöveges zóna */
.profile-xp-text-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xp-zone-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted, #9d9dad);
    letter-spacing: 0.5px;
}

.xp-values-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.xp-current-num {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
}

.xp-total-label {
    font-size: 13px;
    color: var(--muted, #9d9dad);
    font-weight: 500;
}

/* AAA kategóriás progress bar csík */
.profile-progress-track {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-progress-bar-fill {
    height: 100%;
    width: 0%; /* JS dinamikusan növeli */
    background: linear-gradient(90deg, #ffd43b 0%, #ff5c5c 100%); /* Gyönyörű átmenet a sárgából a neonvörösbe */
    border-radius: 999px;
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.38);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-xp-footer-tip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
}

.xp-footer-left {
    color: var(--muted, #9d9dad);
}

.xp-footer-right {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kis monitorokra igazítás */
@media (max-width: 600px) {
    .profile-xp-header-main { flex-direction: column; align-items: flex-start; gap: 14px; }
    .profile-level-badge-zone { width: 100%; }
    .profile-xp-footer-tip { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Rang szerint változó neon pulzálások */
.profile-level-badge-zone {
    transition: all 0.5s ease-in-out;
}

/* Játékos szint badge a főoldalon */
.xp-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease;
}

.history-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/*
    A "Korábbi játékok" táblázat itt kap FIX magasságot,
    a lista ezen belül görgethető, nem nyúlik le végtelenül.
*/
.history-table-wrapper {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.03);
}

.history-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.history-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 212, 59, 0.35);
    border-radius: 999px;
}

.history-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.history-table-wrapper .history-table {
    margin-top: 0;
}

.history-table-wrapper .history-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;

    background: #1b1b29;
}

.xp-cell {
    color: var(--green);
    font-weight: 700;
}

.empty-state-text {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

/* ============================================================
   TOPLISTA — MODERN DOBOGÓ + RANGSOR (FIX MAGASSÁGÚ, SCROLLOS)
   ============================================================ */

.leaderboard-page {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Egységes, szép belső távolság az elemek között */
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px; /* Megnövelt felső padding a topbar alá */
}

/* JAVÍTÁS: Szellősebb Hero elrendezés extra alsó margóval */
.leaderboard-hero {
    text-align: center;
    padding: 20px 0 10px;
    margin-bottom: 10px;
}

.leaderboard-hero-text h1 {
    margin: 8px 0 12px;
    font-size: 42px; /* Kicsit hangsúlyosabb, prémium cím */
    font-weight: 900;
    color: #ffffff;
}

.leaderboard-hero-text .eyebrow {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--yellow, #ffd43b);
    margin: 0;
}

.page-subtitle {
    color: var(--muted, #8a8a93);
    font-size: 15px;
    margin: 0;
}

/* ============================================================
   ÚJ JAVÍTÁS: PRÉMIUM JÁTÉKMÓD VÁLASZTÓ FÜLEK (TABS) A TOPLISTÁN
   ============================================================ */
.profile-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Középre rendezzük a gombokat */
    gap: 16px;
    border-bottom: 1px solid var(--border-strong, #2a2a32);
    padding-bottom: 20px;
    margin: 10px auto 20px;
    width: 100%;
}

.profile-tab-btn {
    background: #141419;
    border: 1px solid var(--border-strong, #2a2a32);
    color: var(--muted, #8a8a93);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.profile-tab-btn:hover {
    color: #ffffff;
    background: #1e1e24;
    border-color: #3f3f46;
}

/* Aktív, kiválasztott fül stílusa sárga neonos kiemeléssel */
.profile-tab-btn.active {
    color: var(--yellow, #ffd43b) !important;
    background: rgba(255, 212, 59, 0.04) !important;
    border-color: var(--yellow, #ffd43b) !important;
    box-shadow: 0 0 20px rgba(255, 212, 59, 0.06);
}

/* Dobogó alapcsoport */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding: 30px 20px 0;
    margin: 10px 0 30px;
}

.podium.hidden {
    display: none;
}

/* Egyéni oszlop konténerek */
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 160px;
    transition: transform 0.3s ease;
}

.podium-place:hover {
    transform: translateY(-4px);
}

.podium-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    width: 100%;
}

/* Lebegő Animált Korona az 1. helyezettnek */
.podium-crown {
    font-size: 26px;
    position: absolute;
    top: -28px;
    animation: floatCrown 2s ease-in-out infinite;
}

.podium-avatar {
    font-size: 36px;
    margin-bottom: 4px;
}

.podium-name {
    color: var(--text, #ffffff);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-xp {
    color: var(--yellow, #ffd43b);
    font-size: 13px;
    font-weight: 700;
}

/* A fizikai oszlopblokkok nagy belső helyezésszámmal */
.podium-bar {
    width: 100%;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border-strong);
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 900;
    font-family: inherit;
}

/* 1. Helyezett Oszlop (Arany neon hatás) */
.podium-bar-1 {
    height: 140px;
    background: linear-gradient(180deg, rgba(255, 212, 59, 0.22), rgba(255, 212, 59, 0.04));
    border-color: rgba(255, 212, 59, 0.4);
    color: rgba(255, 212, 59, 0.25);
    box-shadow: 0 0 40px rgba(255, 212, 59, 0.08);
}

/* 2. Helyezett Oszlop (Ezüst hatás) */
.podium-bar-2 {
    height: 100px;
    background: linear-gradient(180deg, rgba(200, 200, 210, 0.18), rgba(200, 200, 210, 0.03));
    border-color: rgba(200, 200, 210, 0.25);
    color: rgba(200, 200, 210, 0.15);
}

/* 3. Helyezett Oszlop (Bronz hatás) */
.podium-bar-3 {
    height: 75px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.18), rgba(205, 127, 50, 0.03));
    border-color: rgba(205, 127, 50, 0.25);
    color: rgba(205, 127, 50, 0.15);
}

/* CSS Sorrend elrendezés (Flexbox order) */
.podium-first { order: 2; }
.podium-second { order: 1; }
.podium-third { order: 3; }

/* Letisztult Táblázat szekció */
.section-heading {
    margin-bottom: 16px;
}

/* JAVÍTOTT: FIX MAGASSÁGÚ ÉS BELSŐ GÖRGETÉSŰ WRAPPER KONTÉNER */
.leaderboard-table-wrapper {
    background: var(--panel-solid, #1e1e24);
    border: 1px solid var(--border-strong, #2a2a32);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    
    /* Fix magasság beállítása (pl. maximum 400px vagy 5-6 sornyi hely) */
    max-height: 400px; 
    
    /* Aktiválja a belső függőleges görgetősávot túlcsordulás esetén */
    overflow-y: auto; 
    overflow-x: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px 24px;
}

/* STICKY FEJLÉC: Görgetés közben is fixen felül marad */
.leaderboard-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #15151a; /* Használj egy teljesen teli, sötét háttérszínt */
    color: var(--muted, #8a8a93);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 -1px 0 var(--border-strong); /* Megtartja az elválasztóvonalat */
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Helyezés alapú egyéni sorstílusok */
.leaderboard-table .rank-cell {
    font-weight: 800;
    color: var(--muted);
}

.leaderboard-table tr.rank-gold .rank-cell { color: var(--yellow); }
.leaderboard-table tr.rank-silver .rank-cell { color: #d8d8e0; }
.leaderboard-table tr.rank-bronze .rank-cell { color: #d69a5c; }

.leaderboard-table tr.rank-gold td { background: rgba(255, 212, 59, 0.03); }
.leaderboard-table tr.rank-silver td { background: rgba(200, 200, 210, 0.02); }
.leaderboard-table tr.rank-bronze td { background: rgba(205, 127, 50, 0.02); }

/* Aktív bejelentkezett felhasználó kiemelése */
.table-row-active td {
    border-left: 3px solid var(--yellow);
    font-weight: 700;
}

.col-rank { width: 70px; }
.col-xp { text-align: right; color: var(--green, #42df7d); font-weight: 600; }

/* Korona lebegtető animáció */
@keyframes floatCrown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================================
   RESPONSIVE — PROFIL / TOPLISTA
   ============================================================ */

@media (max-width: 800px) {
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
    }

    .profile-xp-row {
        grid-template-columns: 1fr;
    }

    .history-table-wrapper {
        max-height: 340px;
    }

    .podium {
        gap: 10px;
        padding: 20px 6px 0;
    }

    .podium-place {
        width: 100px;
    }

    .podium-name {
        font-size: 12px;
        max-width: 95px;
    }

    .podium-bar-1 {
        height: 100px;
    }

    .podium-bar-2 {
        height: 70px;
    }

    .podium-bar-3 {
        height: 50px;
    }
}

/* Ha a játék vége ablak látható (nincs rajta a .hidden osztály), a fejléc eltűnik */
body:has(#gameOverPanel:not(.hidden)) .game-topbar {
    display: flex !important;
}

/* ============================================================
   MODERN FŐOLDAL (DASHBOARD) STÍLUSOK
   ============================================================ */

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Hero szekció modernizálása */
.dashboard-hero {
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.05) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-badge {
    background: rgba(255, 212, 59, 0.1);
    border: 1px solid rgba(255, 212, 59, 0.25);
    color: var(--yellow, #ffd43b);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-subtitle {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted, #8a8a93);
    margin: 0 auto 10px;
}

/* Prémium, pulzáló indítógomb */
.hero-button {
    background: var(--yellow, #ffd43b);
    color: #0b0b0d;
    border: none;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 212, 59, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-button:hover {
    background: #ffe066;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 212, 59, 0.35);
}

.hero-button span {
    font-size: 14px;
}

/* Hogyan működik? szekció stílusai */
.how-to-play {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--yellow, #ffd43b);
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-strong, #2a2a32);
    padding: 24px;
    border-radius: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.step-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.step-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted, #8a8a93);
}

/* Statisztikák kártyái */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--panel-solid, #1e1e24);
    border: 1px solid var(--border-strong, #2a2a32);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card span {
    font-size: 13px;
    color: var(--muted, #8a8a93);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card strong {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

/* Kiemelt sárga statisztika a leghosszabb játékhoz */
.highlight-card {
    border-color: rgba(255, 212, 59, 0.2);
    background: linear-gradient(180deg, rgba(255, 212, 59, 0.02) 0%, transparent 100%), var(--panel-solid, #1e1e24);
}

.highlight-card strong {
    color: var(--yellow, #ffd43b);
}

/* Alsó navigációs link-kártyák */
.dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--panel-solid, #1e1e24);
    border: 1px solid var(--border-strong, #2a2a32);
    padding: 20px 24px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dashboard-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-link-icon {
    font-size: 26px;
    background: rgba(255, 255, 255, 0.03);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-card-body {
    flex: 1;
}

.dashboard-link-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.dashboard-link-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted, #8a8a93);
}

.link-card-arrow {
    font-size: 18px;
    color: var(--muted, #8a8a93);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-link-card:hover .link-card-arrow {
    transform: translateX(4px);
    color: var(--yellow, #ffd43b);
}

/* ============================================================
   PRÉMIUM GÖRGETHETŐ LANDING & LOGIN DIZÁJN (GEOGUESSR STÍLUS)
   ============================================================ */

/* Alapbeállítások a bemutató oldalhoz */
.landing-body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0b0b0d;
    color: #ffffff;
    overflow-x: hidden;
    /* Engedélyezzük a függőleges görgetést a marketing infóknak */
    overflow-y: auto !important; 
}

/* Teljes képernyős felső szekció */
.landing-hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
    /* Filmszínházas sötét, finom sugárirányú háttérfény */
    background: radial-gradient(circle at 10% 20%, rgba(255, 212, 59, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(66, 223, 125, 0.02) 0%, transparent 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Kétoszlopos elrendezés (Balra szöveg, jobbra bejelentkezés) */
.landing-grid-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    z-index: 10;
}

@media (max-width: 950px) {
    .landing-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* Bal oldali szövegcsoport */
.landing-hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 950px) {
    .landing-hero-text {
        align-items: center;
    }
}

.landing-hero-text h1 {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-lead {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    color: #8a8a93;
    max-width: 600px;
    margin: 0;
}

.landing-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 14px;
}

.rating-text {
    color: #ffd43b;
    font-weight: 600;
}

/* Bejelentkező kártya csomagolása finom külső fénnyel */
.auth-card-wrapper {
    width: 100%;
    position: relative;
}

.auth-card {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 212, 59, 0.02);
    width: 100%;
    box-sizing: border-box;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff;
}

.auth-card-header p {
    margin: 0;
    font-size: 14px;
    color: #8a8a93;
}

/* Modern beviteli mezők (Inputs) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #c0c0c5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    background: #0b0b0d;
    border: 1px solid #2a2a32;
    padding: 14px 16px;
    font-size: 15px;
    color: #ffffff;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    margin-top: 10px;
}

.auth-card-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
}

/* Görgetésjelző animáció */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8a93;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-down {
    font-size: 18px;
    color: #ffd43b;
    animation: bounceArrow 1.5s infinite;
}

/* LENTI TARTALMI RÉSZ: HOGYAN MŰKÖDIK */
.landing-info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.center-heading {
    text-align: center;
    margin-bottom: 60px;
}

.center-heading h2 {
    font-size: 36px;
    font-weight: 900;
    margin: 4px 0 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: #8a8a93;
    font-size: 16px;
    margin: 0;
}

/* Stílusos, számozott kártya rács */
.steps-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step-modern-card {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 35px 28px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-modern-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 212, 59, 0.15);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 212, 59, 0.2);
    font-family: monospace;
}

.step-icon-large {
    font-size: 36px;
    margin-bottom: 20px;
}

.step-modern-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
}

.step-modern-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #8a8a93;
    margin: 0;
}

/* Nyíl ugráló animáció */
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================================
   1V1 ARÉNA — TELJES JÁTÉKMÓD KIEGÉSZÍTÉS
   ============================================================ */

/* --- MECCSKERESŐ ELŐTÉR (LOBBY OVERLAY) --- */
.arena-lobby-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0b0b0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2900;
}

.lobby-card {
    background: #141419;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lobby-card h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
}

.lobby-card p {
    font-size: 14px;
    color: var(--muted, #8a8a93);
    line-height: 1.5;
    margin: 0 0 10px;
}

/* --- ANIMÁLT MECCSKERESŐ SPINNING ÉS STÁTUSZ --- */
.queue-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed rgba(255, 212, 59, 0.2);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 212, 59, 0.1);
    border-top-color: var(--yellow, #ffd43b);
    border-radius: 50%;
    animation: arenaSpin 1s linear infinite;
}

#queueTimer {
    font-size: 13px;
    font-family: monospace;
    color: var(--yellow, #ffd43b);
    font-weight: 700;
}

/* --- ARÉNA DUPLA ÉLETSÁVOS HUD --- */
.arena-hud-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    gap: 24px;
}

.arena-player-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
}

.arena-player-status span {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enemy-player {
    text-align: right;
    align-items: flex-end;
}

.arena-hp-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hp-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #42df7d, #2bb35c);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Az ellenfél életsávja agresszívabb vörös színt kap */
.hp-fill.enemy {
    background: linear-gradient(90deg, #ff5c5c, #cc3333);
}

.arena-hp-text {
    font-size: 12px;
    color: var(--muted, #8a8a93);
    font-weight: 600;
}

/* --- KIÉRTÉKELÉS ALATTI SZINKRONIZÁCIÓS FELIRAT --- */
.waiting-text {
    margin-top: 12px;
    color: var(--yellow, #ffd43b);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    background: rgba(255, 212, 59, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 212, 59, 0.2);
}

/* --- TÉRKÉP POZÍCIÓ IGAZÍTÁSA DUPLA PANELEK ESETÉN --- */
/* Amikor az Arénában mindkét kiértékelő ablak kinyílik, a nagy térkép gyönyörűen középre, a kép alá igazodik */
body:has(.result-banner:not(.hidden)):has(.game-over-panel:not(.hidden)) .map-section.map-results-active {
    width: 500px !important;   
    height: 340px !important;
    opacity: 1 !important;
    right: 380px !important; /* Betolja a jobb oldalsáv mellé középre */  
    bottom: 15px !important;  
}

/* --- ANIMÁCIÓK --- */
@keyframes arenaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   MULTYPLAYER TÉRKÉP: ELLENFÉL IKONJÁNAK PIROSÍTÁSA
   ============================================================ */
.enemy-map-marker-red {
    filter: hue-rotate(140deg) saturate(2.5) brightness(0.9) !important;
    /* Átszínezi a Leaflet gyári kék markerét tűzpirosra, hálózati letöltés nélkül */
}

/* ============================================================
   ÚJ, NAGYOBB ÉS MODERN ÉVSZÁM CSÚSZKA (PREMIUM SLIDER)
   ============================================================ */
.year-panel {
    width: 100%;
    max-width: 750px; /* Megnövelt szélesség az Arénához */
    margin-top: 20px;
    padding: 24px 32px;
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
    box-sizing: border-box;
    z-index: 10;
}

.year-panel label {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted, #8a8a93);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

/* Óriási, jól látható évszám kijelző */
.year-value {
    font-size: 46px !important; /* Sokkal nagyobb betűméret */
    font-weight: 900;
    color: var(--yellow, #ffd43b);
    text-shadow: 0 0 20px rgba(255, 212, 59, 0.3);
    margin-bottom: 16px;
    font-family: monospace;
}

/* Maga a csúszka sínje */
.year-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px; /* Vastagabb sín a könnyebb kezelhetőségért */
    border-radius: 999px;
    background: #0b0b0d;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* A csúszka húzható gombja (Chrome, Edge, Safari) */
.year-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;  /* Megnövelt gombméret a könnyebb megfogáshoz */
    height: 28px;
    border-radius: 50%;
    background: var(--yellow, #ffd43b);
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.6), 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.1s ease, background-color 0.1s ease;
    border: 2px solid #141419;
}

.year-panel input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2); /* Egérrávitelre megnő a gomb */
    background: #ffe066;
}

/* A csúszka húzható gombja (Firefox) */
.year-panel input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yellow, #ffd43b);
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.6), 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
    border: 2px solid #141419;
    cursor: pointer;
}

.year-panel input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ============================================================
   BELSŐ FELBUKKANÓ ÉRTESÍTÉSEK (NOTIFY — BAL OLDALI MODELL)
   ============================================================ */
.notify {
    position: fixed;
    bottom: 30px;
    left: 30px; /* JAVÍTÁS: Bal alsó sarokba rögzítve a jobb oldal helyett */
    z-index: 4000; /* Minden felett legyen */
    
    max-width: 340px;
    padding: 16px 20px;
    border-radius: 12px;
    box-sizing: border-box;
    
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    
    /* Sima becsúszó animáció balról */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: notifySlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notify.hidden {
    opacity: 0 !important;
    transform: translateX(-50px) !important;
    pointer-events: none;
}

/* Sárga figyelmeztető téma az időugráshoz */
.notify.warning {
    border-left: 4px solid var(--yellow, #ffd43b);
    box-shadow: 0 15px 40px rgba(255, 212, 59, 0.05), 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Piros hiba téma */
.notify.error {
    border-left: 4px solid var(--red, #ff5c5c);
}

/* Sikeres téma */
.notify.success {
    border-left: 4px solid var(--green, #42df7d);
}

/* Becsúszó animáció balról jobbra */
@keyframes notifySlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   HERO JÁTÉKMÓD GOMBCSOPORT ELRENDEZÉS
   ============================================================ */
.hero-buttons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%;
    max-width: 600px;
}

/* Sima singleplayer mód gombja - Megtartja a bevált prémium sárga színt */
.hero-button.solo-mode {
    background: var(--yellow, #ffd43b);
    color: #0b0b0d;
}

/* Aréna kompetitív mód gombja - Elegáns sötét, finom pirosas-narancssárga parázsló fénnyel */
.hero-button.arena-mode {
    background: #141419;
    color: #ffffff;
    border: 1px solid rgba(255, 92, 92, 0.2);
    box-shadow: 0 8px 24px rgba(255, 92, 92, 0.05);
}

.hero-button.arena-mode:hover {
    background: rgba(255, 92, 92, 0.05);
    border-color: #ff5c5c;
    box-shadow: 0 12px 32px rgba(255, 92, 92, 0.15);
}

/* ============================================================
   PROFIL FÜL-VÁLASZTÓ (TABS) DIZÁJN
   ============================================================ */
.profile-tabs-container {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-strong, #2a2a32);
    padding-bottom: 14px;
    margin-bottom: -10px;
}

.profile-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted, #8a8a93);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

/* Aktív, kiválasztott fül stílusa sárga neonos alsó vonallal */
.profile-tab-btn.active {
    color: var(--yellow, #ffd43b);
    background: rgba(255, 212, 59, 0.04);
    border-color: rgba(255, 212, 59, 0.15);
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.05);
}

/* ============================================================
   FILMCÍM VÁLASZTÓ BAL OLDALSÁV (QUIZ SIDEBAR)
   ============================================================ */
.movie-quiz-sidebar {
    width: 380px;
    background: #141419;
    border-right: 1px solid var(--border-strong, #2a2a32);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* JAVÍTÁS: Ha a kiértékelés aktív, a kvíz panelt eltüntetjük */
.movie-quiz-sidebar.hidden {
    display: none !important;
}

.quiz-sidebar-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-badge {
    align-self: flex-start;
    background: rgba(255, 212, 59, 0.08);
    border: 1px solid rgba(255, 212, 59, 0.2);
    color: var(--yellow, #ffd43b);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-quiz-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Kvíz opciós gombok modern mozis stílusa */
.quiz-option-btn {
    width: 100%;
    background: #1e1e24;
    border: 1px solid #2a2a32;
    color: #e4e4e7;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.quiz-option-btn:hover {
    background: #25252d;
    border-color: #3f3f46;
    color: #ffffff;
}

/* Ha a játékos kijelöli az adott filmcímet */
.quiz-option-btn.selected {
    background: rgba(255, 212, 59, 0.04) !important;
    border-color: var(--yellow, #ffd43b) !important;
    color: var(--yellow, #ffd43b) !important;
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.1);
}

/* ============================================================
   FILMCÍM TALÁLAT JELZŐ DÍZÁJN
   ============================================================ */
.quiz-status-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    box-sizing: border-box;
}

/* Ha eltalálta a filmet: lágy zöld háttér neon zöld betűkkel */
.quiz-status-alert.success-alert {
    background: rgba(66, 223, 125, 0.06);
    border: 1px solid rgba(66, 223, 125, 0.2);
    color: #42df7d;
}

/* Ha elrontotta a filmet: lágy vörös háttér vörös betűkkel */
.quiz-status-alert.danger-alert {
    background: rgba(255, 92, 92, 0.06);
    border: 1px solid rgba(255, 92, 92, 0.2);
    color: #ff5c5c;
}

/* --- Profilkeret stílusok --- */
.profile-avatar.bronze_frame { border: 4px solid #cd7f32; box-shadow: 0 0 15px rgba(205,127,50,0.3); }
.profile-avatar.gold_frame { border: 4px solid #ffd43b; box-shadow: 0 0 25px rgba(255,212,59,0.5); }

/* --- Egyedi címek stílusa a név alatt --- */
.user-title-tag {
    font-size: 11px;
    font-weight: 800;
    color: #42df7d;
    text-transform: uppercase;
}

/* ============================================================
   PRÉMIUM JÁTÉKSTÚDIÓS VISSZASZÁMLÁLÓ DESIGN (style.css)
   ============================================================ */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 16, 0.88); /* Sötét, áttetsző háttér */
    backdrop-filter: blur(12px);
    z-index: 9999; /* Minden létező panel, térkép és menü felett kell lennie! */
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted, #9d9dad);
    animation: fadeInTitle 0.5s ease-out;
}

.countdown-number {
    font-size: 120px;
    font-weight: 900;
    color: var(--yellow, #ffd43b);
    text-shadow: 0 0 30px rgba(255, 212, 59, 0.4);
    line-height: 1;
    transform: scale(0.8);
    animation: countPulse 1s ease-in-out infinite;
}

/* Animációk a lüktető számokhoz */
@keyframes countPulse {
    0% { transform: scale(0.6); opacity: 0; filter: blur(5px); }
    15% { transform: scale(1.1); opacity: 1; filter: blur(0); }
    30% { transform: scale(1); opacity: 1; }
    85% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; filter: blur(5px); }
}

@keyframes fadeInTitle {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* A navigáció és az állapotjelző külön sor, változó fejlécmagassággal. */
.game-topbar {
    height: auto;
    min-height: 70px;
    padding: 10px 24px;
    gap: 8px;
}
.game-topbar > nav { width: 100%; flex-wrap: wrap; gap: 10px; }
.game-topbar .nav-links-container { flex-wrap: wrap; }
.game-topbar .nav-user-container { min-width: 0; }
.game-topbar .nav-user,
.game-status-user,
.arena-player-status > span { overflow-wrap: anywhere; min-width: 0; }
.arena-player-status > span { white-space: normal; }
.game-hud, .arena-hud-container { width: 100%; flex-wrap: wrap; justify-content: center; }
.game-container {
    margin-top: var(--game-header-height, 140px) !important;
    height: calc(100dvh - var(--game-header-height, 140px)) !important;
}
.result-banner, .game-over-panel {
    top: var(--game-header-height, 140px);
    height: calc(100dvh - var(--game-header-height, 140px));
    max-height: calc(100dvh - var(--game-header-height, 140px));
    overflow-y: auto;
    overflow-wrap: anywhere;
}
.custom-modal { z-index: 11000; padding: 16px; overflow-y: auto; }
.custom-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}
.inventory-item-card {
    background: #141419; border: 1px solid #2a2a32; padding: 16px;
    border-radius: 12px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 12px; overflow-wrap: anywhere;
}
.inventory-item-type { font-size: 11px; text-transform: uppercase; color: #8a8a93; font-weight: 800; }
.inventory-item-card h4 { margin: 4px 0 0; color: #fff; font-size: 15px; }
.equip-btn {
    width: 100%; padding: 10px; font-size: 13px; font-weight: 700; border-radius: 8px;
    background: #1e1e24; color: #fff; border: 1px solid #3f3f46; cursor: pointer;
}
.equip-btn.equipped { background: #42df7d; color: #000; border-color: #42df7d; }
.equip-btn:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 900px) {
    .game-topbar { padding: 8px 12px; }
    .game-topbar .nav-links-container { gap: 8px; }
    .game-topbar .arena-hud-container { gap: 8px; }
    .arena-player-status { flex: 1; min-width: 80px; }
    body:has(.game-topbar) { overflow-y: auto; }
    .game-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: calc(100dvh - var(--game-header-height, 140px));
        overflow: visible;
    }
    .movie-quiz-sidebar { width: 100%; height: auto; padding: 16px; }
    .image-section,
    body:has(.result-banner:not(.hidden)) .image-section,
    body:has(.game-over-panel:not(.hidden)) .image-section {
        width: 100%; padding: 12px !important; height: auto; min-height: 300px;
    }
    .result-banner, .game-over-panel {
        position: relative; inset: auto; width: 100%; height: auto;
        max-height: none; border-radius: 16px; margin: 12px 0;
        transform: none;
    }
    .game-container .map-section,
    .game-container .map-section.map-results-active {
        position: relative !important; inset: auto !important;
        width: calc(100% - 24px) !important; height: 320px !important;
        margin: 12px; flex: none;
    }
    .game-over-panel { padding-bottom: 32px; }
}
