@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

body { 
    margin: 0; 
    padding: 0; 
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 220, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(0, 160, 255, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 0%, rgba(180, 230, 255, 0.08) 0%, transparent 60%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%, rgba(0, 255, 204, 0.02) 100%),
        radial-gradient(circle at center, #0e1e38 0%, #081224 50%, #030712 100%);
    font-family: 'Poppins', sans-serif; 
    overflow: hidden; 
    touch-action: none; 
    color: #e0f2fe;
}

#main-menu { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: 
        radial-gradient(circle at 50% 30%, rgba(0, 200, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 100, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at center, #0e1e38 0%, #060e1d 60%, #02050c 100%);
    z-index: 30000; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    padding: 20px;
    box-sizing: border-box;
    gap: 15px; 
}

#main-menu h1 {
    font-size: 56px;
    margin-bottom: 5px;
    margin-top: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.action-btn {
    width: 260px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(45deg, #00ffcc, #0088ff);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Poppins', sans-serif;
}

.action-btn:active {
    transform: scale(0.94); 
}

#btn-settings {
    background: #2a2a35 !important;
    border: 1.5px solid #555 !important;
    box-shadow: none !important;
    color: #ccc !important;
}

/* GÓRNY PANEL GRY (HUD) */
#top-panel { 
    position: fixed; 
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; 
    height: 60px; 
    background: #081224; 
    color: white; 
    display: none; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 16px; 
    box-sizing: border-box; 
    border-bottom: 1.5px solid rgba(0, 220, 255, 0.25); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 10000; 
}

#hud-left { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
    z-index: 2;
}

#hud-center { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex: 1;
    z-index: 1;
}

#hud-right { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

#score-display {
    font-size: 17px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.08);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px;
    padding: 3px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    will-change: transform;
    user-select: none;
}

#score-display .score-star {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#score-val {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

#game-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 19px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#game-menu-btn:active {
    transform: scale(0.92);
}

.menu-btn-pulse {
    animation: menuBtnPulseAnim 1.4s infinite ease-in-out !important;
}

@keyframes menuBtnPulseAnim {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        border-color: #ffd700;
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
        transform: scale(1.06);
    }
}

.nudge-tooltip {
    position: absolute;
    top: 52px;
    right: 0px;
    background: #101828;
    border: 1.5px solid #ffd700;
    border-radius: 12px;
    padding: 7px 14px;
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 215, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.nudge-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 13px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #ffd700 transparent;
}

.nudge-tooltip.hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
    pointer-events: none;
    visibility: hidden;
}

/* DOK ANOMALII */
#booster-dock {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 10000;
    pointer-events: none;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.booster-btn {
    pointer-events: auto;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0d1726;
    border: 1.5px solid rgba(0, 220, 255, 0.3);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.booster-btn:active { transform: scale(0.9); }

.booster-btn:disabled { 
    opacity: 0.3 !important; 
    filter: grayscale(100%) !important; 
    pointer-events: none !important; 
    cursor: default;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

.booster-btn:disabled .booster-badge {
    background: #555 !important;
    color: #888 !important;
    border-color: #444 !important;
    box-shadow: none !important;
}

.booster-icon { font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }

.booster-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00ffcc;
    color: #08111e;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#hint-btn.available { border-color: #ffaa00; box-shadow: 0 0 12px rgba(255, 170, 0, 0.35); }
#hint-btn.active {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(15, 26, 44, 0.95) 75%) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.7), inset 0 0 8px rgba(255, 215, 0, 0.35) !important;
    animation: activeHintBtnPulse 0.9s infinite alternate ease-in-out !important;
    cursor: default !important;
    pointer-events: none !important;
}
#hint-btn.active .booster-badge {
    background: #ffd700 !important;
    color: #08111e !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px #ffd700 !important;
}
@keyframes activeHintBtnPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { transform: scale(1.06); box-shadow: 0 0 18px rgba(255, 215, 0, 0.85), inset 0 0 8px rgba(255, 215, 0, 0.4); }
}
#hint-btn .booster-badge { background: #ffaa00; color: #111; }

#freeze-btn.available { border-color: #00ccff; box-shadow: 0 0 12px rgba(0, 204, 255, 0.35); }
#freeze-btn .booster-badge { background: #00ccff; color: #08111e; }

#supernova-btn.available { border-color: #ffd700; box-shadow: 0 0 14px rgba(255, 215, 0, 0.45); }
#supernova-btn .booster-badge { background: #ffd700; color: #111; }

/* PRZYCISK ZEGARA W DOKU (ETAP 4) */
#clock-btn {
    border-color: rgba(0, 220, 255, 0.35);
    color: #00ffcc;
}

#clock-btn.available {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(15, 26, 44, 0.95) 75%) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8), inset 0 0 10px rgba(255, 215, 0, 0.4) !important;
    animation: goldClockBtnPulse 1.1s infinite alternate ease-in-out !important;
    cursor: pointer !important;
}

#clock-btn.available .booster-badge {
    background: #ffd700 !important;
    color: #08111e !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px #ffd700 !important;
    font-weight: 900 !important;
}

#clock-btn.active {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.35) 0%, rgba(8, 37, 58, 0.95) 80%) !important;
    box-shadow: 0 0 20px #00ffcc, inset 0 0 10px rgba(255, 255, 255, 0.6) !important;
    animation: activeClockBtnPulse 0.9s infinite alternate ease-in-out !important;
    cursor: default !important;
}

#clock-btn.active .booster-badge {
    display: none !important;
}

@keyframes goldClockBtnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
        border-color: #ffd700;
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.9), inset 0 0 12px rgba(255, 255, 255, 0.7);
        border-color: #ffffff;
    }
}

