/* ==========================================================================
   ALAPVETŐ BEÁLLÍTÁSOK (Reset & Body)
   ========================================================================== */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Nincs görgetés az oldalon */
    background-color: #0d1117;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    /* Nagyon fontos mobiloknál: letiltja az oldal véletlen nagyítását vagy húzását */
    touch-action: none; 
    user-select: none;
}

/* ==========================================================================
   3D VÁSZON (Three.js helye)
   ========================================================================== */
#canvas-kontener {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* ==========================================================================
   OVERLAY RENDSZER (Ablakok)
   ========================================================================== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.85); /* Sötét, félig átlátszó háttér */
    backdrop-filter: blur(8px); /* Modern elmosás (üveghatás) */
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    padding: 20px;
}

/* Ezt a két osztályt fogja a JS cserélgetni a megjelenítéshez/elrejtéshez */
.active-overlay {
    display: flex;
}

.hidden-overlay {
    display: none;
}

/* Overlay fejlécek és szövegek */
.overlay h2 {
    color: #2ecc71;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.overlay p {
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
    color: #b3c4d1;
}

/* ==========================================================================
   LOBBY / FŐMENÜ GOMBOK
   ========================================================================== */
.menu-sav {
    position: absolute;
    top: 25px;
    display: flex;
    gap: 15px;
    z-index: 101;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.play-gomb {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    border: none;
    padding: 20px 70px;
    font-size: 2.2rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 50px;
    letter-spacing: 3px;
}

.play-gomb:hover {
    transform: scale(1.035);
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.6);
}

.play-gomb:active {
    transform: scale(0.98);
}

/* ==========================================================================
   BOOSTEREK
   ========================================================================== */
.booster-kontener {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-top: 80px; /* Hogy a menüsáv alatt legyen kényelmesen */
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.05);
}

.booster-kontener h3 {
    margin: 0 0 15px 0;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booster-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.booster-btn {
    background: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
    border: 1px solid #34495e;
}

.booster-btn:hover:not(:disabled) {
    background: #34495e;
    border-color: #f39c12;
}

.booster-btn:disabled {
    background: #1a1a24;
    color: #555555;
    border-color: #1a1a24;
    cursor: not-allowed;
}


/* ==========================================================================
   PÁLYAINFO ÉS GYAKORLÓ CÉLLEÍRÁS
   ========================================================================== */
.palya-fejlec {
    margin: 0 0 10px 0;
}

.gyakorlo-fejlec {
    color: #f39c12;
}

.eles-fejlec {
    color: #2ecc71;
}

.palya-adat-grid {
    display: flex;
    justify-content: space-around;
    font-size: 0.95rem;
}

.palya-adat-grid b {
    color: #ffffff;
    font-size: 1.2rem;
}

.palya-extra-sor {
    color: #f39c12;
    font-size: 0.8rem;
    margin-top: 15px;
}

.palya-extra-sor.nincs-extra {
    color: #7f8c8d;
}

.palya-cel-kontener {
    max-width: 430px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 22px;
    margin-bottom: -25px;
    padding: 16px 18px;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.45);
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.palya-cel-cim {
    color: #f39c12;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.palya-cel-cim.masodik {
    margin-top: 12px;
}

.palya-cel-torzs {
    color: #f5dcc0;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ==========================================================================
   SZINTEK (ÉGIG ÉRŐ PASZULY)
   ========================================================================== */
.paszuly-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 60vh; /* Képernyőmagasság 60%-a, hogy kiférjenek a gombok */
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(46, 204, 113, 0.08), transparent 34%),
        rgba(0, 0, 0, 0.28);
    border-radius: 22px;
    margin-bottom: 8px;
    padding: 18px 0 24px;
    border: 1px solid rgba(255,255,255,0.16);
    cursor: grab;
    user-select: none;
    overscroll-behavior: contain;
    scrollbar-width: none;
    box-shadow: inset 0 0 28px rgba(0,0,0,0.30), 0 18px 45px rgba(0,0,0,0.26);
}

.paszuly-wrapper::-webkit-scrollbar {
    display: none;
}

.paszuly-wrapper.is-grabbing {
    cursor: grabbing;
}

/* Elrejtjük az SVG alapértelmezett viselkedését, hogy ne zavarja be a kattintást */
#paszuly-svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

#szint-lista-tartaly {
    position: relative;
    z-index: 2;
}

.szint-sor {
    display: flex;
    align-items: center;
    min-height: 82px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    touch-action: none;
}

.szint-sor:hover:not(.locked) {
    transform: scale(1.05);
}

.szint-kor-kontener {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.szint-kor {
    --szint-kor-meret: 56px;
    width: var(--szint-kor-meret);
    height: var(--szint-kor-meret);
    min-width: var(--szint-kor-meret);
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.96) 0 7%, rgba(255,255,255,0.55) 8% 13%, rgba(255,255,255,0.06) 24%, transparent 34%),
        radial-gradient(circle at 72% 78%, rgba(0,0,0,0.56), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(52, 152, 219, 1) 0%, rgba(38, 128, 195, 0.95) 42%, rgba(7, 38, 78, 1) 82%, rgba(2, 8, 18, 1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 950;
    font-size: clamp(1rem, calc(var(--szint-kor-meret) * 0.33), 1.72rem);
    line-height: 1;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.32);
    box-shadow:
        0 13px 24px rgba(0,0,0,0.44),
        0 0 20px rgba(52, 152, 219, 0.22),
        inset -15px -18px 28px rgba(0,0,0,0.46),
        inset 9px 8px 15px rgba(255,255,255,0.22);
    text-shadow: 0 2px 8px rgba(0,0,0,0.66);
    box-sizing: border-box;
    overflow: hidden;
}

.locked .szint-kor {
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.48), transparent 22%),
        radial-gradient(circle at 72% 78%, rgba(0,0,0,0.58), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(126, 140, 141, 0.95) 0%, rgba(72, 84, 88, 0.98) 72%, rgba(17, 24, 30, 1) 100%);
    border-color: rgba(255,255,255,0.16);
    color: #bdc3c7;
    opacity: 0.62;
    box-shadow: inset -14px -18px 26px rgba(0,0,0,0.48), 0 8px 18px rgba(0,0,0,0.32);
}

.current .szint-kor {
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.98) 0 8%, rgba(255,255,255,0.56) 9% 14%, transparent 34%),
        radial-gradient(circle at 72% 78%, rgba(0,0,0,0.54), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(231, 76, 60, 1) 0%, rgba(192, 57, 43, 0.96) 42%, rgba(83, 11, 9, 1) 82%, rgba(12, 4, 8, 1) 100%);
    border-color: rgba(241, 196, 15, 0.92);
    box-shadow:
        0 0 26px rgba(241, 196, 15, 0.44),
        0 0 36px rgba(231, 76, 60, 0.44),
        inset -15px -18px 28px rgba(0,0,0,0.42),
        inset 9px 8px 15px rgba(255,255,255,0.24);
}


.random-palya-sor .szint-kor-kontener {
    width: 120px;
    flex: 0 0 120px;
}

.random-palya-sor .random-palya-kor {
    --szint-kor-meret: 58px;
    font-size: 1.45rem;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.96) 0 7%, rgba(255,255,255,0.54) 8% 13%, transparent 34%),
        radial-gradient(circle at 72% 78%, rgba(0,0,0,0.54), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(241, 196, 15, 1) 0%, rgba(174, 116, 11, 0.98) 58%, rgba(55, 35, 3, 1) 100%);
    box-shadow:
        0 13px 24px rgba(0,0,0,0.44),
        0 0 20px rgba(241, 196, 15, 0.28),
        inset -15px -18px 28px rgba(0,0,0,0.46),
        inset 9px 8px 15px rgba(255,255,255,0.22);
}

.szintek-overlay-orbit {
    position: relative;
}

.szintek-overlay-orbit .overlay-x-close {
    position: sticky;
    top: 10px;
    width: 40px;
    height: 40px;
    margin: 0 10px -40px auto;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.30);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.34), rgba(210, 34, 54, 0.96) 48%, rgba(82, 0, 18, 0.98) 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,0.38), inset 0 0 10px rgba(255,255,255,0.12);
    z-index: 30;
    cursor: pointer;
    touch-action: manipulation;
}

.szintek-overlay-orbit .overlay-x-close:hover,
.szintek-overlay-orbit .overlay-x-close:focus-visible {
    transform: scale(1.07);
    outline: none;
    border-color: rgba(255,255,255,0.58);
    color: #fff;
}

.paszuly-ugro-gombok,
.paszuly-ugro-btn {
    display: none !important;
}

/* ==========================================================================
   ÁLTALÁNOS GOMBOK & FORMOK
   ========================================================================== */
.btn-close {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e74c3c;
    color: #ffffff;
}

.mentes-btn {
    background: #2ecc71;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

/* style.css kiegészítés a gyakorló szintekhez */
.gyakorlo-sor:hover {
    background-color: rgba(243, 156, 18, 0.2); /* Narancs hover effekt */
}

.gyakorlo-kor {
    background-color: #f39c12; /* Narancssárga alap */
    border: 2px dashed #fff;   /* Szaggatott vonal jelzi a "teszt" jelleget */
}

.szint-sor.current .gyakorlo-kor {
    box-shadow: 0 0 15px #f39c12; /* Narancs izzás, ha ezen állsz */
}

/* ==========================================================================
   PASZULY UGRÓ NYILAK – JOBB OLDALON FELÜL ÉS ALUL
   ========================================================================== */

.paszuly-wrapper {
    position: relative;
}

.paszuly-ugro-gombok {
    position: sticky;
    top: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.paszuly-ugro-btn {
    position: absolute;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(46, 204, 113, 0.9);
    background: rgba(13, 17, 23, 0.86);
    color: #2ecc71;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.paszuly-ugro-btn:hover {
    transform: scale(1.08);
    background: #2ecc71;
    color: #0d1117;
}

#btn-paszuly-fel {
    top: 10px;
}

#btn-paszuly-le {
    bottom: calc(-60vh + 58px);
}

/* ==========================================================================
   SIKER ABLAK – ÚJRA ALGOMB
   ========================================================================== */

.al-gomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 118px;
    padding: 9px 22px;

    border-radius: 999px;
    border: 1px solid rgba(46, 204, 113, 0.55);

    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.18), rgba(39, 174, 96, 0.08)),
        rgba(13, 17, 23, 0.72);

    color: #dfffea;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.al-gomb:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, 0.95);
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.28), rgba(39, 174, 96, 0.14)),
        rgba(13, 17, 23, 0.82);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.38),
        0 0 12px rgba(46, 204, 113, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.al-gomb:active {
    transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   HOSSZÚ MENÜK GÖRGETHETŐ TARTALMA
   Profil / Leírás / Nyelv
   ========================================================================== */

#profil-overlay,
#leiras-overlay,
#nyelv-overlay {
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 26px;
    overflow: hidden;
}

/* A cím maradjon látható */
#profil-overlay h2,
#leiras-overlay h2,
#nyelv-overlay h2 {
    flex-shrink: 0;
    margin-bottom: 14px;
}

/* Csak a tartalom görögjön, ne az egész oldal */
#profil-tartalom,
#leiras-tartalom {
    width: min(620px, 100%);
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;

    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Nyelv overlay belső doboza */
#nyelv-overlay > div {
    width: min(620px, 100%);
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;

    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* A Bezárás gomb maradjon lent látható */
#profil-overlay .btn-close,
#leiras-overlay .btn-close,
#nyelv-overlay .btn-close {
    flex-shrink: 0;
    margin-top: 14px;
}

/* Szebb scrollbar asztali böngészőben */
#profil-tartalom::-webkit-scrollbar,
#leiras-tartalom::-webkit-scrollbar,
#nyelv-overlay > div::-webkit-scrollbar {
    width: 8px;
}

#profil-tartalom::-webkit-scrollbar-thumb,
#leiras-tartalom::-webkit-scrollbar-thumb,
#nyelv-overlay > div::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.45);
    border-radius: 999px;
}

#profil-tartalom::-webkit-scrollbar-track,
#leiras-tartalom::-webkit-scrollbar-track,
#nyelv-overlay > div::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

/* Mobilon legyen több hely a tartalomnak */
@media (max-width: 600px) {
    #profil-overlay,
    #leiras-overlay,
    #nyelv-overlay {
        padding-top: 34px;
        padding-left: 14px;
        padding-right: 14px;
    }

    #profil-tartalom,
    #leiras-tartalom,
    #nyelv-overlay > div {
        max-height: calc(100vh - 160px);
    }

    #profil-overlay h2,
    #leiras-overlay h2,
    #nyelv-overlay h2 {
        font-size: 1.55rem;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   FIX FELSŐ MENÜ
   ========================================================================== */

.global-menu-sav {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;

    max-width: calc(100vw - 20px);
    padding: 8px 10px;

    border-radius: 999px;
    background: rgba(13, 17, 23, 0.78);
    border: 1px solid rgba(46, 204, 113, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

/* A fix menü miatt az overlay-k tartalma ne csússzon alá */
.overlay {
    padding-top: 84px;
    box-sizing: border-box;
}

/* Profil / Leírás / Nyelv hosszú tartalom görgethetően */
#profil-overlay,
#leiras-overlay,
#nyelv-overlay {
    justify-content: flex-start;
    overflow: hidden;
}

#profil-tartalom,
#leiras-tartalom,
#nyelv-overlay > div {
    width: min(620px, 100%);
    max-height: calc(100vh - 230px);
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;

    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

#profil-overlay .btn-close,
#leiras-overlay .btn-close,
#nyelv-overlay .btn-close {
    flex-shrink: 0;
    margin-top: 14px;
}

/* Mobilon a menü több soros lehet, ezért több felső hely kell */
@media (max-width: 600px) {
    .global-menu-sav {
        top: 8px;
        border-radius: 18px;
        gap: 6px;
    }

    .global-menu-sav .menu-btn {
        font-size: 0.78rem;
        padding: 7px 9px;
    }

    .overlay {
        padding-top: 118px;
    }

    #profil-tartalom,
    #leiras-tartalom,
    #nyelv-overlay > div {
        max-height: calc(100vh - 260px);
    }
}

/* ==========================================================================
   ÚJ BOOSTER VÁLASZTÓK
   ========================================================================== */

