/* ========================================
   LOADING STATE - скрываем контент пока SDK загружается
   ======================================== */

body.loading #gameContainer {
    visibility: hidden !important;
}

body.loading .main-menu {
    display: none !important;
}

/* ========================================
   FOG SYSTEM
   ======================================== */

.fog-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 120%;
    bottom: -120px;
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(200, 220, 255, 0.1) 15%, rgba(150, 180, 220, 0.6) 50%, rgba(100, 130, 170, 0.9) 90%, rgba(80, 100, 130, 1) 100%);
    filter: url(#fog-filter);
    animation: fog-drift 60s linear infinite;
}

@keyframes fog-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   GENERAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

body {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a4e 0%, #08071a 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    position: relative;
    width: 640px;
    height: 1200px;
    background: rgba(0,0,0,0.1);
    visibility: hidden;
}

#physics-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gameEmodzi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   GAME UI
   ======================================== */

.game-ui-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 100;
    pointer-events: none;
}

.svitok {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.svitok img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(1.5);
    width: 580px;
    height: 150px;
    object-fit: contain;
}

.stats-layer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    color: #fff;
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: -10px;
}

.stats-layer b {
    color: #ffd700;
}

.health-bar-container {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.health-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77);
    border-radius: 8px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(107, 203, 119, 0.5);
}

.game-ui-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 15px;
}

