*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    height: 100%;
    /* بازی فول‌اسکرین: اسکرول/اور‌اسکرول موبایل باعث چشمک تاچ می‌شود */
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    font-family: "Vazirmatn FD", "Vazirmatn", Tahoma, sans-serif;
    background: #121816;
    color: #e8f5ea;
}

button,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
[contenteditable="true"],
.animal-info-modal,
.stage-unlock-modal,
.my-insects-overlay,
.weapon-picker,
.stages-picker {
    -webkit-user-select: text;
    user-select: text;
}

.play-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(90, 160, 100, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 110% 20%, rgba(232, 165, 75, 0.12), transparent 50%),
        linear-gradient(180deg, #18201c 0%, #101614 48%, #0c100e 100%);
}

.play-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.play-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px 4px;
    pointer-events: none;
}

.play-top > * { pointer-events: auto; }

.play-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 0;
    align-self: stretch;
}

.play-mark {
    display: block;
    width: 100%;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #f4fff6;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.play-mark:hover {
    color: #ffffff;
}

.play-mark:focus {
    outline: none;
}

.play-mark:focus-visible {
    outline: 2px solid rgba(94, 224, 168, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

.play-version {
    font-size: 0.72rem;
    color: rgba(200, 220, 205, 0.7);
}

.play-version-age { opacity: 0.8; }

.play-stage-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #7ed0ff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.play-stage-name[hidden] {
    display: none;
}

.last-hit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 0;
    max-width: none;
    padding: 10px 14px 10px 8px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(28, 40, 34, 0.92), rgba(16, 22, 19, 0.88));
    border: 1px solid rgba(180, 210, 190, 0.16);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.last-hit.is-empty {
    opacity: 0.55;
    cursor: default;
}