.uj-booster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.booster-valaszto {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 8px;
    align-items: stretch;
}

.joker-valaszto {
    grid-template-columns: 1fr;
}

.booster-minus,
.booster-plus {
    border: 1px solid rgba(46, 204, 113, 0.45);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.78);
    color: #2ecc71;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.booster-main-btn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.booster-keszlet,
.booster-valasztott {
    display: block;
    font-size: 0.72rem;
    opacity: 0.88;
    font-weight: 700;
}

.booster-aktiv {
    border: 2px solid #2ecc71 !important;
    background: linear-gradient(180deg, rgba(46,204,113,0.38), rgba(39,174,96,0.24)) !important;
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.25);
}

.booster-hatas-info {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255,255,255,0.10);
    color: #dfffea;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ==========================================================================
   JÁTÉK KÖZBENI BOOSTER UI
   ========================================================================== */

.pause-booster-gomb {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;

    align-items: center;
    gap: 8px;

    border: 2px solid rgba(46, 204, 113, 0.88);
    border-radius: 999px;
    padding: 10px 18px;

    background: rgba(13, 17, 23, 0.84);
    color: #2ecc71;

    font-weight: 900;
    cursor: pointer;

    box-shadow: 0 8px 26px rgba(0,0,0,0.42);
}

.pause-booster-gomb span {
    display: inline-flex;
    min-width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: rgba(46, 204, 113, 0.2);
    color: #ffffff;
}

.pause-booster-gomb.pause-aktiv {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.9);
}

.pause-booster-gomb:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.booster-sorrend-panel {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 850;

    max-width: calc(100vw - 24px);
    padding: 10px 14px;

    border-radius: 18px;
    background: rgba(13, 17, 23, 0.82);
    border: 1px solid rgba(46, 204, 113, 0.38);

    color: #ffffff;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.42);
}

.sorrend-panel-cim {
    font-size: 0.78rem;
    color: #2ecc71;
    font-weight: 900;
    margin-bottom: 6px;
}

.sorrend-panel-szamok {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.sorrend-panel-szam {
    width: 30px;
    height: 30px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(46, 204, 113, 0.18);
    border: 1px solid rgba(46, 204, 113, 0.55);

    color: #dfffea;
    font-weight: 900;
}

.sorrend-panel-szam.teljesitve {
    opacity: 0.38;
    text-decoration: line-through;
}

.booster-helper-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 820;
}

.helper-nyil {
    position: fixed;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: helperNyilPulzus 0.9s ease-in-out infinite alternate;
}

.helper-nyil-jel {
    font-size: 2.4rem;
    line-height: 1;
    color: #2ecc71;
    text-shadow:
        0 0 10px rgba(46,204,113,0.8),
        0 2px 6px rgba(0,0,0,0.8);
}

.helper-nyil-szam {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 28px;
    margin-top: -4px;

    border-radius: 999px;
    background: rgba(13, 17, 23, 0.84);
    border: 1px solid rgba(46, 204, 113, 0.7);

    color: #ffffff;
    font-weight: 900;
}

.helper-nyil-aktualis .helper-nyil-jel {
    color: #f1c40f;
    text-shadow:
        0 0 12px rgba(241,196,15,0.8),
        0 2px 6px rgba(0,0,0,0.8);
}

@keyframes helperNyilPulzus {
    from {
        transform: translate(-50%, -52%) scale(0.96);
        opacity: 0.78;
    }
    to {
        transform: translate(-50%, -46%) scale(1.06);
        opacity: 1;
    }
}

.menu-kartya {
    background: rgba(0,0,0,0.32);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
}


/* ==========================================================================
   KOMPAKT BOOSTER VÁLASZTÓK A PLAY ELŐTT
   ========================================================================== */

/* A booster doboz legyen laposabb */
#kellekek-overlay .booster-kontener {
    padding: 12px 14px !important;
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    max-width: 560px;
}

#kellekek-overlay .booster-kontener h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1rem;
}

/* 2 oszlopos, kompakt rács */
.uj-booster-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

/* Egy booster sor: mínusz | gomb | plusz */
.booster-valaszto {
    display: grid !important;
    grid-template-columns: 28px 1fr 28px;
    gap: 4px;
    align-items: center;
    min-width: 0;
}

/* Joker teljes szélességben, de laposan */
.joker-valaszto {
    grid-column: 1 / -1;
    grid-template-columns: 1fr !important;
}

/* Plusz/mínusz kis gombok */
.booster-minus,
.booster-plus {
    width: 28px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1;
}

/* Fő booster gombok kisebben */
.booster-main-btn {
    min-height: 36px !important;
    padding: 5px 6px !important;
    border-radius: 12px !important;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;

    font-size: 0.78rem !important;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
}

/* Készlet / használ szöveg nagyon kicsiben */
.booster-keszlet,
.booster-valasztott {
    font-size: 0.58rem !important;
    line-height: 1.05;
    opacity: 0.78;
}

/* A hatás infó is legyen kompakt */
.booster-hatas-info {
    margin-top: 8px !important;
    padding: 7px 9px !important;
    border-radius: 12px !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    max-height: 58px;
    overflow-y: auto;
}

/* PLAY gomb közelebb kerüljön */
#btn-play-game {
    margin-top: 10px !important;
}

/* A pályacél doboz se tolja túl mélyre */
.palya-cel-kontener {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
}

/* Lobby overlay kompaktabb függőleges elrendezés */
#kellekek-overlay {
    gap: 10px !important;
    justify-content: center;
}

/* Mobilon még tömörebb */
@media (max-width: 520px) {
    #kellekek-overlay .booster-kontener {
        width: calc(100vw - 24px);
        padding: 10px !important;
        margin-top: 10px !important;
    }

    .uj-booster-grid {
        gap: 6px;
    }

    .booster-valaszto {
        grid-template-columns: 26px 1fr 26px;
        gap: 3px;
    }

    .booster-minus,
    .booster-plus {
        width: 26px;
        height: 32px;
        font-size: 0.95rem;
    }

    .booster-main-btn {
        min-height: 32px !important;
        padding: 4px 5px !important;
        font-size: 0.72rem !important;
    }

    .booster-keszlet,
    .booster-valasztott {
        font-size: 0.54rem !important;
    }

    .booster-hatas-info {
        max-height: 48px;
        font-size: 0.68rem !important;
    }

    #btn-play-game {
        margin-top: 8px !important;
        padding: 12px 34px !important;
    }
}

/* ==========================================================================
   BOOSTEREK LENYÍLÓ MENÜ A PLAY FELETT
   ========================================================================== */

.palya-info-kompakt {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
}

.boosterek-lenyilo {
    width: min(560px, calc(100vw - 24px));
    margin: 8px auto 6px;
    padding: 0;
}

.boosterek-lenyilo summary {
    list-style: none;
}

.boosterek-lenyilo summary::-webkit-details-marker {
    display: none;
}

.boosterek-summary {
    min-height: 42px;
    padding: 9px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 999px;
    border: 1px solid rgba(46, 204, 113, 0.55);
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.18), rgba(39, 174, 96, 0.08)),
        rgba(13, 17, 23, 0.78);

    color: #dfffea;
    font-weight: 900;
    cursor: pointer;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.boosterek-summary-jel {
    width: 26px;
    height: 26px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(46, 204, 113, 0.22);
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
}

.boosterek-lenyilo[open] .boosterek-summary-jel {
    transform: rotate(45deg);
}

.booster-kontener-lenyilo {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
    max-width: 560px;
}

/* A lenyílóban maradjon kompakt */
.booster-kontener-lenyilo .uj-booster-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.booster-kontener-lenyilo .booster-valaszto {
    display: grid !important;
    grid-template-columns: 28px 1fr 28px;
    gap: 4px;
    align-items: center;
}

.booster-kontener-lenyilo .joker-valaszto {
    grid-column: 1 / -1;
    grid-template-columns: 1fr !important;
}

.booster-kontener-lenyilo .booster-minus,
.booster-kontener-lenyilo .booster-plus {
    width: 28px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
}

.booster-kontener-lenyilo .booster-main-btn {
    min-height: 34px !important;
    padding: 4px 6px !important;
    border-radius: 12px !important;
    font-size: 0.74rem !important;
    line-height: 1.05;
}

.booster-kontener-lenyilo .booster-keszlet,
.booster-kontener-lenyilo .booster-valasztott {
    font-size: 0.55rem !important;
    line-height: 1.05;
}

.booster-kontener-lenyilo .booster-hatas-info {
    margin-top: 8px !important;
    padding: 7px 9px !important;
    border-radius: 12px !important;
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
    max-height: 46px;
    overflow-y: auto;
}

/* PLAY mindig maradjon közel és látható */
#btn-play-game {
    margin-top: 8px !important;
}

/* Lobby ne nyúljon túl nagyra */
#kellekek-overlay {
    gap: 8px !important;
    justify-content: center;
}

/* Mobilon még tömörebb */
@media (max-width: 520px) {
    .boosterek-lenyilo {
        width: calc(100vw - 22px);
        margin-top: 6px;
    }

    .boosterek-summary {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 0.92rem;
    }

    .booster-kontener-lenyilo {
        padding: 8px !important;
    }

    .booster-kontener-lenyilo .uj-booster-grid {
        gap: 6px;
    }

    .booster-kontener-lenyilo .booster-valaszto {
        grid-template-columns: 25px 1fr 25px;
        gap: 3px;
    }

    .booster-kontener-lenyilo .booster-minus,
    .booster-kontener-lenyilo .booster-plus {
        width: 25px;
        height: 31px;
        font-size: 0.9rem;
    }

    .booster-kontener-lenyilo .booster-main-btn {
        min-height: 31px !important;
        padding: 3px 4px !important;
        font-size: 0.68rem !important;
    }

    .booster-kontener-lenyilo .booster-keszlet,
    .booster-kontener-lenyilo .booster-valasztott {
        font-size: 0.5rem !important;
    }

    .booster-kontener-lenyilo .booster-hatas-info {
        max-height: 40px;
        font-size: 0.64rem !important;
    }

    #btn-play-game {
        padding: 12px 34px !important;
        margin-top: 7px !important;
    }
}


/* Kredit / élet rendszer */
.play-elet-statusz {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px auto 8px;
    color: #d9e6ef;
    font-weight: 900;
}

.play-elet-statusz span {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(13,17,23,0.55);
    border-radius: 999px;
    padding: 8px 14px;
}

.play-sor {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.play-gomb.nincs-elet {
    background: linear-gradient(180deg, #e74c3c, #a93226) !important;
    box-shadow: 0 10px 26px rgba(231, 76, 60, 0.35) !important;
    border-color: rgba(255, 180, 170, 0.45) !important;
}

.elet-szerzes-gomb {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    min-height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #f1c40f, #d68910);
    color: #1b1300;
    font-weight: 1000;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(241, 196, 15, 0.28);
}

.elet-szerzes-gomb:hover {
    filter: brightness(1.08);
}

.elet-opcio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.elet-opcio-gomb {
    min-height: 92px;
    border: 1px solid rgba(46,204,113,0.35);
    border-radius: 18px;
    background: rgba(13, 17, 23, 0.72);
    color: #fff;
    font-weight: 1000;
    cursor: pointer;
    padding: 16px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.elet-opcio-gomb span {
    display: block;
    margin-top: 8px;
    color: #a9bac8;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.elet-opcio-gomb:hover {
    border-color: rgba(46,204,113,0.75);
    transform: translateY(-1px);
}

.elet-panel-uzenet {
    min-height: 22px;
    color: #2ecc71;
    font-weight: 900;
    text-align: center;
    margin: 8px 0 14px;
}

.elet-refill-szoveg {
    color: #f1c40f;
    font-weight: 900;
}


/* Felső menü: hamburgerből lenyíló főmenü */
.menu-sav.lenyilo-global-menu {
    position: absolute;
    top: 18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.menu-hamburger-btn {
    width: 58px;
    height: 46px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(25, 31, 42, 0.88);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.menu-hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.18);
}

.menu-hamburger-btn:hover {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(46,204,113,0.55);
    background: rgba(31, 40, 54, 0.94);
}

.global-menu-panel {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: min(92vw, 740px);
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(46, 204, 113, 0.28);
    background: rgba(8, 12, 22, 0.82);
    box-shadow: 0 18px 48px rgba(0,0,0,0.42);
    backdrop-filter: blur(12px);
}

.lenyilo-global-menu.nyitva .global-menu-panel {
    display: flex;
}

.lenyilo-global-menu.nyitva .menu-hamburger-btn {
    border-color: rgba(241,196,15,0.7);
    background: rgba(75, 58, 18, 0.9);
}

@media (max-width: 720px) {
    .menu-sav.lenyilo-global-menu {
        top: 10px;
    }

    .global-menu-panel {
        max-width: calc(100vw - 22px);
        padding: 10px;
        gap: 8px;
    }

    .global-menu-panel .menu-btn {
        padding: 9px 15px;
        font-size: 0.86rem;
    }
}


/* Jobb felső, üveges hamburger menü - balra nyíló panellel */
.menu-sav.lenyilo-global-menu {
    top: max(14px, env(safe-area-inset-top)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    left: auto !important;
    transform: none !important;
    align-items: flex-end !important;
    gap: 10px !important;
}

.menu-hamburger-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.32), rgba(255,255,255,0.07) 42%, rgba(0,0,0,0.45) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 0 14px rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
}

.menu-hamburger-btn span {
    width: 24px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.18) !important;
}

.global-menu-panel {
    position: absolute !important;
    top: 0 !important;
    right: calc(100% + 12px) !important;
    left: auto !important;
    display: flex !important;
    width: max-content !important;
    max-width: min(760px, calc(100vw - 96px)) !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(8, 12, 22, 0.84) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.42), inset 0 0 18px rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(12px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.98) !important;
    transform-origin: top right !important;
    transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.lenyilo-global-menu.nyitva .global-menu-panel {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) scale(1) !important;
}

.global-menu-panel .menu-btn,
.global-menu-panel .hamburger-gyakorlo-summary {
    white-space: nowrap;
    min-height: 42px;
}

.hamburger-gyakorlo-menu {
    position: relative;
    display: inline-block;
}

.hamburger-gyakorlo-menu > summary {
    list-style: none;
}

.hamburger-gyakorlo-menu > summary::-webkit-details-marker {
    display: none;
}

