* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #0d1117; color: #e6edf3;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: none;
}
#game-root, #game-root canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- экраны ---------- */
.screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1d2633 0%, #0b0f15 70%);
  z-index: 20; padding: 16px;
}
#pause, #screen-results { background: rgba(5, 8, 12, 0.78); }
.panel {
  width: 100%; max-width: 380px; background: #151b24; border: 1px solid #2a3442;
  border-radius: 14px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 12px;
}
.panel.wide { max-width: 560px; }
h1 { margin: 0; font-size: 34px; letter-spacing: 6px; color: #ffb547; }
h3 { margin: 4px 0; font-size: 15px; color: #9fb0c3; }
.sub { margin: -6px 0 8px; color: #7d8a99; letter-spacing: 2px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9fb0c3; }
input {
  font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #2f3a49;
  background: #0d1218; color: #e6edf3; outline: none;
}
input:focus { border-color: #ffb547; }
button {
  font: inherit; padding: 10px 16px; border-radius: 8px; border: 1px solid #2f3a49;
  background: #1f2835; color: #e6edf3; cursor: pointer;
}
button:hover { background: #283345; }
button.primary { background: #ffb547; color: #111; border-color: #ffb547; font-weight: 700; }
button.primary:hover { background: #ffc46b; }
button.big { padding: 14px; font-size: 18px; letter-spacing: 2px; }
button.link { background: none; border: none; color: #7d8a99; text-decoration: underline; padding: 4px; }
.row { display: flex; gap: 8px; }
.row button { flex: 1; }
.error { color: #ff6b6b; min-height: 1em; margin: 0; font-size: 13px; }
.muted { color: #7d8a99; font-size: 13px; }

.profile { display: flex; gap: 14px; align-items: center; }
.grow { flex: 1; }
.lvl-badge {
  width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffb547, #e0732e); color: #111; font-size: 28px; font-weight: 800;
}
.pname { font-size: 22px; font-weight: 700; }
.xpbar { height: 10px; background: #0d1218; border-radius: 5px; overflow: hidden; margin: 6px 0 4px; }
.xpbar div { height: 100%; background: #ffb547; width: 0; transition: width .6s; }
.bonus { color: #8fd18f; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { background: #0d1218; border-radius: 8px; padding: 8px; text-align: center; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: #7d8a99; }
.howto p { margin: 4px 0 8px; font-size: 13px; color: #9fb0c3; line-height: 1.45; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #9fb0c3; }
.keys span { background: #0d1218; padding: 4px 8px; border-radius: 6px; }
.keys b { color: #ffb547; }

#res-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
#res-body td { padding: 4px 0; border-bottom: 1px solid #222b37; }
#res-body td:last-child { text-align: right; color: #ffb547; }
#res-body .total td { font-weight: 700; font-size: 16px; border: none; padding-top: 10px; }
.levelup { margin-top: 10px; padding: 10px; border-radius: 8px; text-align: center; background: #2b2412; color: #ffb547; font-weight: 700; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-weight: 600; text-shadow: 0 1px 2px #000; }
#crosshair { --g: 6px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; background: #fff; opacity: .9; box-shadow: 0 0 2px #000; transition: top .06s, left .06s; }
#crosshair i:nth-child(1) { width: 2px; height: 8px; left: -1px; top: calc(-8px - var(--g)); }
#crosshair i:nth-child(2) { width: 2px; height: 8px; left: -1px; top: var(--g); }
#crosshair i:nth-child(3) { width: 8px; height: 2px; left: calc(-8px - var(--g)); top: -1px; }
#crosshair i:nth-child(4) { width: 8px; height: 2px; left: var(--g); top: -1px; }
#hitmarker.kill { transform: scale(1.5); filter: sepia(1) saturate(30) hue-rotate(-50deg); }
#dmgdir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#dmgdir div { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: dmgfade 1s forwards; }
#dmgdir i {
  position: absolute; left: -45px; top: -150px; width: 90px; height: 22px;
  border-top: 6px solid rgba(255, 50, 50, 0.9); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
@keyframes dmgfade { from { opacity: 1; } to { opacity: 0; } }
#hitmarker {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
}
#hitmarker.head { filter: drop-shadow(0 0 2px red) sepia(1) saturate(20) hue-rotate(-50deg); }
#vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, transparent 50%, rgba(200,0,0,.65) 100%); }
#top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); text-align: center; }
#phase { font-size: 14px; letter-spacing: 3px; color: #ffb547; }
#phase.final { color: #ff5a5a; }
#timer { font-size: 28px; }
#alive { font-size: 13px; color: #b7c3d0; }
#banner {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 28px; color: #ffb547;
  text-align: center; opacity: 0; transition: opacity .4s; white-space: nowrap;
}
#banner.show { opacity: 1; }
#minimap { position: absolute; top: 12px; right: 12px; border-radius: 10px; background: rgba(10,14,20,.7); border: 1px solid #2a3442; }
#killfeed { position: absolute; top: 204px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
#killfeed div { background: rgba(10,14,20,.7); padding: 3px 8px; border-radius: 4px; }
#killfeed .me { color: #ffb547; }
#toasts { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#toasts div { background: rgba(10,14,20,.75); padding: 4px 12px; border-radius: 6px; font-size: 15px; }
#prompt { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); font-size: 16px; background: rgba(10,14,20,.6); padding: 4px 12px; border-radius: 6px; }
#prompt:empty { display: none; }
#bottom-left { position: absolute; left: 16px; bottom: 16px; width: 260px; display: flex; flex-direction: column; gap: 6px; }
.hud-lvl { font-size: 14px; color: #ffb547; }
.hud-lvl span { color: #b7c3d0; }
.hud-lvl .lives { color: #e5484d; letter-spacing: 2px; }
.hud-lvl .lives i { color: #3a3f47; font-style: normal; }
.hud-med { font-size: 14px; }
.hud-med small { color: #7d8a99; }
.bar { position: relative; height: 18px; background: rgba(10,14,20,.7); border-radius: 4px; overflow: hidden; }
.bar div { height: 100%; width: 100%; transition: width .15s; }
.bar.hp div { background: #e5484d; }
.bar.armor div { background: #4aa3ff; }
.bar.armor { height: 10px; }
.bar.armor span { display: none; }
.bar span { position: absolute; left: 8px; top: 0; font-size: 13px; line-height: 18px; }
#bottom-right { position: absolute; right: 16px; bottom: 16px; text-align: right; }
#slots { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
#slots div { background: rgba(10,14,20,.7); padding: 4px 10px; border-radius: 6px; font-size: 13px; border: 1px solid transparent; opacity: .6; }
#slots div.active { opacity: 1; border-color: currentColor; }
#ammo { font-size: 20px; }
#ammo b { font-size: 34px; }
#reload-hint { font-size: 14px; color: #ffb547; min-height: 1em; }

/* ---------- рюкзак ---------- */
#inventory { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 12, 0.45); padding: 16px; }
.inv-panel { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: rgba(21, 27, 36, 0.95); border: 1px solid #2a3442; border-radius: 14px; padding: 20px; max-width: 760px; width: 100%; }
.inv-panel h3 { margin: 0 0 10px; color: #ffb547; }
.inv-hint { grid-column: 1 / -1; font-size: 12px; color: #7d8a99; text-align: center; }
#inv-equip { display: flex; flex-direction: column; gap: 8px; }
#inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inv-cell {
  min-height: 64px; border-radius: 8px; border: 1px solid #2a3442; background: #0d1218; padding: 6px 8px;
  font-size: 12px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 2px;
}
.inv-cell.empty { cursor: default; opacity: .45; }
.inv-cell:not(.empty):hover { background: #1a2230; }
.inv-cell .slot { font-size: 11px; color: #7d8a99; }
.inv-cell .nm { font-weight: 700; }
.inv-cell .dots { letter-spacing: 2px; font-size: 10px; }
#item-card, #item-menu { position: fixed; z-index: 40; background: #151b24; border: 1px solid #2f3a49; border-radius: 8px; padding: 10px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none; max-width: 280px; }
#item-card b { display: block; margin-bottom: 4px; }
#item-card .st { color: #9fb0c3; }
#item-card .af { color: #8fd18f; }
#item-menu { pointer-events: auto; padding: 4px; display: flex; flex-direction: column; min-width: 150px; }
#item-menu button { text-align: left; border: none; background: none; padding: 8px 10px; font-size: 13px; }
#item-menu button:hover { background: #283345; }
@media (max-width: 700px) {
  .inv-panel { grid-template-columns: 1fr; }
  #inv-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- настройки ---------- */
#settings { z-index: 30; background: rgba(5, 8, 12, 0.85); }
#settings .panel { max-height: calc(100vh - 32px); overflow-y: auto; }
#settings h1 { font-size: 26px; letter-spacing: 3px; }
#settings h3 { margin-top: 8px; color: #ffb547; }
.set-row { display: grid; grid-template-columns: 1fr 160px 44px; align-items: center; gap: 10px; flex-direction: row; font-size: 14px; color: #e6edf3; }
.set-row.set-select, .set-row.set-check { grid-template-columns: 1fr auto; }
.set-row select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #2f3a49; background: #0d1218; color: #e6edf3; }
.set-row input[type="range"] { width: 100%; accent-color: #ffb547; padding: 0; }
.set-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ffb547; }
.set-row output { text-align: right; color: #9fb0c3; font-variant-numeric: tabular-nums; }
.set-note { margin: -6px 0 4px; font-size: 12px; }
#fps { position: absolute; top: 12px; left: 12px; font-size: 13px; color: #8fd18f; }

@media (max-width: 700px) {
  .set-row { grid-template-columns: 1fr 110px 40px; }
  #minimap { width: 120px; height: 120px; }
  #killfeed { top: 140px; }
  #bottom-left { width: 180px; }
}

/* ---------- убежище ---------- */
.panel.hideout { max-width: 780px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ho-money { text-align: right; }
#ho-credits { font-size: 22px; font-weight: 800; color: #ffb547; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #2a3442; }
.tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; color: #9fb0c3; }
.tabs button.active { color: #ffb547; border-bottom-color: #ffb547; }
#ho-body { min-height: 260px; display: flex; flex-direction: column; gap: 10px; }
.ho-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ho-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ho-slots .inv-cell.picked { outline: 2px solid #ffb547; }
.ho-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ho-row .grow { flex: 1; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; padding: 6px; }
.inv-cell.overflow { border-style: dashed; border-color: #e5484d !important; }
.stash-bar { justify-content: flex-end; }
.sort-btn { padding: 6px 12px; font-size: 13px; border-color: rgba(255,138,42,.5); color: #ffb547; }
.ho-warn { color: #ff6b6b; font-size: 13px; }
.offer .price { color: #ffb547; font-weight: 700; }
.offer button { margin-top: 4px; padding: 4px 8px; font-size: 12px; }
.offer.poor { opacity: .5; }
#item-card .ex { color: #ffb547; margin-top: 4px; }
.extract { margin-top: 10px; }
.extract h3 { margin: 6px 0; }
.extract .item { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
@media (max-width: 700px) {
  .ho-grid { grid-template-columns: repeat(3, 1fr); }
  .ho-slots { grid-template-columns: 1fr; }
}

/* Навыки и перки */
.sk-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.sk-name { display: flex; justify-content: space-between; font-weight: 600; }
.sk-name b { color: #ffb547; }
.sk-fx { font-size: 12px; }
.pk-tree { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pk-col { display: flex; flex-direction: column; gap: 4px; background: #121922; border: 1px solid #2a3442; border-radius: 8px; padding: 8px; }
.pk-title { font-weight: 700; margin-bottom: 4px; }
.pk-perk { font-size: 12px; padding: 4px 6px; border-radius: 4px; color: #6f7c8a; background: #0d1218; }
.pk-perk.owned { color: #0d1218; background: #ffb547; }
.pk-perk.next { color: #e6edf3; outline: 1px dashed #ffb547; }
@media (max-width: 720px) { .sk-list { grid-template-columns: 1fr; } .pk-tree { grid-template-columns: repeat(2, 1fr); } }

/* Кнопки рейда и лобби */
.raid-buttons button { flex: 1; }
#mp-players { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.mp-player { display: flex; justify-content: space-between; padding: 8px 12px; background: #121922; border: 1px solid #2a3442; border-radius: 8px; }
.mp-player.me { border-color: #ffb547; }
.mp-player .ok { color: #5fd35f; font-weight: 700; }
.mp-player .wait { color: #6f7c8a; }
.mp-bots { color: #9fb0c3; font-size: 13px; }
.mp-countdown { font-size: 22px; font-weight: 800; color: #ffb547; text-align: center; min-height: 28px; margin: 6px 0; }

/* ---------- убежище: 3D-сцена и меню поверх ---------- */
#screen-lobby {
  display: block; padding: 0; overflow: hidden;
  background: radial-gradient(ellipse at 55% 78%, rgba(255,130,40,.28), transparent 42%), linear-gradient(180deg, #0a0d18 0%, #1a1214 62%, #0b0a0c 100%);
}
#screen-lobby.hidden { display: none !important; }
#ho-scene, .hideout-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ho-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,6,10,.7) 0%, transparent 28%, transparent 70%, rgba(5,6,10,.6) 100%), linear-gradient(180deg, rgba(5,6,10,.55) 0%, transparent 18%, transparent 80%, rgba(5,6,10,.6) 100%); }
.ho-chip { background: rgba(10,12,18,.62); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px 12px; backdrop-filter: blur(6px); }
.ho-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; gap: 10px; align-items: stretch; z-index: 2; }
.ho-spacer { flex: 1; }
.ho-who { display: flex; gap: 12px; align-items: center; min-width: 260px; }
.ho-who .lvl-badge { width: 48px; height: 48px; font-size: 22px; border-radius: 10px; }
.ho-who .pname { font-size: 18px; }
.ho-money { text-align: right; }
.ho-money #ho-credits { font-size: 20px; font-weight: 800; color: #ffb547; }
.ho-icons { display: flex; flex-direction: column; gap: 6px; }
.ho-icons button { padding: 4px 10px; background: rgba(10,12,18,.62); font-size: 16px; }
.ho-bp { min-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.ho-bp .xpbar { margin: 0; }
#ho-season { display: flex; flex-direction: column; justify-content: center; }
#ho-season b { color: #ffb547; }

.ho-nav { position: absolute; left: 16px; top: 120px; display: flex; flex-direction: column; gap: 6px; width: 190px; z-index: 2; }
.ho-nav button { text-align: left; padding: 11px 14px; background: rgba(10,12,18,.62); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid transparent; font-size: 15px; letter-spacing: .5px; backdrop-filter: blur(6px); }
.ho-nav button:hover { background: rgba(40,46,60,.75); }
.ho-nav button.active { border-left-color: #ff8a2a; color: #ffb547; background: rgba(30,24,18,.8); }
.ho-nav button .badge { float: right; color: #ff8a2a; font-weight: 800; }

.ho-panel { position: absolute; left: 222px; top: 120px; max-height: calc(100vh - 140px); width: min(680px, calc(100vw - 222px - 330px)); z-index: 3;
  background: rgba(12,15,21,.9); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; overflow-y: auto; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ho-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; color: #ffb547; letter-spacing: 1px; }
.ho-panel-head button { padding: 2px 10px; background: none; border-color: transparent; font-size: 16px; }
.ho-panel #ho-body { min-height: 0; }

.ho-quests { position: absolute; right: 16px; top: 120px; width: 290px; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 330px); overflow-y: auto; }
.ho-q-title { font-weight: 800; color: #ff8a2a; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }

.ho-raid { position: absolute; right: 16px; bottom: 20px; width: 290px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.ho-raid .error { text-align: right; text-shadow: 0 1px 3px #000; }
.ho-mode { display: flex; gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.ho-mode button { flex: 1; border: none; border-radius: 0; background: rgba(10,12,18,.7); padding: 8px; }
.mp-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.mp-settings .muted { grid-column: 1 / -1; }
.mp-settings select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #2f3a49; background: #0d1218; color: #e6edf3; }
.mp-settings select:disabled { opacity: .7; }
#ffa-board { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); min-width: 260px; background: rgba(8,10,14,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 10px; font-size: 13px; z-index: 5; pointer-events: none; }
#ffa-board div { display: grid; grid-template-columns: 1fr 34px 34px; gap: 6px; padding: 1px 0; }
#ffa-board .fb-head { color: #8d99a8; font-size: 11px; }
#ffa-board .me { color: #ffb547; font-weight: 700; }
#ffa-board b, #ffa-board i { text-align: right; font-style: normal; }
.ffa-res .th td { color: #8d99a8; font-size: 12px; }
.ffa-res tr.me td { color: #ffb547; font-weight: 700; }
.ffa-res td:nth-child(n+2) { text-align: right; }
.ho-mode button.active { background: rgba(255,138,42,.25); color: #ffb547; font-weight: 700; }
.ho-raid-btn { padding: 18px; font-size: 24px; font-weight: 900; letter-spacing: 6px; color: #1a1006; border: none; border-radius: 8px;
  background: linear-gradient(#ffa24a, #e0620d); box-shadow: 0 0 28px rgba(255,120,30,.45); }
.ho-raid-btn:hover { background: linear-gradient(#ffb466, #ef7019); }
.ho-raid-btn:disabled { opacity: .6; cursor: wait; }

@media (max-width: 1100px) {
  .ho-panel { left: 16px; right: 16px; width: auto; top: 120px; bottom: 130px; }
  .ho-nav { flex-direction: row; flex-wrap: wrap; top: auto; bottom: 20px; width: calc(100% - 340px); }
  .ho-nav button { padding: 8px 10px; font-size: 13px; }
  .ho-quests { max-height: calc(100vh - 360px); }
}
@media (max-width: 700px) {
  .ho-top { flex-wrap: wrap; }
  .ho-who { min-width: 0; flex: 1; }
  .ho-quests { display: none; }
  .ho-nav { width: auto; right: 16px; bottom: 150px; }
  .ho-raid { left: 16px; width: auto; }
  .ho-panel { bottom: 230px; }
}

/* Задания */
.q-row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 3px; }
.q-row.claimed { opacity: .45; }
.q-row.story .q-text { color: #ffd59a; font-weight: 600; }
.q-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.q-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: #ff8a2a; }
.q-reward { font-size: 11px; color: #8d99a8; }
.q-claim { padding: 3px 10px; font-size: 12px; background: #ff8a2a; color: #1a1006; border: none; font-weight: 700; }
.q-ok { color: #5fd35f; font-weight: 800; }
.q-lore { font-size: 12px; font-style: italic; color: #c9b48f; background: rgba(255,170,80,.08); border-left: 2px solid #ff8a2a; padding: 6px 8px; }
.ho-quests .ho-q-title { margin-top: 6px; }

/* Кейсы и скины */
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-box { display: flex; gap: 12px; align-items: center; }
.case-ico { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; font-size: 28px; color: #1a1006; background: linear-gradient(135deg, #ffb066, #c95510); }
.case-reel { position: relative; height: 112px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #0b0e13; }
.case-strip { display: flex; gap: 8px; padding: 8px; will-change: transform; }
.reel-cell { flex: 0 0 110px; height: 94px; border: 1px solid; border-bottom-width: 3px; border-radius: 8px; background: #141922; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; text-align: center; }
.reel-cell .skin-sw { width: 70px; height: 40px; }
.case-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #ff8a2a; box-shadow: 0 0 10px #ff8a2a; }
.case-result { min-height: 20px; font-size: 15px; text-align: center; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.skin-card { border: 1px solid; border-bottom-width: 3px; border-radius: 8px; padding: 8px; background: #121822; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.skin-card.locked { opacity: .45; }
.skin-card.on { box-shadow: 0 0 0 2px #ff8a2a inset; }
.skin-card button { padding: 3px 8px; font-size: 12px; margin-top: 2px; }
.skin-sw { height: 46px; border-radius: 6px; display: grid; place-items: center; color: #3a4250; font-size: 20px; font-weight: 800; }
.skin-nm { font-weight: 700; font-size: 13px; }

/* Боевой пропуск */
.ho-nav .ho-pass-plate { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid rgba(255,138,42,.55); border-left: 3px solid #ff8a2a; background: linear-gradient(135deg, rgba(60,30,10,.85), rgba(10,12,18,.75)); }
.ho-pass-plate .pp-head { display: flex; justify-content: space-between; color: #ffb547; font-size: 12px; letter-spacing: 1.5px; }
.ho-pass-plate .pp-ready { background: #ff8a2a; color: #1a1006; border-radius: 9px; padding: 0 7px; font-weight: 800; }
.ho-pass-plate .pp-lvl { font-size: 14px; }
.ho-pass-plate .pp-lvl b { font-size: 20px; color: #fff; }
.ho-pass-plate .xpbar { margin: 0; height: 6px; }
#ho-season { gap: 1px; text-align: center; }
.pass-track { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.pass-cell { flex: 0 0 104px; min-height: 150px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #11161e; padding: 8px; display: flex; flex-direction: column; gap: 5px; align-items: center; text-align: center; font-size: 11px; opacity: .55; }
.pass-cell.open { opacity: 1; border-color: #ff8a2a; box-shadow: 0 0 12px rgba(255,138,42,.25); }
.pass-cell.got { opacity: .8; }
.pass-cell.big { flex-basis: 130px; }
.pass-cell .skin-sw { width: 100%; height: 50px; }
.pc-l { font-weight: 800; color: #ffb547; font-size: 14px; }
.pc-ico { font-size: 26px; color: #ffd59a; height: 50px; display: grid; place-items: center; }
.pc-nm { font-weight: 700; font-size: 12px; }
.pc-r { color: #9fb0c3; }
.pass-cell button { padding: 3px 8px; font-size: 12px; background: #ff8a2a; color: #1a1006; border: none; font-weight: 700; margin-top: auto; }
.season-notice { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(5,6,10,.7); }
.season-notice .panel { max-width: 460px; }
.pass-wrap { position: relative; }
.pass-track { scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 34px 6px; }
.pass-track::-webkit-scrollbar { display: none; }
.pass-cell { scroll-snap-align: start; background: linear-gradient(180deg, #151b25, #0e1219); }
.pass-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 64px; padding: 0; font-size: 28px; line-height: 1; border-radius: 8px; background: rgba(20,24,32,.92); border: 1px solid rgba(255,138,42,.5); color: #ffb547; z-index: 2; }
.pass-arrow.left { left: 0; }
.pass-arrow.right { right: 0; }
.pass-arrow.off { opacity: .25; pointer-events: none; }
.pass-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 0 34px; }
.pass-line i { display: block; height: 100%; background: linear-gradient(90deg, #e0620d, #ffb547); }
button.primary:disabled { background: #3a3f48; border-color: #3a3f48; color: #8d96a3; cursor: default; }

/* Оптический прицел */
#scope { position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent 34vmin, rgba(0,0,0,.6) 34.4vmin, #000 35.5vmin, #000 100%); }
#scope::before, #scope::after { content: ''; position: absolute; background: #000; left: 50%; top: 50%; }
#scope::before { width: 70vmin; height: 2px; transform: translate(-50%, -50%); }
#scope::after { height: 70vmin; width: 2px; transform: translate(-50%, -50%); }
#scope i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ff3a2a; }