@keyframes activeClockBtnPulse {
    0% { transform: scale(1); box-shadow: 0 0 12px #00ffcc; }
    100% { transform: scale(1.06); box-shadow: 0 0 22px #00ffcc, inset 0 0 12px #ffffff; }
}

#freeze-btn.active { animation: pulseFreeze 1s infinite; border-color: #88eeff; background: #0369a1; }
#supernova-btn.active { animation: pulseSupernova 0.7s infinite alternate; border-color: #fff; background: radial-gradient(circle, #ffd700 0%, #ff6600 70%, #990000 100%); }

#supernova-btn.fading {
    animation: supernovaFading 0.4s infinite alternate !important;
}
@keyframes supernovaFading {
    0% { opacity: 1; transform: scale(1.04); }
    100% { opacity: 0.4; transform: scale(0.96); }
}

@keyframes pulseFreeze { 0%, 100% { box-shadow: 0 0 5px #00ccff; } 50% { box-shadow: 0 0 14px #00ccff; } }
@keyframes pulsePause { 0%, 100% { transform: scale(1); box-shadow: 0 0 10px #00ffcc; } 50% { transform: scale(1.08); box-shadow: 0 0 18px #00ffcc; } }
@keyframes pulseSupernova { 0% { transform: scale(1); box-shadow: 0 0 10px #ffd700; } 100% { transform: scale(1.08); box-shadow: 0 0 20px #fff, 0 0 30px #ffaa00; } }

#target-container { display: flex; align-items: center; }
#target-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: radial-gradient(circle at 32% 28%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.45) 15%, 
        rgba(0, 220, 255, 0.35) 45%, 
        rgba(170, 50, 255, 0.25) 75%, 
        rgba(0, 255, 204, 0.45) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 255, 204, 0.8);
}
.pulse-target { animation: pulseText 1.5s infinite; }
@keyframes pulseText { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); text-shadow: 0 0 10px rgba(0,255,204,0.8); } }

/* GŁÓWNY OBSZAR GRY */
#game-container { 
    position: relative; 
    width: 100%;
    max-width: 480px; 
    height: calc(100vh - 60px); 
    margin: 60px auto 0 auto; 
    overflow: hidden; 
    display: none; 
    contain: layout paint;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.85);
    will-change: transform;
}

/* ZOPTYMALIZOWANA PŁONĄCA RAMKA FRENZY (Zamiast 85px rozmycia) */
#frenzy-border-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 40000;
    box-sizing: border-box;
    border: 3px solid #ff3300;
    box-shadow: inset 0 0 14px rgba(255, 50, 0, 0.7);
    will-change: opacity;
    display: none;
}

/* BAŃKA */
.bubble { 
    position: absolute; 
    width: 52px; 
    height: 52px; 
    contain: layout style;
    background: radial-gradient(circle at 32% 28%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.45) 15%, 
        rgba(0, 220, 255, 0.3) 45%, 
        rgba(170, 50, 255, 0.25) 75%, 
        rgba(0, 255, 204, 0.4) 100%); 
    border: 1.5px solid rgba(255, 255, 255, 0.75); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    font-weight: 800; 
    color: #ffffff; 
    cursor: pointer; 
    touch-action: none; 
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.75),
        0 2px 6px rgba(0, 0, 0, 0.45); 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 255, 204, 0.6);
    z-index: 10; 
    user-select: none; 
    -webkit-user-select: none;
    will-change: left, top;
    transform: scale(var(--depth-scale, 1));
}

@media (hover: hover) and (pointer: fine) {
    .bubble:not(.gold-bubble):hover {
        filter: brightness(1.15);
    }
}

.bubble * {
    pointer-events: none !important;
    user-select: none !important;
}

.bubble::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: transparent;
    pointer-events: auto !important;
}

.bubble.glitch-infected {
    border-color: #ff0055 !important;
    box-shadow: 0 0 12px #ff0055 !important;
    color: #ff0055 !important;
    text-shadow: 2px 0 #00ffcc, -2px 0 #ffaa00 !important;
    animation: glitchShake 0.11s infinite alternate ease-in-out !important;
    z-index: 8500 !important;
    background: radial-gradient(circle at 35% 30%, rgba(255, 0, 85, 0.7) 0%, rgba(120, 0, 40, 0.6) 60%, rgba(40, 0, 15, 0.8) 100%) !important;
}

@keyframes glitchShake {
    0% { transform: scale(var(--depth-scale, 1)) translate(0px, 0px); }
    25% { transform: scale(var(--depth-scale, 1)) translate(-3px, 2px); }
    50% { transform: scale(var(--depth-scale, 1)) translate(2px, -3px); }
    75% { transform: scale(var(--depth-scale, 1)) translate(-2px, -1px); }
    100% { transform: scale(var(--depth-scale, 1)) translate(3px, 1px); }
}

.supernova-active-mode .bubble {
    color: #ffffff;
}

.supernova-active-mode .bubble.arc-target,
.bubble.arc-target {
    background: radial-gradient(circle at 35% 30%, #3d245c 0%, #1c0e35 60%, #0c0419 100%) !important;
    border: 2.5px solid #ffd700 !important;
    color: #ffffff !important;
    box-shadow: 
        0 0 14px rgba(255, 215, 0, 0.8),
        inset 0 0 10px rgba(255, 215, 0, 0.5),
        0 3px 12px rgba(0, 0, 0, 0.95) !important;
    text-shadow: 0 2px 4px #000000, 0 0 8px #ffd700 !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    transform: scale(1.08) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation;
}

.supernova-active-mode .bubble.arc-distractor,
.bubble.arc-distractor {
    opacity: 0.35 !important;
    border: 1px solid rgba(80, 70, 120, 0.35) !important;
    box-shadow: none !important;
    filter: none !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

/* LOKALIZATOR - Subtelne złote podświetlenie pulsującą obramówką */
.hint-highlight,
.bubble.hint-highlight,
.bubble.frozen.hint-highlight,
.supernova-active-mode .bubble.hint-highlight,
.supernova-active-mode .bubble.frozen.hint-highlight,
.bubble.glitch-infected.hint-highlight,
.bubble.gold-bubble.hint-highlight,
.highlight-anim,
.bubble.highlight-anim,
.bubble.frozen.highlight-anim,
.supernova-active-mode .bubble.highlight-anim {
    z-index: 100000 !important;
    animation: hintGoldPulse 0.85s infinite alternate ease-in-out !important;
    border: 2.5px solid #ffd700 !important;
    outline: 2px solid rgba(255, 215, 0, 0.65) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.75), inset 0 0 8px rgba(255, 215, 0, 0.35) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@keyframes hintGoldPulse {
    0% {
        border-color: #ffd700;
        outline-color: rgba(255, 215, 0, 0.4);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.55), inset 0 0 6px rgba(255, 215, 0, 0.25);
    }
    100% {
        border-color: #fff37a;
        outline-color: rgba(255, 235, 120, 0.95);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.95), 0 0 32px rgba(255, 190, 0, 0.45), inset 0 0 12px rgba(255, 215, 0, 0.45);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.88);
    z-index: 40000;
    display: none; 
    align-items: center;
    justify-content: center;
}