.hamburger-gyakorlo-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.felso-gyakorlo-lenyilo {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10001;
    width: 245px;
    max-height: min(65vh, 520px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(8, 12, 18, 0.96);
    border: 1px solid rgba(243, 156, 18, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.gyakorlo-palya-gomb {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.55);
    background: rgba(243, 156, 18, 0.12);
    color: #f8d28a;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    line-height: 1.15;
}

.gyakorlo-palya-gomb span {
    display: block;
    font-size: 12px;
    opacity: 0.78;
}

.gyakorlo-palya-gomb b {
    display: block;
    font-size: 15px;
}

.gyakorlo-palya-gomb:hover {
    background: rgba(243, 156, 18, 0.22);
    border-color: rgba(243, 156, 18, 0.8);
}

@media (max-width: 720px) {
    .menu-sav.lenyilo-global-menu {
        top: max(10px, env(safe-area-inset-top)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
    }

    .global-menu-panel {
        top: calc(100% + 10px) !important;
        right: 0 !important;
        width: min(280px, calc(100vw - 20px)) !important;
        max-width: min(280px, calc(100vw - 20px)) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        transform: translateY(-8px) scale(0.98) !important;
    }

    .lenyilo-global-menu.nyitva .global-menu-panel {
        transform: translateY(0) scale(1) !important;
    }

    .global-menu-panel .menu-btn,
    .global-menu-panel .hamburger-gyakorlo-summary {
        width: 100%;
    }

    .hamburger-gyakorlo-menu {
        width: 100%;
    }

    .felso-gyakorlo-lenyilo {
        position: static;
        width: auto;
        margin-top: 8px;
        max-height: 44vh;
    }
}


/* Javítás: a Gyakorlópályák menüpont ne legyen nagyobb/szélesebb a többinél */
.global-menu-panel > .menu-btn,
.global-menu-panel > .hamburger-gyakorlo-menu > .hamburger-gyakorlo-summary {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    padding: 9px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.88rem !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.global-menu-panel > .hamburger-gyakorlo-menu {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    flex: 0 0 112px !important;
}

@media (max-width: 720px) {
    .global-menu-panel > .menu-btn,
    .global-menu-panel > .hamburger-gyakorlo-menu,
    .global-menu-panel > .hamburger-gyakorlo-menu > .hamburger-gyakorlo-summary {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    .global-menu-panel > .hamburger-gyakorlo-menu > .hamburger-gyakorlo-summary {
        height: 42px !important;
        min-height: 42px !important;
    }
}


/* 0 élet: nem gomb, csak ugyanolyan kinézetű felirat + azonos magasságú életgomb */
.play-sor {
    align-items: stretch !important;
}

.play-sor .play-gomb,
.play-sor .no-life-label,
.play-sor .elet-szerzes-gomb {
    min-height: 86px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
}

.no-life-label {
    cursor: default !important;
    user-select: none !important;
    pointer-events: none !important;
}

.no-life-label:hover {
    transform: none !important;
}

.elet-szerzes-gomb {
    align-self: stretch !important;
    height: auto !important;
}


/* Javítás 2: a "0 életed maradt" felirat és a "Szerezz életet!" gomb pontosan azonos magasságú */
.play-sor {
    align-items: center !important;
}

.play-sor .no-life-label,
.play-sor .elet-szerzes-gomb {
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 50px !important;
    line-height: 1 !important;
}

.play-sor .no-life-label {
    cursor: default !important;
    pointer-events: none !important;
    user-select: none !important;
}

.play-sor .no-life-label:hover {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.35) !important;
}

.play-sor .elet-szerzes-gomb {
    padding: 0 34px !important;
    align-self: auto !important;
    vertical-align: top !important;
}

.play-sor .elet-szerzes-gomb:hover {
    transform: scale(1.03);
}


/* Életek szerzése panel: görgethető, mobilon ujjal húzható, egyedi görgetősávval */
#elet-szerzes-overlay {
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding-top: max(28px, env(safe-area-inset-top)) !important;
    padding-bottom: max(34px, env(safe-area-inset-bottom)) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 204, 113, 0.8) rgba(255, 255, 255, 0.08);
}

#elet-szerzes-overlay > * {
    flex-shrink: 0;
}

#elet-szerzes-overlay h2 {
    margin-top: 10px;
}

#elet-szerzes-overlay .elet-opcio-grid {
    width: min(720px, 92vw);
}

#elet-szerzes-overlay::-webkit-scrollbar {
    width: 10px;
}

#elet-szerzes-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

#elet-szerzes-overlay::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.95), rgba(241, 196, 15, 0.85));
    border-radius: 999px;
    border: 2px solid rgba(13, 17, 23, 0.85);
}

#elet-szerzes-overlay::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(88, 236, 152, 1), rgba(255, 213, 50, 0.95));
}

@media (max-width: 720px) {
    #elet-szerzes-overlay {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    #elet-szerzes-overlay .elet-opcio-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #elet-szerzes-overlay .menu-kartya {
        width: 100%;
        max-width: 420px;
        box-sizing: border-box;
    }
}


/* Mobil javítás: a "0 életed maradt" felirat ne essen szét és ne lógjon ki */
.play-sor .no-life-label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    gap: 12px !important;
}

@media (max-width: 720px) {
    .play-sor {
        width: min(92vw, 520px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 16px !important;
    }

    .play-sor .no-life-label {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 18px !important;
        height: 104px !important;
        min-height: 104px !important;
        max-height: 104px !important;
        font-size: clamp(1.45rem, 8.2vw, 2.65rem) !important;
        letter-spacing: 0.06em !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .play-sor .elet-szerzes-gomb {
        width: min(78vw, 420px) !important;
        height: 104px !important;
        min-height: 104px !important;
        max-height: 104px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 24px !important;
        font-size: clamp(1rem, 4.5vw, 1.55rem) !important;
    }
}

@media (max-width: 430px) {
    .play-sor .no-life-label {
        font-size: clamp(1.25rem, 7.2vw, 1.85rem) !important;
        letter-spacing: 0.035em !important;
        padding: 0 14px !important;
    }
}


/* Mobil javítás: a fő/lobby oldal tartalma legyen görgethető, ha nem fér ki */
#kellekek-overlay {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 204, 113, 0.75) rgba(255, 255, 255, 0.08);
}

#kellekek-overlay::-webkit-scrollbar {
    width: 10px;
}

#kellekek-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

#kellekek-overlay::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.95), rgba(241, 196, 15, 0.85));
    border-radius: 999px;
    border: 2px solid rgba(13, 17, 23, 0.85);
}

#kellekek-overlay::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(88, 236, 152, 1), rgba(255, 213, 50, 0.95));
}

@media (max-width: 720px) {
    #kellekek-overlay {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: max(120px, env(safe-area-inset-top)) !important;
        padding-bottom: max(44px, env(safe-area-inset-bottom)) !important;
        min-height: 100dvh !important;
        height: 100dvh !important;
    }

    #kellekek-overlay > * {
        flex-shrink: 0;
    }

    #the-sphere-game-shell,
    #canvas-kontener {
        touch-action: pan-y !important;
    }
}


/* Javítás: vagy PLAY látszik, vagy a 0 élet + Szerezz életet pár, soha nem mindhárom */
.play-sor.has-life #btn-play-game {
    display: inline-flex !important;
}

.play-sor.has-life #nincs-elet-felirat,
.play-sor.has-life #btn-eletek-szerzese {
    display: none !important;
}

.play-sor.no-life #btn-play-game {
    display: none !important;
}

.play-sor.no-life #nincs-elet-felirat,
.play-sor.no-life #btn-eletek-szerzese {
    display: inline-flex !important;
}


/* Kredit kapszula plusz gomb */
.kredit-kapszula {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.kredit-plusz-gomb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #f1c40f, #d68910);
    color: #1b1300;
    font-size: 19px;
    font-weight: 1000;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241, 196, 15, 0.35);
    padding: 0;
}

.kredit-plusz-gomb:hover {
    filter: brightness(1.08);
    transform: scale(1.08);
}

.kredit-vasarlas-placeholder {
    max-width: 480px;
    width: min(92vw, 480px);
    text-align: center;
}

#kredit-vasarlas-overlay {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 196, 15, 0.85) rgba(255, 255, 255, 0.08);
}

#kredit-vasarlas-overlay::-webkit-scrollbar {
    width: 10px;
}

#kredit-vasarlas-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

#kredit-vasarlas-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(241, 196, 15, 0.95), rgba(46, 204, 113, 0.85));
    border-radius: 999px;
    border: 2px solid rgba(13, 17, 23, 0.85);
}


/* VÉGSŐ állapotfix: vagy PLAY, vagy 0-élet páros, de soha nem mindhárom */
.play-sor.has-life #btn-play-game {
    display: inline-flex !important;
}

.play-sor.has-life #nincs-elet-felirat,
.play-sor.has-life #btn-eletek-szerzese {
    display: none !important;
}

.play-sor.no-life #btn-play-game {
    display: none !important;
}

.play-sor.no-life #nincs-elet-felirat,
.play-sor.no-life #btn-eletek-szerzese {
    display: inline-flex !important;
}


/* Élet kapszula plusz gomb: csak 0 életnél látszik */
.elet-kapszula {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.elet-plusz-gomb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #f1c40f, #d68910);
    color: #1b1300;
    font-size: 19px;
    font-weight: 1000;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241, 196, 15, 0.35);
    padding: 0;
}

.elet-plusz-gomb:hover {
    filter: brightness(1.08);
    transform: scale(1.08);
}

/* VÉGSŐ állapotfix 2: nagy Élet-szerzés gomb nincs, 0 életnél az Életek kapszula plusza nyitja az oldalt */
.play-sor.has-life #btn-play-game {
    display: inline-flex !important;
}

.play-sor.has-life #nincs-elet-felirat,
.play-sor.has-life #btn-eletek-szerzese {
    display: none !important;
}

.play-sor.no-life #btn-play-game,
.play-sor.no-life #btn-eletek-szerzese {
    display: none !important;
}

.play-sor.no-life #nincs-elet-felirat {
    display: inline-flex !important;
}

/* a plusz láthatóságát a JS állítja: csak 0 életnél inline-grid */


/* Lobby háttérlogó */
#kellekek-overlay {
    background:
        linear-gradient(rgba(8, 12, 18, 0.42), rgba(8, 12, 18, 0.72)),
        url("../img/the-sphere-lobby-logo-bg.png") center center / cover no-repeat !important;
    background-attachment: fixed;
}

#kellekek-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42) 72%),
        linear-gradient(rgba(8, 12, 18, 0.12), rgba(8, 12, 18, 0.38));
}

#kellekek-overlay > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 720px) {
    #kellekek-overlay {
        background:
            linear-gradient(rgba(8, 12, 18, 0.36), rgba(8, 12, 18, 0.78)),
            url("../img/the-sphere-lobby-logo-bg.png") center top / auto 100dvh no-repeat !important;
        background-attachment: scroll;
    }
}


/* Stabil egységes háttér:
   - lobbyban CSS háttér
   - pályákon a graphics.js Three.js scene.backgroundként használja ugyanazt a képet
   - nincs canvas fölötti fedőréteg, ezért a 3D gömbök és a mozgás nem sérül */
:root {
    --sphere-bg-image: url("../img/the-sphere-lobby-logo-bg.png");
}

#canvas-kontener::before,
#canvas-kontener::after {
    display: none !important;
    content: none !important;
}

#canvas-kontener {
    background-color: #080c12 !important;
}

#canvas-kontener canvas {
    background: transparent !important;
}

#kellekek-overlay {
    background:
        linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.76)),
        var(--sphere-bg-image) center center / contain no-repeat !important;
    background-color: #080c12 !important;
    background-attachment: scroll !important;
}

@media (orientation: portrait) {
    #kellekek-overlay {
        background:
            linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.78)),
            var(--sphere-bg-image) center 42% / 96vw auto no-repeat !important;
    }
}

@media (orientation: landscape) {
    #kellekek-overlay {
        background:
            linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.76)),
            var(--sphere-bg-image) center center / auto 92vh no-repeat !important;
    }
}


/* Játék közbeni háttér: ugyanaz az aránytartó háttér, mint a lobbyban */
:root {
    --sphere-bg-image: url("../img/the-sphere-lobby-logo-bg.png");
}

/* Ne legyen külön fedő/pseudo réteg a canvasnál */
#canvas-kontener::before,
#canvas-kontener::after {
    display: none !important;
    content: none !important;
}

/* A pálya háttere a canvas mögött legyen, aránytartó contain méretezéssel */
#canvas-kontener {
    background-color: #080c12 !important;
    background-image:
        linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.76)),
        var(--sphere-bg-image) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

#canvas-kontener canvas,
#jatek-canvas,
canvas#jatek-canvas {
    background: transparent !important;
}

/* Lobby és pálya ugyanazt a méretezési logikát kapja */
#kellekek-overlay {
    background:
        linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.76)),
        var(--sphere-bg-image) center center / contain no-repeat !important;
    background-color: #080c12 !important;
    background-attachment: scroll !important;
}

@media (orientation: portrait) {
    #kellekek-overlay,
    #canvas-kontener {
        background-image:
            linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.78)),
            var(--sphere-bg-image) !important;
        background-size: 96vw auto !important;
        background-position: center 42% !important;
    }
}

@media (orientation: landscape) {
    #kellekek-overlay,
    #canvas-kontener {
        background-image:
            linear-gradient(rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.76)),
            var(--sphere-bg-image) !important;
        background-size: auto 92vh !important;
        background-position: center center !important;
    }
}


/* ==========================================================================
   PROFIL: OPCIONÁLIS RANGLISTA HELYADATOK
   ========================================================================== */

.profil-ranglista-kartya {
    border-color: rgba(46, 204, 113, 0.28);
}

.profil-ranglista-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.profil-ranglista-form label {
    display: grid;
    gap: 6px;
    color: #e8f5ee;
    font-weight: 700;
}

.profil-check-sor {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profil-check-sor input {
    width: 20px;
    height: 20px;
    accent-color: #2ecc71;
    flex: 0 0 auto;
}

.profil-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 8, 14, 0.76);
    color: #fff;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
}

.profil-input:focus {
    border-color: rgba(46, 204, 113, 0.82);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.16);
}

