body {
    margin: 0;
    background: radial-gradient(circle at center, #111a3d 0%, #060b26 100%);
    min-height: 100vh;
    
    /* OPRAVA: Změna na block + flex kontejner umožní scrollování */
    display: block; 
}

/* Icons container */
.icon-container {
    display: flex;
    gap: 40px; 
    
    /* OPRAVA: Povolení zalamování a vycentrování */
    flex-wrap: wrap; 
    justify-content: center; 
    
    /* Horní mezera, aby ikony nebyly pod money-barem */
    padding: 100px 20px 50px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Zbytek tvého CSS zůstává beze změny */
.icon-item {
    text-decoration: none; 
    color: inherit;        
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-item:visited {
    color: #00d4ff;
}

.icon-item:hover {
    transform: scale(1.2); 
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.icon-item:hover .circle {
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.1);
}

.shop-item {
    transform: translateY(-2px);
}

.shop-circle {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(220, 191, 92, 0.5);
    box-shadow: 0 0 14px rgba(220, 191, 92, 0.22);
    background: rgba(220, 191, 92, 0.09);
}

.shop-item:hover .shop-circle {
    border-color: #d7bf6a;
    box-shadow: 0 0 18px rgba(215, 191, 106, 0.34);
    background: rgba(215, 191, 106, 0.14);
}

.label {
    margin-top: 10px;
    color: #00d4ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-label {
    color: #d7c98f;
    text-shadow: none;
}

/* Money bar */
.money-bar-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    cursor: pointer;
}

.money-bar {
    position: fixed; /* Změna na fixed, aby byl stále nahoře */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    z-index: 1000;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.money-bar-link:hover .money-bar {
    border-color: #2ecc71;
    box-shadow: 0 0 22px rgba(46, 204, 113, 0.6);
    transform: translateX(-50%) translateY(-2px);
    background: rgba(0, 0, 0, 0.72);
}

.money-bar::after {
    content: '+ dobít?';
    display: inline-block;
    margin-left: 10px;
    font-size: 0.72rem;
    color: rgba(46, 204, 113, 0.55);
    letter-spacing: 0.5px;
    vertical-align: middle;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.money-bar-link:hover .money-bar::after {
    color: #2ecc71;
}

/* Zamknuté ikony */
.locked {
    filter: grayscale(1) opacity(0.5);
    pointer-events: none; 
}

/* Tooltip wrapper for locked icons */
.coming-soon-wrap {
    position: relative;
    cursor: not-allowed;
}

.coming-soon-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 11, 38, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.coming-soon-wrap:hover::after {
    opacity: 1;
    visibility: visible;
}

        .money-icon {
            font-size: 24px;
        }

        #money-amount {
            color: #00ff88; /* Zelená barva pro peníze */
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
        }

        .currency {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            letter-spacing: 1px;
        }

        /* Login */
        .footer-action {
            position: fixed;
            bottom: 40px; /* Vzdálenost od spodu */
            left: 50%;
            transform: translateX(-50%); /* Perfektní vycentrování */
            z-index: 1000;
        }

        .login-btn {
            background: rgba(0, 212, 255, 0.1); /* Průhledné pozadí */
            color: #00d4ff;
            border: 2px solid #00d4ff;
            padding: 12px 40px;
            border-radius: 50px; /* Kulatý tvar */
            font-family: 'Segoe UI', sans-serif;
            font-weight: bold;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px); /* Jemné rozmazání pozadí */
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
        }

        .login-btn:hover {
            background: #00d4ff;
            color: #060b26;
            box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
            transform: translateY(-3px); /* Jemné poskočení nahoru */
        }

        .login-btn:active {
            transform: translateY(-1px); /* Efekt stisknutí */
        }

        .popup-content {
            background: #0b0e14;
            padding: 40px;
            border-radius: 30px; /* Hodně zakulacené podle obrázku */
            border: 1px solid #00d4ff;
            text-align: center;
            width: 400px;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
        }
        .popup-overlay {
            display: none; /* Schová popup při načtení stránky */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85); /* Ztmaví pozadí za popupem */
            backdrop-filter: blur(8px); /* Rozmaže mapu v pozadí */
            z-index: 2000; /* Musí být vyšší než money-bar */
        }

        .login-input {
            width: 80%;
            background: white;
            border: none;
            padding: 10px;
            margin: 5px 0;
            border-radius: 2px;
            font-family: sans-serif;
        }

        .vstoupit-btn {
            margin-top: 20px;
            background: transparent;
            border: 2px solid #00d4ff;
            color: #00d4ff;
            padding: 15px 60px;
            border-radius: 50px; /* Pilulkový tvar tlačítka */
            font-weight: bold;
            font-size: 18px;
            letter-spacing: 2px;
            cursor: pointer;
            transition: 0.3s;
        }

        .vstoupit-btn:hover {
            background: rgba(0, 212, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        }

        .switch-text {
            color: white;
            font-size: 12px;
            margin-top: 15px;
        }

        .switch-text a {
            color: #00d4ff;
            text-decoration: none;
        }

        .close-btn {
            position: absolute;
            top: 15px; right: 20px;
            color: white; font-size: 24px; cursor: pointer;
        }

        .popup-content h2 { color: #00d4ff; margin-bottom: 20px; font-family: sans-serif; }

        @keyframes shake {
            0%, 100% { transform: translate(-50%, -50%); }
            25% { transform: translate(-52%, -50%); }
            75% { transform: translate(-48%, -50%); }
        }

        #authMessage {
            font-family: sans-serif;
            font-size: 14px;
            font-weight: bold;
            min-height: 20px; /* Aby popup neskákal, když se text objeví */
            margin-top: 15px;
        }

        .user-status {
            color: #fff;
            font-family: 'Segoe UI', sans-serif;
            text-align: center;
            background: rgba(0, 0, 0, 0.4);
            padding: 10px 20px;
            border-radius: 15px;
            border: 1px solid rgba(0, 212, 255, 0.2);
            backdrop-filter: blur(5px);
        }

        .user-name {
            color: #00d4ff;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .logout-link {
            display: inline-block;
            margin-top: 5px;
            color: rgba(255, 77, 77, 0.8); /* Jemně červená pro odhlášení */
            text-decoration: none;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: 0.3s;
        }

        .logout-link:hover {
            color: #ff4d4d;
            text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
        }

        .menu-tip {
            position: relative;
            width: min(560px, calc(100vw - 36px));
            background: rgba(0, 0, 0, 0.55);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 14px;
            padding: 12px 14px 12px;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
            backdrop-filter: blur(4px);
            margin: 6px auto 92px;
        }

        .menu-tip-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 6px;
            padding-right: 30px;
        }

        .menu-tip-title {
            color: #00d4ff;
            font-family: 'Outfit', 'Segoe UI', sans-serif;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0;
        }

        .menu-tip-text {
            margin: 0;
            color: rgba(255, 255, 255, 0.88);
            font-family: 'Outfit', 'Segoe UI', sans-serif;
            font-size: 13px;
            line-height: 1.35;
            padding-right: 12px;
        }

        .menu-tip-next {
            border: 1px solid rgba(0, 212, 255, 0.35);
            background: rgba(0, 212, 255, 0.09);
            color: #9fefff;
            border-radius: 999px;
            font-family: 'Outfit', 'Segoe UI', sans-serif;
            font-size: 13px;
            line-height: 1;
            padding: 4px 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .menu-tip-next:hover {
            background: rgba(0, 212, 255, 0.2);
            color: #ffffff;
            border-color: rgba(0, 212, 255, 0.8);
        }

        .menu-tip-close {
            position: absolute;
            top: 6px;
            right: 8px;
            border: 0;
            background: transparent;
            color: rgba(255, 255, 255, 0.75);
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            padding: 2px;
        }

        .menu-tip-close:hover {
            color: #ffffff;
        }

        @media (max-width: 700px) {
            .menu-tip {
                width: calc(100vw - 24px);
                margin: 8px auto 90px;
            }

            .icon-container {
                padding-top: 80px;
            }
        }