.modal-box { 
    background: #1e1e2d; 
    border: 2px solid rgba(0,255,204,0.4); 
    border-radius: 20px; 
    padding: 25px; 
    text-align: center; 
    color: white; 
    width: 85%; 
    max-width: 350px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.6); 
}

.modal-btn { 
    display: block; 
    width: 100%; 
    margin: 10px 0; 
    padding: 13px; 
    font-weight: 700; 
    font-family: 'Poppins', sans-serif; 
    border-radius: 12px; 
    cursor: pointer; 
    border: none; 
    font-size: 14px; 
}

.pause-menu-box {
    background: linear-gradient(145deg, #161c2d 0%, #0b0f19 100%);
    border: 2px solid #00ffcc;
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.2);
    padding: 24px 18px;
    width: 90%;
    max-width: 360px;
    box-sizing: border-box;
}

.pause-title {
    color: #00ffcc;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pause-rewards-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 12px 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pause-section-title {
    color: #cbd5e1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    opacity: 0.85;
}

.pause-rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pause-rewards-grid.single-reward,
.pause-rewards-grid:has(#btn-ig-share[style*="display: none"]),
.pause-rewards-grid:has(#btn-ig-share[style*="display:none"]) {
    grid-template-columns: 1fr;
}

.pause-rewards-grid.single-reward .reward-card-btn,
.pause-rewards-grid:has(#btn-ig-share[style*="display: none"]) .reward-card-btn,
.pause-rewards-grid:has(#btn-ig-share[style*="display:none"]) .reward-card-btn {
    padding: 14px 12px;
}

.reward-card-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.reward-card-btn:active {
    transform: scale(0.95);
}

.reward-card-btn#btn-ig-ad {
    border-color: rgba(255, 68, 68, 0.45);
    background: linear-gradient(180deg, rgba(255, 68, 68, 0.15) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.reward-card-btn#btn-ig-share {
    border-color: rgba(255, 170, 0, 0.45);
    background: linear-gradient(180deg, rgba(255, 170, 0, 0.15) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.reward-icon {
    font-size: 24px;
    margin-bottom: 4px;
    line-height: 1;
}

.reward-desc {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.reward-prize {
    font-size: 11px;
    font-weight: 800;
}

.reward-card-btn#btn-ig-ad .reward-prize { color: #ff5555; }
.reward-card-btn#btn-ig-share .reward-prize { color: #ffaa00; }

.pause-dnd-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.dnd-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    font-family: 'Poppins', sans-serif;
}

.dnd-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 255, 204, 0.5);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    margin: 0;
}

.dnd-label input[type="checkbox"]:checked {
    background: #00ffcc;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.dnd-label input[type="checkbox"]:checked::before {
    content: "✓";
    color: #08111e;
    font-size: 13px;
    font-weight: 900;
}

.pause-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.pause-actions-grid .secondary-btn {
    padding: 11px 4px;
    font-size: 11px;
    font-weight: 800;
    margin: 0;
    border-radius: 10px;
    background: #2a2a35;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.15s ease, background 0.15s ease;
}

.pause-actions-grid .secondary-btn:active {
    transform: scale(0.94);
}

.pause-actions-grid .secondary-btn.danger {
    background: rgba(255, 68, 68, 0.12);
    border-color: rgba(255, 68, 68, 0.45);
    color: #ff8888;
}

.cyber-crosshair {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px currentColor);
}

.crosshair-ring {
    transform-origin: center;
    animation: spinRing 4s linear infinite;
}

.crosshair-dot {
    transform-origin: center;
    animation: pulseDot 1s ease-in-out infinite alternate;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseDot {
    0% { opacity: 0.3; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1.4); }
}

.floating-text {
    position: fixed;
    font-size: 22px;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: #ffd700;
    z-index: 99999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    will-change: transform, opacity;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.65);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.floating-text.points-text {
    color: #ffd700;
}

.floating-text.bonus-text,
.floating-text.combo-text {
    color: #ff6600;
    font-size: 25px;
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.8);
}

.floating-text.frenzy-text {
    color: #ff007f;
    font-size: 26px;
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.8);
}

.floating-text.penalty-text {
    color: #ff3333;
    font-size: 24px;
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.85);
}

.pop-hang {
    animation: popHang 0.14s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popHang {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    70% { transform: translate(-50%, -65%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -60%) scale(1.02); opacity: 1; }
}

.arc-flight {
    animation: flightMotion 0.28s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes flightMotion {
    0% {
        transform: translate(-50%, -60%) scale(1.02);
        opacity: 1;
    }
    60% {
        transform: translate(calc(-50% + var(--tx) * 0.65), calc(-60% + var(--ty) * 0.4 - 15px)) scale(0.9);
        opacity: 0.95;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-60% + var(--ty))) scale(0.5);
        opacity: 0.15;
    }
}