.profil-input:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.profil-mentes-gomb {
    width: 100%;
    justify-content: center;
}

.profil-statusz {
    min-height: 1.3em;
    margin: 0;
    color: #aaa;
    font-weight: 700;
}

.profil-statusz-ok {
    color: #2ecc71;
}

.profil-statusz-hiba {
    color: #ff7675;
}


/* ==========================================================================
   KÖD VIZUÁLIS MÓD – ÁTTETSZŐ FELHŐRÉTEG
   ========================================================================== */

.kod-felho-layer {
    position: fixed;
    inset: -14vh -14vw;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    mix-blend-mode: screen;
    filter: blur(10px) saturate(0.85);
    transform: translate3d(var(--kod-x, 0px), var(--kod-y, 0px), 0);
}

.kod-felho-layer.aktiv {
    opacity: 1;
    visibility: visible;
}

.kod-felho-layer::before,
.kod-felho-layer::after {
    content: "";
    position: absolute;
    inset: -18%;
    background-repeat: repeat;
    will-change: transform, opacity;
}

.kod-felho-layer::before {
    opacity: 0.74;
    transform: translate3d(var(--kod-x, 0px), var(--kod-y, 0px), 0) scale(1.04);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.54) 0 8%, transparent 18%),
        radial-gradient(circle at 36% 30%, rgba(235,245,255,0.44) 0 9%, transparent 21%),
        radial-gradient(circle at 62% 18%, rgba(255,255,255,0.38) 0 7%, transparent 19%),
        radial-gradient(circle at 82% 42%, rgba(235,245,255,0.46) 0 10%, transparent 24%),
        radial-gradient(circle at 22% 72%, rgba(255,255,255,0.36) 0 12%, transparent 26%),
        radial-gradient(circle at 54% 74%, rgba(225,238,255,0.42) 0 11%, transparent 27%),
        radial-gradient(circle at 88% 78%, rgba(255,255,255,0.32) 0 8%, transparent 22%);
    background-size: 680px 520px;
}

.kod-felho-layer::after {
    opacity: 0.54;
    transform: translate3d(var(--kod-x2, 0px), calc(var(--kod-y, 0px) * -0.65), 0) scale(1.14);
    background-image:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,0.42) 0 9%, transparent 24%),
        radial-gradient(circle at 44% 20%, rgba(210,230,255,0.30) 0 10%, transparent 26%),
        radial-gradient(circle at 72% 36%, rgba(255,255,255,0.34) 0 11%, transparent 28%),
        radial-gradient(circle at 30% 82%, rgba(230,242,255,0.30) 0 13%, transparent 30%),
        radial-gradient(circle at 76% 78%, rgba(255,255,255,0.28) 0 12%, transparent 29%);
    background-size: 920px 680px;
}

@media (max-width: 700px) {
    .kod-felho-layer {
        inset: -18vh -22vw;
        filter: blur(8px) saturate(0.85);
    }

    .kod-felho-layer::before {
        opacity: 0.68;
        background-size: 520px 430px;
    }

    .kod-felho-layer::after {
        opacity: 0.50;
        background-size: 680px 560px;
    }
}


/* ==========================================================================
   KÖD VIZUÁLIS MÓD – ERŐSÍTETT, BIZTOSAN LÁTHATÓ FELHŐRÉTEG
   ========================================================================== */

.kod-felho-layer {
    position: fixed !important;
    inset: -18vh -18vw !important;
    z-index: 95 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.35s ease, visibility 0.35s ease !important;
    mix-blend-mode: normal !important;
    filter: blur(7px) saturate(0.9) !important;
    transform: translate3d(var(--kod-x, 0px), var(--kod-y, 0px), 0) !important;
    background:
        radial-gradient(circle at 16% 20%, rgba(255,255,255,0.50) 0 8%, transparent 19%),
        radial-gradient(circle at 42% 28%, rgba(235,245,255,0.46) 0 11%, transparent 25%),
        radial-gradient(circle at 70% 18%, rgba(255,255,255,0.42) 0 9%, transparent 22%),
        radial-gradient(circle at 88% 48%, rgba(235,245,255,0.48) 0 13%, transparent 28%),
        radial-gradient(circle at 24% 78%, rgba(255,255,255,0.38) 0 15%, transparent 31%),
        radial-gradient(circle at 58% 76%, rgba(220,235,255,0.42) 0 13%, transparent 29%),
        linear-gradient(180deg, rgba(235,245,255,0.18), rgba(255,255,255,0.08)) !important;
}

.kod-felho-layer.aktiv {
    opacity: 1 !important;
    visibility: visible !important;
}

.kod-felho-layer::before,
.kod-felho-layer::after {
    content: "" !important;
    position: absolute !important;
    inset: -12% !important;
    pointer-events: none !important;
    background-repeat: repeat !important;
    will-change: transform, opacity !important;
}

.kod-felho-layer::before {
    opacity: 0.82 !important;
    transform: translate3d(var(--kod-x, 0px), var(--kod-y, 0px), 0) scale(1.04) !important;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.60) 0 8%, transparent 18%),
        radial-gradient(circle at 36% 30%, rgba(235,245,255,0.52) 0 9%, transparent 21%),
        radial-gradient(circle at 62% 18%, rgba(255,255,255,0.46) 0 7%, transparent 19%),
        radial-gradient(circle at 82% 42%, rgba(235,245,255,0.54) 0 10%, transparent 24%),
        radial-gradient(circle at 22% 72%, rgba(255,255,255,0.44) 0 12%, transparent 26%),
        radial-gradient(circle at 54% 74%, rgba(225,238,255,0.50) 0 11%, transparent 27%),
        radial-gradient(circle at 88% 78%, rgba(255,255,255,0.40) 0 8%, transparent 22%) !important;
    background-size: 620px 480px !important;
}

.kod-felho-layer::after {
    opacity: 0.68 !important;
    transform: translate3d(var(--kod-x2, 0px), calc(var(--kod-y, 0px) * -0.65), 0) scale(1.14) !important;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,0.48) 0 9%, transparent 24%),
        radial-gradient(circle at 44% 20%, rgba(210,230,255,0.38) 0 10%, transparent 26%),
        radial-gradient(circle at 72% 36%, rgba(255,255,255,0.42) 0 11%, transparent 28%),
        radial-gradient(circle at 30% 82%, rgba(230,242,255,0.38) 0 13%, transparent 30%),
        radial-gradient(circle at 76% 78%, rgba(255,255,255,0.36) 0 12%, transparent 29%) !important;
    background-size: 840px 620px !important;
}

/* A köd játék közben a canvas és a gömbök fölött legyen, de az overlay ablakok alatt. */
#the-sphere-game-shell .kod-felho-layer {
    z-index: 95 !important;
}


/* Belépés / Regisztráció gomb javítása a felső hamburger menüben */
.global-menu-panel > #btn-menu-kilepes.menu-btn {
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 0.76rem !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

@media (max-width: 720px) {
    .global-menu-panel > #btn-menu-kilepes.menu-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 0.82rem !important;
    }
}


/* Vendég első indítás rövid magyarázat */
.vendeg-intro-doboz {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(46, 204, 113, 0.38);
    border-radius: 14px;
    background: rgba(12, 26, 20, 0.72);
    color: #eafff1;
    font-size: 0.95rem;
    line-height: 1.42;
    text-align: left;
}

.vendeg-intro-doboz b {
    color: #2ecc71;
}

/* Vendég módban a kredit kijelzés ne foglaljon helyet. */
.kredit-kapszula[hidden] {
    display: none !important;
}

/* ==========================================================================
   THE SPHERE 3D ORBIT MENÜ
   ========================================================================== */
.sphere-orbit-menu {
    position: relative;
    width: min(840px, calc(100vw - 28px));
    min-height: 340px;
    margin: 14px auto 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    perspective: 980px;
}

.sphere-orbit-stage {
    position: relative;
    width: 100%;
    height: clamp(300px, 40vh, 430px);
    min-height: 300px;
    transform-style: preserve-3d;
    touch-action: none;
    cursor: grab;
}

.sphere-orbit-menu.is-dragging .sphere-orbit-stage {
    cursor: grabbing;
}

.sphere-orbit-rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(690px, 88vw);
    height: min(330px, 46vw);
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 12;
    opacity: 0.78;
}

.sphere-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(142, 232, 255, 0.22);
    box-shadow:
        0 0 28px rgba(46, 204, 113, 0.12),
        inset 0 0 18px rgba(142, 232, 255, 0.06);
}

.sphere-orbit-ring.ring-b {
    transform: rotateZ(58deg) scale(0.82);
    border-color: rgba(241, 196, 15, 0.18);
}

.sphere-orbit-ring.ring-c {
    transform: rotateZ(-54deg) scale(0.72);
    border-color: rgba(155, 89, 182, 0.18);
}

.sphere-core-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(118px, 18vw, 168px);
    height: clamp(118px, 18vw, 168px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.33);
    background:
        radial-gradient(circle at 27% 20%, rgba(255,255,255,0.98) 0 6%, rgba(255,255,255,0.68) 7% 12%, rgba(255,255,255,0.12) 22%, transparent 34%),
        radial-gradient(circle at 39% 34%, rgba(166,255,220,0.42), transparent 27%),
        radial-gradient(circle at 70% 76%, rgba(0,0,0,0.68), transparent 43%),
        radial-gradient(circle at 42% 38%, rgba(46,204,113,1) 0%, rgba(31,143,206,0.98) 42%, rgba(7,42,74,1) 78%, rgba(2, 8, 18, 1) 100%);
    color: #ffffff;
    box-shadow:
        0 0 44px rgba(46, 204, 113, 0.50),
        0 24px 54px rgba(0, 0, 0, 0.56),
        inset -28px -34px 54px rgba(0, 0, 0, 0.54),
        inset 16px 14px 25px rgba(255, 255, 255, 0.22),
        inset 0 0 14px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 70;
    transition: box-shadow 0.18s ease, filter 0.18s ease;
    overflow: hidden;
}


.sphere-core-button.is-profile-core {
    background:
        radial-gradient(circle at 27% 20%, rgba(255,255,255,0.98) 0 6%, rgba(255,255,255,0.66) 7% 12%, rgba(255,255,255,0.12) 22%, transparent 34%),
        radial-gradient(circle at 39% 34%, rgba(219,186,255,0.46), transparent 28%),
        radial-gradient(circle at 70% 76%, rgba(0,0,0,0.70), transparent 43%),
        radial-gradient(circle at 42% 38%, rgba(160,92,255,1) 0%, rgba(85,57,220,0.98) 44%, rgba(35,18,86,1) 78%, rgba(8, 5, 24, 1) 100%);
    box-shadow:
        0 0 46px rgba(160, 92, 255, 0.56),
        0 24px 54px rgba(0, 0, 0, 0.56),
        inset -28px -34px 54px rgba(0, 0, 0, 0.54),
        inset 16px 14px 25px rgba(255, 255, 255, 0.22),
        inset 0 0 14px rgba(255, 255, 255, 0.08);
}

.sphere-core-button.is-profile-core:hover,
.sphere-core-button.is-profile-core:focus-visible {
    box-shadow:
        0 0 52px rgba(160, 92, 255, 0.74),
        0 20px 50px rgba(0, 0, 0, 0.48),
        inset -18px -24px 42px rgba(0, 0, 0, 0.35),
        inset 14px 12px 22px rgba(255, 255, 255, 0.18);
}

.sphere-core-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 17%, rgba(255,255,255,0.52), transparent 20%),
        radial-gradient(ellipse at 72% 82%, rgba(0,0,0,0.42), transparent 50%),
        linear-gradient(128deg, transparent 0 44%, rgba(255,255,255,0.10) 49%, transparent 59%);
    mix-blend-mode: screen;
    opacity: 0.82;
    pointer-events: none;
}

.sphere-core-button::after {
    content: "";
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
        inset -18px -22px 31px rgba(0,0,0,0.40),
        inset 8px 8px 17px rgba(255,255,255,0.13);
    pointer-events: none;
}

.sphere-core-button:hover,
.sphere-core-button:focus-visible {
    outline: none;
    filter: brightness(1.08);
    box-shadow:
        0 0 48px rgba(46, 204, 113, 0.70),
        0 20px 50px rgba(0, 0, 0, 0.48),
        inset -18px -24px 42px rgba(0, 0, 0, 0.35),
        inset 14px 12px 22px rgba(255, 255, 255, 0.18);
}

.sphere-core-shine {
    position: absolute;
    left: 19%;
    top: 14%;
    width: 34%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255,255,255,0.62);
    filter: blur(3px);
    transform: rotate(-20deg);
    z-index: 1;
}

.sphere-core-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.55rem, 3.1vw, 2.32rem);
    font-weight: 1000;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.sphere-core-subtitle {
    position: relative;
    z-index: 2;
    margin-top: 2px;
    font-size: clamp(0.68rem, 1.4vw, 0.86rem);
    font-weight: 800;
    opacity: 0.86;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sphere-orbit-items {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
}

.sphere-orbit-item {
    position: absolute;
    left: 0;
    top: 0;
    --orb-a: 52, 152, 219;
    --orb-b: 8, 38, 78;
    --orb-glow: 142, 232, 255;
    width: clamp(84px, 10.8vw, 118px);
    height: clamp(84px, 10.8vw, 118px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.34);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 9px;
    cursor: pointer;
    pointer-events: auto;
    text-align: center;
    transform-origin: center center;
    transition: box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.98) 0 7%, rgba(255,255,255,0.58) 8% 13%, rgba(255,255,255,0.05) 24%, transparent 33%),
        radial-gradient(circle at 37% 32%, rgba(255,255,255,0.30), transparent 25%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.54), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(var(--orb-a), 1.00) 0%, rgba(var(--orb-a), 0.92) 38%, rgba(var(--orb-b), 1.00) 78%, rgba(2, 8, 18, 1.00) 100%);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.48),
        0 0 24px rgba(var(--orb-glow),0.18),
        inset -18px -22px 34px rgba(0,0,0,0.48),
        inset 10px 9px 16px rgba(255,255,255,0.22),
        inset 0 0 10px rgba(255,255,255,0.06);
}
.sphere-orbit-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 32% 18%, rgba(255,255,255,0.42), transparent 20%),
        radial-gradient(ellipse at 74% 80%, rgba(0,0,0,0.38), transparent 48%),
        linear-gradient(128deg, transparent 0 45%, rgba(255,255,255,0.08) 49%, transparent 58%);
    mix-blend-mode: screen;
    opacity: 0.72;
    pointer-events: none;
}