.btn {
    width: 90px;
    height: 90px;
    border: 3px solid #d4c4a8;
    border-radius: 20px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-plus {
    background-image: url('../sladosti/game_ui/plusbtn.png');
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-tornado {
    background-image: url('../sladosti/game_ui/ikon_tornado.png');
    background-color: rgba(0, 150, 255, 0.2);
}

.btn-hammer {
    background-image: url('../sladosti/game_ui/ikon_molot.png');
    background-color: rgba(255, 100, 100, 0.2);
}

.btn-bomb {
    background-image: url('../sladosti/game_ui/ikon_bomba.png');
    background-color: rgba(255, 50, 50, 0.2);
}

.btn-pause {
    background-image: url('../sladosti/game_ui/ikon_pausa.png');
    background-color: rgba(150, 150, 150, 0.2);
    outline: none;
}

.count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: #fff;
    font-family: 'Arial Black', sans-serif;
    font-size: 18px;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   GAME OVER OVERLAY
   ======================================== */

.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 1200px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, rgba(120, 0, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(255, 0, 100, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 100, 200, 0.1) 0%, transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.game-over-overlay.active { display: flex !important; }

.game-over-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    height: 100%;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-over-header { position: relative; margin-bottom: 40px; }

.game-over-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 56px;
    color: #fff;
    -webkit-text-stroke: 3px #4a1a6b;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(200, 100, 255, 0.7), 0 0 60px rgba(255, 100, 200, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: titlePulse 2s ease-in-out infinite, titleGlow 1.5s ease-in-out infinite alternate;
    letter-spacing: 6px;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(ellipse, rgba(200, 100, 255, 0.3) 0%, rgba(255, 100, 200, 0.2) 40%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.stats-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background: linear-gradient(135deg, rgba(30, 10, 60, 0.8) 0%, rgba(20, 5, 40, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 30px 60px;
    margin-bottom: 50px;
    border: 2px solid rgba(200, 150, 255, 0.3);
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.stat-label {
    font-family: 'Arial Black', sans-serif;
    font-size: 14px;
    color: rgba(200, 180, 255, 0.8);
    letter-spacing: 4px;
}

.stat-value {
    font-family: 'Arial Black', sans-serif;
    font-size: 42px;
    color: #fff;
    -webkit-text-stroke: 2px #8b5cf6;
    text-shadow: 0 0 20px rgba(200, 150, 255, 0.8);
}

.stat-divider {
    width: 2px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(200, 150, 255, 0.6), transparent);
}

.buttons-stack { display: flex; flex-direction: column; gap: 38px; width: 100%; max-width: 450px; }

.go-btn {
    position: relative;
    width: 100%;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.go-btn span {
    position: relative;
    z-index: 1;
    font-family: 'Arial Black', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.go-btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #a855f7 100%);
    box-shadow: 0 9px 0 #7c3aed, 0 15px 45px rgba(168, 85, 247, 0.4);
}

.go-btn-primary span { color: #fff; }
.go-btn-primary:hover { transform: translateY(-6px); box-shadow: 0 15px 0 #7c3aed, 0 30px 60px rgba(168, 85, 247, 0.5); }

.go-btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    box-shadow: 0 9px 0 #1e40af, 0 15px 45px rgba(59, 130, 246, 0.4);
}

.go-btn-secondary span { color: #fff; }
.go-btn-secondary:hover { transform: translateY(-6px); box-shadow: 0 15px 0 #1e40af, 0 30px 60px rgba(59, 130, 246, 0.5); }

@keyframes slideInUp { from { opacity: 0; transform: translateY(-100px); } to { opacity: 1; transform: translateY(0); } }
@keyframes titlePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes titleGlow { from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(200, 100, 255, 0.7), 0 0 60px rgba(255, 100, 200, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5); } to { text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(200, 100, 255, 0.9), 0 0 90px rgba(255, 100, 200, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5); } }
@keyframes glowPulse { from { opacity: 0.6; transform: translate(-50%, -50%) scale(1); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }

.panel { display: none; }
#gameOverPanel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 0.5; pointer-events: auto; }
#gameOverPanelContainer { position: absolute; top: 0; left: 0; width: 640px; height: 1200px; background: rgba(0,0,0,0.85); z-index: 9998; pointer-events: auto; }
.panel.active { display: block !important; }

/* ========================================
   PAUSE OVERLAY
   ======================================== */

.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 1200px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9997;
    pointer-events: auto;
    background: radial-gradient(ellipse at 20% 20%, rgba(0, 150, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(100, 50, 200, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 100, 150, 0.1) 0%, transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.pause-overlay.active { display: flex !important; }

.pause-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    height: 100%;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pause-header { position: relative; margin-bottom: 90px; margin-top: -40px; }

.pause-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 78px;
    color: #fff;
    -webkit-text-stroke: 4px #1e40af;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 60px rgba(100, 150, 255, 0.7), 0 0 90px rgba(50, 100, 200, 0.5), 0 6px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 9px;
    animation: pausePulse 2s ease-in-out infinite;
}

@keyframes pausePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.sound-controls { display: flex; gap: 60px; margin-top: 30px; margin-bottom: 60px; }

.sound-btn {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.sound-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.sound-btn:active { transform: scale(0.95); }
.sound-btn img { width: 75px; height: 75px; pointer-events: none; }
.sound-btn.muted img { opacity: 0.4; }

.pause-buttons { margin-top: 15px; margin-bottom: 15px; }
.pause-buttons .go-btn { padding: 30px 60px; }
.pause-buttons .go-btn span { font-size: 33px; }

.go-btn-tertiary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #6366f1 100%);
    box-shadow: 0 9px 0 #3730a3, 0 15px 45px rgba(99, 102, 241, 0.4);
}

.go-btn-tertiary span { color: #fff; }
.go-btn-tertiary:hover { transform: translateY(-6px); box-shadow: 0 15px 0 #3730a3, 0 30px 60px rgba(99, 102, 241, 0.5); }

/* ========================================
   WIN OVERLAY
   ======================================== */

.win-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 1200px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    pointer-events: auto;
    background: radial-gradient(ellipse at 20% 20%, rgba(200, 0, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(255, 100, 200, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 150, 255, 0.1) 0%, transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.win-overlay.active { display: flex !important; }

.win-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    height: 100%;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.win-header { position: relative; margin-bottom: 40px; margin-top: -20px; }

.win-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 65px;
    color: #fff;
    -webkit-text-stroke: 4px #8b5cf6;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 60px rgba(200, 100, 255, 0.7), 0 0 90px rgba(255, 100, 200, 0.5), 0 6px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 9px;
    animation: winPulse 2s ease-in-out infinite;
}

@keyframes winPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.leaderboard-container { margin-top: 30px; margin-bottom: 50px; }

.leaderboard {
    background: linear-gradient(135deg, rgba(30, 10, 60, 0.8) 0%, rgba(20, 5, 40, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 30px 60px;
    border: 2px solid rgba(200, 150, 255, 0.3);
    max-width: 450px;
    width: 100%;
}

.leaderboard-title { display: none; }
.leaderboard-list { display: flex; flex-direction: column; gap: 15px; }

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(200, 150, 255, 0.2);
}

.leaderboard-rank { font-family: 'Arial Black', sans-serif; font-size: 18px; color: rgba(200, 180, 255, 0.8); letter-spacing: 2px; min-width: 40px; text-align: center; }
.leaderboard-name { font-family: 'Arial Black', sans-serif; font-size: 18px; color: #fff; -webkit-text-stroke: 1px #8b5cf6; flex: 1; text-align: left; padding-left: 15px; }
.leaderboard-level { font-family: 'Arial Black', sans-serif; font-size: 16px; color: #4ade80; min-width: 50px; text-align: center; }
.leaderboard-score { font-family: 'Arial Black', sans-serif; font-size: 18px; color: #ffd700; min-width: 80px; text-align: right; }

.win-buttons { margin-top: 15px; margin-bottom: 15px; }
.win-buttons .go-btn { padding: 30px 60px; }
.win-buttons .go-btn span { font-size: 33px; }

/* ========================================
   SHOP OVERLAY
   ======================================== */

.shop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 1200px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    pointer-events: auto;
    background: radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(255, 165, 0, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.shop-overlay.active { display: flex !important; }

.shop-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-header { position: relative; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; width: 100%; }

.shop-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 52px;
    color: #ffd700;
    -webkit-text-stroke: 3px #b8860b;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 165, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 6px;
}

.shop-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    margin-bottom: 30px;
    padding: 15px 30px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.shop-score-display span:first-child { color: #fff; }
.shop-score-display span:last-child { color: #ffd700; }

.shop-items { display: flex; flex-direction: column; gap: 25px; width: 100%; }

.shop-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.9) 0%, rgba(20, 10, 35, 0.95) 100%);
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.shop-item:hover { border-color: rgba(255, 215, 0, 0.6); transform: scale(1.02); box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2); }

.shop-item-icon { width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; }
.shop-item-icon img { width: 90px; height: 90px; object-fit: contain; }

.shop-item-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.shop-item-name { font-family: 'Arial Black', sans-serif; font-size: 26px; color: #ffd700; -webkit-text-stroke: 1px #b8860b; }
.shop-item-desc { font-family: 'Arial', sans-serif; font-size: 16px; color: rgba(255, 255, 255, 0.7); }

.shop-item-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.shop-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial Black', sans-serif;
    font-size: 14px;
    min-width: 100px;
}

.shop-buy-score {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ffd700 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.shop-buy-score:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6); }
.shop-buy-score:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4); }
.shop-buy-score span { color: #000; }

.shop-buy-ad {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.shop-buy-ad:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6); }
.shop-buy-ad:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4); }
.shop-buy-ad span { color: #fff; font-size: 12px; }
.shop-buy-ad img { width: 35px; height: 35px; object-fit: contain; }
.shop-buy-ad { flex-direction: column; gap: 5px; padding: 10px 15px; min-width: 90px; }

.shop-footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.shop-score-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
}

.shop-score-info span:first-child { color: #fff; font-size: 18px; }
.shop-score-info span:last-child { color: #ffd700; }

.shop-close-full-btn {
    width: 100%;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-close-full-btn span {
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    color: #fff;
    letter-spacing: 3px;
}

.shop-close-full-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.shop-close-full-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

/* ========================================
   MAIN MENU
   ======================================== */

.main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.menu-djin-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: djinFloat 3s ease-in-out infinite;
}

.menu-djin {
    width: 450px;
    height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(200, 150, 255, 0.5));
    pointer-events: none;
    user-select: none;
}

@keyframes djinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.menu-buttons { margin-bottom: 150px; display: flex; flex-direction: column; gap: 30px; }
.menu-row { display: flex; gap: 60px; justify-content: center; }

.menu-btn {
    width: 150px;
    height: 150px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(30, 15, 60, 0.85) 0%, rgba(15, 8, 35, 0.9) 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 3px solid rgba(200, 150, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.menu-btn:hover { transform: translateY(-8px) scale(1.05); border-color: rgba(200, 150, 255, 0.6); box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4), 0 0 30px rgba(168, 85, 247, 0.3); }
.menu-btn:active { transform: translateY(2px) scale(0.98); box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.menu-btn img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

.main-menu.hidden { display: none !important; }

#physics-area, .game-ui-header, .game-ui-footer, #gameEmodzi { display: none; }
#physics-area.active, .game-ui-header.active, .game-ui-footer.active, #gameEmodzi.active { display: block !important; }
.game-ui-footer.active { display: flex !important; }