.penalty-drop {
    animation: penaltyDropAnim 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes penaltyDropAnim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { transform: translate(-50%, -70%) scale(1.2); opacity: 1; }
    35% { transform: translate(-50%, -60%) scale(1.0); opacity: 1; }
    70% { transform: translate(-50%, -20%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, 20px) scale(0.7); opacity: 0; }
}

.score-bounce {
    animation: scoreImpact 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes scoreImpact {
    0% { transform: scale(1); border-color: rgba(255, 215, 0, 0.35); }
    35% {
        transform: scale(1.24);
        color: #ffffff;
        border-color: #ffd700;
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
    }
    100% { transform: scale(1); border-color: rgba(255, 215, 0, 0.35); }
}

.score-bounce .score-star {
    animation: starSpin 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(25deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.score-penalty {
    animation: scorePenaltyAnim 0.45s ease-in-out forwards !important;
}

@keyframes scorePenaltyAnim {
    0% { transform: translateX(0); border-color: #ff3333; color: #ff4444; }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.score-impact-spark {
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: impactSparkAnim 0.4s ease-out forwards;
}

@keyframes impactSparkAnim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--sdx)), calc(-50% + var(--sdy))) scale(0);
        opacity: 0;
    }
}

.score-trail-spark {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    animation: trailSparkFade 0.3s ease-out forwards;
}

@keyframes trailSparkFade {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    100% { transform: translate(calc(-50% + var(--tdx, 0px)), calc(-50% + var(--tdy, 0px))) scale(0.1); opacity: 0; }
}

.hint-projectile {
    position: fixed;
    width: 14px;
    height: 14px;
    background: #ffd700;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 14px #ffd700, 0 0 6px #ffffff;
    z-index: 100001;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #00ffcc;
    border-radius: 50%;
    pointer-events: none;
    z-index: 15000;
    will-change: transform, opacity;
    animation: particleExplode 0.45s ease-out forwards;
}
@keyframes particleExplode {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    100% { transform: translate3d(var(--dx), var(--dy), 0) scale(0); opacity: 0; }
}

.frenzy-spark {
    position: absolute;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 16000;
    will-change: transform, opacity;
    animation: sparkSlash 0.35s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes sparkSlash {
    0% { transform: translate3d(0, 0, 0) rotate(var(--rot)) scaleX(1.3); opacity: 1; }
    100% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scaleX(0.2); opacity: 0; }
}

.bounce-target { animation: targetBounce 0.4s ease; }
@keyframes targetBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.24); color: #fff; }
}

/* ZREDUKOWANA WINIETA ZAMROŻENIA */
.frost-overlay {
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 180, 255, 0.12) 85%, rgba(180, 240, 255, 0.25) 100%);
    box-shadow: inset 0 0 20px rgba(0, 220, 255, 0.35);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.frost-overlay.active { opacity: 1; }

.bubble.frozen {
    background: radial-gradient(circle at 35% 30%, rgba(200, 240, 255, 0.8) 0%, rgba(59, 130, 246, 0.6) 60%, rgba(29, 78, 216, 0.7) 100%) !important;
    border-color: #e0f2fe !important;
    box-shadow: 0 0 12px rgba(0, 220, 255, 0.75) !important;
}


/* EKRAN STARTOWY I INTRO */
#splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #050810;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.4s ease-out;
}

#studio-intro {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: studioFadeOut 1s ease-in-out forwards 3.2s;
    pointer-events: none;
}

.logo-mb-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 0 10px;
}

.logo-mb {
    font-size: 84px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    filter: blur(30px);
    transform: scale(1.15) translateZ(0);
    animation: cinematicFocus 1.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards 0.2s;
}

.logo-sweep {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: skewX(-25deg);
    mix-blend-mode: overlay;
    animation: lightSweep 1.5s ease-in-out forwards 1.6s;
    pointer-events: none;
}

.logo-text {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 10px;
    color: #94a3b8;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.2s;
}

#splash-continue {
    position: absolute;
    opacity: 0;
    animation: fadeInContinue 1.5s ease-out forwards 4.0s;
}

.splash-text {
    color: #00ffcc;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffcc;
    animation: pulse-splash 1.5s infinite alternate;
}

@keyframes cinematicFocus {
    0% { opacity: 0; filter: blur(30px); transform: scale(1.15); }
    40% { opacity: 0.8; filter: blur(5px); transform: scale(1.02); }
    100% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes lightSweep {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

@keyframes studioFadeOut {
    0% { opacity: 1; filter: blur(0px); transform: scale(1); }
    100% { opacity: 0; filter: blur(15px); transform: scale(1.1); }
}

@keyframes fadeInContinue {
    0% { opacity: 0; transform: scale(0.95); pointer-events: none; }
    100% { opacity: 1; transform: scale(1); pointer-events: auto; }
}

@keyframes pulse-splash {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.06); opacity: 1; text-shadow: 0 0 16px #00ffcc; }
}

#studio-watermark {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-family: monospace;
}