.sphere-orbit-item::after {
    content: "";
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow:
        inset -9px -11px 16px rgba(0,0,0,0.28),
        inset 5px 5px 10px rgba(255,255,255,0.10);
    pointer-events: none;
}
.sphere-orbit-item:hover,
.sphere-orbit-item:focus-visible,
.sphere-orbit-item.is-front {
    outline: none;
    border-color: rgba(255,255,255,0.44);
    filter: brightness(1.08);
    box-shadow:
        0 0 34px rgba(var(--orb-glow),0.34),
        0 18px 38px rgba(0,0,0,0.48),
        inset -18px -22px 34px rgba(0,0,0,0.44),
        inset 10px 9px 18px rgba(255,255,255,0.26);
}

.sphere-orbit-item.is-back {
    pointer-events: auto;
}

.sphere-item-shine {
    position: absolute;
    left: 22%;
    top: 14%;
    width: 34%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255,255,255,0.56);
    filter: blur(4px);
    transform: rotate(-18deg);
}

.sphere-item-icon {
    position: relative;
    font-size: clamp(1.1rem, 2.3vw, 1.55rem);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.42);
}

.sphere-item-label {
    position: relative;
    font-size: clamp(0.68rem, 1.25vw, 0.84rem);
    font-weight: 950;
    line-height: 1.05;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sphere-item-sub {
    position: relative;
    font-size: clamp(0.55rem, 1vw, 0.68rem);
    font-weight: 800;
    opacity: 0.75;
    line-height: 1.05;
}

.sphere-orbit-item.tone-green {
    --orb-a: 46, 204, 113;
    --orb-b: 5, 62, 41;
    --orb-glow: 82, 255, 170;
}

.sphere-orbit-item.tone-amber {
    --orb-a: 243, 156, 18;
    --orb-b: 91, 46, 6;
    --orb-glow: 255, 202, 87;
}

.sphere-orbit-item.tone-violet {
    --orb-a: 155, 89, 182;
    --orb-b: 41, 18, 76;
    --orb-glow: 204, 136, 255;
}

.sphere-orbit-item.tone-blue {
    --orb-a: 52, 152, 219;
    --orb-b: 8, 42, 82;
    --orb-glow: 142, 232, 255;
}

.sphere-orbit-item.tone-gold {
    --orb-a: 241, 196, 15;
    --orb-b: 102, 72, 4;
    --orb-glow: 255, 232, 96;
}

.sphere-orbit-item.tone-silver {
    --orb-a: 189, 195, 199;
    --orb-b: 36, 53, 70;
    --orb-glow: 235, 245, 255;
}

.sphere-orbit-item.is-soft-locked {
    opacity: 0.70 !important;
}

.sphere-orbit-item.is-soft-locked .sphere-item-sub::after {
    content: " · reg után";
}

.sphere-orbit-hint {
    margin-top: -4px;
    max-width: min(520px, calc(100vw - 48px));
    color: rgba(222, 236, 246, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 9px rgba(0,0,0,0.55);
}

.sphere-orbit-practice-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(520px, calc(100vw - 34px));
    transform: translate(-50%, -50%);
    z-index: 130;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(243, 156, 18, 0.42);
    background: rgba(7, 11, 18, 0.92);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), inset 0 0 18px rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
}

.sphere-practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #f8d28a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#sphere-orbit-practice-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
}

.sphere-practice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sphere-practice-btn {
    min-height: 56px;
    border: 1px solid rgba(243, 156, 18, 0.44);
    border-radius: 16px;
    background: rgba(243, 156, 18, 0.12);
    color: #f8d28a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 900;
}

.sphere-practice-btn span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(243, 156, 18, 0.22);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
}

.sphere-practice-btn b {
    font-size: 0.78rem;
    line-height: 1.05;
}

.sphere-practice-btn:hover,
.sphere-practice-btn:focus-visible {
    outline: none;
    background: rgba(243, 156, 18, 0.22);
    border-color: rgba(243, 156, 18, 0.82);
}

@media (max-height: 760px) and (min-width: 721px) {
    .sphere-orbit-menu {
        min-height: 258px;
        margin-top: 8px;
    }

    .sphere-orbit-stage {
        height: 258px;
        min-height: 258px;
    }

    .sphere-orbit-hint {
        display: none;
    }
}

@media (max-width: 720px) {
    .sphere-orbit-menu {
        width: min(100%, calc(100vw - 20px));
        min-height: 254px;
        margin: 8px auto 10px;
    }

    .sphere-orbit-stage {
        height: 246px;
        min-height: 246px;
    }

    .sphere-orbit-rings {
        width: min(420px, 88vw);
        height: min(205px, 42vw);
    }

    .sphere-orbit-hint {
        font-size: 0.72rem;
        margin-top: -8px;
    }

    .sphere-practice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px), (max-height: 650px) {
    .sphere-orbit-menu {
        min-height: 226px;
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .sphere-orbit-stage {
        height: 218px;
        min-height: 218px;
    }

    .sphere-orbit-hint {
        display: none;
    }

    .sphere-practice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sphere-practice-btn {
        min-height: 50px;
    }
}

/* ==========================================================================
   Orbit UI finomítások: régi menük/gombok elrejtése, gömbös akciógombok
   ========================================================================== */
.menu-sav.lenyilo-global-menu {
    display: none !important;
}

.legacy-play-gomb,
#btn-play-game[hidden] {
    display: none !important;
}

.sphere-orbit-item.tone-cyan {
    --orb-a: 26, 188, 156;
    --orb-b: 3, 70, 76;
    --orb-glow: 95, 255, 226;
}

.sphere-orbit-item.tone-teal {
    --orb-a: 22, 160, 133;
    --orb-b: 4, 64, 58;
    --orb-glow: 77, 255, 205;
}

.sphere-action-orbit-group {
    position: relative;
    width: min(380px, calc(100vw - 56px));
    height: 220px;
    margin: 22px auto 0;
    display: block;
    isolation: isolate;
    --action-orbit-radius: 98px;
    --action-orbit-radius-x: 98px;
    --action-orbit-radius-y: 70px;
}

.sphere-action-orbit-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none;
    user-select: none;
    position: absolute !important;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    margin: 0 !important;
    padding: 10px !important;
    transform: translate(-50%, -50%);
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.34) !important;
    color: #fff !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
    box-sizing: border-box;
    --orb-a: 52, 152, 219;
    --orb-b: 8, 42, 82;
    --orb-glow: 142, 232, 255;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.98) 0 7%, rgba(255,255,255,0.58) 8% 13%, rgba(255,255,255,0.05) 24%, transparent 33%),
        radial-gradient(circle at 37% 32%, rgba(255,255,255,0.30), transparent 25%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.54), transparent 42%),
        radial-gradient(circle at 40% 38%, rgba(var(--orb-a), 1.00) 0%, rgba(var(--orb-a), 0.92) 38%, rgba(var(--orb-b), 1.00) 78%, rgba(2, 8, 18, 1.00) 100%) !important;
    box-shadow:
        0 18px 34px rgba(0,0,0,0.48),
        0 0 24px rgba(var(--orb-glow),0.22),
        inset -18px -22px 34px rgba(0,0,0,0.48),
        inset 10px 9px 16px rgba(255,255,255,0.22) !important;
    overflow: hidden;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.sphere-action-orbit-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 32% 18%, rgba(255,255,255,0.42), transparent 20%),
        radial-gradient(ellipse at 74% 80%, rgba(0,0,0,0.38), transparent 48%),
        linear-gradient(128deg, transparent 0 45%, rgba(255,255,255,0.08) 49%, transparent 58%);
    pointer-events: none;
}

.sphere-action-orbit-button:hover,
.sphere-action-orbit-button:focus-visible {
    outline: none;
    filter: none !important;
    border-color: rgba(255,255,255,0.58) !important;
    box-shadow:
        0 0 34px rgba(var(--orb-glow),0.42),
        0 18px 38px rgba(0,0,0,0.48),
        inset -18px -22px 34px rgba(0,0,0,0.44),
        inset 10px 9px 18px rgba(255,255,255,0.26) !important;
}

.sphere-action-orbit-button:focus,
.sphere-action-orbit-button:active,
.sphere-action-orbit-button:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    box-shadow:
        0 18px 34px rgba(0,0,0,0.48),
        0 0 24px rgba(var(--orb-glow),0.22),
        inset -18px -22px 34px rgba(0,0,0,0.48),
        inset 10px 9px 16px rgba(255,255,255,0.22) !important;
}

.sphere-action-orbit-button,
.sphere-action-orbit-button::before {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none;
}

@media (hover: none), (pointer: coarse) {
    .sphere-action-orbit-button:hover,
    .sphere-action-orbit-button:focus,
    .sphere-action-orbit-button:active,
    .sphere-action-orbit-button:focus-visible {
        outline: none !important;
        filter: none !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
        border-color: rgba(255,255,255,0.34) !important;
        box-shadow:
            0 18px 34px rgba(0,0,0,0.48),
            0 0 24px rgba(var(--orb-glow),0.22),
            inset -18px -22px 34px rgba(0,0,0,0.48),
            inset 10px 9px 16px rgba(255,255,255,0.22) !important;
    }
}


#btn-siker-tovabb,
#btn-siker-ujra,
#btn-kudarc-ujra,
#btn-kudarc-fomenu,
#btn-siker-tovabb *,
#btn-siker-ujra *,
#btn-kudarc-ujra *,
#btn-kudarc-fomenu * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
}

.sphere-action-orbit-button::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

.sphere-action-orbit-button.tone-green {
    --orb-a: 46, 204, 113;
    --orb-b: 5, 62, 41;
    --orb-glow: 82, 255, 170;
}

.sphere-action-orbit-button.tone-blue {
    --orb-a: 52, 152, 219;
    --orb-b: 8, 42, 82;
    --orb-glow: 142, 232, 255;
}

.sphere-action-orbit-button.tone-red {
    --orb-a: 231, 76, 60;
    --orb-b: 92, 18, 12;
    --orb-glow: 255, 120, 105;
}

.sphere-action-orbit-button.tone-silver {
    --orb-a: 189, 195, 199;
    --orb-b: 36, 53, 70;
    --orb-glow: 235, 245, 255;
}

.sphere-action-orbit-button.btn-close {
    margin-top: 0 !important;
    background-clip: padding-box !important;
}

.sphere-action-orbit-group[data-orbit-count="1"] .sphere-action-orbit-button[data-orbit-visible="1"] {
    transform: translate(-50%, -50%) scale(1.02);
}

.sphere-action-orbit-group[data-orbit-count="2"] .sphere-action-orbit-button[data-orbit-visible="1"] {
    animation: sphereActionOrbitTwoA 6.8s linear infinite;
}

.sphere-action-orbit-group[data-orbit-count="2"] .sphere-action-orbit-button[data-orbit-visible="2"] {
    animation: sphereActionOrbitTwoB 6.8s linear infinite;
}

.sphere-action-orbit-group[data-orbit-count="3"] .sphere-action-orbit-button[data-orbit-visible="1"] {
    z-index: 3;
    transform: translate(-50%, -50%) scale(1.02);
}

.sphere-action-orbit-group[data-orbit-count="3"] .sphere-action-orbit-button[data-orbit-visible="2"] {
    animation: sphereActionOrbitThreeA 7.4s linear infinite;
}

.sphere-action-orbit-group[data-orbit-count="3"] .sphere-action-orbit-button[data-orbit-visible="3"] {
    animation: sphereActionOrbitThreeB 7.4s linear infinite;
}

.sphere-action-orbit-button[hidden],
.sphere-action-orbit-button[style*="display: none"] {
    display: none !important;
}