.last-hit.is-flash {
    border-color: rgba(232, 165, 75, 0.55);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(232, 165, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.last-hit-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(8, 12, 10, 0.55);
    border: 1px solid rgba(200, 220, 205, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.last-hit-thumb img,
.last-hit-thumb svg {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.last-hit-thumb svg {
    filter:
        drop-shadow(0 0 1px rgba(255, 232, 186, 0.55))
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.last-hit-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.3;
    text-align: center;
}

.last-hit-kicker {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(180, 200, 185, 0.72);
    letter-spacing: 0.02em;
    text-align: center;
}

.last-hit-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.last-hit-fa {
    font-size: 1.02rem;
    font-weight: 800;
    color: #f2fff4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.last-hit-en {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(210, 220, 200, 0.82);
    font-family: "Segoe UI", Tahoma, sans-serif;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.play-score-wrap {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 72px;
}

.play-score {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 6px 12px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(42, 52, 30, 0.95), rgba(22, 28, 18, 0.92));
    border: 1px solid rgba(200, 220, 140, 0.28);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.play-score-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(220, 236, 210, 0.75);
}

.play-score-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff8e0;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.play-score-remain {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2px;
    line-height: 1;
}

.play-score-remain.is-hidden { display: none; }

.play-score-remain-value {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ff4d4d;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(255, 50, 50, 0.45);
}

.play-score-remain-label {
    font-size: 0.48rem;
    font-weight: 700;
    color: rgba(255, 150, 150, 0.88);
}

.play-score-remain.is-ready .play-score-remain-value {
    color: #ffd24d;
    text-shadow: 0 0 6px rgba(255, 200, 60, 0.4);
}

.play-score-remain.is-ready .play-score-remain-label {
    color: rgba(255, 220, 150, 0.9);
}

@media (max-width: 640px) {
    .play-top {
        align-items: stretch;
        gap: 6px;
        padding: 8px 8px 6px;
        flex-wrap: nowrap;
    }

    .play-brand {
        flex: 0 1 auto;
        max-width: 108px;
        min-width: 0;
    }

    .play-mark { font-size: 0.95rem; }
    .play-version { display: none; }
    .play-stage-name {
        font-size: 0.68rem;
        color: #6ec4f5;
    }

    .last-hit {
        flex: 1 1 0;
        max-width: none;
        padding: 8px 10px 8px 6px;
        gap: 8px;
        min-width: 0;
    }

    .last-hit-thumb {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .last-hit-thumb img,
    .last-hit-thumb svg {
        width: 32px;
        height: 32px;
    }

    .last-hit-kicker { display: none; }
    .last-hit-names { gap: 1px; }
    .last-hit-fa { font-size: 0.84rem; }
    .last-hit-en { font-size: 0.72rem; }

    .play-score-wrap {
        min-width: 48px;
    }

    .play-score {
        min-width: 0;
        padding: 5px 8px;
        border-radius: 14px;
    }

    .play-score-value { font-size: 0.95rem; }
    .play-score-remain-value { font-size: 0.62rem; }
    .play-score-remain-label { font-size: 0.42rem; }

    .play-menu-toggle {
        width: 34px;
        border-radius: 10px;
    }

    .sfx-toggle-fab,
    .btn-insects,
    .btn-stages,
    .btn-weapon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .btn-pwa-install {
        min-width: 34px;
        min-height: 34px;
        padding: 5px 6px;
        border-radius: 10px;
    }

    .btn-pwa-install-icon { font-size: 0.85rem; }
    .btn-pwa-install-text { font-size: 0.52rem; }
    .btn-pwa-install-size { font-size: 0.46rem; }
}

.play-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    flex: 0 0 auto;
    align-self: stretch;
    z-index: 90;
}

.play-menu-toggle {
    flex: 1 1 auto;
    width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(180, 210, 190, 0.22);
    background: linear-gradient(180deg, rgba(28, 40, 34, 0.95), rgba(16, 22, 19, 0.92));
    color: #e8f5ea;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.play-menu-toggle:hover {
    border-color: rgba(180, 210, 190, 0.4);
    transform: translateY(-1px);
}

.play-menu-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 16px;
}

.play-menu-bars span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        width 0.28s ease;
}

.play-actions.is-open .play-menu-toggle {
    border-color: rgba(94, 207, 154, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.play-actions.is-open .play-menu-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.play-actions.is-open .play-menu-bars span:nth-child(2) {
    opacity: 0;
    width: 40%;
}

.play-actions.is-open .play-menu-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.play-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    width: max-content;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.play-actions.is-open .play-menu-panel {
    grid-template-rows: 1fr;
    pointer-events: auto;
}

.play-menu-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    filter: blur(2px);
    transition:
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.36s ease,
        padding 0.36s ease;
}

.play-actions.is-open .play-menu-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    padding: 2px 0 4px;
}

.play-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 128px 16px 56px;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 640px) {
    .play-stage {
        padding-top: 118px;
    }
}

.play-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(8, 12, 10, 0.72) 45%, rgba(8, 12, 10, 0.88));
}

.play-copyright {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(180, 200, 185, 0.72);
    pointer-events: auto;
}

.play-copyright a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 200, 185, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.play-copyright a:hover,
.play-copyright a:focus-visible {
    color: rgba(230, 245, 220, 0.95);
    border-bottom-color: rgba(230, 245, 220, 0.55);
    outline: none;
}

.score-nest {
    width: min(160px, 42vw);
    height: min(160px, 42vw);
    border-radius: 50%;
    pointer-events: none;
}

.score-nest.is-brain-pad {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
}

.score-nest-label,
.score-nest-value {
    display: none;
}


.sfx-toggle-fab,
.btn-insects,
.btn-stages,
.btn-weapon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1.15rem;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition: transform 0.12s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.sfx-toggle-fab {
    border: 1px solid rgba(94, 207, 154, 0.45);
    background: linear-gradient(180deg, rgba(26, 42, 35, 0.92), rgba(17, 28, 23, 0.92));
    color: #dcf8ea;
}

.sfx-toggle-fab:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 207, 154, 0.75);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.sfx-toggle-fab.is-off {
    opacity: 0.86;
    border-color: rgba(255, 145, 126, 0.45);
    color: #ffe1d8;
}

.btn-insects {
    border: 1px solid rgba(232, 165, 75, 0.45);
    background: linear-gradient(180deg, rgba(42, 32, 18, 0.92), rgba(24, 18, 12, 0.92));
    color: #fff3df;
}

