/* ============================================================
   modules/game_astro/game_astro.css – «Астровектор»
   ============================================================ */

.ga-app {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Стартовый экран ---------- */
.ga-start {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 32px 16px;
    border-radius: 16px;
    overflow: hidden;
    color: #e8f1ff;
    text-align: center;
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 150, 100, .35) 0, rgba(255, 150, 100, 0) 18%),
        radial-gradient(circle at 25% 110%, rgba(80, 170, 255, .55) 0, rgba(80, 170, 255, 0) 45%),
        radial-gradient(ellipse at 50% 50%, #0d1830 0%, #04070f 75%);
}
.ga-start::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 30% 70%, #cfe 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 55%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 80%, #dde 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 42% 40%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 18% 88%, #fff 50%, transparent 51%);
    opacity: .8;
    pointer-events: none;
}
.ga-start-inner {
    position: relative;
    max-width: 560px;
}
.ga-logo {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #7fd4ff, #ffffff 50%, #ffb38a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ga-subtitle {
    color: #a9bdd8;
    margin-bottom: 22px;
}
.ga-modes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.ga-mode {
    padding: 6px 14px;
    border: 1px solid rgba(160, 200, 255, .3);
    border-radius: 20px;
    font-size: .9rem;
    color: #cfe3ff;
    background: rgba(255, 255, 255, .04);
}
.ga-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ga-form .form-control {
    max-width: 240px;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(160, 200, 255, .35);
    color: #fff;
}
.ga-form .form-control::placeholder { color: #8aa0bd; }
.ga-play-btn {
    padding: 10px 32px;
    border-radius: 30px;
    font-weight: 600;
}
.ga-note {
    margin-top: 18px;
    font-size: .82rem;
    color: #7f93ad;
}
.ga-error {
    display: none;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 80, 80, .15);
    color: #ffb4b4;
}

/* ---------- Игровое поле ---------- */
.ga-stage {
    display: none;
    position: relative;
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 460px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.ga-stage:fullscreen {
    height: 100vh;
    border-radius: 0;
}
.ga-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: crosshair;
}

.ga-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: #cfe3ff;
    background: #04070f;
}
.ga-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(127, 212, 255, .2);
    border-top-color: #7fd4ff;
    animation: ga-spin 1s linear infinite;
}
@keyframes ga-spin { to { transform: rotate(360deg); } }