@keyframes sphereActionOrbitTwoA {
    0% { transform: translate(calc(-50% - var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 3; }
    25% { transform: translate(-50%, calc(-50% - var(--action-orbit-radius-y))) scale(1.00); z-index: 2; }
    50% { transform: translate(calc(-50% + var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 1; }
    75% { transform: translate(-50%, calc(-50% + var(--action-orbit-radius-y))) scale(1.00); z-index: 2; }
    100% { transform: translate(calc(-50% - var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 3; }
}

@keyframes sphereActionOrbitTwoB {
    0% { transform: translate(calc(-50% + var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 1; }
    25% { transform: translate(-50%, calc(-50% + var(--action-orbit-radius-y))) scale(1.00); z-index: 2; }
    50% { transform: translate(calc(-50% - var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 3; }
    75% { transform: translate(-50%, calc(-50% - var(--action-orbit-radius-y))) scale(1.00); z-index: 2; }
    100% { transform: translate(calc(-50% + var(--action-orbit-radius-x)), -50%) scale(1.00); z-index: 1; }
}

@keyframes sphereActionOrbitThreeA {
    0% { transform: translate(calc(-50% - 88px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
    50% { transform: translate(calc(-50% + 88px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
    100% { transform: translate(calc(-50% - 88px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
}

@keyframes sphereActionOrbitThreeB {
    0% { transform: translate(calc(-50% + 88px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
    50% { transform: translate(calc(-50% - 88px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
    100% { transform: translate(calc(-50% + 88px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
}

@media (max-width: 480px) {
    .sphere-action-orbit-group {
        width: min(320px, calc(100vw - 36px));
        height: 188px;
        --action-orbit-radius: 76px;
        --action-orbit-radius-x: 76px;
        --action-orbit-radius-y: 58px;
    }

    .sphere-action-orbit-button {
        width: 98px;
        height: 98px;
        font-size: 0.78rem !important;
    }

    .sphere-action-orbit-group[data-orbit-count="3"] .sphere-action-orbit-button[data-orbit-visible="2"] {
        animation-name: sphereActionOrbitThreeAMobile;
    }

    .sphere-action-orbit-group[data-orbit-count="3"] .sphere-action-orbit-button[data-orbit-visible="3"] {
        animation-name: sphereActionOrbitThreeBMobile;
    }
}

@keyframes sphereActionOrbitThreeAMobile {
    0% { transform: translate(calc(-50% - 70px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
    50% { transform: translate(calc(-50% + 70px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
    100% { transform: translate(calc(-50% - 70px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
}

@keyframes sphereActionOrbitThreeBMobile {
    0% { transform: translate(calc(-50% + 70px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
    50% { transform: translate(calc(-50% - 70px), calc(-50% + 14px)) scale(0.94); z-index: 2; }
    100% { transform: translate(calc(-50% + 70px), calc(-50% + 14px)) scale(0.86); z-index: 1; }
}


/* Régi PLAY gomb végleges rejtése: az indítás a 3D PLAY gömbön át történik. */
#btn-play-game.legacy-play-gomb,
.play-sor .legacy-play-gomb,
.play-sor #btn-play-game {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}


/* Szintek panel: ugyanaz az üveges, homályosított réteglogika, mint a hangerőpanelen. */
.szintek-overlay-orbit.active-overlay {
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    padding: 22px;
}

.szintek-overlay-orbit > h2,
.szintek-overlay-orbit > .paszuly-blokk-info {
    display: none !important;
}

.szintek-overlay-orbit .paszuly-wrapper {
    width: min(430px, calc(100vw - 44px));
    height: min(68vh, 660px);
    max-width: none;
    margin: 0;
    padding: 54px 0 26px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at 72% 72%, rgba(85, 185, 255, 0.18), transparent 48%),
        rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 24px rgba(255, 255, 255, 0.07);
}

.szintek-overlay-orbit .overlay-x-close {
    position: sticky;
    top: 8px;
    right: 10px;
    float: right;
    margin: -42px 10px 0 auto;
}

/* ==========================================================================
   Modal UI egységesítés: auth, gyakorlás, leírás
   ========================================================================== */
body.auth-active #the-sphere-game-shell {
    display: block !important;
    filter: blur(5px) saturate(0.82) brightness(0.72);
    pointer-events: none;
}

#the-sphere-auth-shell {
    position: fixed !important;
    inset: 0 !important;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 22px;
}

#the-sphere-auth-shell .login-bg-sphere,
#the-sphere-auth-shell .brand-mark,
#the-sphere-auth-shell h1 {
    display: none !important;
}

#the-sphere-auth-shell .login-card {
    width: min(440px, calc(100vw - 34px));
    max-height: min(88vh, 720px);
    overflow-y: auto;
    position: relative;
    padding: 24px 22px 28px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at 72% 72%, rgba(85,185,255,0.18), transparent 48%),
        rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 24px rgba(255, 255, 255, 0.07);
}

.auth-overlay-close,
.modal-glass-x,
#sphere-orbit-practice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.30);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.34), rgba(210, 34, 54, 0.96) 48%, rgba(82, 0, 18, 0.98) 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,0.38), inset 0 0 10px rgba(255,255,255,0.12);
    z-index: 30;
    cursor: pointer;
    touch-action: manipulation;
}

.auth-overlay-close:hover,
.auth-overlay-close:focus-visible,
.modal-glass-x:hover,
.modal-glass-x:focus-visible,
#sphere-orbit-practice-close:hover,
#sphere-orbit-practice-close:focus-visible {
    transform: scale(1.07);
    outline: none;
    border-color: rgba(255,255,255,0.58);
}

#the-sphere-auth-shell .brand {
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
}

.auth-logo {
    width: min(230px, 58vw);
    height: 96px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 26px rgba(0,0,0,0.45)) drop-shadow(0 0 22px rgba(80,190,255,0.18));
    border-radius: 22px;
}

#the-sphere-auth-shell .auth-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 10px 0 14px;
    min-height: 124px;
}

#the-sphere-auth-shell .auth-tab {
    width: 104px;
    height: 104px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.2px;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.58), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.56), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(52, 152, 219, 0.98) 0%, rgba(24, 86, 145, 0.98) 58%, rgba(6, 26, 52, 1) 100%);
    box-shadow:
        0 14px 26px rgba(0,0,0,0.42),
        inset -16px -20px 32px rgba(0,0,0,0.48),
        inset 8px 8px 16px rgba(255,255,255,0.22);
    transform: scale(0.84);
    opacity: 0.68;
    filter: blur(0.45px) saturate(0.88);
    transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

#the-sphere-auth-shell .auth-tab.active {
    transform: scale(1.10);
    opacity: 1;
    filter: none;
    border-color: rgba(99, 255, 180, 0.72);
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.62), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.55), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(46, 204, 113, 1) 0%, rgba(25, 130, 81, 1) 58%, rgba(5, 46, 31, 1) 100%);
    box-shadow:
        0 16px 32px rgba(0,0,0,0.48),
        0 0 24px rgba(46,204,113,0.28),
        inset -16px -20px 32px rgba(0,0,0,0.48),
        inset 8px 8px 16px rgba(255,255,255,0.24);
}

#the-sphere-auth-shell .btn-primary {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    min-width: 126px;
    min-height: 126px;
    margin: 18px auto 2px;
    padding: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0.5px;
    text-align: center;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.62), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.55), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(46, 204, 113, 1) 0%, rgba(25, 130, 81, 1) 58%, rgba(5, 46, 31, 1) 100%);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.48),
        0 0 24px rgba(46,204,113,0.26),
        inset -18px -22px 34px rgba(0,0,0,0.48),
        inset 9px 9px 17px rgba(255,255,255,0.23);
}

#the-sphere-auth-shell .btn-primary:hover,
#the-sphere-auth-shell .btn-primary:focus-visible {
    outline: none;
    transform: scale(1.05);
}

.modal-glass-overlay.active-overlay,
.sphere-orbit-practice-panel:not([hidden]) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid !important;
    place-items: center;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    padding: 22px;
    box-sizing: border-box;
}

.modal-glass-card,
.sphere-practice-card {
    position: relative;
    width: min(620px, calc(100vw - 44px));
    max-height: min(82vh, 720px);
    overflow-y: auto;
    padding: 54px 22px 26px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at 72% 72%, rgba(85,185,255,0.18), transparent 48%),
        rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 24px rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}

.modal-glass-overlay h2,
.sphere-practice-card .sphere-practice-title {
    color: #2ecc71;
    font-size: clamp(1.35rem, 4.2vw, 2rem);
    margin: 0 0 18px;
    letter-spacing: 1.6px;
    text-align: center;
    text-transform: uppercase;
}

.leiras-glass-overlay #leiras-tartalom {
    max-height: calc(82vh - 150px);
    overflow-y: auto;
    padding-right: 8px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.sphere-orbit-practice-panel {
    left: auto !important;
    top: auto !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}

.sphere-practice-header {
    display: contents;
}

.sphere-practice-header b {
    display: none;
}

.sphere-practice-grid {
    width: 100%;
}

@media (max-width: 520px) {
    #the-sphere-auth-shell {
        padding: 14px 10px 22px;
    }

    #the-sphere-auth-shell .login-card {
        width: min(100%, calc(100vw - 20px));
        padding: 18px 14px 22px;
        border-radius: 28px;
    }

    .auth-logo {
        width: min(190px, 64vw);
        height: 76px;
    }

    #the-sphere-auth-shell .auth-tabs {
        gap: 8px;
        min-height: 104px;
    }

    #the-sphere-auth-shell .auth-tab {
        width: 88px;
        height: 88px;
        font-size: 0.72rem;
    }

    #the-sphere-auth-shell .btn-primary {
        width: 108px;
        height: 108px;
        min-width: 108px;
        min-height: 108px;
        font-size: 0.82rem;
    }

    .modal-glass-card,
    .sphere-practice-card {
        width: min(100%, calc(100vw - 22px));
        padding: 52px 14px 20px;
        border-radius: 28px;
    }
}


/* ==========================================================================
   Modal UI finomítások: szintek X, auth háttér-orbit, átlátszó logo
   ========================================================================== */
body.auth-active #the-sphere-game-shell {
    display: block !important;
    filter: blur(5px) saturate(0.82) brightness(0.72);
    pointer-events: none;
}

.auth-logo {
    width: min(220px, 56vw);
    height: auto;
    max-height: 128px;
    object-fit: contain;
    object-position: center;
    border-radius: 0 !important;
    background: transparent !important;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,0.50)) drop-shadow(0 0 22px rgba(80,190,255,0.20));
}

.szintek-overlay-orbit.active-overlay {
    display: grid !important;
    place-items: center;
    background: rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    padding: 22px;
    box-sizing: border-box;
}

.szintek-overlay-orbit > h2,
.szintek-overlay-orbit > .paszuly-blokk-info,
.szintek-overlay-orbit > .btn-close {
    display: none !important;
}

.szintek-overlay-orbit .paszuly-wrapper {
    position: relative;
    width: min(430px, calc(100vw - 44px));
    height: min(68vh, 660px);
    max-width: none;
    margin: 0;
    padding: 58px 0 26px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at 72% 72%, rgba(85, 185, 255, 0.18), transparent 48%),
        rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 24px rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}

.szintek-overlay-orbit .paszuly-wrapper > .overlay-x-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    float: none !important;
    margin: 0 !important;
    z-index: 60;
}

.szintek-overlay-orbit .paszuly-ugro-gombok,
.szintek-overlay-orbit .paszuly-ugro-btn {
    display: none !important;
}

.sphere-orbit-practice-panel:not([hidden]) {
    background: rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 520px) {
    .auth-logo {
        width: min(185px, 62vw);
        max-height: 112px;
    }

    .szintek-overlay-orbit .paszuly-wrapper {
        width: min(100%, calc(100vw - 22px));
        height: min(72vh, 640px);
        border-radius: 28px;
    }
}

/* ==========================================================================
   Privacy / consent UI + paszuly végső igazítás
   ========================================================================== */
.privacy-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    line-height: 1.32;
}

.privacy-auth-check input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin-top: 1px;
    accent-color: #2ecc71;
}

.privacy-inline-link {
    border: none;
    background: transparent;
    color: #8ee8ff;
    font-weight: 900;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
}

.privacy-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    display: flex;
    justify-content: center;
    padding: 14px;
    pointer-events: none;
}

.privacy-consent-banner[hidden] {
    display: none !important;
}

.privacy-consent-card {
    width: min(680px, calc(100vw - 22px));
    pointer-events: auto;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.24);
    background:
        radial-gradient(circle at 24% 14%, rgba(255,255,255,0.16), transparent 34%),
        radial-gradient(circle at 82% 82%, rgba(46,204,113,0.17), transparent 42%),
        rgba(8, 12, 22, 0.94);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,0.58), inset 0 0 20px rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 18px;
}

.privacy-consent-card h3 {
    margin: 0 0 8px;
    color: #2ecc71;
    letter-spacing: 0.7px;
}

.privacy-consent-card p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.86);
    line-height: 1.42;
}

.privacy-consent-details {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.privacy-consent-details label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,0.9);
    font-weight: 750;
}

.privacy-consent-details input {
    accent-color: #2ecc71;
}

.privacy-consent-buttons,
.privacy-actions-inline,
.privacy-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.privacy-consent-buttons button,
.privacy-link-grid a,
.privacy-small-orb {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    padding: 10px 15px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.42), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.48), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(52,152,219,0.95) 0%, rgba(24,86,145,0.98) 58%, rgba(6,26,52,1) 100%);
    box-shadow: 0 9px 22px rgba(0,0,0,0.34), inset -9px -12px 18px rgba(0,0,0,0.34), inset 6px 6px 12px rgba(255,255,255,0.16);
    cursor: pointer;
}

#btn-consent-accept,
#btn-consent-save {
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.48), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.48), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(46,204,113,1) 0%, rgba(25,130,81,1) 58%, rgba(5,46,31,1) 100%);
}

#btn-consent-reject,
.privacy-small-orb.danger {
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.48), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.48), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(231,76,60,1) 0%, rgba(151,35,28,1) 62%, rgba(58,8,10,1) 100%);
}

.privacy-modal-content {
    color: rgba(255,255,255,0.88);
    line-height: 1.48;
}

.privacy-link-grid {
    margin: 14px 0 18px;
}

.privacy-actions-inline.in-profile {
    justify-content: flex-start;
}

.privacy-action-status {
    min-height: 1.4em;
    margin-top: 12px;
    color: #8ee8ff;
    font-weight: 800;
}

.szintek-overlay-orbit .paszuly-wrapper {
    padding-top: 58px !important;
    padding-bottom: 34px !important;
}

#paszuly-svg {
    overflow: visible !important;
}

@media (max-width: 520px) {
    .privacy-consent-card {
        padding: 14px;
        border-radius: 22px;
    }

    .privacy-consent-buttons button,
    .privacy-link-grid a,
    .privacy-small-orb {
        flex: 1 1 44%;
        font-size: 0.84rem;
        padding: 9px 10px;
    }
}

/* ==========================================================================
   Privacy elérés + Szintek fix X / paszuly igazítás
   ========================================================================== */
.auth-privacy-links,
.leiras-privacy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.auth-privacy-links .privacy-inline-link {
    font-size: 0.84rem;
    opacity: 0.92;
}

.leiras-privacy-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.szintek-overlay-orbit .paszuly-card-shell {
    position: relative;
    width: min(430px, calc(100vw - 44px));
    height: min(68vh, 660px);
    max-width: none;
    margin: 0;
    padding: 58px 0 26px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,0.18), transparent 34%),
        radial-gradient(circle at 72% 72%, rgba(85, 185, 255, 0.18), transparent 48%),
        rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 24px rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
    overflow: hidden;
}

.szintek-overlay-orbit .paszuly-card-shell > .overlay-x-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    float: none !important;
    margin: 0 !important;
    z-index: 80;
}

.szintek-overlay-orbit .paszuly-wrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 10px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.szintek-overlay-orbit #szint-lista-tartaly {
    padding-top: 4px;
    padding-bottom: 8px;
}

.szintek-overlay-orbit #paszuly-svg {
    top: 0 !important;
}

/* Régi, wrapperen belüli X-szabály felülírása az új card-shell szerkezethez. */
.szintek-overlay-orbit .paszuly-wrapper > .overlay-x-close {
    display: none !important;
}

@media (max-width: 520px) {
    .szintek-overlay-orbit .paszuly-card-shell {
        width: min(100%, calc(100vw - 22px));
        height: min(72vh, 640px);
        border-radius: 28px;
    }

    .auth-privacy-links {
        margin-top: 12px;
        gap: 8px;
    }
}


/* ========================================================================== 
   Auth/privacy modal javítás: adatvédelem felül, fix auth fej, saját görgetés
   ========================================================================== */