.btn-insects:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 165, 75, 0.75);
}

.btn-insects.is-off {
    opacity: 0.75;
}

.btn-stages {
    border: 1px solid rgba(120, 170, 255, 0.45);
    background: linear-gradient(180deg, rgba(22, 32, 48, 0.92), rgba(14, 20, 32, 0.92));
    color: #dce8ff;
}

.btn-stages:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 170, 255, 0.75);
}

.btn-stages[hidden] { display: none; }

.btn-weapon {
    border: 1px solid rgba(220, 170, 90, 0.5);
    background: linear-gradient(180deg, rgba(48, 36, 18, 0.95), rgba(28, 20, 12, 0.92));
    color: #ffe8c8;
}

.btn-weapon:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 180, 90, 0.8);
}

.btn-pwa-install {
    width: auto;
    min-width: 38px;
    height: auto;
    min-height: 38px;
    padding: 6px 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 12px;
    border: 1px solid rgba(130, 190, 255, 0.5);
    background: linear-gradient(180deg, rgba(24, 36, 52, 0.95), rgba(14, 22, 34, 0.92));
    color: #dcecff;
    line-height: 1.15;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition: transform 0.12s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-pwa-install:hover {
    transform: translateY(-1px);
    border-color: rgba(150, 205, 255, 0.8);
}

.btn-pwa-install[hidden] { display: none; }

.btn-pwa-install-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.btn-pwa-install-text {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-pwa-install-size {
    font-size: 0.52rem;
    opacity: 0.88;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

.pwa-install-tip {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 10, 8, 0.72);
    backdrop-filter: blur(6px);
}

.pwa-install-tip[hidden] { display: none; }

.pwa-install-tip-card {
    position: relative;
    width: min(420px, 100%);
    padding: 22px 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(180, 210, 190, 0.22);
    background: linear-gradient(180deg, rgba(28, 40, 34, 0.98), rgba(16, 22, 19, 0.96));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: #e8f5ea;
    text-align: center;
}

.pwa-install-tip-close {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #e8f5ea;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.pwa-install-tip-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.pwa-install-tip-body {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(232, 245, 234, 0.88);
}

.pwa-install-tip-ok {
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(94, 207, 154, 0.5);
    background: linear-gradient(180deg, rgba(36, 70, 54, 0.95), rgba(22, 42, 34, 0.95));
    color: #dcf8ea;
    font: inherit;
    cursor: pointer;
}

.pwa-install-tip-ok:hover {
    border-color: rgba(94, 207, 154, 0.8);
}

/* ——— ریل سلاح‌های فعال، گوشهٔ چپ صفحه ——— */

.weapon-rail {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 8px 7px;
    border-radius: 18px;
    border: 1px solid rgba(180, 210, 190, 0.2);
    background: linear-gradient(180deg, rgba(28, 40, 34, 0.95), rgba(16, 22, 19, 0.93));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(3px);
}

.weapon-rail:empty,
.weapon-rail[hidden] { display: none; }

.weapon-rail-btn {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 13px;
    border: 1px solid rgba(220, 170, 90, 0.34);
    background: linear-gradient(180deg, rgba(48, 36, 18, 0.92), rgba(28, 20, 12, 0.9));
    color: #ffe8c8;
    cursor: pointer;
    transition:
        transform 0.14s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.weapon-rail-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 180, 90, 0.7);
}

.weapon-rail-btn:focus-visible {
    outline: 2px solid rgba(94, 224, 168, 0.6);
    outline-offset: 2px;
}

/* کادر دور سلاح انتخاب‌شده */
.weapon-rail-btn.is-active {
    border-color: rgba(94, 224, 168, 0.95);
    background: linear-gradient(180deg, rgba(34, 66, 52, 0.96), rgba(18, 34, 27, 0.94));
    box-shadow:
        0 0 0 2px rgba(94, 224, 168, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.34);
}

.weapon-rail-ico {
    display: block;
    pointer-events: none;
}

/* شمارهٔ مهمات باقی‌مانده */
.weapon-rail-count {
    position: absolute;
    bottom: -3px;
    inset-inline-start: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(12, 18, 14, 0.9);
    background: rgba(94, 224, 168, 0.92);
    color: #0c1a13;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.weapon-rail-btn.is-reloading {
    cursor: not-allowed;
    border-color: rgba(255, 210, 90, 0.6);
    background: linear-gradient(180deg, rgba(42, 36, 20, 0.92), rgba(24, 20, 12, 0.9));
}

.weapon-rail-btn.is-reloading .weapon-rail-ico {
    opacity: 0.4;
    filter: grayscale(1);
}

.weapon-rail-btn.is-reloading:hover {
    transform: none;
}

.weapon-rail-btn.is-reloading .weapon-rail-count {
    background: rgba(255, 210, 90, 0.92);
}

/* حلقهٔ پیشرفت شارژ مجدد دور آیکن */
.weapon-rail-ring {
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    background: conic-gradient(rgba(255, 210, 90, 0.85) calc(var(--p, 0) * 360deg), rgba(255, 255, 255, 0.08) 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    pointer-events: none;
}

.weapon-rail-left {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    padding: 0 4px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(12, 18, 14, 0.9);
    background: rgba(255, 210, 90, 0.95);
    color: #241a05;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 560px) {
    .weapon-rail {
        left: 6px;
        gap: 5px;
        padding: 6px 5px;
        border-radius: 15px;
    }

    .weapon-rail-btn {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 1rem;
    }
}

.weapon-picker {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(6, 10, 8, 0.78);
    backdrop-filter: blur(5px);
}

.weapon-picker[hidden] { display: none; }

.weapon-picker-card {
    position: relative;
    width: min(380px, 100%);
    padding: 20px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(165deg, #1c2822, #121816);
    border: 1px solid rgba(200, 220, 190, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.weapon-picker-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8f5ea;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.weapon-picker-card h2 {
    margin: 0 0 6px;
    text-align: center;
    font-size: 1.1rem;
    color: #f4fff6;
}

.weapon-picker-hint {
    margin: 0 0 14px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(190, 210, 195, 0.78);
}

.weapon-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weapon-pick-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(200, 220, 190, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.weapon-pick-item:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 220, 190, 0.35);
}

.weapon-pick-item.is-active {
    border-color: rgba(232, 180, 90, 0.55);
    background: rgba(80, 55, 20, 0.28);
}

.weapon-pick-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 1.6rem;
}

.weapon-pick-meta strong {
    display: block;
    font-size: 0.98rem;
    color: #f4fff6;
    margin-bottom: 4px;
}

.weapon-pick-meta span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(190, 210, 195, 0.82);
}

.weapon-pick-check {
    font-size: 0.85rem;
    color: #ffd24d;
    opacity: 0;
}

.weapon-pick-item.is-active .weapon-pick-check { opacity: 1; }

.weapon-pick-item.is-reloading {
    cursor: progress;
    border-color: rgba(255, 210, 90, 0.3);
    background: rgba(255, 210, 90, 0.05);
}

.weapon-pick-item.is-reloading:hover {
    transform: none;
    border-color: rgba(255, 210, 90, 0.3);
}

.weapon-pick-item.is-reloading .weapon-pick-icon {
    filter: grayscale(0.85);
    animation: kapak-reload-pulse 1.4s ease-in-out infinite;
}

.weapon-pick-item.is-reloading .weapon-pick-meta strong { color: rgba(244, 255, 246, 0.7); }

.weapon-pick-item.is-reloading .weapon-pick-check {
    opacity: 1;
    color: rgba(255, 210, 90, 0.85);
}

.weapon-pick-item .weapon-pick-reload {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.weapon-pick-item .weapon-pick-reload-bar {
    position: relative;
    flex: 1 1 auto;
    display: block;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.weapon-pick-item .weapon-pick-reload-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    animation: kapak-reload-shimmer 1.1s linear infinite;
}

.weapon-pick-reload-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4fd8a6, #ffd24d);
    box-shadow: 0 0 10px rgba(255, 210, 90, 0.45);
    transition: width 0.12s linear;
}

.weapon-pick-item .weapon-pick-reload-time {
    display: block;
    flex: 0 0 auto;
    min-width: 58px;
    text-align: end;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 220, 150, 0.92);
    font-variant-numeric: tabular-nums;
}

.weapon-reload-hud {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 2px 16px 0;
    pointer-events: none;
}

.weapon-reload-hud[hidden] { display: none; }

.weapon-reload-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 90, 0.34);
    background: linear-gradient(180deg, rgba(30, 38, 32, 0.94), rgba(16, 22, 18, 0.94));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    animation: kapak-reload-in 0.28s ease-out;
}