.settings-content { max-width: 320px; text-align: center; background: #1a1a24; }
.settings-section { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.settings-section h3 { margin-top: 0; font-size: 15px; color: #00ffcc; margin-bottom: 12px; }
.lang-buttons { display: flex; justify-content: center; gap: 10px; }
.lang-btn { background: #222; color: #aaa; border: 2px solid #444; padding: 8px 18px; border-radius: 20px; font-size: 15px; cursor: pointer; }
.lang-btn.active { border-color: #00ffcc; color: #fff; background: rgba(0, 255, 204, 0.15); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; color: #ddd; }
.switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #00ffcc; }
input:checked + .slider:before { transform: translateX(24px); }
.slider-container { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#audio-balance { flex-grow: 1; height: 6px; background: #444; border-radius: 5px; outline: none; }
.balance-text { font-size: 12px; color: #aaa; margin-top: 8px; }

.bubble.gold-bubble {
    background: radial-gradient(circle at 30% 30%, #ffea75 0%, #d4af37 50%, #996515 100%);
    border: 2.5px solid #fff;
    box-shadow: 0 0 18px #ffd700;
    animation: goldPulse 0.8s infinite alternate ease-in-out;
    z-index: 1000 !important;
    transform: scale(1) translateZ(0) !important;
    filter: none !important;
}
@keyframes goldPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); box-shadow: 0 0 24px #fff; }
}

.gold-trail {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffd700 0%, rgba(255, 170, 0, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: fadeTrail 0.35s forwards;
    z-index: 999;
}
@keyframes fadeTrail {
    0% { transform: scale(1.1); opacity: 0.85; }
    100% { transform: scale(0.2); opacity: 0; }
}

/* PASEK COMBO */
#combo-container {
    position: fixed;
    top: 60px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 380px;
    height: 10px;
    background: rgba(45, 15, 10, 0.75);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255, 120, 0, 0.45);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 9900;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

#combo-container.combo-full-active {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 100, 0, 0.6);
    animation: fireContainerPulse 0.6s infinite alternate ease-in-out;
}

#combo-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffaa00, #ff5500, #ff1100);
    transition: width 0.08s linear;
}

#combo-bar.combo-full {
    background: linear-gradient(270deg, #ffd700, #ff8c00, #ff2200, #ff7700, #ffd700);
    background-size: 300% 300%;
    animation: boilingFireBar 0.8s ease infinite;
}

@keyframes boilingFireBar {
    0% { background-position: 0% 50%; filter: brightness(1.1); }
    50% { background-position: 100% 50%; filter: brightness(1.3); }
    100% { background-position: 0% 50%; filter: brightness(1.1); }
}

@keyframes fireContainerPulse {
    0% { box-shadow: 0 0 8px rgba(255, 100, 0, 0.5); }
    100% { box-shadow: 0 0 16px rgba(255, 100, 0, 0.8); }
}

#radar-container {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 204, 0.6);
    pointer-events: none !important; 
    z-index: 25000;
    display: none; 
    overflow: hidden;
    background: rgba(5, 11, 22, 0.92); 
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

@media (pointer: fine) and (min-width: 520px) {
    #radar-container {
        right: calc(50% - 240px - 120px);
        bottom: 20px;
    }
}
#radar-canvas { position: absolute; top: 0; left: 0; }

#rotate-device-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0d0d12;
    color: #00ffcc;
    z-index: 9999999;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

@media screen and (orientation: landscape) and (max-height: 550px) and (pointer: coarse) {
    #rotate-device-overlay { display: flex !important; }
    #game-container, #main-menu, #splash-screen, #top-panel, .modal-overlay { display: none !important; }
}

#stage-select-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 calc(50% - 130px);
    gap: 14px;
    width: 100%;
    max-width: 360px;
    margin: 4px auto 8px auto;
    padding: 12px calc(50% - 130px);
    box-sizing: border-box;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    z-index: 1000;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

#stage-select-container.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

#stage-select-container.is-dragging .stage-btn {
    cursor: grabbing !important;
}

#stage-select-container::-webkit-scrollbar {
    display: none;
}

.stage-btn {
    flex: 0 0 260px;
    width: 260px;
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #070d18;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, border-color 0.25s ease;
    padding: 0;
    box-sizing: border-box;
    touch-action: pan-x;
    -webkit-tap-highlight-color: transparent;
}

.stage-btn.active {
    border-color: #00ffcc;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    z-index: 10;
}

.stage-btn.locked {
    filter: grayscale(90%) brightness(0.35);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.stage-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.stage-lock-overlay .lock-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.danger-bar-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    max-width: 320px;
    height: 18px;
    background: #0a1220;
    border: 1.5px solid rgba(255, 68, 68, 0.6);
    border-radius: 12px;
    overflow: hidden;
    z-index: 9500;
}
.danger-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffcc 0%, #ffaa00 60%, #ff4444 100%);
    transition: width 0.15s ease-out;
}
.danger-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    pointer-events: none;
}

.records-box, .leaderboard-box, .game-over-box { width: 90%; max-width: 380px; border-radius: 20px; padding: 20px; }
.total-score-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 170, 0, 0.1) 100%);
    border: 1.5px solid #ffd700;
    border-radius: 14px;
    padding: 10px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.total-score-label { font-size: 11px; color: #ffd700; font-weight: 700; }
.total-score-val { font-size: 22px; font-weight: 800; color: #ffffff; }
.records-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.record-item { display: flex; justify-content: space-between; background: rgba(255, 255, 255, 0.05); padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.record-item strong { color: #00ffcc; }

.nick-input-container { display: flex; gap: 8px; margin-bottom: 12px; width: 100%; box-sizing: border-box; }
#player-nick-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 10px;
    padding: 9px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
}
#btn-save-nick {
    background: #00ffcc;
    color: #08111e;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}
.leaderboard-table-wrapper { max-height: 180px; overflow-y: auto; margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; }
.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.leaderboard-table th { background: rgba(0, 255, 204, 0.15); color: #00ffcc; padding: 8px; position: sticky; top: 0; }
.leaderboard-table td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

#game-container.stage-theme-1 { background-color: #070d18; position: relative; }
#game-container.stage-theme-1::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 255, 204, 0.05) 0px, rgba(0, 255, 204, 0.05) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0, 255, 204, 0.05) 0px, rgba(0, 255, 204, 0.05) 1px, transparent 1px, transparent 40px),
        radial-gradient(circle at 50% 45%, rgba(0, 136, 255, 0.12) 0%, rgba(7, 13, 24, 0.6) 65%, transparent 100%);
    pointer-events: none; z-index: 0;
}
#game-container.stage-theme-1::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 280deg, rgba(0, 136, 255, 0.05) 325deg, rgba(0, 255, 204, 0.12) 360deg);
    pointer-events: none; z-index: 0; transform: rotate(var(--radar-angle, 0deg)); will-change: transform;
}

#game-container.stage-theme-1 #vortex-canvas,
#game-container.stage-theme-2 #vortex-canvas,
#game-container.stage-theme-3 #vortex-canvas,
#game-container.stage-theme-4 #vortex-canvas,
#game-container.stage-theme-5 #vortex-canvas { display: block; }
#game-container.stage-theme-3 { background-color: #0d0814; position: relative; }
#game-container.stage-theme-4 { background-color: #030712; position: relative; }
#game-container.stage-theme-5 {
    background: radial-gradient(circle at 50% 50%, #030408 18%, transparent 22%), conic-gradient(from 0deg at 50% 50%, rgba(0, 229, 255, 0.12), rgba(187, 134, 252, 0.12), rgba(0, 229, 255, 0.12)), #05060f;
}

#vortex-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; display: none; }

.click-ripple {
    position: absolute; border: 2px solid #00ffcc; border-radius: 50%; pointer-events: none;
    z-index: 14000; transform: translate(-50%, -50%); animation: expandRipple 0.35s ease-out forwards;
}
@keyframes expandRipple { 0% { width: 12px; height: 12px; opacity: 1; border-width: 2.5px; } 100% { width: 75px; height: 75px; opacity: 0; border-width: 1px; } }

.supernova-flash-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #ffffff;
    pointer-events: none; z-index: 50000; animation: fadeSupernovaFlash 0.55s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes fadeSupernovaFlash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

.screen-shake { animation: screenShake 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, -1px); }
    80% { transform: translate(2px, 2px); }
}