body.auth-active {
    overflow: hidden !important;
}

body.auth-active #the-sphere-auth-shell {
    overflow: hidden !important;
}

body.auth-active #adatvedelem-overlay.active-overlay {
    z-index: 10040 !important;
}

body.auth-active #adatvedelem-overlay.active-overlay .modal-glass-card {
    z-index: 10041 !important;
}

#the-sphere-auth-shell .login-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: min(92vh, 720px) !important;
    max-height: min(92dvh, 720px) !important;
}

#the-sphere-auth-shell .brand,
#the-sphere-auth-shell .auth-tabs,
#the-sphere-auth-shell .auth-error,
#the-sphere-auth-shell .auth-success,
#the-sphere-auth-shell .auth-privacy-links {
    flex: 0 0 auto;
}

#the-sphere-auth-shell .auth-panel:not(.hidden) {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(min(92vh, 720px) - 300px);
    max-height: calc(min(92dvh, 720px) - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 7px 8px;
    margin: 0 -7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#the-sphere-auth-shell .auth-panel:not(.hidden)::-webkit-scrollbar {
    display: none;
}

#the-sphere-auth-shell .auth-overlay-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 60 !important;
}

@media (max-height: 720px) {
    #the-sphere-auth-shell .login-card {
        max-height: calc(100dvh - 22px) !important;
        padding-top: 14px !important;
        padding-bottom: 16px !important;
    }

    #the-sphere-auth-shell .brand {
        margin-bottom: 6px !important;
    }

    #the-sphere-auth-shell .auth-tabs {
        min-height: 92px !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
    }

    #the-sphere-auth-shell .auth-tab {
        width: 82px !important;
        height: 82px !important;
        font-size: 0.70rem !important;
    }

    #the-sphere-auth-shell .auth-tab.active {
        transform: scale(1.04) !important;
    }

    #the-sphere-auth-shell .auth-panel:not(.hidden) {
        max-height: calc(100dvh - 270px) !important;
    }

    .auth-logo {
        max-height: 74px !important;
    }
}

@media (max-width: 520px) {
    #the-sphere-auth-shell .auth-panel:not(.hidden) {
        max-height: calc(100dvh - 270px) !important;
    }
}


/* ========================================================================== 
   Authból nyitott Adatvédelem: ténylegesen az auth modal fölé kerül
   --------------------------------------------------------------------------
   Az adatvédelmi overlay a game-shell-ben van, az auth modal pedig külön, magas
   z-indexű réteg. Amikor auth közben megnyílik az adatvédelem, a game-shell-t
   ideiglenesen az auth fölé emeljük, különben a gyerek overlay nem tudna
   kiszabadulni a szülő stacking contextből.
   ========================================================================== */
body.auth-active:has(#adatvedelem-overlay.active-overlay) #the-sphere-game-shell {
    position: relative !important;
    z-index: 10030 !important;
    filter: none !important;
    pointer-events: auto !important;
}

body.auth-active:has(#adatvedelem-overlay.active-overlay) #the-sphere-auth-shell {
    z-index: 10010 !important;
    pointer-events: none !important;
}

body.auth-active:has(#adatvedelem-overlay.active-overlay) #adatvedelem-overlay.active-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10060 !important;
    pointer-events: auto !important;
}

body.auth-active:has(#adatvedelem-overlay.active-overlay) #adatvedelem-overlay.active-overlay .privacy-glass-card,
body.auth-active:has(#adatvedelem-overlay.active-overlay) #adatvedelem-overlay.active-overlay .modal-glass-card {
    position: relative !important;
    z-index: 10061 !important;
}


/* ==========================================================================
   Authból nyitott cookie-beállítás: az auth modal fölé kerüljön
   ========================================================================== */
body.privacy-cookie-over-auth {
    overflow: hidden !important;
}

body.privacy-cookie-over-auth #privacy-consent-banner {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10150 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto !important;
}

body.privacy-cookie-over-auth #privacy-consent-banner[hidden] {
    display: none !important;
}

body.privacy-cookie-over-auth #privacy-consent-banner .privacy-consent-card {
    position: relative !important;
    z-index: 10151 !important;
    max-height: min(88vh, 620px);
    max-height: min(88dvh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.privacy-cookie-over-auth #privacy-consent-banner .privacy-consent-card::-webkit-scrollbar {
    display: none;
}

body.privacy-cookie-over-auth #the-sphere-auth-shell {
    pointer-events: none !important;
}

@media (max-width: 520px) {
    body.privacy-cookie-over-auth #privacy-consent-banner {
        padding: 12px !important;
    }

    body.privacy-cookie-over-auth #privacy-consent-banner .privacy-consent-card {
        width: min(100%, calc(100vw - 18px));
        max-height: min(86vh, 580px);
        max-height: min(86dvh, 580px);
    }
}


/* ==========================================================================
   Cookie-beállítás panel fix: auth modalból is középen, legfelül jelenjen meg
   ========================================================================== */
.privacy-consent-banner.privacy-cookie-modal {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    z-index: 10150 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    pointer-events: auto !important;
}

.privacy-consent-banner.privacy-cookie-modal[hidden] {
    display: none !important;
}

.privacy-consent-banner.privacy-cookie-modal.over-auth {
    z-index: 10250 !important;
}

.privacy-consent-banner.privacy-cookie-modal .privacy-consent-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(680px, calc(100vw - 24px)) !important;
    max-height: min(88vh, 620px) !important;
    max-height: min(88dvh, 620px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.privacy-consent-banner.privacy-cookie-modal .privacy-consent-card::-webkit-scrollbar {
    display: none !important;
}

body.privacy-cookie-over-auth #the-sphere-auth-shell {
    pointer-events: none !important;
}

@media (max-width: 520px) {
    .privacy-consent-banner.privacy-cookie-modal {
        padding: 10px !important;
    }

    .privacy-consent-banner.privacy-cookie-modal .privacy-consent-card {
        width: min(100%, calc(100vw - 18px)) !important;
        max-height: min(86vh, 580px) !important;
        max-height: min(86dvh, 580px) !important;
    }
}


/* ========================================================================== 
   Authból nyitott cookie-beállítás végső rétegfix
   ========================================================================== */
body.privacy-cookie-over-auth #privacy-consent-banner.privacy-cookie-modal.over-auth {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    pointer-events: auto !important;
}

body.privacy-cookie-over-auth #privacy-consent-banner.privacy-cookie-modal.over-auth .privacy-consent-card {
    position: relative !important;
    z-index: 2147483001 !important;
    width: min(680px, calc(100vw - 28px)) !important;
    max-height: min(88vh, 620px) !important;
    max-height: min(88dvh, 620px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    margin: auto !important;
}

body.privacy-cookie-over-auth #the-sphere-auth-shell {
    pointer-events: none !important;
}


/* ==========================================================================
   PROFIL OVERLAY FINOMÍTÁSOK
   ========================================================================== */
#profil-overlay {
    align-items: center;
}

#profil-tartalom.profil-tartalom-panel,
#profil-tartalom {
    width: min(920px, calc(100vw - 42px));
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
}

#profil-overlay .menu-kartya {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

#profil-overlay p,
#profil-overlay label,
#profil-overlay .palya-adat-grid,
#profil-overlay .profil-ranglista-form,
#profil-overlay .privacy-actions-inline {
    max-width: none;
    text-align: left;
}

#profil-overlay .palya-adat-grid div {
    text-align: center;
}

#profil-overlay .btn-close.profil-close-orb {
    min-width: 118px;
    min-height: 54px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.46), transparent 16%),
        radial-gradient(circle at 70% 78%, rgba(0,0,0,0.52), transparent 42%),
        radial-gradient(circle at 42% 36%, rgba(52,152,219,0.98) 0%, rgba(24,86,145,0.98) 58%, rgba(6,26,52,1) 100%);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.38),
        0 0 20px rgba(142,232,255,0.16),
        inset -10px -13px 20px rgba(0,0,0,0.36),
        inset 7px 7px 13px rgba(255,255,255,0.16);
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

#profil-overlay .btn-close.profil-close-orb:hover,
#profil-overlay .btn-close.profil-close-orb:focus-visible {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.08);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.42),
        0 0 28px rgba(142,232,255,0.28),
        inset -9px -12px 18px rgba(0,0,0,0.30),
        inset 7px 7px 13px rgba(255,255,255,0.18);
}

@media (max-width: 600px) {
    #profil-tartalom.profil-tartalom-panel,
    #profil-tartalom {
        width: min(100%, calc(100vw - 28px));
        max-width: none;
    }

    #profil-overlay .btn-close.profil-close-orb {
        min-width: 104px;
        min-height: 50px;
        padding: 10px 17px;
    }
}

/* Ranglista overlay */
.ranglista-glass-overlay {
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 28px);
}

.ranglista-glass-card {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    max-height: min(78vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ranglista-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 18px;
    padding: 0 48px;
}

.ranglista-scope-btn {
    min-width: 82px;
    min-height: 82px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.ranglista-scope-btn:not(.is-active) {
    transform: scale(.86);
    filter: blur(.35px) saturate(.8);
    opacity: .72;
}

.ranglista-tartalom {
    overflow: auto;
    padding: 2px 4px 8px;
    scrollbar-width: none;
}

.ranglista-tartalom::-webkit-scrollbar {
    display: none;
}

.ranglista-lista {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ranglista-sor {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.ranglista-sor.is-me {
    border-color: rgba(46,204,113,.62);
    background: rgba(46,204,113,.15);
}

.ranglista-rank {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 950;
    color: #111;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.95), rgba(255,255,255,.18) 26%, transparent 42%),
        radial-gradient(circle at 60% 68%, #f1c40f, #b97807 70%, #422500 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,.38), inset -8px -10px 18px rgba(0,0,0,.28);
}

.ranglista-nev {
    min-width: 0;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranglista-hely {
    font-size: .86rem;
    color: rgba(255,255,255,.68);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranglista-szint {
    text-align: right;
    color: #2ecc71;
    font-weight: 950;
}

.ranglista-uzenet {
    color: rgba(255,255,255,.78);
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 540px) {
    .ranglista-sor {
        grid-template-columns: 52px minmax(0, 1fr) 74px;
        gap: 8px;
        padding: 10px;
    }

    .ranglista-tabs {
        gap: 8px;
        padding: 0 42px;
    }

    .ranglista-scope-btn {
        min-width: 70px;
        min-height: 70px;
        font-size: .78rem;
    }
}



/* ========================================================================== 
   Pálya fejléc fölötti mini készletlogók
   ========================================================================== */

.palya-keszlet-logo-sor {
    width: 100%;
    margin: 0 auto 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.palya-keszlet-logo-item {
    min-width: 72px;
    height: 30px;
    padding: 3px 8px 3px 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255,255,255,0.22);
    background:
        radial-gradient(circle at 26% 18%, rgba(255,255,255,0.34), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.36) 100%),
        rgba(8, 12, 18, 0.46);
    box-shadow:
        0 7px 18px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.14);
    backdrop-filter: blur(9px);
}

.palya-keszlet-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    font-size: 0.86rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.75);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.42),
        inset 0 -4px 9px rgba(0,0,0,0.28),
        0 0 12px rgba(255,255,255,0.10);
}

.palya-keszlet-logo-boosterek .palya-keszlet-logo {
    background:
        radial-gradient(circle at 30% 20%, #ffffff 0%, #fff2a2 21%, #f1c40f 48%, #9b6b00 100%);
}

.palya-keszlet-logo-eletek .palya-keszlet-logo {
    background:
        radial-gradient(circle at 30% 20%, #ffffff 0%, #ff9fb1 22%, #e74c3c 52%, #781b12 100%);
}

.palya-keszlet-logo-kreditek .palya-keszlet-logo {
    background:
        radial-gradient(circle at 30% 20%, #ffffff 0%, #88f7ff 24%, #3498db 55%, #123e72 100%);
}

.palya-keszlet-logo-ertek {
    min-width: 28px;
    color: #eaffff;
    font-size: 0.82rem;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}

@media (max-width: 420px) {
    .palya-keszlet-logo-sor {
        gap: 5px;
        margin-bottom: 3px;
    }

    .palya-keszlet-logo-item {
        min-width: 62px;
        height: 27px;
        padding-right: 6px;
        gap: 4px;
    }

    .palya-keszlet-logo {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
        font-size: 0.74rem;
    }

    .palya-keszlet-logo-ertek {
        font-size: 0.72rem;
        min-width: 22px;
    }
}

/* ========================================================================== 
   Lobby készletpanel + booster bolt overlay
   ========================================================================== */

.lobby-info-sor {
    width: min(760px, calc(100vw - 28px));
    margin: 12px auto 14px;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.55fr);
    gap: 12px;
    align-items: start;
}

.lobby-info-panel {
    min-height: 74px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,0.26), rgba(255,255,255,0.07) 38%, rgba(0,0,0,0.48) 100%);
    box-shadow: 0 12px 34px rgba(0,0,0,0.38), inset 0 0 18px rgba(255,255,255,0.07);
    color: #fff;
    backdrop-filter: blur(12px);
}

.boosterek-lenyilo.lobby-info-panel {
    padding: 0;
    overflow: hidden;
}

.lobby-info-summary {
    min-height: 72px;
    padding: 12px 12px 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.lobby-info-summary::-webkit-details-marker {
    display: none;
}

.lobby-info-cim {
    display: block;
    font-size: 0.78rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.72);
    font-weight: 900;
}

.lobby-info-ertek {
    display: block;
    margin-top: 4px;
    color: #2ecc71;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.lobby-info-plusz-gomb {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(46,204,113,0.8);
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.35), rgba(46,204,113,0.24) 44%, rgba(0,0,0,0.45) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(46,204,113,0.22), inset 0 0 10px rgba(255,255,255,0.10);
}

.lobby-info-plusz-gomb:hover,
.lobby-info-plusz-gomb:focus-visible {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(46,204,113,1);
    outline: none;
}

.elet-kredit-info-panel {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
}

.lobby-info-kapszula {
    min-width: 0;
    min-height: 58px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.22);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    padding: 10px 10px 10px 13px;
}

.lobby-info-kapszula .lobby-info-cim,
.lobby-info-kapszula .lobby-info-ertek {
    grid-column: 1;
}