.weapon-reload-ring {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(from -90deg,
        #4fd8a6 0deg,
        #ffd24d calc(var(--p, 0) * 360deg),
        rgba(255, 255, 255, 0.12) calc(var(--p, 0) * 360deg));
}

.weapon-reload-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #131b17;
}

.weapon-reload-ico {
    position: relative;
    font-size: 0.85rem;
    line-height: 1;
}

.weapon-reload-meta {
    display: grid;
    gap: 1px;
    line-height: 1.35;
}

.weapon-reload-meta strong {
    font-size: 0.74rem;
    font-weight: 800;
    color: #f4fff6;
}

.weapon-reload-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 220, 150, 0.92);
    font-variant-numeric: tabular-nums;
}

.btn-weapon.is-reloading {
    border-color: rgba(255, 210, 90, 0.75);
    animation: kapak-reload-glow 1.3s ease-in-out infinite;
}

@keyframes kapak-reload-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes kapak-reload-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes kapak-reload-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes kapak-reload-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24); }
    50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(255, 210, 90, 0.2); }
}

.kapak-weapon-fx {
    position: fixed;
    z-index: 95;
    pointer-events: none;
}

.kapak-weapon-fx.is-slash {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-radius: 50%;
    background:
        conic-gradient(from 200deg, transparent 0 55%, rgba(255, 240, 220, 0.85) 60%, transparent 75%);
    animation: kapak-slash-fx 0.28s ease-out forwards;
}