/* ---------- HUD ---------- */
.ga-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #e6f2ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.ga-hud-stats {
    position: absolute;
    left: 12px;
    top: 10px;
    white-space: pre;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(4, 10, 20, .45);
}
.ga-hud-net {
    position: absolute;
    right: 12px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(4, 10, 20, .45);
    font-size: 12px;
}
.ga-hud-help {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(4, 10, 20, .45);
    font-size: 12px;
    text-align: center;
}
.ga-hud-hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(40, 150, 255, .75);
    font-weight: 600;
    font-size: 14px;
}
.ga-hud-msg {
    display: none;
    position: absolute;
    left: 50%;
    top: 22%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(4, 10, 20, .6);
    font-size: 16px;
    font-weight: 600;
}
.ga-hud-cross {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(160, 230, 255, .75);
    border-radius: 50%;
}
.ga-hud-marker {
    display: none;
    position: absolute;
    transform: translate(-50%, -140%);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(160, 220, 255, .6);
    background: rgba(4, 10, 20, .5);
    font-size: 12px;
    white-space: nowrap;
}
.ga-hud-pause {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 14, .45);
    pointer-events: auto;
    cursor: pointer;
}
.ga-hud-pause-inner {
    text-align: center;
    padding: 20px 26px;
    border-radius: 14px;
    background: rgba(4, 10, 20, .7);
}
.ga-hud-pause-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ga-hud-pause-text { color: #a9bdd8; margin-bottom: 12px; }
.ga-hud-fs { pointer-events: auto; }

@media (max-width: 640px) {
    .ga-hud-help { display: none; }
    .ga-stage { height: 70vh; }
}

/* ---------- Компас ---------- */
.ga-hud-compass {
    position: absolute;
    left: 50%;
    top: 10px;
    width: min(420px, 60%);
    height: 34px;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(4, 10, 20, 0) 0, rgba(4, 10, 20, .5) 20%, rgba(4, 10, 20, .5) 80%, rgba(4, 10, 20, 0) 100%);
    font: 600 12px/1 system-ui, sans-serif;
    letter-spacing: .06em;
}
.ga-compass-tick {
    position: absolute;
    top: 7px;
    transform: translateX(-50%);
    color: #a9c3e4;
}
.ga-compass-tick.ga-major { color: #fff; font-size: 13px; }
.ga-compass-base {
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    color: #44ddff;
    font-size: 11px;
}
.ga-compass-head {
    position: absolute;
    left: 50%;
    bottom: 1px;
    transform: translateX(-50%);
    font-size: 10px;
    color: #7fd4ff;
}
.ga-hud-compass::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    background: #7fd4ff;
}
.ga-hud-stats { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.ga-hud-marker-base { border-color: rgba(68, 221, 255, .8); color: #bff3ff; }

/* ---------- Настройки (в паузе) ---------- */
.ga-settings {
    display: grid;
    gap: 8px;
    margin: 4px auto 14px;
    max-width: 320px;
    text-align: left;
    font-size: 13px;
}
.ga-set-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #cfe3ff;
}
.ga-set-row select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(160, 200, 255, .35);
    background: #0b1424;
    color: #fff;
    font: inherit;
}
.ga-set-row input[type="range"] { width: 100%; accent-color: #39c0ff; }
.ga-set-check { grid-template-columns: auto 1fr; justify-content: start; }
.ga-set-check input { accent-color: #39c0ff; }
@media (max-width: 640px) {
    .ga-hud-compass { width: 44%; }
}

/* ============================================================
   Весь экран, телефоны и сенсорное управление
   ============================================================ */

/* Сцена на весь экран средствами CSS — там, где нет Fullscreen API
   (iPhone), и как подстраховка поверх настоящего полноэкранного режима */
.ga-stage.ga-pseudo-fs {
    position: fixed;
    inset: auto;
    /* Видимая область браузера (game_astro.js → fitViewport, 2026-09-30):
       сцена там же, где её видно, — касания попадают в кнопки */
    top: var(--ga-vtop, 0px);
    left: var(--ga-vleft, 0px);
    width: 100vw;
    width: var(--ga-vw, 100vw);
    height: 100vh;
    height: var(--ga-vh, 100dvh);
    min-height: 0;
    border-radius: 0;
    z-index: 2147483000;
}
html.ga-noscroll, html.ga-noscroll body { overflow: hidden !important; overscroll-behavior: none; }
/* iPhone: страница под игрой не прокручивается и не «уезжает» */
html.ga-noscroll body { position: fixed; inset: 0; width: 100%; height: 100%; }
.ga-stage { touch-action: none; -webkit-tap-highlight-color: transparent; }

/* Подсказки стартового экрана: для мыши или для пальцев */
.ga-note-touch { display: none; }
.ga-is-touch .ga-note-desktop { display: none; }
.ga-is-touch .ga-note-touch { display: inline; }
.ga-note a { color: #7fd4ff; margin-left: 6px; }

/* Пауза */
.ga-hud-pause-sum { color: #cfe3ff; font-size: 13px; margin-bottom: 12px; }
.ga-hud-pause-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
.ga-hud-pause-btns .btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.6); background: transparent; }
.ga-hud-pause-note { font-size: 12px; color: #9fb4cf; max-width: 360px; margin: 0 auto; }
.ga-hud-pause-note a { color: #7fd4ff; }

/* «Поверните телефон» */
.ga-rotate {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 30;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    background: rgba(2, 5, 12, .92);
    color: #e6f2ff;
    font: 600 17px/1.4 system-ui, sans-serif;
    text-align: center;
    padding: 24px;
}
.ga-rotate.ga-show { display: flex; }
.ga-rotate-phone {
    width: 46px;
    height: 80px;
    border: 3px solid #7fd4ff;
    border-radius: 9px;
    position: relative;
    animation: ga-rotate-hint 2.2s ease-in-out infinite;
}
.ga-rotate-phone::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 10px;
    height: 3px;
    margin-left: -5px;
    border-radius: 2px;
    background: #7fd4ff;
}
@keyframes ga-rotate-hint {
    0%, 20% { transform: rotate(0deg); }
    55%, 85% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .ga-rotate-phone { animation: none; transform: rotate(-90deg); } }

/* ---------- Сенсорное управление ---------- */
.ga-touch {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.ga-touch-stickzone, .ga-touch-lookzone {
    position: absolute;
    top: 64px;
    bottom: 0;
    pointer-events: auto;
    touch-action: none;
}
.ga-touch-left .ga-touch-stickzone { left: 0; width: 45%; }
.ga-touch-left .ga-touch-lookzone { right: 0; width: 55%; }
.ga-touch-right .ga-touch-stickzone { right: 0; width: 45%; }
.ga-touch-right .ga-touch-lookzone { left: 0; width: 55%; }

.ga-touch-stick {
    display: none;
    position: absolute;
    width: 124px;
    height: 124px;
    margin: -62px 0 0 -62px;
    border-radius: 50%;
    border: 2px solid rgba(200, 230, 255, .45);
    background: radial-gradient(circle, rgba(127, 212, 255, .12), rgba(127, 212, 255, .04));
}
.ga-touch-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(220, 240, 255, .55);
    box-shadow: 0 0 12px rgba(127, 212, 255, .5);
}
.ga-touch-stickhint {
    position: absolute;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px dashed rgba(200, 230, 255, .45);
    color: rgba(220, 240, 255, .8);
    font: 600 12px system-ui, sans-serif;
    transition: opacity .6s;
}
.ga-touch-left .ga-touch-stickhint { left: calc(22px + env(safe-area-inset-left, 0px)); }
.ga-touch-right .ga-touch-stickhint { right: calc(22px + env(safe-area-inset-right, 0px)); }

.ga-touch-buttons {
    position: absolute;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.ga-touch-left .ga-touch-buttons { right: calc(16px + env(safe-area-inset-right, 0px)); }
.ga-touch-right .ga-touch-buttons { left: calc(16px + env(safe-area-inset-left, 0px)); align-items: flex-start; }
.ga-tbtn-row { display: flex; gap: 10px; }
.ga-tbtn {
    pointer-events: auto;
    touch-action: none;
    min-width: 58px;
    height: 58px;
    padding: 0 14px;
    border-radius: 29px;
    border: 2px solid rgba(200, 230, 255, .5);
    background: rgba(8, 18, 34, .55);
    color: #eaf6ff;
    font: 700 15px system-ui, sans-serif;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.ga-tbtn.ga-on { background: rgba(57, 192, 255, .6); border-color: #bff0ff; }
.ga-tbtn-big { min-width: 84px; height: 84px; border-radius: 42px; font-size: 16px; }
.ga-tbtn-small { min-width: 44px; height: 44px; border-radius: 22px; font-size: 14px; padding: 0 10px; }
.ga-tbtn-action { background: rgba(40, 150, 255, .75); border-color: #bfe6ff; }

.ga-touch-top {
    position: absolute;
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    display: flex;
    gap: 8px;
}
.ga-touch-top .ga-tbtn { pointer-events: auto; }

/* Газ корабля — вертикальный ползунок у края экрана */
.ga-touch-throttle {
    display: none;
    position: absolute;
    top: calc(124px + env(safe-area-inset-top, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    border-radius: 23px;
    border: 2px solid rgba(200, 230, 255, .45);
    background: rgba(8, 18, 34, .45);
    overflow: hidden;
    pointer-events: auto;
    touch-action: none;
}
.ga-touch-left .ga-touch-throttle { right: calc(14px + env(safe-area-inset-right, 0px)); }
.ga-touch-right .ga-touch-throttle { left: calc(14px + env(safe-area-inset-left, 0px)); }
.ga-touch-throttle-fill {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 0;
    background: linear-gradient(0deg, rgba(57, 192, 255, .75), rgba(160, 230, 255, .5));
}
.ga-touch-throttle-label {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    text-align: center;
    font: 700 11px system-ui, sans-serif;
    color: #eaf6ff;
    letter-spacing: .08em;
}

/* HUD в сенсорном режиме: компактнее, без подсказок клавиш */
.ga-touch-mode .ga-hud-help { display: none; }
.ga-touch-mode .ga-hud-stats { font-size: 11px; padding: 6px 9px; top: calc(8px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px)); }
.ga-touch-mode .ga-hud-net { top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); font-size: 11px; }
.ga-touch-mode .ga-hud-hint { bottom: auto; top: 30%; }
.ga-touch-mode .ga-hud-compass { width: min(300px, 44%); }
.ga-touch-mode .ga-hud-pause-inner { max-width: 92%; }
@media (max-height: 420px) {
    .ga-touch-mode .ga-hud-stats { max-width: 46%; }
    .ga-tbtn-big { min-width: 70px; height: 70px; }
    .ga-tbtn { height: 50px; min-width: 50px; }
    .ga-touch-throttle { top: 116px; }
}

/* Корабль: кнопки отодвинуты от ползунка газа */
.ga-touch-left.ga-touch-ship .ga-touch-buttons { right: calc(76px + env(safe-area-inset-right, 0px)); }
.ga-touch-right.ga-touch-ship .ga-touch-buttons { left: calc(76px + env(safe-area-inset-left, 0px)); }
.ga-tbtn-wide { min-width: 116px; }

/* Окно паузы — всегда поверх сенсорного слоя */
.ga-hud-pause { z-index: 20; }
.ga-touch { z-index: 10; }
.ga-rotate { z-index: 30; }
/* Иконки на сенсорных кнопках */
.ga-tbtn { display: inline-flex; align-items: center; justify-content: center; }
.ga-ico { width: 26px; height: 26px; pointer-events: none; }
.ga-tbtn-big .ga-ico { width: 38px; height: 38px; }
.ga-tbtn-small .ga-ico { width: 22px; height: 22px; }
.ga-tbtn-action .ga-ico { width: 30px; height: 30px; }
.ga-tbtn-wide .ga-ico { width: 32px; height: 32px; }
.ga-touch-throttle-label { transform: translateY(-50%); }

/* Кнопка «Играть» пульсирует, когда вводить ничего не нужно */
.ga-play-btn.ga-pulse {
    padding: 14px 52px;
    font-size: 1.15rem;
    animation: ga-pulse 1.8s ease-out infinite;
}
@keyframes ga-pulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 160, 255, .65); transform: scale(1); }
    50% { transform: scale(1.05); }
    70% { box-shadow: 0 0 0 18px rgba(57, 160, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 160, 255, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .ga-play-btn.ga-pulse { animation: none; } }
.ga-pilot { margin-top: 12px; color: #a9bdd8; font-size: .92rem; }
.ga-pilot b { color: #fff; }
.ga-form .form-control.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .25); }

/* Телефоны и планшеты: без подсказок навигации (компас, метки планет и
   базы, пузырь «сесть…», подписи джойстика, подсказки управления) */
.ga-touch-mode .ga-hud-compass,
.ga-touch-mode .ga-hud-marker,
.ga-touch-mode .ga-touch-stickhint { display: none !important; }
.ga-is-touch .ga-note-touch { display: none; }

/* Кнопка звука в окне паузы: иконка + состояние */
.ga-sound-btn { display: inline-flex; align-items: center; gap: 6px; }
.ga-sound-btn .ga-ico { width: 18px; height: 18px; }

/* ======================================================================
   29.09: ресурсы, карта, станция, торговля
   ====================================================================== */

/* Левый верхний угол: показатели + полоски ресурсов */
.ga-hud-left {
    position: absolute;
    left: 12px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 46%;
}
.ga-hud-left .ga-hud-stats { position: static; }
.ga-touch-mode .ga-hud-left { top: calc(8px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px)); }
.ga-touch-mode .ga-hud-left .ga-hud-stats { top: auto; left: auto; }
.ga-hud-res {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(4, 10, 20, .45);
    font-size: 12px;
    min-width: 170px;
}
.ga-res-row { display: flex; align-items: center; gap: 6px; line-height: 18px; }
.ga-res-row > span:first-child { width: 16px; text-align: center; font-size: 12px; }
.ga-res-row i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; min-width: 70px; }
.ga-res-row i b { display: block; height: 100%; background: linear-gradient(90deg, #ffb454, #ffd88a); }
.ga-res-shield i b { background: linear-gradient(90deg, #39c0ff, #9ff0ff); }
.ga-res-row em { font-style: normal; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.ga-res-row.ga-low em, .ga-res-row.ga-low span { color: #ff8a70; }
.ga-res-shield.ga-on span { text-shadow: 0 0 6px #6fd8ff; }
.ga-res-coins { gap: 5px; }
.ga-res-coins em { min-width: 0; text-align: left; font-weight: 700; color: #ffe08a; }
.ga-res-min { margin-left: auto; color: #cfe3ff; }
.ga-coin { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ga-touch-mode .ga-hud-res { font-size: 11px; padding: 4px 8px; min-width: 150px; }

/* Метки целей */
.ga-hud-marker-rover { border-color: rgba(255, 180, 84, .85); color: #ffe2b8; }
.ga-hud-marker-ship { border-color: rgba(57, 192, 255, .85); color: #c9f0ff; }
.ga-hud-marker-station { border-color: rgba(125, 255, 154, .85); color: #d5ffe0; }
.ga-hud-marker-teleport { border-color: rgba(199, 125, 255, .85); color: #ecd8ff; }

/* Мини-карта */
.ga-map-mini {
    position: absolute;
    top: 44px;
    right: 12px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.ga-touch-mode .ga-map-mini {
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: calc(186px + env(safe-area-inset-right, 0px));
    width: 104px;
    height: 104px;
}
@media (max-height: 420px) { .ga-touch-mode .ga-map-mini { width: 92px; height: 92px; } }

/* Большая карта */
.ga-map-big {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 22;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 14, .55);
    pointer-events: auto;
}
.ga-map-big-inner {
    width: min(960px, 94%);
    height: min(720px, 90%);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: rgba(4, 10, 20, .88);
    border: 1px solid rgba(160, 220, 255, .25);
    overflow: hidden;
}
.ga-map-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(160, 220, 255, .15); }
.ga-map-title { flex: 1; font-size: 14px; }
.ga-map-head button {
    min-width: 36px; height: 36px; border-radius: 18px; border: 1px solid rgba(200, 230, 255, .5);
    background: rgba(8, 18, 34, .6); color: #eaf6ff; font: 700 16px system-ui, sans-serif; cursor: pointer;
}
.ga-map-zoom { display: flex; gap: 6px; }
.ga-map-body { flex: 1; display: flex; min-height: 0; }
.ga-map-canvas { flex: 1; min-width: 0; height: 100%; }
.ga-map-legend { width: 240px; padding: 10px 12px; overflow: auto; border-left: 1px solid rgba(160, 220, 255, .15); font-size: 13px; }
.ga-map-li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.ga-map-li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ga-map-li span { flex: 1; }
.ga-map-li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px), (max-height: 460px) {
    .ga-map-legend { width: 170px; font-size: 11px; padding: 6px 8px; }
    .ga-map-big-inner { width: 98%; height: 96%; }
}

/* Окна: станция, торговля */
.ga-panel {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(20, 40, 70, .55), rgba(2, 6, 14, .82));
    pointer-events: auto;
    text-shadow: none;
}
.ga-panel-box {
    width: min(760px, 94%);
    max-height: 92%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: rgba(6, 14, 28, .94);
    border: 1px solid rgba(125, 255, 154, .25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    overflow: hidden;
}
.ga-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(160, 220, 255, .15); }
.ga-panel-title { flex: 1; font-size: 16px; font-weight: 700; }
.ga-panel-back {
    height: 36px; padding: 0 14px 0 10px; border-radius: 18px; border: 1px solid rgba(200, 230, 255, .5);
    background: transparent; color: #eaf6ff; font-size: 15px; cursor: pointer; white-space: nowrap; flex: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.ga-panel-back span { font-size: 18px; line-height: 1; }
.ga-panel-back:hover { background: rgba(200, 230, 255, .12); }
.ga-panel-msg { min-height: 0; padding: 0 14px; font-size: 13px; }
.ga-panel-msg:not(:empty) { padding: 8px 14px; }
.ga-panel-body { padding: 12px 14px 16px; overflow: auto; -webkit-overflow-scrolling: touch; }
.ga-panel-sub { color: #a9bdd8; font-size: 13px; margin: 6px 0; }
.ga-panel-soon { color: #7f93ad; font-size: 12px; margin: 10px 0; }
.ga-ok { color: #8dffb0; }
.ga-err { color: #ff9a8a; font-size: 13px; }
.ga-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ga-room {
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
    padding: 16px; border-radius: 12px; cursor: pointer; color: #eaf6ff;
    border: 1px solid rgba(160, 220, 255, .3);
    background: linear-gradient(135deg, rgba(40, 90, 140, .45), rgba(10, 20, 40, .6));
}
.ga-room b { font-size: 17px; }
.ga-room span { color: #a9bdd8; font-size: 13px; }
.ga-room:hover, .ga-room:focus-visible { border-color: #7dff9a; }
/* 30.09, вечер: иконка комнаты слева от текста */
.ga-room { flex-direction: row; align-items: center; gap: 14px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ga-room-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ga-room-icon {
    flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 60%, rgba(0, 0, 0, .25));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px rgba(0, 0, 0, .35);
}
.ga-room-icon svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); transition: transform .2s ease; }
.ga-room:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.ga-room:hover .ga-room-icon svg { transform: scale(1.08) rotate(-3deg); }
@media (max-width: 520px) { .ga-room-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 12px; } .ga-room-icon svg { width: 40px; height: 40px; } }
.ga-room-shop { background: linear-gradient(135deg, rgba(160, 120, 20, .4), rgba(10, 20, 40, .6)); }
.ga-room-repair { background: linear-gradient(135deg, rgba(30, 130, 110, .4), rgba(10, 20, 40, .6)); }

/* Балансы */
.ga-bal { text-align: left; margin: 10px 0; }
.ga-bal-coins { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ga-bal-coins .ga-coin { width: 26px; height: 26px; }
.ga-bal-coins b { font-size: 22px; color: #ffe08a; font-variant-numeric: tabular-nums; }
.ga-bal-coins span { color: #a9bdd8; font-size: 12px; }
.ga-bal-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; }
.ga-bal-label { width: 64px; color: #cfe3ff; }
.ga-bal-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ga-bal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb454, #ffd88a); }
.ga-bal-shield .ga-bal-bar i { background: linear-gradient(90deg, #39c0ff, #9ff0ff); }
.ga-bal-row b { min-width: 86px; text-align: right; font-variant-numeric: tabular-nums; }
.ga-bal-min { margin-top: 10px; }
.ga-bal-min-title { font-size: 12px; color: #a9bdd8; margin-bottom: 6px; }
.ga-bal-empty { color: #7f93ad; font-size: 12px; }
.ga-bal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ga-bal-grid > div { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 12px; }
.ga-bal-grid span:not(.ga-el) { flex: 1; }
.ga-el {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 30px; height: 30px; border-radius: 6px; font: 700 13px system-ui, sans-serif;
    background: linear-gradient(135deg, #2a5a8a, #1a3050); border: 1px solid rgba(160, 220, 255, .4); color: #fff;
}
.ga-el small { position: absolute; left: 2px; top: 0; font-size: 7px; font-weight: 400; opacity: .8; }
.ga-hud-pause-bal { max-width: 460px; margin: 0 auto 10px; }
.ga-hud-pause-inner { max-height: 92vh; overflow: auto; }
.btn-warning { color: #111; }
.ga-panel .btn:disabled, .ga-hud-pause .btn:disabled { opacity: .4; cursor: default; }

/* Магазин и ремонт */
.ga-shop-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ga-shop-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.ga-shop-row.ga-dim { opacity: .5; }
.ga-shop-name { flex: 1; min-width: 110px; display: flex; flex-direction: column; font-size: 14px; }
.ga-shop-name small { color: #a9bdd8; font-size: 11px; }
.ga-shop-rate { font-variant-numeric: tabular-nums; color: #ffe08a; min-width: 60px; text-align: right; }
.ga-shop-qty {
    width: 96px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(160, 220, 255, .4);
    background: rgba(0, 0, 0, .35); color: #fff; font-size: 14px;
}
.ga-shop-worth { font-size: 12px; color: #cfe3ff; display: inline-flex; align-items: center; gap: 4px; }
.ga-repair-acts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; align-items: flex-start; }
.ga-repair-acts .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Торговля */
.ga-trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ga-trade-col { display: flex; flex-direction: column; gap: 6px; }
.ga-trade-h { font-weight: 700; margin-bottom: 4px; }
.ga-trade-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 13px; }
.ga-trade-row > span:not(.ga-el) { flex: 1; display: flex; flex-direction: column; }
.ga-trade-row small { color: #a9bdd8; font-size: 11px; }
.ga-trade-coins .ga-coin { width: 24px; height: 24px; }
.ga-trade-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid rgba(160, 220, 255, .15); }
.ga-trade-foot .ga-panel-sub { flex-basis: 100%; }
@media (max-width: 560px) { .ga-trade-cols { grid-template-columns: 1fr; } }

/* Сенсорные кнопки: щит/бур включены */
.ga-tbtn-on { background: rgba(57, 192, 255, .55); border-color: #bff0ff; box-shadow: 0 0 12px rgba(111, 216, 255, .6); }
.ga-tbtn-extra .ga-tbtn { height: 50px; min-width: 50px; }
/* Показатели не обрезаются по ширине (телефоны) */
.ga-hud-left { max-width: none; }
.ga-hud-left .ga-hud-stats { max-width: none !important; }

/* ---------- Автопилот (29.09, вечер) ---------- */
.ga-hud-auto {
    display: none;
    position: absolute;
    left: 50%;
    top: 52px;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(125, 255, 154, .7);
    background: rgba(8, 40, 22, .72);
    color: #c9ffd6;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    animation: ga-auto-pulse 2s ease-in-out infinite;
}
@keyframes ga-auto-pulse { 50% { box-shadow: 0 0 14px rgba(125, 255, 154, .45); } }
.ga-touch-mode .ga-hud-auto { top: calc(48px + env(safe-area-inset-top, 0px)); font-size: 12px; }
.ga-tbtn-auto.ga-tbtn-on { background: rgba(60, 200, 110, .6); border-color: #c9ffd6; box-shadow: 0 0 12px rgba(125, 255, 154, .6); }

/* ---------- Площадки (2026-09-29): «Установить игру», PWA, VK ---------- */
.ga-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 22px;
    border: 1px solid rgba(160, 200, 255, .45);
    border-radius: 30px;
    background: rgba(255, 255, 255, .06);
    color: #dbeaff;
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.ga-install-btn:hover { background: rgba(127, 212, 255, .16); border-color: #7fd4ff; }
.ga-install-btn[hidden] { display: none; }
.ga-install-help {
    margin: 14px auto 0;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(10, 18, 36, .92);
    border: 1px solid rgba(160, 200, 255, .3);
    text-align: left;
    font-size: .9rem;
    color: #dbeaff;
}
.ga-install-help p { margin: 0 0 6px; }
.ga-install-help ol { margin: 0 0 10px; padding-left: 20px; }
.ga-install-help li { margin-bottom: 4px; }
.ga-install-help .ga-glyph { display: inline-block; padding: 0 5px; border: 1px solid rgba(160, 200, 255, .5); border-radius: 5px; }
.ga-install-help-ok { font: inherit; padding: 6px 18px; border-radius: 20px; border: 0; background: #1f7ae0; color: #fff; cursor: pointer; }
/* Запущено как приложение: стартовый экран — на весь экран, без скруглений */
.ga-app.ga-standalone .ga-start { min-height: 100vh; min-height: 100dvh; border-radius: 0; }
/* Во ВКонтакте/ОК окно приложения и так «рамка» — без скруглений */
.ga-app.ga-in-vk .ga-start, .ga-app.ga-in-vk .ga-stage { border-radius: 0; }

/* ---------- 29.09, вечер (2): здоровье, солнце, подсказки, торговля ---------- */
.ga-res-health i b { background: linear-gradient(90deg, #ff4d6d, #ff9aa8); }
.ga-res-health > span:first-child { color: #ff6b81; }
.ga-res-row.ga-sun em { color: #ffe27a; }
.ga-bal-health .ga-bal-bar i { background: linear-gradient(90deg, #ff4d6d, #ff9aa8); }

/* Подсказка: «стекло» — полупрозрачное окно с размытием фона */
.ga-tip {
    position: absolute;
    left: 12px;
    top: 214px; /* под полосками ресурсов */
    z-index: 21;
    display: flex;
    gap: 12px;
    width: min(380px, calc(100% - 28px));
    padding: 14px 38px 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(160, 220, 255, .35);
    background: linear-gradient(145deg, rgba(20, 34, 60, .62), rgba(8, 14, 28, .5));
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #eaf3ff;
    font-size: 13.5px;
    line-height: 1.45;
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translate(-24px, 0) scale(.97);
    transition: opacity .35s ease, transform .35s ease;
    visibility: hidden;
}
.ga-tip.ga-tip-show { opacity: 1; transform: translate(0, 0) scale(1); visibility: visible; }
@media (max-height: 640px) { .ga-tip { max-height: calc(100% - 230px); overflow-y: auto; } }
.ga-tip-ico {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(111, 216, 255, .16); color: #8fe3ff;
    box-shadow: inset 0 0 0 1px rgba(143, 227, 255, .3);
}
.ga-tip-ico svg { width: 24px; height: 24px; }
.ga-tip-body { flex: 1; min-width: 0; }
.ga-tip-title { font-weight: 700; font-size: 15px; margin: 1px 0 4px; letter-spacing: .01em; }
.ga-tip-text b { color: #fff; }
.ga-tip-text ul { margin: 6px 0 0; padding-left: 18px; }
.ga-tip-text li { margin: 3px 0; }
.ga-tip-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ga-tip-ok {
    padding: 5px 16px; border-radius: 20px; border: 1px solid rgba(143, 227, 255, .5);
    background: rgba(111, 216, 255, .18); color: #eaf8ff; font: inherit; font-weight: 600; cursor: pointer;
}
.ga-tip-ok:hover { background: rgba(111, 216, 255, .32); }
.ga-tip-more { font-size: 12px; color: #9fb6d6; }
.ga-tip-x {
    position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 13px;
    background: transparent; color: #b9cbe6; font-size: 20px; line-height: 1; cursor: pointer;
}
.ga-tip-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ga-tip-timer {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, rgba(111, 216, 255, .8), rgba(111, 216, 255, .2));
    transform-origin: left center;
}
.ga-tip-warn { border-color: rgba(255, 180, 84, .5); background: linear-gradient(145deg, rgba(60, 36, 12, .62), rgba(24, 14, 6, .5)); }
.ga-tip-warn .ga-tip-ico { background: rgba(255, 180, 84, .18); color: #ffc36e; box-shadow: inset 0 0 0 1px rgba(255, 195, 110, .35); }
.ga-tip-warn .ga-tip-timer { background: linear-gradient(90deg, rgba(255, 180, 84, .9), rgba(255, 180, 84, .2)); }
.ga-tip-warn .ga-tip-ok { border-color: rgba(255, 195, 110, .55); background: rgba(255, 180, 84, .18); }
.ga-tip-good { border-color: rgba(125, 255, 154, .45); background: linear-gradient(145deg, rgba(12, 48, 30, .6), rgba(6, 20, 14, .5)); }
.ga-tip-good .ga-tip-ico { background: rgba(125, 255, 154, .16); color: #9dffb4; box-shadow: inset 0 0 0 1px rgba(157, 255, 180, .35); }
.ga-tip-good .ga-tip-timer { background: linear-gradient(90deg, rgba(125, 255, 154, .85), rgba(125, 255, 154, .2)); }
.ga-tip-good .ga-tip-ok { border-color: rgba(157, 255, 180, .5); background: rgba(125, 255, 154, .16); }
.ga-touch-mode .ga-tip { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 20px); width: min(460px, calc(100% - 240px)); font-size: 12.5px; padding: 10px 34px 12px 10px; }
.ga-touch-mode .ga-tip.ga-tip-show { transform: translate(-50%, 0); }
.ga-touch-mode .ga-tip-ico { flex-basis: 32px; width: 32px; height: 32px; }
@media (max-height: 420px) { .ga-touch-mode .ga-tip-text ul { display: none; } }

/* Торговля: карточки запросов */
.ga-trade-box { max-width: 720px; }
.ga-trade-offers { margin-bottom: 12px; }
.ga-trade-card { padding: 10px 12px 12px; border-radius: 12px; border: 1px solid rgba(160, 220, 255, .3); background: rgba(111, 216, 255, .07); }
.ga-trade-in { border-color: rgba(125, 255, 154, .55); background: rgba(125, 255, 154, .08); box-shadow: 0 0 18px rgba(125, 255, 154, .15); }
.ga-trade-card-h { font-weight: 700; margin-bottom: 8px; }
.ga-trade-card-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ga-trade-h2 { font-weight: 700; margin: 4px 0 8px; color: #cfe3ff; }
.ga-trade-ic { width: 24px; text-align: center; font-size: 15px; }
.ga-trade-row > span.ga-trade-ic { flex: 0 0 24px; display: block; }
.ga-tip.ga-tip-hidden { opacity: 0 !important; visibility: hidden !important; }

/* ---------- 29.09, вечер (3): баланс с «Пополнить», блок «Заправка» ---------- */
.ga-bal-coins { flex-wrap: wrap; column-gap: 10px; row-gap: 4px; }
.ga-bal-sum { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ga-bal-sum .ga-coin { flex: 0 0 24px; width: 24px; height: 24px; display: inline-block; }
.ga-bal-coins .ga-bal-note { color: #a9bdd8; font-size: 12px; }
.ga-hud-pause-bal .ga-bal-coins { justify-content: center; }
.ga-topup {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 16px;
    background: linear-gradient(180deg, #ffd45a, #f0a92b); color: #3a2600 !important;
    font-size: 12.5px; font-weight: 700; text-decoration: none !important; text-shadow: none;
    box-shadow: 0 2px 8px rgba(240, 169, 43, .35); pointer-events: auto;
}
.ga-topup:hover { filter: brightness(1.08); }
.ga-room-fuel { border-color: rgba(255, 180, 84, .55) !important; }
.ga-fuel-gauge { margin: 10px 0 12px; }
.ga-fuel-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.ga-fuel-top span { color: #a9bdd8; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.ga-fuel-top .ga-coin { width: 16px; height: 16px; }
.ga-fuel .ga-bal-bar { display: block; height: 12px; border-radius: 6px; }
.ga-fuel-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ga-fuel-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; }
.ga-fuel-btn b { font-size: 15px; }
.ga-fuel-btn small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; opacity: .85; }
.ga-fuel-btn .ga-coin { width: 14px; height: 14px; }
.ga-fuel-btn:disabled { opacity: .4; }
.ga-fuel-own { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ga-fuel-own .ga-coin { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 560px) { .ga-fuel-acts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 29.09, вечер (4): виртуальные пилоты, NPC-торговец ---------- */
.ga-ghost-name { color: #c9bbff; font-weight: 600; }
.ga-npc .ga-panel-box { border-color: rgba(190, 170, 255, .45); }
.ga-npc-note { margin-bottom: 10px; }
.ga-npc-est { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: #cfe3ff; }
.ga-npc-est .ga-coin { width: 16px; height: 16px; vertical-align: -3px; }
.ga-npc-est em { font-style: normal; font-weight: 600; }
.ga-npc-est em.ga-ok { color: #9dffb4; }
.ga-npc-est em.ga-err { color: #ffb08a; }

/* ---------- 29.09, вечер (5): редактор обмена — ползунки и отметки ---------- */
.ga-trade-h.ga-trade-big { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: #fff; margin: 2px 0 6px; }
.ga-trade-tip { font-size: 12px; color: #a9bdd8; margin: -2px 0 6px; }
.ga-trade-range {
    flex: 0 0 96px; width: 96px; height: 18px; margin: 0; accent-color: #ffb454; cursor: pointer;
}
.ga-trade-range:disabled { opacity: .3; cursor: default; }
.ga-trade-give.ga-on, .ga-trade-want.ga-on { background: rgba(111, 216, 255, .12); box-shadow: inset 0 0 0 1px rgba(143, 227, 255, .45); }
.ga-trade-want { cursor: pointer; user-select: none; }
.ga-trade-want:hover { background: rgba(255, 255, 255, .08); }
.ga-pick {
    flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border-radius: 6px;
    border: 2px solid rgba(160, 220, 255, .55); background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.ga-pick i { width: 10px; height: 6px; border-left: 2.5px solid transparent; border-bottom: 2.5px solid transparent; transform: rotate(-45deg) translate(1px, -1px); }
.ga-trade-want.ga-on .ga-pick { background: #39c0ff; border-color: #bff0ff; }
.ga-trade-want.ga-on .ga-pick i { border-color: #04101c; }
.ga-trade-row .ga-shop-qty { flex: 0 0 84px; width: 84px; }
@media (max-width: 560px) { .ga-trade-range { flex-basis: 70px; width: 70px; } }

/* Наценка к курсу КС в окне торговли (29.09) */
.ga-markup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 10px; font-size: 13px; color: #cfe3ff; }
.ga-markup .ga-markup-inp { width: 72px; text-align: center; }
.ga-markup-their { color: #a9bdd8; }
.ga-markup-their b { color: #ffe08a; font-weight: 600; }
.ga-npc-est em.ga-warn { color: #ffd98a; }

/* ======================================================================
   29.09, шаг 11: трюм и бак ровера, прочность, стройка, мастерская, верфь, пушки,
   выгода относительно курса станции, «пилот думает…»
   ====================================================================== */
.ga-bal-label { width: auto; min-width: 64px; }
.ga-bal-cargo .ga-bal-bar i { background: linear-gradient(90deg, #7a8cff, #b9c4ff); }
.ga-bal-rhold .ga-bal-bar i { background: linear-gradient(90deg, #6fcf6f, #b8f5a8); }
.ga-bal-hull .ga-bal-bar i { background: linear-gradient(90deg, #a0a8b4, #e6ebf0); }
.ga-bal-row.ga-full b { color: #ff9a80; }
.ga-bal-items { margin-top: 6px; }
.ga-res-cargo i b { background: linear-gradient(90deg, #7a8cff, #b9c4ff); }
.ga-res-rhold i b { background: linear-gradient(90deg, #6fcf6f, #b8f5a8); }
.ga-res-hull i b { background: linear-gradient(90deg, #a0a8b4, #e6ebf0); }
.ga-res-row em { min-width: 44px; white-space: nowrap; }

/* Значок строительного блока — кубик цвета материала */
.ga-blk {
    display: inline-block; flex: none; width: 26px; height: 26px; border-radius: 5px; position: relative;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
    border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.ga-blk-slab { clip-path: inset(64% 0 0 0 round 0 0 4px 4px); } /* 02.10: плита — нижняя полоска, значок не сдвигается */
.ga-blk-wedge { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.ga-blk-stairs { clip-path: polygon(0 100%, 0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%); }
.ga-blk-glass { opacity: 1; background: linear-gradient(135deg, rgba(255, 255, 255, .55) 0 18%, color-mix(in srgb, var(--c) 22%, transparent) 18% 100%); border-color: color-mix(in srgb, var(--c) 85%, #fff); box-shadow: none; } /* 02.10: прозрачнее */
.ga-blk-fence { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 10px); box-shadow: none; }
.ga-blk-lamp, .ga-blk-crystal { box-shadow: 0 0 10px var(--c); }

/* Выгода относительно курса космической станции */
.ga-vs { flex-basis: 100%; margin-top: 6px; font-size: 13px; font-weight: 600; }
.ga-vs-good { color: #7dffa0; }
.ga-vs-bad { color: #ff6d6d; }
.ga-vs-eq { color: #cfe3ff; font-weight: 400; }

/* «Пилот думает…» — три мигающие точки */
.ga-typing { display: inline-flex; align-items: center; gap: 2px; color: #a9bdd8; font-size: 13px; font-style: italic; padding: 6px 2px; }
.ga-typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ga-typing 1.2s infinite; }
.ga-typing i:first-of-type { margin-left: 4px; }
.ga-typing i:nth-of-type(2) { animation-delay: .2s; }
.ga-typing i:nth-of-type(3) { animation-delay: .4s; }
@keyframes ga-typing { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* Комнаты станции: новые */
.ga-room-blocks { background: linear-gradient(135deg, rgba(160, 70, 50, .4), rgba(10, 20, 40, .6)); }
.ga-room-workshop { background: linear-gradient(135deg, rgba(90, 110, 130, .45), rgba(10, 20, 40, .6)); }
.ga-room-yard { background: linear-gradient(135deg, rgba(60, 80, 190, .45), rgba(10, 20, 40, .6)); border-color: rgba(150, 170, 255, .55) !important; }

/* Мастерская */
.ga-craft-recipe { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; color: #cfe3ff; }
.ga-craft-recipe > span { display: inline-flex; align-items: center; gap: 3px; }
.ga-craft-recipe .ga-el { width: 22px; height: 22px; font-size: 11px; }
.ga-craft-recipe .ga-miss { color: #ff8a70; }
.ga-workshop .ga-panel-box { max-width: 760px; }

/* Верфь */
.ga-yard { display: grid; grid-template-columns: minmax(260px, 1.2fr) 1fr; gap: 12px; align-items: start; }
.ga-yard-view { position: relative; height: 240px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d3050, #070b14); }
.ga-yard-canvas { width: 100%; height: 100%; display: block; }
.ga-yard-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ga-yard-title small { font-size: 12px; font-weight: 400; color: #a9bdd8; }
.ga-yard-cmp { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.ga-yard-cmp td, .ga-yard-cmp th { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.ga-yard-cmp th { color: #a9bdd8; font-weight: 400; }
.ga-yard-cmp b { color: #e8f1ff; }
.ga-yard-cmp b.ga-good { color: #9dffb4; }
.ga-yard-cmp b.ga-bad { color: #ff9d9d; }
/* 30.09: вкладки кораблей верфи */
.ga-yard-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ga-yard-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(160, 220, 255, .22); color: #e8f1ff; font: inherit;
}
.ga-yard-tab b { font-size: 15px; }
.ga-yard-tab small { font-size: 12px; color: #a9bdd8; display: inline-flex; align-items: center; gap: 4px; }
.ga-yard-tab small .ga-coin { width: 14px; height: 14px; }
.ga-yard-tab:hover { background: rgba(160, 220, 255, .1); }
.ga-yard-tab.active { background: rgba(63, 184, 255, .18); border-color: #3fb8ff; box-shadow: 0 0 0 1px #3fb8ff inset; }
.ga-yard-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ga-yard-acts .ga-coin { width: 18px; height: 18px; vertical-align: -4px; }
@media (max-width: 640px) { .ga-yard { grid-template-columns: 1fr; } .ga-yard-view { height: 190px; } }

/* Стройка: прицел и полоска блоков */
.ga-hud-cross.ga-cross-build { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-color: rgba(125, 255, 160, .9); }
.ga-hotbar {
    position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
    display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(4, 10, 20, .62);
    pointer-events: auto; max-width: calc(100% - 24px); overflow-x: auto;
}
.ga-hot {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 58px; padding: 4px 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; font-size: 10px;
}
.ga-hot small { position: absolute; left: 4px; top: 2px; opacity: .6; }
.ga-hot b { font-size: 12px; font-variant-numeric: tabular-nums; }
.ga-hot span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 54px; color: #cfe3ff; }
.ga-hot.ga-on { border-color: #7dff9a; background: rgba(125, 255, 154, .15); box-shadow: 0 0 10px rgba(125, 255, 154, .35); }
.ga-hot.ga-empty { opacity: .45; }
.ga-hot-rot { align-self: center; padding: 0 8px; color: #cfe3ff; font-size: 12px; white-space: nowrap; }
/* Телефон: внизу по центру, между джойстиком и кнопками; без подписей */
.ga-touch-mode .ga-hotbar { bottom: 8px; left: 40%; max-width: 44%; padding: 4px; }
.ga-touch-mode .ga-hot { width: 40px; padding: 3px 1px; }
.ga-touch-mode .ga-hot span:last-child, .ga-touch-mode .ga-hot small, .ga-touch-mode .ga-hot-rot { display: none; }
.ga-touch-mode .ga-hot .ga-blk { width: 22px; height: 22px; }

/* Сенсорные кнопки: стройка, пушки */
.ga-tbtn-build { margin-bottom: 6px; }
.ga-tbtn-fire { background: rgba(255, 80, 50, .45); border-color: #ffb09a; }

/* ---------- 30.09, вечер: чёрные полосы прокрутки ---------- */
.ga-app, .ga-app *, [class^="ga-"], [class^="ga-"] * { scrollbar-color: #000 rgba(0, 0, 0, .35); scrollbar-width: thin; }
.ga-app ::-webkit-scrollbar, [class^="ga-"]::-webkit-scrollbar, [class^="ga-"] ::-webkit-scrollbar { width: 10px; height: 10px; background: rgba(0, 0, 0, .35); }
.ga-app ::-webkit-scrollbar-track, [class^="ga-"] ::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35); }
.ga-app ::-webkit-scrollbar-thumb, [class^="ga-"]::-webkit-scrollbar-thumb, [class^="ga-"] ::-webkit-scrollbar-thumb {
    background: #000; border-radius: 6px; border: 2px solid rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.ga-app ::-webkit-scrollbar-thumb:hover, [class^="ga-"] ::-webkit-scrollbar-thumb:hover { background: #111; }
.ga-app ::-webkit-scrollbar-corner, [class^="ga-"] ::-webkit-scrollbar-corner { background: #000; }

/* ---------- 02.10: левый блок — подпись слева, значение справа; онлайн только админу ---------- */
.ga-hud-stats { white-space: normal; min-width: 170px; }
.ga-st-title { white-space: nowrap; font-weight: 700; }
.ga-st { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; white-space: nowrap; }
.ga-st > b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.ga-st-sub > span { padding-left: 10px; opacity: .85; }
.ga-st-online { margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(255, 255, 255, .15); color: #bfe8ff; }
.ga-hud-left { align-items: stretch; }
.ga-res-coins { justify-content: flex-end; }
.ga-res-coins em { text-align: right; }
.ga-touch-mode .ga-hud-stats { min-width: 150px; }

/* ---------- 02.10: iPhone — без выделения текста и плашки «Скопировать / Найти / Перевести» ---------- */
.ga-stage, .ga-stage * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
.ga-stage input, .ga-stage textarea, .ga-stage select, .ga-stage [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}
html.ga-noscroll, html.ga-noscroll body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.ga-stage canvas { -webkit-touch-callout: none; -webkit-user-select: none; }

/* ---------- 02.10: автопилот — выбор цели ---------- */
.ga-ap-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 24px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(125, 255, 154, .55);
    background: rgba(6, 22, 16, .9);
    pointer-events: auto;
    z-index: 30;
}
.ga-ap-menu-title { font-weight: 700; color: #c9ffd6; text-align: center; margin-bottom: 2px; }
.ga-ap-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
    color: #eaf6ff;
    font: 600 14px system-ui, -apple-system, sans-serif;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}
.ga-ap-item:hover { background: rgba(125, 255, 154, .18); }
.ga-ap-item kbd { min-width: 20px; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .18); font: 700 12px ui-monospace, monospace; text-align: center; }
.ga-ap-item small { flex-basis: 100%; font-weight: 400; font-size: 11px; color: #ffb4a0; }
.ga-ap-item.ga-dim { opacity: .6; }
.ga-ap-cancel { justify-content: center; background: transparent; }
.ga-touch-mode .ga-ap-item { padding: 11px 14px; font-size: 15px; }

/* ---------- 02.10: подсказки на телефоне — иконки кнопок вместо клавиш ---------- */
.ga-tip-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 1px;
    vertical-align: -5px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .14);
}
.ga-tip-key .ga-ico { width: 14px; height: 14px; }

/* ---------- 02.10: телефон — щит в верхнем ряду, «следующий блок» над полоской блоков ---------- */
.ga-touch-nextblk {
    position: absolute;
    left: 40%;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    pointer-events: none;
}
.ga-touch-nextblk .ga-tbtn { pointer-events: auto; min-width: 46px; height: 40px; border-radius: 20px; }
.ga-touch-nextblk .ga-ico { width: 22px; height: 22px; }
/* 02.10: в верхнем ряду теперь 4 кнопки (щит) — мини-карта левее */
.ga-touch-mode .ga-map-mini { right: calc(240px + env(safe-area-inset-right, 0px)); }
/* Меню автопилота на телефоне — компактно, в две колонки */
.ga-touch-mode .ga-ap-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; width: min(560px, calc(100% - 32px)); padding: 10px; }
.ga-touch-mode .ga-ap-menu-title, .ga-touch-mode .ga-ap-cancel { grid-column: 1 / -1; }
.ga-touch-mode .ga-ap-item { padding: 9px 12px; font-size: 14px; }
.ga-touch-mode .ga-ap-item small { font-size: 10px; }

/* ---------- 02.10, после обеда ---------- */
/* Баланс: сумма и монета — одним куском у правого края (монета вплотную к цифре) */
.ga-res-row.ga-res-coins { display: flex; justify-content: flex-end; }
.ga-coin-sum { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ga-res-row.ga-res-coins .ga-coin-sum em { min-width: 0 !important; width: auto; flex: none; text-align: right; margin: 0; padding: 0; }
.ga-coin-sum .ga-coin { flex: none; margin: 0; }
/* Телефон: числа онлайн вверху больше нет — карта и кнопки выше; компас уже, левее карты */
.ga-touch-mode .ga-touch-top { top: calc(8px + env(safe-area-inset-top, 0px)); }
.ga-touch-mode .ga-map-mini { top: calc(8px + env(safe-area-inset-top, 0px)); }
.ga-touch-mode .ga-hud-auto { top: calc(44px + env(safe-area-inset-top, 0px)); }
.ga-ap-item small.ga-ap-note { color: #a9e8b8; }
.ga-res-row.ga-res-coins > span.ga-coin-sum { width: auto; text-align: right; font-size: inherit; }