.stage-clear-box {
    background: linear-gradient(180deg, #1f1f2e 0%, #14141e 100%);
    border: 2px solid #ffd700; border-radius: 20px; padding: 22px; width: 88%; max-width: 360px; text-align: center;
}
.stage-clear-title { color: #ffd700; font-size: 22px; font-weight: 800; margin: 0 0 8px 0; }
.stage-clear-desc { font-size: 13.5px; color: #d1d1e0; margin-bottom: 16px; }
.stage-rewards-container { display: flex; justify-content: center; gap: 8px; margin: 12px 0 16px 0; flex-wrap: wrap; }
.stage-reward-pill { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 215, 0, 0.4); color: #ffd700; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.stage-clear-btn-next { background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%); color: #111; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 12px; border: none; cursor: pointer; width: 100%; margin-bottom: 8px; }
.stage-clear-btn-menu { background: rgba(255, 255, 255, 0.08); color: #aaa; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; padding: 9px; border-radius: 10px; cursor: pointer; width: 100%; }

.victory-confetti {
    position: fixed; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 60000; animation: confettiFallAnim 2.2s forwards;
}
@keyframes confettiFallAnim { 0% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--vx), var(--vy)) rotate(var(--rot)); opacity: 0; } }

.motivational-cloud {
    position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(12, 22, 38, 0.94);
    border: 2px solid rgba(0, 255, 204, 0.85); border-radius: 25px; padding: 14px 28px;
    color: #00ffcc; font-size: 21px; font-weight: 800; text-align: center; text-transform: uppercase;
    box-shadow: 0 0 24px rgba(0, 255, 204, 0.4); pointer-events: none; z-index: 25000;
    white-space: nowrap; animation: motivationalCloudAnim 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes motivationalCloudAnim {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.85); }
    15%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -78%) scale(0.92); }
}

.frenzy-banner {
    position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%) scale(0.6);
    color: #ff2200; font-size: 40px; font-weight: 900; letter-spacing: 2px;
    text-shadow: 0 0 15px #ff0000, 0 0 30px #ffd700, 0 2px 4px #000;
    pointer-events: none; z-index: 50000; white-space: nowrap;
    animation: frenzyPop 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes frenzyPop {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -70%) scale(1.08); opacity: 0; }
}

.stage-launch-box {
    padding: 18px;
    max-width: 320px;
    background: #141724;
    border: 2px solid rgba(0, 255, 204, 0.5);
    max-height: 92vh;
    overflow-y: auto;
}

.launch-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.cinematic-zoom-67 {
    animation: cinZoomIn 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    pointer-events: none;
    z-index: 10000;
}

@keyframes cinZoomIn {
    0% { transform: scale(1); filter: brightness(1) saturate(100%); }
    30% { transform: scale(2.4); filter: brightness(0.6) saturate(140%); } 
    70% { transform: scale(2.4); filter: brightness(0.6) saturate(140%); }
    100% { transform: scale(1.02); filter: brightness(1) saturate(100%); }
}

.google-skew-67 {
    animation: googleSkewAnim 0.9s ease-in-out forwards !important;
    pointer-events: none;
    z-index: 10000;
}

@keyframes googleSkewAnim {
    0% { transform: scale(1.05) skewY(0deg); }
    25% { transform: scale(1.05) skewY(-8deg) translateY(-10px); } 
    50% { transform: scale(1.05) skewY(8deg) translateY(10px); }   
    75% { transform: scale(1.05) skewY(-8deg) translateY(-10px); }
    100% { transform: scale(1) skewY(0deg) translateY(0); }
}

.launch-rules-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.55;
    color: #e2e8f0;
}

.launch-rules-box .rule-row {
    margin-bottom: 7px;
}

.launch-rules-box .rule-row:last-child {
    margin-bottom: 0;
}

.launch-rules-box .rule-row b {
    color: #00ffcc;
}

.launch-rules-box p {
    margin: 4px 0;
}