.kapak-weapon-fx.is-muzzle {
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6c8 0%, #ffb040 35%, transparent 70%);
    box-shadow: 0 0 16px rgba(255, 180, 60, 0.7);
    animation: kapak-muzzle-fx 0.22s ease-out forwards;
}

.kapak-weapon-fx.is-trail {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 230, 160, 0.05), rgba(255, 220, 120, 0.9));
    transform-origin: left center;
    animation: kapak-trail-fx 0.18s ease-out forwards;
}

@keyframes kapak-slash-fx {
    from { opacity: 0.95; transform: scale(0.4) rotate(-20deg); }
    to { opacity: 0; transform: scale(1.35) rotate(25deg); }
}

@keyframes kapak-muzzle-fx {
    from { opacity: 1; transform: scale(0.5); }
    to { opacity: 0; transform: scale(1.8); }
}

@keyframes kapak-trail-fx {
    from { opacity: 0.95; }
    to { opacity: 0; }
}

.kapak-knife-slash {
    position: fixed;
    inset: 0;
    z-index: 94;
    pointer-events: none;
    overflow: visible;
}

.kapak-knife-slash-glow {
    stroke: rgba(220, 235, 255, 0.42);
    stroke-width: 14;
    filter: blur(1.2px);
}

.kapak-knife-slash-core {
    stroke: rgba(255, 252, 245, 0.96);
    stroke-width: 2.6;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.85));
}

.kapak-knife-slash.is-live .kapak-knife-slash-glow {
    stroke: rgba(255, 245, 220, 0.55);
    stroke-width: 16;
}

.kapak-knife-slash.is-live .kapak-knife-slash-core {
    stroke: #fffef8;
    stroke-width: 3.2;
}

.kapak-knife-slash.is-linger {
    animation: kapak-knife-linger var(--knife-trail-ms, 3400ms) ease-out forwards;
}

@keyframes kapak-knife-linger {
    0% { opacity: 1; }
    55% { opacity: 0.78; }
    100% { opacity: 0; }
}