.lobby-info-kapszula .lobby-info-plusz-gomb {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.boosterek-lenyilo[open] .booster-kontener-lenyilo {
    margin: 0 10px 12px;
}

.boosterek-lenyilo[open] .lobby-info-summary {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.booster-bolt-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 5, 10, 0.58);
    backdrop-filter: blur(10px);
}

.booster-bolt-overlay.active-overlay {
    display: flex;
}

.booster-bolt-overlay.hidden-overlay {
    display: none;
}

.booster-bolt-panel {
    position: relative;
    width: min(430px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 28px));
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.22);
    background:
        radial-gradient(circle at 22% 12%, rgba(255,255,255,0.24), transparent 28%),
        linear-gradient(155deg, rgba(15, 22, 32, 0.96), rgba(5, 9, 15, 0.94));
    box-shadow: 0 28px 90px rgba(0,0,0,0.62), inset 0 0 24px rgba(255,255,255,0.06);
    color: #fff;
    padding: 22px 18px 18px;
    text-align: left;
}

.booster-bolt-panel h2 {
    margin: 0 48px 8px 0;
    color: #2ecc71;
    font-size: 1.35rem;
}

.booster-bolt-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(231,76,60,0.38), inset 0 0 8px rgba(255,255,255,0.2);
}

.booster-bolt-kredit-sor {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.82);
}

.booster-bolt-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.booster-bolt-sor {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.26);
}

.booster-bolt-sor b {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.booster-bolt-sor span,
.booster-bolt-sor small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.72);
    line-height: 1.25;
}

.booster-bolt-venni {
    min-width: 86px;
    border: 1px solid rgba(46,204,113,0.82);
    border-radius: 16px;
    padding: 9px 11px;
    background: linear-gradient(180deg, rgba(46,204,113,0.34), rgba(39,174,96,0.18));
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(46,204,113,0.17);
}

.booster-bolt-venni small {
    color: rgba(255,255,255,0.82);
    font-weight: 800;
}

.booster-bolt-venni:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.booster-bolt-uzenet {
    min-height: 22px;
    margin: 13px 4px 0;
    color: #2ecc71;
    font-weight: 800;
}

@media (max-width: 640px) {
    .lobby-info-sor {
        grid-template-columns: 1fr;
        gap: 10px;
        width: min(430px, calc(100vw - 24px));
    }

    .elet-kredit-info-panel {
        grid-template-columns: 1fr 1fr;
    }

    .lobby-info-summary {
        min-height: 64px;
    }
}

@media (max-width: 390px) {
    .elet-kredit-info-panel {
        grid-template-columns: 1fr;
    }
}

.boosterek-lenyilo.lobby-info-panel {
    width: auto;
    margin: 0;
}

.lobby-info-panel .boosterek-summary {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.play-elet-statusz.elet-kredit-info-panel {
    margin: 0;
    color: #fff;
    font-weight: 900;
    flex-wrap: nowrap;
    justify-content: stretch;
}

.play-elet-statusz.elet-kredit-info-panel span {
    border-radius: 20px;
    padding: 10px 10px 10px 13px;
}

/* ==========================================================================
   Mobil főmenü: natív négyzetes tap/fókusz jelzés helyett gömbös PC-s highlight
   ========================================================================== */
.sphere-core-button,
.sphere-orbit-item,
.menu-btn,
.global-menu-panel .menu-btn,
.hamburger-gyakorlo-summary {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

.sphere-core-button:focus,
.sphere-core-button:active,
.sphere-core-button:focus-visible,
.sphere-orbit-item:focus,
.sphere-orbit-item:active,
.sphere-orbit-item:focus-visible,
.menu-btn:focus,
.menu-btn:active,
.menu-btn:focus-visible,
.hamburger-gyakorlo-summary:focus,
.hamburger-gyakorlo-summary:active,
.hamburger-gyakorlo-summary:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.sphere-core-button::-moz-focus-inner,
.sphere-orbit-item::-moz-focus-inner,
.menu-btn::-moz-focus-inner,
.hamburger-gyakorlo-summary::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

@media (hover: none), (pointer: coarse) {
    .sphere-core-button:hover,
    .sphere-core-button:focus,
    .sphere-core-button:active,
    .sphere-core-button:focus-visible {
        outline: none !important;
        filter: none !important;
        border-radius: 50% !important;
        border-color: rgba(255,255,255,0.52) !important;
        box-shadow:
            0 0 48px rgba(46, 204, 113, 0.70),
            0 20px 50px rgba(0, 0, 0, 0.48),
            inset -18px -24px 42px rgba(0, 0, 0, 0.35),
            inset 14px 12px 22px rgba(255, 255, 255, 0.18) !important;
    }

    .sphere-core-button.is-profile-core:hover,
    .sphere-core-button.is-profile-core:focus,
    .sphere-core-button.is-profile-core:active,
    .sphere-core-button.is-profile-core:focus-visible {
        box-shadow:
            0 0 52px rgba(160, 92, 255, 0.74),
            0 20px 50px rgba(0, 0, 0, 0.48),
            inset -18px -24px 42px rgba(0, 0, 0, 0.35),
            inset 14px 12px 22px rgba(255, 255, 255, 0.18) !important;
    }

    .sphere-orbit-item:hover,
    .sphere-orbit-item:focus,
    .sphere-orbit-item:active,
    .sphere-orbit-item:focus-visible,
    .sphere-orbit-item.is-front {
        outline: none !important;
        filter: none !important;
        border-radius: 50% !important;
        border-color: rgba(255,255,255,0.44) !important;
        box-shadow:
            0 0 34px rgba(var(--orb-glow),0.34),
            0 18px 38px rgba(0,0,0,0.48),
            inset -18px -22px 34px rgba(0,0,0,0.44),
            inset 10px 9px 18px rgba(255,255,255,0.26) !important;
    }

    .menu-btn:hover,
    .menu-btn:focus,
    .menu-btn:active,
    .menu-btn:focus-visible,
    .hamburger-gyakorlo-summary:hover,
    .hamburger-gyakorlo-summary:focus,
    .hamburger-gyakorlo-summary:active,
    .hamburger-gyakorlo-summary:focus-visible {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ========================================================================== 
   Lobby mini készletlogók: kattintható felső sor + alsó duplikált sor rejtése
   ========================================================================== */

/* A korábbi alsó Boosterek / Életek / Kreditek panel marad a DOM-ban,
   hogy a régi plusz-gombos logika és a meglévő JS-kötések ne törjenek el,
   de vizuálisan már a felső mini sor veszi át a szerepét. */
.lobby-info-sor {
    display: none !important;
}

.palya-keszlet-logo-item {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,0.22);
    font: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.palya-keszlet-logo-item:hover,
.palya-keszlet-logo-item:focus-visible {
    transform: translateY(-1px) scale(1.035);
    box-shadow:
        0 0 18px rgba(255,255,255,0.22),
        0 9px 22px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.22);
    outline: none;
}

.palya-keszlet-logo-item:active {
    transform: translateY(1px) scale(0.985);
    outline: none;
}


/* ==========================================================================
   Lobby felső készletsor finom pozíció: éppenhogy gap
   ========================================================================== */
#palya-info-szoveg {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#palya-info-szoveg > .palya-keszlet-logo-sor:first-child {
    margin-top: -2px !important;
    margin-bottom: 2px !important;
}

#palya-info-szoveg > .palya-keszlet-logo-sor:first-child + .palya-fejlec {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

@media (max-width: 720px) {
    #kellekek-overlay {
        padding-top: max(58px, env(safe-area-inset-top)) !important;
        gap: 4px !important;
    }

    #palya-info-szoveg > .palya-keszlet-logo-sor:first-child {
        margin-top: -4px !important;
        margin-bottom: 1px !important;
    }
}

@media (max-width: 420px) {
    .palya-keszlet-logo-sor {
        margin-bottom: 1px !important;
    }

    .palya-fejlec {
        margin-bottom: 5px !important;
    }
}

/* ========================================================================== 
   Desktop lobby igazítás: kisebb felső távolság, optikai közép
   ========================================================================== */
@media (min-width: 721px) {
    #kellekek-overlay {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    #palya-info-szoveg {
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: translateY(-10px);
    }

    #palya-info-szoveg > .palya-keszlet-logo-sor:first-child {
        margin-top: 0 !important;
        margin-bottom: 1px !important;
    }

    #palya-info-szoveg > .palya-keszlet-logo-sor:first-child + .palya-fejlec,
    #palya-info-szoveg .palya-fejlec {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    .palya-keszlet-logo-sor {
        margin-bottom: 1px !important;
    }
}

@media (min-width: 721px) and (max-height: 760px) {
    #kellekek-overlay {
        padding-top: 36px !important;
        padding-bottom: 34px !important;
        gap: 2px !important;
    }

    #palya-info-szoveg {
        transform: translateY(-6px);
    }
}

/* ========================================================================== 
   Desktop ablakos lobby igazítás: ne csak fullscreenben legyen középen
   ========================================================================== */
@media (min-width: 721px) {
    #kellekek-overlay.active-overlay {
        min-height: 100svh !important;
        height: 100svh !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px !important;
    }

    #palya-info-kontener.palya-info-kompakt,
    #kellekek-overlay #palya-info-kontener.booster-kontener,
    #kellekek-overlay #palya-info-kontener.palya-info-kompakt {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    #palya-info-szoveg {
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: none !important;
    }

    #palya-info-szoveg > .palya-keszlet-logo-sor:first-child {
        margin-top: 0 !important;
        margin-bottom: 1px !important;
    }

    #palya-info-szoveg > .palya-keszlet-logo-sor:first-child + .palya-fejlec,
    #palya-info-szoveg .palya-fejlec {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
    }
}

/* Alacsonyabb, nem-fullscreen böngészőablaknál a teljes blokk picit feljebb kerül,
   mert a böngésző felső sávja optikailag lejjebb tolja a játékteret. */
@media (min-width: 721px) and (max-height: 900px) {
    #kellekek-overlay.active-overlay {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    #palya-info-kontener.palya-info-kompakt {
        margin-top: 0 !important;
    }

    #palya-info-szoveg {
        transform: translateY(-18px) !important;
    }
}

@media (min-width: 721px) and (max-height: 760px) {
    #palya-info-szoveg {
        transform: translateY(-26px) !important;
    }

    #kellekek-overlay #palya-cel-kontener,
    #kellekek-overlay .boosterek-lenyilo,
    #kellekek-overlay .play-sor {
        margin-top: 2px !important;
        margin-bottom: 2px !important;
    }
}

/* ========================================================================== 
   Profil oldal készlet/vásárlás mini sor
   ========================================================================== */
.profil-keszlet-logo-sor {
    margin: 4px auto 14px;
    max-width: 340px;
}

#profil-overlay .profil-keszlet-logo-sor .palya-keszlet-logo-item {
    min-width: 82px;
}

@media (max-width: 420px) {
    .profil-keszlet-logo-sor {
        margin-top: 2px;
        margin-bottom: 10px;
        max-width: 100%;
    }

    #profil-overlay .profil-keszlet-logo-sor .palya-keszlet-logo-item {
        min-width: 64px;
    }
}

/* ========================================================================== 
   Élet / kredit vásárló overlay: booster bolttal azonos piros X-es modal
   ========================================================================== */
#elet-szerzes-overlay.vasarlas-modal-overlay,
#kredit-vasarlas-overlay.vasarlas-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(2, 5, 10, 0.58) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
}

.vasarlas-modal-panel {
    position: relative;
    width: min(430px, calc(100vw - 28px));
    max-height: min(720px, calc(100dvh - 28px));
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.22);
    background:
        radial-gradient(circle at 22% 12%, rgba(255,255,255,0.24), transparent 28%),
        linear-gradient(155deg, rgba(15, 22, 32, 0.96), rgba(5, 9, 15, 0.94));
    box-shadow: 0 28px 90px rgba(0,0,0,0.62), inset 0 0 24px rgba(255,255,255,0.06);
    color: #fff;
    padding: 22px 18px 18px;
    text-align: left;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.vasarlas-modal-panel h2 {
    margin: 0 48px 14px 0 !important;
    color: #2ecc71 !important;
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.vasarlas-modal-panel .menu-kartya {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.vasarlas-modal-panel .elet-opcio-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
}

.vasarlas-modal-x {
    top: 12px !important;
    right: 12px !important;
}

#kredit-vasarlas-overlay .kredit-vasarlas-placeholder {
    width: 100%;
    max-width: none;
}

@media (max-width: 720px) {
    #elet-szerzes-overlay.vasarlas-modal-overlay,
    #kredit-vasarlas-overlay.vasarlas-modal-overlay {
        padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
    }

    .vasarlas-modal-panel {
        width: min(430px, calc(100vw - 24px));
        max-height: min(680px, calc(100dvh - 24px));
        padding: 50px 16px 16px;
    }

    .vasarlas-modal-panel h2 {
        margin-top: 0 !important;
    }
}


/* ==========================================================================
   Profil oldal: kompakt booster állapot a kiválasztott pálya fölött
   ========================================================================== */
#profil-overlay .profil-szint-grid {
    justify-content: center;
    margin-top: 8px;
}

.profil-boosterek-blokk {
    margin: 12px 0 8px;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(7, 13, 26, 0.46);
    box-shadow: inset 0 0 14px rgba(255,255,255,0.04);
}

.profil-boosterek-cim {
    margin-bottom: 8px;
    color: #f1c40f;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.profil-boosterek-racs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profil-boosterek-racs span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
}

.profil-boosterek-racs strong {
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
}

.profil-kivalasztott-palya {
    margin-top: 8px !important;
}

@media (max-width: 560px) {
    .profil-boosterek-racs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profil-boosterek-racs span {
        padding: 7px 8px;
        font-size: 0.84rem;
    }
}

/* Az újrapróbálás/következő akció azonnali vizuális visszajelzése pálya végén. */
.sphere-action-orbit-button.is-starting,
.sphere-action-orbit-button[aria-busy="true"] {
    cursor: wait !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(0.96) !important;
    box-shadow:
        0 0 42px rgba(var(--orb-glow),0.58),
        0 18px 38px rgba(0,0,0,0.50),
        inset -18px -22px 34px rgba(0,0,0,0.44),
        inset 10px 9px 18px rgba(255,255,255,0.30) !important;
}