.context-nudge-text {
    position: fixed;
    background: rgba(8, 14, 28, 0.94);
    border: 1.5px solid #00ffcc;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 255, 204, 0.35);
    animation: nudgeLevitate 1.6s ease-in-out infinite;
    letter-spacing: 0.3px;
}
.context-nudge-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #00ffcc;
}
@keyframes nudgeLevitate {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes rewardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(0, 255, 204, 0.4);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.7);
        border-color: #ffd700;
    }
}
.reward-card-btn.reward-pulsing {
    animation: rewardPulse 2s infinite ease-in-out !important;
    border-color: #ffd700 !important;
}

.hud-error-shake {
    animation: hudShakeAnim 0.4s cubic-bezier(.36,.07,.19,.97) both !important;
}
@keyframes hudShakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.hud-error-color {
    color: #ff3333 !important;
    border-color: #ff3333 !important;
    background: rgba(255, 50, 50, 0.15) !important;
    box-shadow: 0 0 12px rgba(255,50,50,0.7) !important;
}

.cyber-icon { display: inline-block; vertical-align: middle; filter: drop-shadow(0 0 4px currentColor); }

.rotating-snowflake {
    animation: spinSnowflake 8s linear infinite;
    filter: drop-shadow(0 0 4px #00ffcc);
    transform-origin: center;
}
@keyframes spinSnowflake {
    to { transform: rotate(360deg); }
}

#freeze-btn.active {
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.9), rgba(0, 80, 140, 0.9)) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 16px #00e5ff, inset 0 0 20px rgba(255,255,255,0.6) !important;
    animation: blizzardAura 1.2s infinite alternate ease-in-out !important;
}

#freeze-btn.active .rotating-snowflake {
    animation: spinSnowflakeFast 0.8s linear infinite !important;
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px #ffffff) !important;
}

@keyframes blizzardAura {
    0% { box-shadow: 0 0 12px #00ccff, inset 0 0 12px rgba(255,255,255,0.5); transform: scale(1); }
    100% { box-shadow: 0 0 28px #00ffff, inset 0 0 22px #ffffff; transform: scale(1.06); }
}

@keyframes spinSnowflakeFast {
    to { transform: rotate(360deg); }
}

/* ZEGAR W TLE - ETAP 4 */
.stage4-clock-hotspot {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 14px;
    box-sizing: border-box;
    pointer-events: none !important;
    user-select: none;
    transition: opacity 0.3s ease;
}

.stage4-clock-prompt {
    display: none !important;
}

/* ZREDUKOWANE ROZMYCIE BULLET TIME DLA MOBILNEGO FILL-RATE */
.bullet-time-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(circle at center, transparent 65%, rgba(0, 255, 204, 0.08) 88%, rgba(0, 30, 45, 0.35) 100%);
    box-shadow: inset 0 0 25px rgba(0, 255, 204, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bullet-time-vignette.active {
    display: block !important;
    opacity: 1;
    animation: vignettePulse 2s infinite alternate ease-in-out;
}

@keyframes vignettePulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.time-shatter-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50000;
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 204, 0.8) 35%, rgba(0, 160, 255, 0.4) 65%, rgba(3, 7, 18, 0) 100%);
    box-shadow: inset 0 0 35px rgba(0, 255, 204, 0.6);
    will-change: transform, opacity;
    animation: timeShatterFlashAnim 0.55s cubic-bezier(0.12, 0.8, 0.25, 1) forwards;
}

@keyframes timeShatterFlashAnim {
    0% { opacity: 1; transform: translateZ(0) scale(0.96); }
    25% { opacity: 0.9; transform: translateZ(0) scale(1.02); }
    60% { opacity: 0.4; transform: translateZ(0) scale(1.05); }
    100% { opacity: 0; transform: translateZ(0) scale(1.08); }
}

.time-droplet-pop {
    animation: timeDropletPopAnim 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important;
    pointer-events: none !important;
    border-color: #00ffcc !important;
    will-change: transform, opacity;
}

@keyframes timeDropletPopAnim {
    0% { transform: translateZ(0) scale(1); box-shadow: 0 0 10px #00ffcc; opacity: 1; }
    40% { transform: translateZ(0) scale(1.3); box-shadow: 0 0 16px #00ffcc; opacity: 0.95; }
    100% { transform: translateZ(0) scale(0); opacity: 0; }
}

.bubble.target-100-core,
.target-100-core {
    transform: scale(1.15) translateZ(0) !important;
    background: radial-gradient(circle at 35% 30%, 
        #ffffff 0%, 
        #ffd700 30%, 
        rgba(0, 255, 204, 0.7) 65%, 
        rgba(5, 18, 35, 0.95) 100%) !important;
    border: 2px solid #ffd700 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-align: center !important;
    line-height: 1.05 !important;
    text-shadow: 0 0 8px #ffd700, 0 0 12px #00ffcc, 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    animation: corePulse 1.8s ease-in-out infinite alternate !important;
    z-index: 25000 !important;
}

@keyframes corePulse {
    0% {
        box-shadow: 0 0 12px rgba(0, 255, 204, 0.6), 0 0 22px rgba(255, 215, 0, 0.5), inset 0 0 12px rgba(255, 215, 0, 0.6);
        border-color: #00ffcc;
        transform: scale(1.15) translateZ(0);
    }
    100% {
        box-shadow: 0 0 22px rgba(0, 255, 204, 0.85), 0 0 35px rgba(255, 215, 0, 0.75), inset 0 0 16px rgba(0, 255, 204, 0.75);
        border-color: #ffd700;
        transform: scale(1.2) translateZ(0);
    }
}

.holo-radar {
    color: #ffaa00;
    filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.7));
    font-size: 1.4em;
}
.holo-radar .radar-beam {
    transform-origin: 12px 12px;
    animation: radarSpin 2.5s linear infinite;
}
.holo-radar .radar-blip {
    transform-origin: 16px 7px;
    animation: blipFlash 2.5s infinite linear;
}