body.is-knife-slashing {
    user-select: none;
    -webkit-user-select: none;
    cursor: grabbing;
}

body.is-weapon-knife {
    cursor: crosshair;
    touch-action: none;
}

body.is-weapon-gun {
    cursor: crosshair;
    touch-action: none;
}

body.is-gun-firing {
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.kapak-bullet {
    position: fixed;
    z-index: 96;
    left: 0;
    top: 0;
    width: 5px;
    height: 16px;
    margin: -8px 0 0 -2.5px;
    border-radius: 2px;
    pointer-events: none;
    will-change: transform;
    background: linear-gradient(180deg, #fff8d8 0%, #ffc04a 55%, #e08010 100%);
    box-shadow:
        0 0 6px rgba(255, 200, 80, 0.95),
        0 0 14px rgba(255, 160, 40, 0.55);
}

html.is-perf-lite .kapak-bullet {
    box-shadow: none;
    will-change: auto;
}

.kapak-mine {
    position: fixed;
    z-index: 70;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.kapak-mine-svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.kapak-grenade {
    position: fixed;
    z-index: 71;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    animation: kapak-grenade-pulse 0.55s ease-in-out infinite;
}

.kapak-grenade-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.kapak-grenade-timer {
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translate(-50%, -100%);
    min-width: 1.2em;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(20, 24, 18, 0.88);
    color: #ffe08a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@keyframes kapak-grenade-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.kapak-mine-boom {
    position: fixed;
    z-index: 97;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255, 220, 120, 0.95) 0%, rgba(255, 100, 40, 0.7) 35%, transparent 70%);
    box-shadow: 0 0 22px rgba(255, 120, 40, 0.65);
    animation: kapak-mine-boom 0.65s ease-out forwards;
}

.kapak-mine-boom.is-heavy {
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    background:
        radial-gradient(circle, rgba(255, 250, 220, 1) 0%, rgba(255, 200, 80, 0.95) 18%, rgba(255, 90, 20, 0.75) 42%, rgba(40, 12, 4, 0.35) 68%, transparent 78%);
    box-shadow:
        0 0 40px rgba(255, 140, 40, 0.85),
        0 0 80px rgba(255, 60, 10, 0.45);
    animation: kapak-mine-boom-heavy 0.85s cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}

.kapak-mine-flash {
    position: fixed;
    z-index: 98;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #fff 0%, rgba(255, 220, 140, 0.9) 40%, transparent 70%);
    animation: kapak-mine-flash 0.35s ease-out forwards;
}

.kapak-mine-flash.is-heavy {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    animation-duration: 0.48s;
    box-shadow: 0 0 48px rgba(255, 240, 180, 0.9);
}

.kapak-blast-dirt {
    position: fixed;
    z-index: 96;
    width: var(--sz, 8px);
    height: var(--sz, 8px);
    margin: 0;
    border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: kapak-blast-dirt 0.7s cubic-bezier(0.15, 0.7, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.kapak-blast-ring {
    position: fixed;
    z-index: 96;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid rgba(255, 180, 80, 0.85);
    box-shadow:
        0 0 0 6px rgba(255, 120, 40, 0.18),
        inset 0 0 24px rgba(255, 200, 80, 0.25);
    animation: kapak-blast-ring 0.5s ease-out forwards;
    animation-delay: var(--ring-delay, 0s);
}

.kapak-blast-ring.is-heavy {
    border-width: 3px;
    border-color: rgba(255, 200, 100, 0.9);
    box-shadow:
        0 0 0 10px rgba(255, 100, 30, 0.22),
        inset 0 0 36px rgba(255, 220, 100, 0.35);
    animation-duration: 0.72s;
}

@keyframes kapak-mine-boom {
    from { opacity: 1; transform: scale(0.35); }
    to { opacity: 0; transform: scale(1.7); }
}

@keyframes kapak-mine-boom-heavy {
    from { opacity: 1; transform: scale(0.2); }
    35% { opacity: 1; transform: scale(1.15); }
    to { opacity: 0; transform: scale(2.6); }
}

@keyframes kapak-mine-flash {
    from { opacity: 1; transform: scale(0.4); }
    to { opacity: 0; transform: scale(2.4); }
}

@keyframes kapak-blast-dirt {
    from {
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot, 40deg));
        opacity: 0;
    }
}

@keyframes kapak-blast-ring {
    from { opacity: 0.95; transform: scale(0.35); }
    to { opacity: 0; transform: scale(1); }
}

html.is-mine-shake,
html.is-mine-shake body {
    animation: kapak-mine-shake 0.5s ease-out both;
}

html.is-mine-shake-heavy,
html.is-mine-shake-heavy body {
    animation: kapak-mine-shake-heavy 0.7s ease-out both;
}

@keyframes kapak-mine-shake {
    0% { transform: translate(0, 0); }
    12% { transform: translate(-10px, 4px); }
    24% { transform: translate(9px, -6px); }
    36% { transform: translate(-7px, 5px); }
    48% { transform: translate(8px, -3px); }
    60% { transform: translate(-5px, 4px); }
    72% { transform: translate(4px, -2px); }
    84% { transform: translate(-2px, 1px); }
    100% { transform: translate(0, 0); }
}

@keyframes kapak-mine-shake-heavy {
    0% { transform: translate(0, 0) rotate(0deg); }
    8% { transform: translate(-16px, 8px) rotate(-0.6deg); }
    16% { transform: translate(18px, -10px) rotate(0.7deg); }
    26% { transform: translate(-14px, 9px) rotate(-0.5deg); }
    36% { transform: translate(12px, -7px) rotate(0.45deg); }
    48% { transform: translate(-9px, 6px) rotate(-0.3deg); }
    60% { transform: translate(7px, -4px) rotate(0.2deg); }
    74% { transform: translate(-4px, 2px) rotate(-0.1deg); }
    88% { transform: translate(2px, -1px); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    html.is-mine-shake,
    html.is-mine-shake body,
    html.is-mine-shake-heavy,
    html.is-mine-shake-heavy body {
        animation: none;
    }
    .kapak-grenade {
        animation: none;
    }
}

body.is-weapon-finger {
    cursor: pointer;
    touch-action: none;
}

body.is-weapon-mine,
body.is-weapon-grenade {
    cursor: crosshair;
    touch-action: none;
}

.stage-unlock-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 10, 8, 0.72);
    backdrop-filter: blur(4px);
}

