
    :root {
      --sodium: #f2a541;
      --sodium-dim: rgba(242, 165, 65, 0.35);
      --bone: #e9e3d3;
      --bone-dim: #9a968b;
      --blood: #c8352a;
      --bile: #8fbf4d;
      --steel: #6fb3e0;
      --panel: rgba(14, 15, 16, 0.78);
      --line: rgba(233, 227, 211, 0.14);
      --display: 'Russo One', 'Impact', 'Arial Black', sans-serif;
      --body: 'PT Sans Narrow', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    }
    * { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* iOS не раздувает текст в горизонтальном режиме */
    html, body { margin: 0; height: 100%; overflow: hidden; background: #050607; font-family: var(--body); color: var(--bone); user-select: none; -webkit-user-select: none; }
    canvas#gameCanvas { display: block; position: fixed; left: 0; top: 0; cursor: none; } /* размер в px задаёт resizeCanvas() */

    #hud { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
    body.playing #hud, body.paused #hud, body.dying #hud, body.levelup #hud { opacity: 1; }

    /* ----- Миникарта ----- */
    #minimapWrap {
      position: absolute; top: 18px; left: 18px; width: 172px; height: 172px;
      border-radius: 50%; background: rgba(8, 9, 10, 0.8);
      box-shadow: 0 0 0 2px rgba(233,227,211,0.18), 0 0 0 6px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,.6);
      overflow: hidden;
    }
    #minimap { width: 100%; height: 100%; display: block; }
    /* ----- Пинг ----- */
    #pingBox { position: absolute; top: 198px; left: 18px; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px;
      background: var(--panel); font: 13px var(--display); color: var(--bone-dim); border-radius: 3px; }
    /* ----- Режим «Спасение»: строка с раненым, спасёнными и потерями ----- */
    #rescueBox { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); padding: 5px 14px; background: var(--panel);
      font: 15px var(--display); color: var(--bone); border-left: 3px solid #7fd46a; white-space: nowrap; text-shadow: 0 1px 3px #000; }
    html.touch #rescueBox { top: calc(env(safe-area-inset-top, 0px) + 52px); font-size: 12px; padding: 3px 10px; }
    /* ----- Чат кооператива ----- */
    #chatBox { position: fixed; left: 18px; bottom: 132px; width: min(380px, 60vw); z-index: 30; pointer-events: none; }
    #chatLog { display: flex; flex-direction: column; gap: 2px; max-height: 190px; overflow: hidden; justify-content: flex-end; }
    #chatLog div { font: 15px var(--body); color: var(--bone); text-shadow: 0 1px 3px #000, 0 0 2px #000; padding: 1px 6px; background: rgba(0,0,0,.35);
      border-radius: 3px; align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; transition: opacity .6s; }
    #chatLog div b { color: #8fc6ff; font-weight: 700; }
    #chatLog div.me b { color: #f2c641; }
    #chatLog div.old { opacity: 0; }
    #chatBox.open #chatLog div.old { opacity: .85; }
    #chatBox.open #chatLog { max-height: 260px; }
    #chatForm { display: flex; gap: 6px; margin-top: 6px; pointer-events: auto; }
    #chatForm[hidden] { display: none; }
    #chatInput { flex: 1; min-width: 0; font: 16px var(--body); color: var(--bone); background: rgba(14,15,16,.92); border: 1px solid var(--line);
      border-left: 3px solid var(--sodium); padding: 7px 10px; outline: none; user-select: text; -webkit-user-select: text; }
    #chatQuick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; pointer-events: auto; }
    #chatQuick[hidden] { display: none; }
    #chatQuick .seg { font-size: 13px; padding: 5px 9px; }
    #btnChat { width: 38px; height: 38px; right: calc(env(safe-area-inset-right, 0px) + 56px); top: calc(env(safe-area-inset-top, 0px) + 10px); font-size: 17px; }
    html.touch #chatBox { left: calc(env(safe-area-inset-left, 0px) + 10px); bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 122px); width: min(300px, 46vw); }
    html.touch #chatLog div { font-size: 12px; }
    html.touch #chatBox.open { left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 8px); width: min(460px, 92vw); z-index: 60; }
    html.touch #chatBox.open #chatLog div { font-size: 14px; }
    #pingBox::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #555; }
    #pingBox.good::before { background: #5fd46a; } #pingBox.good { color: var(--bone); }
    #pingBox.mid::before { background: #e8c547; } #pingBox.mid { color: #e8c547; }
    #pingBox.bad::before { background: #e0503f; } #pingBox.bad { color: #ff8a7a; }

    /* ----- Статистика ----- */
    #stats { position: absolute; top: 18px; right: 20px; text-align: right; text-shadow: 0 2px 6px #000; }
    #stats .wave { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; line-height: 1; }
    #stats .wave-label { font: 700 18px var(--body); color: var(--bone-dim); letter-spacing: .04em; }
    #waveNum { font: 52px var(--display); color: var(--sodium); }
    #zombiesLeft { font: 700 16px var(--body); color: var(--blood); margin: 2px 0 10px; min-height: 18px; }
    .stat-row { display: flex; justify-content: flex-end; gap: 12px; font-size: 17px; line-height: 1.35; color: var(--bone-dim); }
    .stat-row b { font: 18px var(--display); color: var(--bone); min-width: 64px; }

    /* ----- Баннер волны ----- */
    #waveBanner {
      position: absolute; top: 18%; left: 50%; transform: translate(-50%, -10px);
      text-align: center; opacity: 0; transition: opacity .35s, transform .35s; text-shadow: 0 4px 18px #000;
    }
    #waveBanner.show { opacity: 1; transform: translate(-50%, 0); }
    #bannerTitle { font: clamp(40px, 7vw, 84px) var(--display); color: var(--bone); letter-spacing: .02em; line-height: 1; }
    #bannerTitle.danger { color: var(--blood); }
    #bannerSub { font: 700 20px var(--body); color: var(--sodium); margin-top: 8px; }

    /* ----- Панель оружия ----- */
    #weaponPanel {
      position: absolute; right: 20px; bottom: 22px; min-width: 220px; padding: 12px 16px 12px 18px;
      background: var(--panel); border-left: 3px solid var(--sodium);
      clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
      text-align: right;
    }
    #wpName { font: 700 17px var(--body); color: var(--bone-dim); }
    #wpAmmo { font: 44px var(--display); line-height: 1.05; color: var(--bone); }
    #wpAmmo small { font-size: 22px; color: var(--bone-dim); }
    #wpAmmo.low { color: var(--blood); }
    #wpHint { font: 15px var(--body); color: var(--bone-dim); margin-top: 2px; min-height: 18px; }
    #wpHint.aim { color: var(--sodium); }
    #reloadBar { height: 3px; background: rgba(255,255,255,.1); margin-top: 6px; display: none; }
    #reloadBar i { display: block; height: 100%; width: 0; background: var(--bone); }

    /* ----- Нижний док ----- */
    #bottomDock { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }

    #pickupPrompt {
      display: none; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
      background: var(--panel); font: 700 17px var(--body); color: var(--bone);
    }
    #pickupPrompt.show { display: flex; }
    #buildPrompt { display: none; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; background: var(--panel); border: 1px solid rgba(201,138,74,.6); pointer-events: auto; }
    #buildPrompt.show { display: flex; }
    #buildInfo { font: 700 15px var(--body); color: var(--bone); }
    #buildInfo.bad { color: #ff8a7a; }
    .bp-btn { font: 700 15px var(--body); color: var(--bone); background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
    .bp-btn kbd { min-width: 0; height: 20px; font-size: 11px; }
    .bp-btn.ok { background: rgba(127,212,106,.2); border-color: rgba(127,212,106,.7); }
    .bp-btn:disabled { opacity: .4; cursor: default; }
    html.touch #buildPrompt { order: 0; padding: 5px 6px 5px 10px; }
    html.touch .bp-btn { padding: 9px 14px; font-size: 16px; }
    html.touch #buildInfo { font-size: 13px; }
    kbd {
      display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
      font: 15px var(--display); color: #16140f; background: var(--sodium); border-radius: 3px;
      box-shadow: 0 2px 0 #8a5a1a;
    }

    #pubgInventory { display: flex; gap: 6px; pointer-events: auto; }
    .inv-slot {
      width: 96px; height: 66px; padding: 5px 8px; position: relative; cursor: pointer;
      background: var(--panel); border-top: 2px solid var(--line);
      display: flex; flex-direction: column; justify-content: space-between;
      transition: transform .12s, border-color .12s, background .12s;
    }
    .inv-slot:hover { background: rgba(30, 30, 30, 0.85); }
    .inv-slot.empty > * { opacity: .4; }
    .inv-slot.active { border-top-color: var(--sodium); transform: translateY(-4px); background: rgba(40, 30, 16, 0.88); }
    .inv-slot .slot-key { position: absolute; top: 4px; right: 7px; font: 13px var(--display); color: var(--bone-dim); }
    .inv-slot.active .slot-key { color: var(--sodium); }
    .inv-slot .slot-name { font: 700 13px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; order: 2; }
    .inv-slot .slot-icon { order: 1; height: 24px; width: 60px; object-fit: contain; object-position: left center; }
    .inv-slot .slot-info { order: 3; }
    #wpIcon { display: block; height: 44px; width: 110px; margin-left: auto; object-fit: contain; object-position: right center; }
    .inv-slot .slot-info { font: 15px var(--display); color: var(--bone-dim); align-self: flex-end; }
    .inv-slot.active .slot-info { color: var(--bone); }

    #sideHud { width: min(620px, 60vw); display: flex; flex-direction: column; gap: 3px; }
    .bar { position: relative; height: 16px; background: rgba(0,0,0,.72); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
    .bar.armor { height: 6px; display: none; }
    .bar.armor.on { display: block; }
    .bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .12s ease-out; }
    #hpGhost { background: #f0e0c8; transition: width .6s ease-in .25s; }
    #hpFill { background: linear-gradient(180deg, #a6d465, #6e9a3a); }
    #hpFill.mid { background: linear-gradient(180deg, #e8c547, #b8912a); }
    #hpFill.low { background: linear-gradient(180deg, #e0503f, #9c2519); }
    #armorFill { background: linear-gradient(180deg, #8fcaf0, #3f84b5); }
    .bar-text { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 8px; font: 13px var(--display); color: #fff; text-shadow: 0 1px 2px #000; gap: 14px; }
    #sideHud.hit .bar:not(.armor):not(.xp) { animation: shake .25s; }
    .bar.xp { height: 5px; overflow: visible; margin-top: 1px; }
    #xpFill { background: var(--sodium); }
    #lvlText { position: absolute; right: 0; top: 7px; font: 12px var(--display); color: var(--sodium); text-shadow: 0 1px 3px #000; }
    #perkChips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 220px; margin: 8px 0 0 auto; }
    .chip { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 15px; background: var(--panel); }
    .chip b { position: absolute; right: 1px; bottom: -2px; font: 10px var(--display); color: var(--sodium); }

    /* ----- Выбор перка ----- */
    #levelUpScreen .screen-inner { width: min(760px, 94vw); text-align: center; }
    #lvlTitle { color: var(--sodium); }
    #perkCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 14px; }
    .perk-card {
      position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px 14px;
      background: rgba(20, 20, 20, 0.92); color: var(--bone); border: 0; border-top: 3px solid var(--line); cursor: pointer;
      font-family: var(--body); transition: transform .12s, border-color .12s, background .12s; touch-action: manipulation;
    }
    .perk-card:hover, .perk-card:focus-visible { transform: translateY(-4px); border-top-color: var(--sodium); background: rgba(40, 30, 16, 0.95); outline: none; }
    .perk-card:active { transform: translateY(0); }
    .pk-key { position: absolute; top: 6px; right: 9px; font: 13px var(--display); color: var(--bone-dim); }
    .pk-icon { font-size: 34px; line-height: 1; }
    .pk-name { font: 19px var(--display); }
    .pk-desc { font-size: 15px; color: var(--bone-dim); line-height: 1.25; min-height: 38px; }
    .pk-rank { font-size: 11px; letter-spacing: 2px; color: var(--sodium); }
    .pk-rank i { font-style: normal; color: var(--bone); animation: blink 1s steps(2) infinite; }
    @keyframes blink { 50% { opacity: .2; } }
    #lvlOwned { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; min-height: 28px; }
    html.touch .pk-key { display: none; }
    @media (max-height: 500px) {
      #perkCards { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
      .perk-card { padding: 10px 8px 8px; gap: 3px; }
      .pk-icon { font-size: 26px; }
      .pk-name { font-size: 15px; }
      .pk-desc { font-size: 12px; min-height: 0; }
    }
    html.touch #perkChips { display: none; }
    html.touch .bar.xp { height: 4px; }
    body.levelup #waveBanner { opacity: 0; }
    #levelUpScreen { background: radial-gradient(ellipse at center, rgba(8,7,5,.82), rgba(3,3,4,.95)); }
    html.touch #lvlText { top: 5px; font-size: 10px; }
    @keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

    /* ----- Экраны ----- */
    .screen {
      position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
      background: radial-gradient(ellipse at center, rgba(5,6,8,.55), rgba(3,3,4,.92));
      z-index: 20;
    }
    .screen.show { display: flex; }
    .screen-inner { width: min(560px, 92vw); padding: 8px; }
    .title { font: clamp(46px, 8vw, 84px) var(--display); line-height: .95; margin: 0; color: var(--bone); text-shadow: 0 6px 30px rgba(0,0,0,.8); }
    .title.red { color: var(--blood); }
    .subtitle { font: 700 20px var(--body); color: var(--sodium); margin: 12px 0 26px; }
    .controls { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 17px; color: var(--bone-dim); margin-bottom: 28px; align-items: center; }
    .controls kbd { justify-self: start; }
    .btn {
      font: 20px var(--display); color: #16140f; background: var(--sodium); border: 0; padding: 14px 30px;
      cursor: pointer; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
      transition: filter .15s, transform .1s;
    }
    .btn:hover { filter: brightness(1.12); }
    .btn:active { transform: translateY(1px); }
    .btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
    .btn.ghost { color: var(--bone); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
    .btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
    .btn.small { font-size: 16px; padding: 9px 18px; }
    /* Экраны с длинным содержимым прокручиваются, а не обрезаются сверху */
    .screen { align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .screen-inner { margin: auto; }
    /* Две колонки в выборе карт и режимов — их стало много */
    .picker.two { grid-template-columns: 1fr 1fr; }
    .picker.two .pick-text small { font-size: 12.5px; }
    /* Ник */
    .nick-box { margin: 0 0 18px; }
    .nick-box label { display: block; font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 6px; }
    .nick-row { display: flex; gap: 8px; }
    .nick-row input {
      flex: 1; min-width: 0; max-width: 260px; font: 18px var(--display); color: var(--bone); background: rgba(20,20,18,.85);
      border: 1px solid var(--line); border-left: 3px solid var(--sodium); padding: 8px 12px; outline: none;
      user-select: text; -webkit-user-select: text;
    }
    .nick-row input:focus { border-color: var(--sodium); }
    .nick-status { font-size: 14px; color: var(--bone-dim); margin-top: 5px; min-height: 18px; }
    .nick-status.err { color: #ff6a5a; }
    .nick-status.ok { color: var(--bile); }
    /* Онлайн */
    .online { margin-top: 16px; font-size: 15px; color: var(--bone-dim); }
    .online .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #555; margin-right: 7px; vertical-align: 1px; }
    .online.live .dot { background: #5fd46a; box-shadow: 0 0 8px #5fd46a; animation: pulse 2s infinite; }
    .online b { color: var(--bone); }
    .online-list { margin-top: 6px; display: grid; gap: 2px; font-size: 14px; }
    .online-list span { color: var(--bone); }
    @keyframes pulse { 50% { opacity: .45; } }
    /* Качество графики */
    .quality { margin-top: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--bone-dim); }
    .seg { font: 700 14px var(--body); color: var(--bone-dim); background: rgba(20,20,18,.8); border: 1px solid var(--line); padding: 5px 10px; cursor: pointer; }
    .seg.on { color: #16140f; background: var(--sodium); border-color: var(--sodium); }
    /* Топ */
    #settingsScreen { background: rgba(5,6,8,.97); z-index: 26; }
    #lockerScreen { background: rgba(5,6,8,.97); z-index: 25; }
    .pay-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.75); z-index: 30; }
    .pay-modal.show { display: flex; }
    .pay-box { width: min(520px, 92vw); background: #141414; border: 1px solid var(--sodium-dim); padding: 20px 22px; max-height: 94vh; overflow-y: auto; }
    .pay-title { font: 24px var(--display); margin: 0 0 10px; }
    .pay-steps { padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--bone); }
    .pay-code { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
    .pay-code span { font: 28px var(--display); color: var(--sodium); letter-spacing: .12em; user-select: all; -webkit-user-select: all; }
    .pay-status { margin: 12px 0; font-size: 16px; color: var(--bone-dim); min-height: 22px; }
    .pay-status.ok { color: var(--bile); font-weight: 700; }
    .pay-fine { margin-top: 12px; font-size: 13px; color: var(--bone-dim); line-height: 1.35; }
    .locker-inner { width: min(980px, 95vw); }
    .lk-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
    .lk-tokens { font: 26px var(--display); color: #f2c641; }
    .lk-tabs { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
    .lk-tabs .seg { font-size: 16px; padding: 8px 16px; }
    .lk-body { display: grid; grid-template-columns: 230px 1fr; gap: 18px; margin-bottom: 16px; align-items: start; }
    .lk-side { position: sticky; top: 0; }
    #lkPreview { width: 220px; height: 220px; background: radial-gradient(circle, rgba(242,165,65,.12), rgba(0,0,0,0) 70%); border: 1px solid var(--line); }
    .lk-note { font-size: 14px; color: var(--bone-dim); margin-top: 8px; line-height: 1.35; }
    .lk-sec { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); margin: 4px 0 8px; }
    .lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 14px; }
    .lk-card { background: rgba(20,20,20,.75); border: 1px solid var(--line); padding: 8px; cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
    .lk-card:hover { border-color: rgba(242,165,65,.5); }
    .lk-card.on { border-color: var(--sodium); background: rgba(48,36,18,.85); }
    .lk-card.locked img { filter: grayscale(.7) brightness(.8); }
    .lk-card img { width: 100%; height: 64px; object-fit: contain; }
    .lk-card b { font: 14px var(--display); }
    .lk-card small { font-size: 12.5px; color: var(--bone-dim); line-height: 1.2; }
    .lk-card .price { color: #f2c641; font-weight: 700; }
    .lk-card .rub { color: #8fc6ff; font-weight: 700; }
    .fx-list { display: flex; flex-direction: column; gap: 1px; }
    .robot-card { max-width: 560px; font-size: 16px; line-height: 1.45; }
    .robot-stock { font-size: 18px; color: #8fc6ff; }
    .robot-stock b { font-family: var(--display); font-size: 22px; }
    .fx { font-style: normal; font-size: 11.5px; line-height: 1.2; }
    .fx.good { color: #8fd46a; } .fx.bad { color: #ff8a7a; }
    .lk-guns { display: grid; grid-template-columns: 170px 1fr; gap: 10px; }
    .lk-gunlist { display: flex; flex-direction: column; gap: 3px; max-height: 420px; overflow-y: auto; }
    .lk-gun { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(20,20,20,.7); border-left: 3px solid transparent; cursor: pointer; font-size: 14px; }
    .lk-gun img { width: 58px; height: 24px; object-fit: contain; }
    .lk-gun.on { border-left-color: var(--sodium); background: rgba(48,36,18,.85); }
    @media (max-width: 760px) { .lk-body { grid-template-columns: 1fr; } .lk-side { position: static; display: flex; gap: 10px; align-items: center; } #lkPreview { width: 120px; height: 120px; } .lk-guns { grid-template-columns: 120px 1fr; } }
    .settings-inner { width: min(520px, 92vw); }
    .vol-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 12px; align-items: center; margin: 14px 0; font-size: 18px; }
    .vol-row output { font-family: var(--display); color: var(--sodium); text-align: right; }
    .vol-row input[type=range] { width: 100%; accent-color: var(--sodium); height: 28px; }
    .settings-inner .quality { margin: 18px 0 22px; }
    #topScreen, #supportScreen, #coopScreen, #achScreen { background: rgba(5,6,8,.97); z-index: 25; }
    /* ----- Аккаунт ----- */
    #authScreen { background: rgba(5,6,8,.97); z-index: 27; }
    .auth-inner { width: min(420px, 92vw); }
    #authForm { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
    #authForm input { font: 18px var(--display); color: var(--bone); background: rgba(20,20,18,.85); border: 1px solid var(--line);
      border-left: 3px solid var(--sodium); padding: 9px 12px; outline: none; user-select: text; -webkit-user-select: text; }
    #authForm input:focus { border-color: var(--sodium); }
    .auth-msg { min-height: 20px; font-size: 15px; color: #ff8a7a; }
    .auth-msg.ok { color: #7fd46a; }
    .auth-note { font-size: 14px; color: var(--bone-dim); line-height: 1.4; }
    .acct-row { align-items: center; flex-wrap: wrap; }
    .acct-name { font: 19px var(--display); color: var(--bone); margin-right: 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .acct-name.guest { color: var(--bone-dim); }
    .acct-row .btn.small { padding: 6px 12px; font-size: 14px; }
    /* ----- Админ-панель ----- */
    #admScreen { background: rgba(5,6,8,.98); z-index: 27; }
    .adm-inner { width: min(760px, 94vw); }
    .adm-search input, .adm-card input, .adm-card select { font: 16px var(--body); color: var(--bone); background: rgba(20,20,18,.85);
      border: 1px solid var(--line); padding: 7px 10px; outline: none; user-select: text; -webkit-user-select: text; }
    #admScreen .adm-search input { width: 220px; border-left: 3px solid var(--sodium); text-transform: none; letter-spacing: normal; font: 17px var(--body); }
    .adm-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
    .adm-list .seg { font-size: 14px; }
    .adm-card { background: rgba(20,20,20,.7); border: 1px solid var(--line); padding: 12px 14px; display: none; }
    .adm-card.show { display: block; }
    .adm-card h3 { margin: 0 0 6px; font: 22px var(--display); color: var(--bone); }
    .adm-stats { font-size: 14px; color: var(--bone-dim); line-height: 1.5; margin-bottom: 10px; }
    .adm-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 7px 0; font-size: 14px; color: var(--bone-dim); }
    .adm-row > span:first-child { width: 120px; }
    .adm-row .btn.small { padding: 6px 12px; font-size: 14px; }
    .adm-owned { font-size: 13px; color: var(--bone-dim); max-height: 90px; overflow: auto; margin-top: 4px; }
    .adm-log { font-size: 13px; color: var(--bone-dim); line-height: 1.5; max-height: 50vh; overflow: auto; }
    .adm-log b { color: var(--bone); font-weight: 400; }
    .crown { filter: drop-shadow(0 0 3px rgba(242,198,65,.7)); }
    /* ----- Сезоны ----- */
    .season-tag { font-size: .55em; color: var(--sodium); vertical-align: middle; margin-left: 8px; }
    .top-season { font-size: 14px; color: var(--bone-dim); margin: -6px 0 10px; }
    .season-info b { color: var(--sodium); }
    .rejoin-hint button { margin-left: 8px; }
    .menu-row2 { margin-top: 10px; }
    .menu-gear { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: calc(env(safe-area-inset-right, 0px) + 22px); z-index: 2;
      width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 22px; cursor: pointer; line-height: 1; }
    .menu-gear:hover { border-color: var(--sodium); }
    .install-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(3,4,5,.78); display: grid; place-items: center; padding: 16px; }
    .install-overlay[hidden] { display: none; }
    .install-panel { width: min(440px, 94vw); background: #141414; border: 1px solid var(--sodium-dim); padding: 20px 22px;
      display: flex; flex-direction: column; gap: 12px; text-align: center; max-height: 92vh; overflow-y: auto; }
    .install-title { margin: 0; font: 22px var(--display); color: var(--bone); letter-spacing: .04em; }
    .install-note { margin: 0; font: 13px var(--body); line-height: 1.5; color: var(--bone-dim); }
    .install-panel .install-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 14px; text-decoration: none; }
    .install-sub { font: 400 12px var(--body); opacity: .7; letter-spacing: .02em; }
    .install-ver { font: 12px var(--body); color: var(--bone-dim); }
    .settings-sub { margin-top: 6px; }
    .settings-inner .controls { margin-bottom: 20px; font-size: 16px; }
    html.touch .settings-inner .controls.touch-only { display: grid; }
    .menu-row2 .btn { font-size: 16px; padding: 10px 18px; }
    .daily-info { margin-top: 8px; font-size: 15px; color: var(--bone-dim); min-height: 18px; }
    .daily-info b { color: var(--sodium); font-weight: 700; }
    /* Кооператив */
    .coop-inner { width: min(620px, 92vw); }
    .coop-inner p { font-size: 17px; color: var(--bone-dim); margin: 10px 0 18px; line-height: 1.4; }
    .coop-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
    #coopFF { font-size: 16px; padding: 9px 14px; }
    .coop-row input { width: 130px; font: 22px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); background: rgba(20,20,18,.85);
      border: 1px solid var(--line); border-left: 3px solid var(--steel); padding: 8px 12px; outline: none; user-select: text; -webkit-user-select: text; }
    #coopRegions { gap: 6px; }
    .coop-label { width: 100%; font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); }
    .coop-status { min-height: 26px; font-size: 18px; color: var(--bone); margin: 6px 0 16px; }
    .coop-status b { font-family: var(--display); color: var(--sodium); letter-spacing: .15em; font-size: 26px; }
    .btn:disabled { opacity: .45; cursor: default; filter: none; }
    /* Достижения */
    .ach-inner { width: min(900px, 94vw); }
    .ach-count { color: var(--bone-dim); margin: 10px 0 14px; font-size: 17px; }
    .ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 18px; }
    .ach { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: rgba(20,20,20,.7); border-left: 3px solid var(--line); opacity: .55; }
    .ach.on { opacity: 1; border-left-color: var(--sodium); background: rgba(48,36,18,.75); }
    .ach-icon { font-size: 26px; filter: grayscale(1); }
    .ach.on .ach-icon { filter: none; }
    .ach-text b { display: block; font: 16px var(--display); }
    .ach-text small { display: block; font-size: 13.5px; color: var(--bone-dim); line-height: 1.25; }
    .ach-prog { height: 4px; background: rgba(255,255,255,.1); margin-top: 5px; }
    .ach-prog i { display: block; height: 100%; background: var(--sodium); }
    #achToast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, calc(-100% - 24px)); z-index: 40; display: flex; gap: 12px; align-items: center;
      padding: 10px 18px 10px 12px; background: rgba(28,22,12,.95); border: 1px solid var(--sodium); transition: transform .35s; pointer-events: none; }
    #achToast.show { transform: translate(-50%, 0); }
    #achToast .at-icon { font-size: 28px; }
    #achToast small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sodium); }
    #achToast .at-name { font: 18px var(--display); color: var(--bone); }
    /* Топ: колонка «где» */
    .top-where { font-size: 14px; color: var(--bone-dim); }
    .top-team { line-height: 1.3; }
    .top-team .n { display: inline-block; margin-left: 6px; font-size: 13px; color: var(--bone-dim); white-space: nowrap; }
    .top-filters .seg { font-size: 15px; padding: 7px 12px; }
    .top-legend { font-size: 13px; color: var(--bone-dim); margin: -4px 0 10px; }
    /* ----- Пьедестал: первые трое — каменные статуи со свечением ----- */
    .podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 6px 0 16px; }
    .pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; --glow: 242,198,65; }
    .pod.p2 { --glow: 207,216,227; } .pod.p3 { --glow: 214,140,72; }
    .pod .statue { width: 100%; max-width: 150px; aspect-ratio: 1; image-rendering: auto; margin-bottom: 0;
      filter: drop-shadow(0 0 6px rgba(var(--glow),.9)) drop-shadow(0 0 16px rgba(var(--glow),.55)); animation: statueGlow 2.6s ease-in-out infinite; }
    .pod.p1 .statue { max-width: 170px; }
    @keyframes statueGlow { 50% { filter: drop-shadow(0 0 10px rgba(var(--glow),1)) drop-shadow(0 0 26px rgba(var(--glow),.75)); } }
    .pod-name { font: 17px var(--display); color: var(--bone); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
    .pod.p1 .pod-name { font-size: 20px; color: rgb(var(--glow)); }
    .pod-stats { font-size: 13px; color: var(--bone-dim); line-height: 1.3; min-height: 18px; }
    .pod-stats b { color: var(--bone); }
    .pod-stats span { font-size: 12px; }
    .pod-block { width: 100%; margin-top: 6px; display: grid; place-items: center; border-top: 3px solid rgb(var(--glow));
      background: linear-gradient(180deg, #5d5a55, #34322f); box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 0 18px rgba(var(--glow),.25); }
    .pod-block span { font: 30px var(--display); color: rgb(var(--glow)); text-shadow: 0 0 10px rgba(var(--glow),.8); }
    .pod.p1 .pod-block { height: 86px; } .pod.p2 .pod-block { height: 62px; } .pod.p3 .pod-block { height: 46px; }
    .pod.me .pod-name::after { content: ' (вы)'; color: var(--sodium); font-size: 13px; }
    .pod.empty { visibility: hidden; }
    @media (max-height: 500px), (max-width: 560px) { .pod .statue { max-width: 96px; } .pod.p1 .statue { max-width: 110px; } .pod-name { font-size: 14px; }
      .pod.p1 .pod-block { height: 54px; } .pod.p2 .pod-block { height: 40px; } .pod.p3 .pod-block { height: 30px; } .pod-block span { font-size: 22px; } }
    @media (max-width: 640px) { .top-opt { display: none; } }
    /* Полоса босса */
    #bossBar { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: min(520px, 60vw); text-align: center; opacity: 0; transition: opacity .3s; }
    #bossBar.show { opacity: 1; }
    #bossName { font: 20px var(--display); color: #e070ff; text-shadow: 0 2px 10px rgba(0,0,0,.9); letter-spacing: .04em; }
    #bossBar .bb { position: relative; height: 12px; margin-top: 4px; background: rgba(0,0,0,.7); border: 1px solid rgba(224,112,255,.5); }
    #bossFill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8a1ea8, #e070ff); transition: width .15s; }
    #bossArmor { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--steel); }
    html.touch #bossBar { top: calc(env(safe-area-inset-top, 0px) + 6px); width: 46vw; }
    html.touch #bossName { font-size: 13px; }
    html.touch #bossBar .bb { height: 7px; }
    /* Поддержка */
    .support-inner { width: min(620px, 92vw); }
    .support-inner p { font-size: 18px; line-height: 1.4; color: var(--bone); margin: 14px 0; }
    .support-list { margin: 0 0 20px; padding-left: 20px; color: var(--bone-dim); font-size: 17px; line-height: 1.5; }
    .support-soon { color: var(--bone-dim); font-size: 16px; margin-top: 10px; min-height: 20px; }
    .btn.gold { background: #f2c641; }
    a.btn { display: inline-block; text-decoration: none; }
    .menu-donate { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--bone-dim); text-decoration: none; border-bottom: 1px dashed rgba(233,227,211,.25); }
    .menu-donate:hover { color: var(--sodium); }
    .version-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--sodium); border: 1px solid var(--sodium-dim); border-radius: 3px; }
    .version-tag:empty { display: none; }
    .support-hint { margin-top: 12px; font-size: 16px; color: var(--bone-dim); }
    .support-hint a { color: var(--sodium); cursor: pointer; text-decoration: underline; }
    .top-inner { width: min(720px, 94vw); }
    .top-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
    .top-filters select { font: 16px var(--body); color: var(--bone); background: rgba(20,20,18,.9); border: 1px solid var(--line); padding: 7px 10px; }
    .top-table { width: 100%; border-collapse: collapse; font-size: 17px; margin-bottom: 18px; }
    .top-table th { text-align: left; font: 700 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); padding: 6px 8px; border-bottom: 1px solid var(--line); }
    .top-table td { padding: 7px 8px; border-bottom: 1px solid rgba(233,227,211,.06); }
    .top-table td.num { font-family: var(--display); text-align: right; }
    .top-table tr.me td { color: var(--sodium); background: rgba(242,165,65,.08); }
    .top-table tr:nth-child(2) td:first-child { color: #f2c641; } .top-table tr:nth-child(3) td:first-child { color: #c9c9c9; } .top-table tr:nth-child(4) td:first-child { color: #c98a4a; }
    .top-empty { color: var(--bone-dim); padding: 18px 0; }
    .rank-line { margin-top: 14px; font-size: 18px; color: var(--bone); min-height: 22px; }
    .rank-line b { color: var(--sodium); font-family: var(--display); }
    .best { margin-top: 16px; color: var(--bone-dim); font-size: 16px; }
    .menu-inner { width: min(1060px, 94vw); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start; }
    .pick-title { font: 700 14px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); margin: 0 0 8px; }
    .pick-title + .picker { margin-bottom: 18px; }
    @media (max-width: 1000px) { .picker.two { grid-template-columns: 1fr; } }
    .picker { display: grid; gap: 6px; }
    #modePick { grid-template-columns: 1fr 1fr; }
    .pick {
      display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; cursor: pointer;
      background: rgba(20,20,20,.75); color: var(--bone); border: 0; border-left: 3px solid transparent;
      font-family: var(--body); transition: background .12s, border-color .12s; touch-action: manipulation;
    }
    .pick:hover { background: rgba(40,36,30,.85); }
    .pick.on { border-left-color: var(--sodium); background: rgba(48,36,18,.9); }
    .pick:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
    .pick-icon { font-size: 24px; line-height: 1; }
    .pick-text b { display: block; font: 17px var(--display); }
    .pick.on .pick-text b { color: var(--sodium); }
    .pick-text small { display: block; font-size: 14px; color: var(--bone-dim); line-height: 1.2; margin-top: 2px; }
    @media (max-width: 760px) { .menu-inner { grid-template-columns: 1fr; } }
    .result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 2px; margin: 22px 0 26px; }
    .result-grid div { background: rgba(255,255,255,.05); padding: 10px 12px; }
    .result-grid span { display: block; font-size: 15px; color: var(--bone-dim); }
    .result-grid b { font: 28px var(--display); color: var(--bone); }
    .new-record { color: var(--sodium); font: 700 18px var(--body); display: none; margin-bottom: 10px; }
    .new-record.show { display: block; }

    #muteBtn {
      position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 25;
      width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel); color: var(--bone-dim);
      font-size: 16px; cursor: pointer; display: none;
    }
    body.playing #muteBtn, body.paused #muteBtn { display: block; }

    /* ======== СЕНСОРНОЕ УПРАВЛЕНИЕ (телефоны) ======== */
    html.touch, html.touch body { touch-action: none; overscroll-behavior: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; position: fixed; width: 100%; }
    #touchLayer { position: fixed; inset: 0; z-index: 5; display: none; touch-action: none; }
    #touchUi { display: none; }
    html.touch body.playing #touchLayer, html.touch body.playing #touchUi { display: block; }
    html.touch #hud { z-index: 10; }
    html.touch #muteBtn { display: none !important; }

    .stick { position: fixed; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%;
      background: radial-gradient(circle, rgba(233,227,211,.06) 0 55%, rgba(233,227,211,.02) 56%);
      box-shadow: inset 0 0 0 2px rgba(233,227,211,.16); pointer-events: none; z-index: 6; opacity: .45; transition: opacity .15s; }
    .stick.on { opacity: 1; }
    html.stick-static .stick { opacity: .7; }
    html.stick-static .stick.on { opacity: 1; }
    .music-now b { color: var(--sodium); font-weight: 400; font-family: var(--display); }
    /* ----- Тип героя ----- */
    .picker.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .picker.three .pick { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 6px; }
    .picker.three .pick-text small { font-size: 12px; }
    .class-desc { display: block; font-size: 13px; color: var(--bone-dim); margin: 4px 0 6px; }
    .picker.class-big { display: grid; grid-template-columns: 1fr; gap: 8px; }
    @media (max-height: 500px) { .picker.three .pick-text small { display: none; } .picker.three .pick { padding: 5px 4px; } }
    #stickOpts { display: none; }
    html.touch #stickOpts { display: flex; margin: 6px 0 14px; }
    #stickOpts .stick-tip, #camOpts .stick-tip { width: 100%; font-size: 13px; color: var(--bone-dim); }
    #camOpts { display: flex; margin: 6px 0 14px; }
    html.touch #camOpts { display: none; }
    .stick .knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
      background: rgba(233,227,211,.28); box-shadow: 0 0 0 2px rgba(233,227,211,.35), 0 4px 12px rgba(0,0,0,.5); }
    #stickR .knob { background: rgba(200,53,42,.4); box-shadow: 0 0 0 2px rgba(255,120,100,.5), 0 4px 12px rgba(0,0,0,.5); }
    #stickL { left: calc(env(safe-area-inset-left, 0px) + 110px); top: calc(100% - env(safe-area-inset-bottom, 0px) - 100px); }
    #stickR { left: calc(100% - env(safe-area-inset-right, 0px) - 110px); top: calc(100% - env(safe-area-inset-bottom, 0px) - 100px); }

    .tbtn { position: fixed; z-index: 12; display: grid; place-items: center; border-radius: 50%;
      background: rgba(14,15,16,.62); color: var(--bone); font: 13px var(--display);
      box-shadow: inset 0 0 0 2px rgba(233,227,211,.2); touch-action: none; }
    .tbtn.pressed { transform: scale(.92); background: rgba(40,40,40,.8); }
    .tbtn.active { background: rgba(242,165,65,.85); color: #16140f; box-shadow: none; }
    #btnAim { width: 58px; height: 58px; right: calc(env(safe-area-inset-right, 0px) + 16px); bottom: calc(env(safe-area-inset-bottom, 0px) + 44%); font-size: 22px; }
    #btnReload { width: 48px; height: 48px; right: calc(env(safe-area-inset-right, 0px) + 86px); bottom: calc(env(safe-area-inset-bottom, 0px) + 51%); font-size: 20px; }
    #btnPause { width: 38px; height: 38px; right: calc(env(safe-area-inset-right, 0px) + 10px); top: calc(env(safe-area-inset-top, 0px) + 10px); font-size: 14px; }

    html.touch #minimapWrap { top: calc(env(safe-area-inset-top, 0px) + 8px); left: calc(env(safe-area-inset-left, 0px) + 10px); width: 84px; height: 84px; }
    html.touch #pingBox { top: calc(env(safe-area-inset-top, 0px) + 98px); left: calc(env(safe-area-inset-left, 0px) + 10px); font-size: 11px; padding: 2px 7px 2px 5px; }
    html.touch #stats { top: calc(env(safe-area-inset-top, 0px) + 6px); right: calc(env(safe-area-inset-right, 0px) + 58px); }
    html.touch #waveNum { font-size: 28px; }
    html.touch #stats .wave-label { font-size: 13px; }
    html.touch #zombiesLeft { font-size: 12px; margin: 0 0 2px; min-height: 14px; }
    html.touch .stat-row { font-size: 12px; line-height: 1.25; gap: 6px; }
    html.touch .stat-row b { font-size: 13px; min-width: 40px; }
    html.touch .stat-row:nth-last-child(-n+2) { display: none; }

    /* Телефон: всё управление внизу по центру, между джойстиками */
    html.touch #bottomDock { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); gap: 5px; }
    html.touch #pickupPrompt { order: 1; }
    html.touch #sideHud { order: 2; width: 350px; }
    html.touch #pubgInventory { order: 3; gap: 5px; }
    html.touch .inv-slot { width: 54px; height: 48px; padding: 3px 5px; background: rgba(14,15,16,.86); }
    html.touch .inv-slot.active { transform: translateY(-3px); }
    html.touch .inv-slot .slot-name { display: none; }
    html.touch .inv-slot .slot-icon { height: 22px; width: 44px; }
    html.touch .inv-slot .slot-key { display: none; }
    html.touch .inv-slot .slot-info { font-size: 12px; }
    @media (max-width: 700px) { html.touch .inv-slot { width: 46px; } html.touch .inv-slot .slot-icon { width: 38px; } html.touch #sideHud { width: 300px; } }
    html.touch .bar { height: 12px; }
    html.touch .bar.armor { height: 4px; }
    html.touch .bar-text { font-size: 10px; }

    html.touch #pickupPrompt { pointer-events: auto; padding: 9px 22px; font-size: 16px; border: 2px solid var(--sodium); border-radius: 22px; z-index: 12; }
    html.touch #pickupPrompt kbd { display: none; }
    html.touch #pickupPrompt::before { content: '✋'; }

    html.touch #weaponPanel { display: none; }
    html.touch .inv-slot.low .slot-info { color: var(--blood); }
    html.touch #weaponPanelUnused { right: calc(env(safe-area-inset-right, 0px) + 12px); top: calc(env(safe-area-inset-top, 0px) + 92px); bottom: auto;
      min-width: 0; padding: 5px 10px 6px 12px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
    html.touch #wpName { font-size: 12px; }
    html.touch #wpAmmo { font-size: 24px; }
    html.touch #wpAmmo small { font-size: 13px; }
    html.touch #wpHint { font-size: 11px; min-height: 0; }

    html.touch #waveBanner { top: 30%; }
    html.touch #bannerTitle { font-size: 38px; }
    html.touch #bannerSub { font-size: 15px; }

    .touch-only { display: none; }
    html.touch .touch-only { display: grid; }
    html.touch .desk-only { display: none; }
    html.touch .screen-inner { max-height: 100%; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px; }
    @media (max-height: 500px) {
      .menu-inner { grid-template-columns: 1fr 1.15fr; gap: 12px 22px; }
      html .menu-inner .controls { display: none; }
      .pick { padding: 6px 8px; gap: 8px; }
      .pick-icon { font-size: 18px; }
      .pick-text b { font-size: 14px; }
      .pick-text small { font-size: 11px; }
      .pick-title { font-size: 11px; margin-bottom: 4px; }
      .pick-title + .picker { margin-bottom: 8px; }
      .picker { gap: 4px; }
      .picker.two { grid-template-columns: 1fr 1fr; }
      .picker.two .pick-text small { display: none; }
      .nick-box { margin-bottom: 10px; }
      .nick-row input { font-size: 15px; padding: 6px 10px; }
      .online-list { display: none; }
      .title { font-size: 40px; }
      .subtitle { font-size: 15px; margin: 6px 0 12px; }
      .controls { font-size: 14px; gap: 4px 12px; margin-bottom: 14px; }
      .btn { font-size: 17px; padding: 11px 24px; }
      .result-grid { margin: 10px 0 12px; }
      .result-grid b { font-size: 20px; }
      .result-grid div { padding: 6px 10px; }
      .best { margin-top: 8px; }
    }

    /* ======== НИЗКИЙ ГОРИЗОНТАЛЬНЫЙ ЭКРАН (телефон, браузер внутри Telegram/VK) ========
       Карты и режимы — ленты, которые листаются пальцем; описание выбранного — строкой под лентой.
       Кнопки меню — сеткой 3×2 вместе с настройками, плавающая шестерёнка не наезжает на карты. */
    .pick-desc, .short-only, .short-label { display: none; }
    .fs-hint { margin-top: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.3; color: var(--bone); background: rgba(242,165,65,.1); border-left: 3px solid var(--sodium); }
    .fs-hint b { color: var(--sodium); }
    @media (max-height: 500px) {
      .menu-gear { display: none; }
      .short-only, .short-label { display: inline-block; }
      .desk-label { display: none; }
      .menu-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0 18px; }
      .menu-inner .title { font-size: 30px; white-space: nowrap; }
      .menu-inner .title br { display: none; }
      .menu-inner .version-tag { margin-top: 4px; }
      .menu-inner .subtitle, .nick-box label { display: none; }
      .nick-box { margin: 8px 0 6px; }
      .nick-status { font-size: 12px; margin-top: 2px; min-height: 14px; }
      #startBtn { width: 100%; padding: 10px 16px; }
      .menu-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
      .menu-row2 .btn { font-size: 12px; padding: 8px 2px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .daily-info, .best, .online { font-size: 12px; margin-top: 5px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .menu-donate { margin-top: 6px; font-size: 12px; }
      .fs-hint { font-size: 12px; padding: 6px 8px; margin-top: 6px; }
      /* ленты карт и режимов */
      .menu-right .pick-title { margin: 2px 0 4px; }
      .picker.two, #modePick { display: flex; grid-template-columns: none; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x; padding-bottom: 2px;
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
      .picker.two::-webkit-scrollbar { display: none; }
      .picker.two .pick { flex: 0 0 86px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px 6px;
        text-align: center; scroll-snap-align: start; border-left: 0; border-bottom: 3px solid transparent; }
      .picker.two .pick.on { border-bottom-color: var(--sodium); }
      .picker.two .pick-icon { font-size: 22px; }
      .picker.two .pick-text b { font-size: 12px; line-height: 1.1; }
      .picker.two .pick-text small { display: none; }
      .pick-desc { display: block; font-size: 12.5px; line-height: 1.25; color: var(--bone-dim); margin: 4px 0 8px; min-height: 16px; }
    }
    /* в установленном приложении (на весь экран) подсказки не нужны */
    @media (display-mode: fullscreen), (display-mode: standalone) { .fs-hint, #installBtn, #getAppBtn, .install-overlay { display: none !important; } }

    #rotateHint { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
      background: #050607; color: var(--bone); font: 700 20px var(--body); text-align: center; padding: 24px; }
    #rotateHint .phone { width: 46px; height: 80px; border: 3px solid var(--sodium); border-radius: 9px; animation: rot 2.2s ease-in-out infinite; }
    @keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
    @media (orientation: portrait) { html.touch #rotateHint { display: flex; } }

    @media (max-width: 900px) {
      .inv-slot { width: 70px; height: 50px; }
      .inv-slot .slot-name { font-size: 12px; max-width: 52px; }
      .inv-slot .slot-icon { height: 18px; width: 50px; }
      #minimapWrap { width: 120px; height: 120px; }
      #pingBox { top: 146px; }
      #weaponPanel { min-width: 150px; }
      #wpAmmo { font-size: 32px; }
    }
    @media (prefers-reduced-motion: reduce) {
      #waveBanner, .inv-slot, .bar i { transition: none; }
      #sideHud.hit .bar { animation: none; }
    }

    .skin-rarity { border-bottom: 3px solid var(--skin-color); }
    .skin-rarity img { filter: drop-shadow(0 0 3px var(--skin-color)); }
    .skin-rarity.locked img { opacity: .65; filter: drop-shadow(0 0 2px var(--skin-color)); }
    .rarity-badge { color: var(--skin-color); font-size: 11px; }
    .case-panel { text-align: center; padding: 14px; border: 1px solid var(--line); background: rgba(20,20,20,.7); }
    .case-panel h2 { font: 23px var(--display); margin: 12px 0; }
    .case-panel p { color: var(--bone-dim); font-size: 16px; line-height: 1.4; }
    .case-art { display: flex; justify-content: center; gap: 12px; padding-top: 12px; }
    .case-art img { width: 112px; height: 90px; }
    .case-stock img { width: 27px; height: 25px; vertical-align: middle; }
    .case-reward-icon { width: 110px; height: 75px; object-fit: contain; align-self: center; filter: drop-shadow(0 0 4px var(--skin-color)); }
    .locker-inner[data-kind=cases] .lk-body, .locker-inner[data-kind=market] .lk-body { grid-template-columns: 1fr; }
    .locker-inner[data-kind=cases] .lk-side, .locker-inner[data-kind=market] .lk-side { position: static; order: 2; }
    .locker-inner[data-kind=cases] #lkPreview, .locker-inner[data-kind=market] #lkPreview { display: none; }
    .locker-inner[data-kind=cases] .case-panel, .locker-inner[data-kind=market] .case-panel { max-width: 680px; margin: auto; }
    @media (max-height: 500px) { .case-art img { width: 80px; height: 60px; } .case-panel { padding: 10px; } .case-panel h2 { font-size: 19px; margin: 6px 0; } .case-panel p { font-size: 14px; margin: 8px 0; } }
    .case-stock { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 18px; }
    .case-stock b { color: var(--sodium); font-family: var(--display); }
    .case-reward { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--skin-color); border-bottom-width: 4px; padding: 20px; margin-top: 16px; }
    .case-reward span { color: var(--skin-color); }
    .case-reward b { font: 22px var(--display); }
    .case-reward small { color: var(--bone-dim); }
    .case-details { text-align: left; margin-top: 20px; }
    .case-details summary { cursor: pointer; color: var(--sodium); padding: 8px 0; }
    .case-odds, .case-contents { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 8px; margin-top: 10px; }
    .case-odd, .case-content { border-left: 3px solid var(--skin-color); padding: 6px 8px; background: rgba(255,255,255,.04); font-size: 14px; }
    .case-odd b, .case-content small { color: var(--skin-color); display: block; }
  