@keyframes radarSpin {
    100% { transform: rotate(360deg); }
}
@keyframes blipFlash {
    0%, 10% { opacity: 0.1; transform: scale(1); }
    15% { opacity: 1; filter: drop-shadow(0 0 8px #ffffff); transform: scale(1.5); }
    30%, 100% { opacity: 0.1; transform: scale(1); }
}

.blast-core { filter: drop-shadow(0 0 5px #ffaa00); color: #ffd700; }
.blast-core .pulsing-core {
    animation: starCorePulse 0.4s infinite alternate ease-in-out;
    transform-origin: center;
}
.blast-core .blast-rays {
    animation: rayFlicker 0.15s infinite;
}
.blast-core .blast-ring {
    animation: ringSpin 4s linear infinite;
    transform-origin: center;
}

@keyframes starCorePulse { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.25); opacity: 1; } }
@keyframes rayFlicker { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }

#supernova-btn.active {
    background: radial-gradient(circle, #ffffff 0%, #ffcc00 30%, #ff3300 70%, #660000 100%) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 22px #ffaa00, inset 0 0 16px #ffffff !important;
    animation: supernovaOverload 0.2s infinite !important;
}

#supernova-btn.active .blast-core {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px #ffffff) !important;
}
#supernova-btn.active .blast-core .pulsing-core {
    animation: starCorePulse 0.1s infinite alternate ease-in-out !important;
}
#supernova-btn.active .blast-core .blast-ring {
    animation: ringSpin 1s linear infinite !important;
}

#supernova-btn.active::before, #supernova-btn.active::after {
    content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.7) 0%, transparent 60%);
    animation: solarShockwave 1s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
    pointer-events: none; z-index: -1;
}
#supernova-btn.active::after {
    animation-delay: 0.5s;
    background: radial-gradient(circle, rgba(255, 50, 0, 0.5) 0%, transparent 60%);
}

@keyframes supernovaOverload {
    0% { transform: translate(1px, 1px) scale(1.12); filter: hue-rotate(0deg); }
    25% { transform: translate(-2px, -1px) scale(1.16); filter: hue-rotate(15deg); }
    50% { transform: translate(1px, -2px) scale(1.12); filter: hue-rotate(-10deg); }
    75% { transform: translate(-1px, 2px) scale(1.16); filter: hue-rotate(5deg); }
    100% { transform: translate(1px, 1px) scale(1.12); filter: hue-rotate(0deg); }
}

@keyframes solarShockwave {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.game-over-hint {
    display: none;
    background: #141928;
    border: 1px solid #00ffcc;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
    animation: pulseHint 2.4s ease-in-out infinite;
}

.game-over-hint strong {
    color: #00ffcc;
    font-weight: 700;
}

@keyframes pulseHint {
    0%, 100% {
        box-shadow: 0 0 6px rgba(0, 255, 204, 0.2);
        border-color: rgba(0, 255, 204, 0.6);
    }
    50% {
        box-shadow: 0 0 14px rgba(0, 255, 204, 0.55);
        border-color: rgba(0, 255, 204, 1);
    }
}

/* KOŁO RATUNKOWE W ETAPIE 5 */
.stage5-rescue-cloud {
    position: fixed;
    top: 68px;
    right: 14px;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(20, 10, 35, 0.95) 75%);
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 45000;
    pointer-events: auto !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    animation: stage5RescuePulse 1.2s infinite ease-in-out;
    transition: opacity 0.3s ease, transform 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: fine) and (min-width: 520px) {
    .stage5-rescue-cloud {
        right: calc(50% - 240px + 8px);
        top: 68px;
    }
}
.stage5-rescue-cloud:active {
    transform: scale(0.9);
}
.stage5-rescue-cloud svg {
    width: 22px;
    height: 22px;
    color: #ffd700;
    filter: drop-shadow(0 0 4px #ffd700);
}
.stage5-rescue-ad-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #00ffcc;
    color: #05101a;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 4px;
    line-height: 1;
    box-shadow: 0 0 5px #00ffcc;
}
@keyframes stage5RescuePulse {
    0%, 100% {
        transform: scale(0.96);
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.85);
    }
}

/* ============================================================
   TRYB AWARYJNY ULTRA-LOW (PROFIL POTATO DLA BARDZO SŁABYCH GPU)
   ============================================================ */
body.perf-potato .bubble {
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    filter: none !important;
}

body.perf-potato .bubble.gold-bubble {
    box-shadow: 0 0 6px #ffd700 !important;
    animation: none !important;
}

body.perf-potato .bubble.frozen {
    box-shadow: 0 0 6px #00e5ff !important;
}

body.perf-potato .bubble.target-100-core {
    box-shadow: 0 0 10px #ffd700 !important;
    animation: none !important;
    background: #ffd700 !important;
    color: #000000 !important;
    text-shadow: none !important;
}

body.perf-potato .particle,
body.perf-potato .frenzy-spark,
body.perf-potato .score-trail-spark,
body.perf-potato .score-impact-spark,
body.perf-potato .gold-trail {
    display: none !important;
}

body.perf-potato #top-panel,
body.perf-potato #radar-container,
body.perf-potato .booster-btn,
body.perf-potato #game-container {
    box-shadow: none !important;
}

body.perf-potato .floating-text {
    filter: none !important;
    -webkit-text-stroke: 0px !important;
}

/* ============================================================
   TRYBY WYDAJNOŚCI GRAFIKI (BALANCED & LOW/BATTERY)
   Subtelne uproszczenia cieni bez widocznej utraty estetyki
   ============================================================ */
body.perf-low .bubble {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.perf-balanced .bubble {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

body.perf-low #game-container,
body.perf-low #top-panel {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.perf-low .screen-shake,
body.perf-potato .screen-shake,
body.perf-balanced .screen-shake {
    animation: none !important;
}

.quality-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.quality-btn {
    flex: 1;
    background: #181c26;
    color: #94a3b8;
    border: 1.5px solid #334155;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.quality-btn:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

.quality-btn.active {
    border-color: #00ffcc;
    color: #ffffff;
    background: rgba(0, 255, 204, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
}