.stage-unlock-modal[hidden] { display: none; }

.animal-info-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(6, 10, 8, 0.78);
    backdrop-filter: blur(5px);
}

.animal-info-modal[hidden] { display: none; }

.animal-info-card {
    position: relative;
    width: min(440px, 100%);
    max-height: min(88vh, 640px);
    overflow: auto;
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: linear-gradient(165deg, #1c2822, #121816);
    border: 1px solid rgba(200, 220, 190, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.animal-info-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8f5ea;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.animal-info-thumb {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: rgba(8, 12, 10, 0.55);
    border: 1px solid rgba(200, 220, 205, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.animal-info-thumb img,
.animal-info-thumb svg {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.animal-info-title-fa {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #f4fff6;
}

.animal-info-title-en {
    margin: 0 0 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(210, 220, 200, 0.82);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.animal-info-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: start;
}

.animal-info-block {
    padding: 12px 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 220, 190, 0.1);
}

.animal-info-block h3 {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(180, 200, 185, 0.78);
    letter-spacing: 0.02em;
}

.animal-info-block p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(230, 240, 232, 0.92);
    white-space: pre-wrap;
}

.stage-unlock-card {
    width: min(360px, 100%);
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: linear-gradient(165deg, #1c2822, #121816);
    border: 1px solid rgba(200, 220, 190, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.stage-unlock-logo {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 10px;
}

.stage-unlock-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #f4fff6;
}

.stage-unlock-name {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffe6a8;
}

.stage-unlock-hint {
    margin: 0 0 16px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(200, 220, 205, 0.82);
}

.stage-unlock-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stage-unlock-btn {
    appearance: none;
    border: 1px solid rgba(180, 200, 190, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #e8f5ea;
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.stage-unlock-btn.is-primary {
    border-color: rgba(94, 207, 154, 0.55);
    background: linear-gradient(180deg, rgba(40, 90, 60, 0.95), rgba(24, 58, 40, 0.95));
    color: #dfffee;
}

.stages-picker {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(6, 10, 8, 0.55);
}

.stages-picker[hidden] { display: none; }

.stages-picker-card {
    width: min(420px, 100%);
    max-height: min(70vh, 520px);
    overflow: auto;
    border-radius: 18px 18px 14px 14px;
    background: #151c18;
    border: 1px solid rgba(180, 200, 190, 0.2);
    padding: 14px;
}

.stages-picker-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.stages-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stages-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(180, 200, 190, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.stages-picker-item.is-on {
    border-color: rgba(94, 207, 154, 0.55);
    background: rgba(40, 90, 60, 0.35);
}

.stages-picker-item.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.stages-picker-icon { font-size: 1.35rem; }
.stages-picker-meta { flex: 1; min-width: 0; }
.stages-picker-meta strong { display: block; font-size: 0.92rem; }
.stages-picker-meta span { font-size: 0.72rem; color: rgba(190, 210, 198, 0.75); }

.kapak-bug.is-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.my-insects-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(6, 8, 10, 0.62);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.my-insects-sheet {
    width: min(440px, 100%);
    max-height: min(78vh, 640px);
    overflow: auto;
    background: linear-gradient(165deg, #1a221c 0%, #121816 100%);
    border: 1px solid rgba(120, 180, 140, 0.28);
    border-radius: 18px 18px 14px 14px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    padding: 14px 14px 18px;
}

.my-insects-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.my-insects-head strong {
    display: block;
    font-size: 1.05rem;
    color: #e8f5ea;
}

.my-insects-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(200, 220, 205, 0.75);
}

.my-insects-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #dfe8e2;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.my-insects-note {
    margin: 0 0 12px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(190, 210, 198, 0.8);
}

.my-insects-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-insect-group {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 6px 2px 2px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(200, 224, 208, 0.9);
}

.my-insect-group::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(200, 224, 208, 0.28), transparent);
}

.my-insect-group:first-child {
    margin-top: 0;
}

.my-insect-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.my-insect-row.is-unlocked.is-on {
    border-color: rgba(90, 190, 120, 0.35);
    background: rgba(40, 90, 55, 0.18);
}

.my-insect-row.is-locked {
    opacity: 0.78;
}

.my-insect-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.my-insect-name {
    font-size: 0.9rem;
    color: #f0f7f2;
}

.my-insect-hint {
    font-size: 0.72rem;
    color: rgba(180, 200, 188, 0.78);
}

.my-insect-switch {
    flex: 0 0 auto;
    min-width: 72px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 120, 0.35);
    background: rgba(60, 28, 22, 0.65);
    color: #ffd8cc;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.my-insect-switch.is-on {
    border-color: rgba(90, 200, 130, 0.5);
    background: rgba(28, 70, 42, 0.85);
    color: #d8ffe6;
}

.my-insect-lock {
    font-size: 1.1rem;
}

.my-insect-empty {
    padding: 16px;
    text-align: center;
    color: rgba(190, 210, 198, 0.75);
    font-size: 0.85rem;
}

/* حالت سبک موبایل — کمتر blur / سایه / انیمیشن پس‌زمینه */
html.is-perf-lite .play-bg {
    background: linear-gradient(180deg, #18201c 0%, #101614 55%, #0c100e 100%);
}

html.is-perf-lite .stage-unlock-modal,
html.is-perf-lite .animal-info-modal,
html.is-perf-lite .my-insects-overlay,
html.is-perf-lite .weapon-picker,
html.is-perf-lite .stages-picker,
html.is-perf-lite .play-menu-panel,
html.is-perf-lite .weapon-reload-hud {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.is-perf-lite .play-mark {
    filter: none !important;
}

html.is-perf-low.is-mine-shake,
html.is-perf-low.is-mine-shake body,
html.is-perf-low.is-mine-shake-heavy,
html.is-perf-low.is-mine-shake-heavy body {
    animation: none !important;
}
