:root {
  --bg: #0b0a14;
  --panel: rgba(16, 14, 30, 0.94);
  --line: #3a3460;
  --text: #e6e2f4;
  --dim: #9a94b8;
  --gold: #e8c45a;
  --cyan: #3af0ff;
  --pink: #ff4ad0;
  --aut: #e0353a;
  --dec: #9a4ae0;
  --neu: #a8a8b8;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font: 15px/1.35 "Ubuntu Mono", ui-monospace, monospace; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas#cv { position: fixed; inset: 0; width: 100vw; height: 100vh; image-rendering: pixelated; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: var(--text); background: #221d3c; border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; cursor: pointer; touch-action: manipulation; }
button:active, button.on { background: #3a2f6a; border-color: var(--cyan); }
button:disabled { opacity: 0.4; }
input, select { font: inherit; color: var(--text); background: #120f22; border: 2px solid var(--line); border-radius: 6px; padding: 8px; width: 100%; user-select: text; -webkit-user-select: text; }
input[type=range] { padding: 0; }
input[type=color] { width: 48px; height: 40px; padding: 2px; }
label { display: block; margin: 10px 0 4px; color: var(--dim); font-size: 13px; }
h1, h2 { font-family: "Press Start 2P", monospace; color: var(--gold); text-shadow: 3px 3px 0 #5a1f2b; margin: 0 0 12px; letter-spacing: 1px; }
h1 { font-size: clamp(20px, 6vw, 34px); text-align: center; }
h2 { font-size: clamp(13px, 3.4vw, 18px); }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; z-index: 20;
  background: radial-gradient(ellipse at 50% 30%, rgba(60, 40, 120, 0.35), rgba(5, 4, 12, 0.85)); touch-action: pan-y; }
.card { background: var(--panel); border: 3px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 0 0 3px #000, 0 10px 40px #000; max-height: 100%; overflow-y: auto; }
.card.narrow { width: min(420px, 100%); }
.card.wide { width: min(860px, 100%); }
.lore { color: var(--dim); font-style: italic; text-align: center; }
.hint { color: var(--dim); font-size: 12px; margin-top: 6px; }
.err { color: #ff6a6a; min-height: 1.2em; margin-top: 8px; }
button.big { width: 100%; margin-top: 14px; padding: 14px; font-family: "Press Start 2P", monospace; font-size: 12px; background: #3a1f5a; border-color: var(--gold); }
button.small { padding: 6px 10px; font-size: 13px; }
.cr-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.cr-preview { text-align: center; }
#pv { width: 192px; height: 200px; image-rendering: pixelated; background: linear-gradient(#1a1630, #0e0c1c); border: 2px solid var(--line); border-radius: 8px; }
#pv-info { font-size: 12px; color: var(--dim); margin: 6px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 8px 4px; font-size: 13px; }
.seg .aut.on { border-color: var(--aut); background: #4a1418; }
.seg .dec.on { border-color: var(--dec); background: #2e1448; }
.seg .neu.on { border-color: var(--neu); background: #34343e; }
.colors { display: flex; gap: 8px; align-items: center; }
.tag { background: #2a2450; border-radius: 4px; padding: 1px 6px; color: var(--cyan); font-size: 12px; }
.spark { margin-top: 10px; padding: 10px; border: 2px dashed var(--line); border-radius: 8px; color: var(--cyan); }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--gold); }
@media (max-width: 640px) {
  .cr-grid { grid-template-columns: 1fr; }
  #pv { width: 144px; height: 150px; }
}

/* ---- HUD ---- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: auto; }
#top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 8px; align-items: flex-start; pointer-events: none; }
#top > * { pointer-events: auto; }
#bars { background: rgba(10, 8, 20, 0.7); border: 2px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 170px; }
.bar { position: relative; height: 13px; background: #1a1428; border-radius: 3px; margin-bottom: 4px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #c0282c, #ff6a5a); transition: width .2s; }
.bar.en i { background: linear-gradient(90deg, #a02a90, var(--pink)); }
.bar.sta i { background: linear-gradient(90deg, #1a8a5a, #3cff9e); }
#buffs { font-size: 11px; color: var(--cyan); }
#buffs span { display: inline-block; background: #1e1a38; border-radius: 3px; padding: 0 4px; margin: 2px 2px 0 0; }
.bar.co i { background: linear-gradient(90deg, #6a3a1a, #d07a2a); }
.bar span { position: relative; z-index: 1; font-size: 10px; line-height: 13px; padding-left: 4px; text-shadow: 1px 1px 0 #000; }
#shanix { color: var(--gold); font-weight: bold; }
#loc { flex: 1; text-align: center; text-shadow: 2px 2px 0 #000; display: flex; flex-direction: column; font-size: 13px; pointer-events: none; }
#loc b { font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--gold); }
#loc-z { color: var(--cyan); }
#topbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 260px; }
#topbtns button { font-size: 20px; padding: 6px 9px; background: rgba(20, 16, 36, 0.8); }
#voice-btn.live { border-color: #3cff9e; background: #12402a; }
#voice-btn.talk { box-shadow: 0 0 10px #3cff9e; }
#chatlog { position: absolute; left: 8px; top: 120px; width: min(360px, 60vw); font-size: 13px; pointer-events: none; text-shadow: 1px 1px 0 #000, 0 0 3px #000; }
#chatlog div { margin-bottom: 2px; transition: opacity 1s; }
#chatlog .sys { color: var(--gold); }
#notices { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); width: min(520px, 92vw); pointer-events: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#notices div { background: rgba(10, 8, 20, 0.85); border: 2px solid var(--line); border-radius: 6px; padding: 6px 10px; text-align: center; animation: fade 5s forwards; }
@keyframes fade { 0%, 80% { opacity: 1 } 100% { opacity: 0 } }
#hotbar { position: absolute; bottom: calc(8px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.slot { width: 52px; height: 52px; background: rgba(16, 12, 30, 0.85); border: 2px solid var(--line); border-radius: 6px; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; }
.slot img { width: 36px; height: 36px; image-rendering: pixelated; pointer-events: none; }
.slot .n { position: absolute; right: 3px; bottom: 1px; font-size: 12px; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.slot .k { position: absolute; left: 3px; top: 0; font-size: 10px; color: var(--dim); pointer-events: none; }
.slot .dur { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; background: #3cff9e; pointer-events: none; }
.slot.sel { border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.slot.focus { border-color: var(--cyan); }
#buildbar { position: absolute; bottom: calc(68px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; background: rgba(16, 12, 30, 0.9); border: 2px solid var(--gold); border-radius: 8px; padding: 6px 8px; white-space: nowrap; }
#buildbar img { width: 32px; height: 32px; image-rendering: pixelated; }
#buildbar button { padding: 6px 8px; font-size: 13px; }
#touch { display: none; }
body.touch #touch { display: block; }
#joy { position: absolute; left: 18px; bottom: calc(80px + var(--safe-b)); width: 140px; height: 140px; border-radius: 50%; background: rgba(40, 30, 80, 0.35); border: 2px solid rgba(120, 100, 200, 0.5); touch-action: none; }
#knob { position: absolute; left: 45px; top: 45px; width: 50px; height: 50px; border-radius: 50%; background: rgba(160, 140, 255, 0.6); border: 2px solid #fff4; pointer-events: none; }
#abtns { position: absolute; right: 12px; bottom: calc(76px + var(--safe-b)); display: grid; grid-template-columns: repeat(3, 58px); gap: 8px; }
#abtns button { width: 58px; height: 58px; border-radius: 50%; font-size: 24px; padding: 0; background: rgba(30, 24, 60, 0.7); }
#abtns button.sm { font-size: 20px; }
#abtns button.atk { background: rgba(120, 30, 40, 0.75); border-color: #ff6a5a; }
#ptt.on { background: #12402a; border-color: #3cff9e; }
body:not(.touch) #hotbar .slot { width: 56px; height: 56px; }
@media (max-width: 640px) {
  #bars { width: 120px; }
  #topbtns { max-width: 130px; }
  #topbtns button { font-size: 17px; padding: 4px 6px; }
  #loc { font-size: 11px; }
  #loc b { font-size: 9px; }
  .slot { width: 44px; height: 44px; }
  .slot img { width: 30px; height: 30px; }
  #chatlog { top: 150px; font-size: 12px; }
}

/* ---- панели ---- */
#panel { position: fixed; z-index: 15; right: 12px; top: 64px; bottom: calc(76px + var(--safe-b)); width: min(440px, calc(100vw - 24px)); background: var(--panel); border: 3px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; box-shadow: 0 0 0 3px #000; }
.phead { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.phead b { font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--gold); }
#p-body { overflow-y: auto; padding: 10px; touch-action: pan-y; flex: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tabs button { padding: 5px 8px; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.tile { display: flex; flex-direction: column; align-items: center; padding: 4px; font-size: 11px; text-align: center; min-height: 86px; }
.tile img { width: 40px; height: 40px; image-rendering: pixelated; margin-bottom: 3px; pointer-events: none; }
.tile small { color: var(--dim); pointer-events: none; }
.tile span { pointer-events: none; }
.invgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.invgrid .slot { width: auto; aspect-ratio: 1; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.desc { margin-top: 8px; color: var(--dim); min-height: 2.5em; }
.mlist button { display: block; width: 100%; text-align: left; margin-bottom: 6px; }
.sec { color: var(--gold); margin: 12px 0 6px; font-weight: bold; }
.keys { color: var(--dim); font-size: 13px; }
.keys b { color: var(--text); }

/* ---- диалог в духе ретро-RPG ---- */
#dialog { position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); width: min(680px, calc(100vw - 20px)); background: #000; border: 4px solid #fff; padding: 12px; display: flex; gap: 12px; cursor: pointer; }
#dlg-face { width: 72px; height: 108px; image-rendering: pixelated; flex: none; }
.dlg-text { flex: 1; position: relative; }
#dlg-name { font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--gold); }
#dlg-line { font-family: "Press Start 2P", monospace; font-size: 12px; line-height: 1.8; margin: 8px 0 0; min-height: 4em; }
.dlg-more { position: absolute; right: 0; bottom: 0; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0 } }
#chatbox select { width: 110px; flex: none; }

/* ---- редактор внешности ---- */
.cr-grid { grid-template-columns: 260px 1fr; }
#pv { width: 240px; height: 210px; }
.cr-preview { position: sticky; top: 0; align-self: start; }
.pv-btns { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.steps button { padding: 6px 8px; font-size: 13px; flex: 1 1 auto; }
.steps button.done { border-color: #3a6a4a; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.cards button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; font-size: 12px; text-align: center; }
.cards button img { width: 48px; height: 64px; image-rendering: pixelated; pointer-events: none; }
.cards button small { color: var(--dim); font-size: 11px; pointer-events: none; }
.cards button b, .cards button span { pointer-events: none; }
.cards.fac { grid-template-columns: repeat(3, 1fr); }
.cards.fac button { padding: 8px 6px; }
.cards.fac .ins { width: 26px; height: 26px; border-radius: 4px; transform: rotate(45deg); margin: 4px; }
.cards.presets { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.cards.presets .sw { display: flex; height: 22px; width: 100%; border-radius: 4px; overflow: hidden; pointer-events: none; }
.cards.presets .sw i { flex: 1; }
.cards.mode { grid-template-columns: 1fr 1fr; }
.cards.mode button { align-items: flex-start; text-align: left; padding: 10px; }
.cards button.on { border-color: var(--gold); background: #3a2f6a; box-shadow: 0 0 8px rgba(232,196,90,.4); }
.cpick { display: flex; flex-direction: column; align-items: center; margin: 0; font-size: 12px; }
.sizes { margin-top: 8px; }
.sizes button { font-size: 12px; line-height: 1.2; }
#h-table { margin-top: 10px; font-size: 13px; }
#h-table div { padding: 3px 0; border-bottom: 1px dashed #2a2450; }
#h-table .y { color: #3cff9e; } #h-table .n { color: #ff6a6a; }
.step-nav { display: flex; justify-content: space-between; margin-top: 14px; }
@media (max-width: 640px) {
  .cr-grid { grid-template-columns: 1fr; }
  .cr-preview { position: static; }
  #pv { width: 200px; height: 175px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .cards.fac { grid-template-columns: 1fr; }
  .cards.fac button { flex-direction: row; text-align: left; }
}

/* ---- чат ---- */
#chat-btn { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; background: #ff3a5a; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 5px; min-width: 18px; line-height: 18px; }
#chatpanel { position: fixed; z-index: 17; left: 8px; bottom: calc(8px + var(--safe-b)); width: min(440px, calc(100vw - 16px)); height: min(420px, 60vh);
  background: var(--panel); border: 3px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; box-shadow: 0 0 0 3px #000; }
.ctabs { display: flex; gap: 3px; padding: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.ctabs button { padding: 4px 8px; font-size: 12px; }
.ctabs .cx { margin-left: auto; }
#chat-hist { flex: 1; overflow-y: auto; padding: 6px 8px; font-size: 14px; touch-action: pan-y; user-select: text; -webkit-user-select: text; }
#chat-hist div { margin-bottom: 3px; word-wrap: break-word; }
#chat-hist .t { color: #6a6488; font-size: 11px; margin-right: 4px; }
#chat-hist .nm { cursor: pointer; }
#chat-hist .pm { background: #2a1a3a; border-radius: 4px; padding: 1px 4px; }
#chat-quick { display: flex; gap: 4px; padding: 4px 6px; overflow-x: auto; }
#chat-quick button { padding: 4px 8px; font-size: 12px; white-space: nowrap; flex: none; }
.crow { display: flex; gap: 6px; padding: 6px; border-top: 2px solid var(--line); }
.crow select { width: 96px; flex: none; }
body.chat-open #chatlog { display: none; }
@media (max-width: 640px) { #chatpanel { height: 55vh; } }

/* ---- приложение и полный экран ---- */
.appbtns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.appbtns button { flex: 1; }
body.standalone .fsb, body.no-fs .fsb, body.standalone .inst { display: none !important; }
#installbar { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 112px); left: 50%; transform: translateX(-50%); z-index: 6; width: min(520px, calc(100vw - 16px));
  display: flex; gap: 6px; align-items: center; background: rgba(30, 20, 60, 0.95); border: 2px solid var(--gold); border-radius: 8px; padding: 8px; font-size: 13px; }
#installbar span { flex: 1; }
#installbar button { padding: 6px 8px; font-size: 13px; flex: none; }

/* ---- раскладка без наложений ---- */
#top { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
body.chat-open #touch, body.chat-open #hotbar { display: none; }
body.touch #buildbar { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 112px); max-width: calc(100vw - 16px); overflow-x: auto; }
body.touch #notices { top: calc(env(safe-area-inset-top, 0px) + 160px); }
body.touch #chatlog { top: auto; bottom: calc(240px + var(--safe-b)); max-height: 30vh; overflow: hidden; }
@media (max-width: 640px) and (orientation: portrait) {
  #top { flex-wrap: wrap; }
  #bars { order: 1; width: 132px; }
  #topbtns { order: 2; max-width: calc(100vw - 160px); margin-left: auto; gap: 4px; }
  #topbtns button { font-size: 16px; padding: 3px 6px; min-width: 36px; min-height: 36px; }
  #loc { order: 3; width: 100%; flex: none; margin-top: 2px; }
  #joy { width: 120px; height: 120px; left: 12px; bottom: calc(66px + var(--safe-b)); }
  #knob { left: 35px; top: 35px; }
  #abtns { grid-template-columns: repeat(3, 52px); gap: 6px; right: 8px; bottom: calc(66px + var(--safe-b)); }
  #abtns button { width: 52px; height: 52px; font-size: 21px; }
  #abtns button.sm { font-size: 17px; }
  #hotbar { gap: 3px; }
  .slot { width: 42px; height: 42px; }
}
/* телефон боком: низкий экран — кнопки в два ряда, хотбар по центру между ними */
@media (max-height: 500px) {
  #top { padding-top: 4px; }
  #bars { width: 128px; padding: 4px 6px; }
  .bar { height: 10px; margin-bottom: 2px; }
  .bar span { font-size: 9px; line-height: 10px; }
  #buffs { display: none; }
  #topbtns { max-width: none; flex-wrap: nowrap; }
  #topbtns button { font-size: 16px; padding: 3px 7px; }
  #joy { width: 110px; height: 110px; left: max(10px, env(safe-area-inset-left, 0px)); bottom: 10px; }
  #knob { left: 30px; top: 30px; }
  #abtns { grid-template-columns: repeat(4, 48px); gap: 5px; right: max(8px, env(safe-area-inset-right, 0px)); bottom: 8px; }
  #abtns button { width: 48px; height: 48px; font-size: 19px; }
  #abtns button.sm { font-size: 16px; }
  #hotbar { bottom: 6px; }
  .slot { width: 40px; height: 40px; }
  .slot img { width: 28px; height: 28px; }
  body.touch #chatlog { bottom: 120px; max-height: 25vh; }
  body.touch #buildbar, #installbar { top: 64px; }
  body.touch #notices { top: 64px; }
  #panel { top: 52px; bottom: 6px; }
  #dialog { bottom: 6px; }
  #chatpanel { height: calc(100vh - 16px); }
}

/* ---- уточнения раскладки (без наложений) ---- */
#shanix .tag { font-size: 10px; font-weight: normal; }
#installbar { top: calc(env(safe-area-inset-top, 0px) + 8px); left: auto; right: 8px; transform: none; width: auto; max-width: min(420px, calc(100vw - 16px)); z-index: 7; padding: 6px 8px; }
body.touch #notices { top: 26%; }
body.touch #notices div { font-size: 13px; padding: 5px 8px; }
body.touch #chatlog { width: 46vw; font-size: 12px; }
.ctabs button { padding: 4px 7px; }
@media (max-width: 640px) {
  .ctabs button { font-size: 11px; padding: 3px 6px; }
  .cr-preview #spark, .cr-preview .hint { display: none; }
  #pv { width: 168px; height: 147px; }
  .cr-preview button.big { margin-top: 8px; padding: 10px; }
  .card.wide { padding: 12px; }
  #installbar span { font-size: 12px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  #bars { width: 126px; }
  #loc { font-size: 10px; }
}
#installbar { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); flex-direction: column; text-align: center; padding: 14px; gap: 10px; width: min(320px, calc(100vw - 32px)); box-shadow: 0 0 0 3px #000, 0 10px 40px #000; z-index: 18; }
#installbar span { font-size: 14px !important; }
#installbar button { width: 100%; padding: 10px; }
@media (max-height: 500px) { .bar span { font-size: 8px; } }

/* ---- меню по Esc ---- */
#escmenu { z-index: 19; background: rgba(5, 4, 12, 0.75); }
#escmenu.top { z-index: 25; }
.card.menu { width: min(760px, 100%); }
.mhead { display: flex; justify-content: space-between; align-items: center; }
.mhead h2 { margin: 0; }
.mtabs { margin: 10px 0; }
.mtabs button { padding: 8px 12px; font-size: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mgrid button { text-align: left; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mgrid button.go { border-color: var(--gold); background: #3a1f5a; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 2px; border: 2px solid #5a5288; border-bottom-width: 4px; border-radius: 5px; background: #1e1a38; color: #fff; font: bold 12px "Ubuntu Mono", monospace; text-align: center; }
.kcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.kgroup h3 { margin: 4px 0 6px; color: var(--gold); font-size: 14px; }
.kgroup div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 0; border-bottom: 1px dashed #2a2450; }
.kgroup span { margin-left: 8px; color: var(--dim); flex: 1; min-width: 140px; }
.kgroup code { color: var(--cyan); }
#m-howto p { margin: 0 0 10px; }
#keyhint { position: absolute; left: 8px; bottom: calc(10px + var(--safe-b)); font-size: 12px; color: var(--dim); background: rgba(10, 8, 20, 0.7); border-radius: 6px; padding: 4px 8px; pointer-events: none; }
body.touch #keyhint { display: none !important; }
body.touch .kgroup:not(:last-child) { opacity: 0.6; }
@media (max-width: 640px) { .kcols { grid-template-columns: 1fr; } .mgrid { grid-template-columns: 1fr 1fr; } .mgrid button { font-size: 13px; padding: 8px; } }

#m-online .orow { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #2a2450; flex-wrap: wrap; }
#m-online .orow b { flex: 1; min-width: 120px; }
#m-online .orow small { color: var(--dim); }
#m-online button { padding: 5px 10px; font-size: 13px; width: auto; display: inline-block; margin: 0; }

.micbar { height: 16px; background: #120f22; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; }
.micbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1a8a5a, #3cff9e, #ffe03a, #ff4a3a); transition: width .06s; }
#mic-state { min-height: 1.4em; margin: 6px 0; }

.micbar { position: relative; }
#mic-vad { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 9%; }
#mic-heard { font-weight: bold; }
#mic-heard.on { color: #3cff9e; }
.devrow { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.devrow label { margin: 0; white-space: nowrap; }
.devrow select { flex: 1; min-width: 0; }
#onair { position: fixed; z-index: 8; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 74px); background: #b0182a; color: #fff;
  font: bold 13px "Ubuntu Mono", monospace; padding: 4px 12px; border-radius: 14px; box-shadow: 0 0 12px #ff3a5a; animation: blink 1s infinite; pointer-events: none; }

.sline { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.sline label { margin: 0; min-width: 11em; white-space: nowrap; }
.sline .micbar, .sline input[type=range] { flex: 1; min-width: 0; }
.sline span { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
#snd-vad { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 9%; }
@media (max-width: 520px) { .sline { flex-wrap: wrap; } .sline label { min-width: 100%; } }

.stabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.stabs button { padding: 6px 10px; font-size: 13px; }
.stabs button.on { border-color: #5ff; color: #aff; }
.binds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; margin: 8px 0; }
.binds div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.binds button { min-width: 6.5em; padding: 4px 8px; }
.binds button.wait { border-color: #ffe03a; color: #ffe03a; }
.sline input[type=checkbox] { width: 20px; height: 20px; }
.sline select { flex: 1; min-width: 0; }
#fps { position: fixed; left: 6px; bottom: 6px; z-index: 50; font: 12px monospace; color: #3cff9e; background: rgba(0,0,0,.5); padding: 2px 5px; pointer-events: none; }

/* ---- Шкалы: металлическая рамка, деления, «призрак» урона, пульс на низком уровне */
#bars { min-width: 190px; }
.bar { height: 16px; border-radius: 4px; margin-bottom: 4px; background: linear-gradient(#0d0a18, #1e1830); border: 1px solid #3a3352; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #00000080; display: flex; align-items: center; }
.bar i, .bar u { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.bar u { background: rgba(255,240,200,.45); transition: width .9s ease-in .25s; width: 100%; }
.bar i { transition: width .15s; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.25); }
.bar.hp i { background: linear-gradient(180deg, #ff8a7a, #d0302c 55%, #8a1a1a); }
.bar.en i { background: linear-gradient(180deg, #ff9af0, #c03aa8 55%, #6a1a60); }
.bar.sta i { background: linear-gradient(180deg, #8affc6, #22b070 55%, #10603a); }
.bar.co i { background: linear-gradient(180deg, #f0a050, #a85a1a 55%, #5a2a0a); }
.bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0,0,0,.35) calc(10% - 1px) 10%); pointer-events: none; }
.bar .ic { position: relative; z-index: 2; width: 16px; text-align: center; font-size: 10px; text-shadow: 0 0 3px #000; }
.bar span { z-index: 2; padding-left: 2px; font-size: 10px; line-height: 16px; flex: 1; }
.bar em { position: relative; z-index: 2; font-style: normal; font-size: 10px; padding-right: 5px; text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; }
.bar.low { animation: lowpulse 0.9s ease-in-out infinite; }
@keyframes lowpulse { 50% { box-shadow: 0 0 8px 2px rgba(255,60,60,.8), inset 0 1px 3px #000; border-color: #ff5050; } }
@media (max-width: 700px) { #bars { min-width: 140px; } .bar { height: 12px; } .bar span, .bar em { font-size: 8px; line-height: 12px; } .bar .ic { font-size: 8px; width: 12px; } }

/* ---- Карточки товаров и рецептов */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.card { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 8px; background: linear-gradient(160deg, #1d1830, #120f20); border: 1px solid #3a3352; border-radius: 8px; }
.card:hover:not([disabled]) { border-color: #5ff; box-shadow: 0 0 10px rgba(80,255,255,.25); }
.card.off { opacity: .55; }
.card .ci { flex: none; width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), #0a0814 70%); border: 1px solid #2a2440; }
.card .ci img { width: 44px; height: 44px; image-rendering: pixelated; }
.card .cb { flex: 1; min-width: 0; }
.card .cb b { display: block; font-size: 13px; }
.card .cb small { display: block; color: #9a94b4; font-size: 10px; margin-top: 3px; line-height: 1.25; }
.props { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.pr { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: #2a2440; color: #d8d2f0; }
.pr.en { background: #4a1a44; } .pr.hp { background: #4a1a1a; } .pr.st { background: #134a30; } .pr.bf { background: #3a3a10; color: #ffe08a; }
.price { margin-top: 5px; font-weight: bold; color: #ffe03a; }
.price.no { color: #ff6a6a; }
.need { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.need span { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; padding: 1px 4px 1px 1px; border-radius: 4px; background: #1a3a26; color: #8affc6; }
.need span.no { background: #3a1a1a; color: #ff8a8a; }
.need img { width: 18px; height: 18px; image-rendering: pixelated; }
.cnt { float: right; color: #ffe03a; font-weight: bold; }

/* ---- Пиксельный стиль шкал */
.bar.hp .ic { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%208%208%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%272%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%272%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%270%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%274%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%275%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%270%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%271%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%272%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%270%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%271%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%272%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%272%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ff3a2a%27/%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd0c8%27/%3E%3C/svg%3E") center/12px 12px no-repeat; color: transparent; image-rendering: pixelated; }
.bar.en .ic { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%208%208%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%273%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%274%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%272%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%273%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%273%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%276%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%270%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%271%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%272%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%276%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%277%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%270%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%271%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%272%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%276%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%277%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%271%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%272%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%276%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%274%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23d040b8%27/%3E%3Crect%20x%3D%275%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3Crect%20x%3D%274%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffb0f0%27/%3E%3C/svg%3E") center/12px 12px no-repeat; color: transparent; image-rendering: pixelated; }
.bar.sta .ic { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%208%208%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%274%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%273%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%274%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%273%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%274%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%271%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%272%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%276%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%2330d080%27/%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c8ffe0%27/%3E%3C/svg%3E") center/12px 12px no-repeat; color: transparent; image-rendering: pixelated; }
.bar.co .ic { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%208%208%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%272%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%275%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%272%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%273%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%274%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%275%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%276%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%270%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%273%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%274%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%275%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%276%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%277%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%271%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%272%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%276%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%271%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%272%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%276%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%270%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%271%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%272%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235a2a0a%27/%3E%3Crect%20x%3D%275%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%276%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%277%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%271%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%274%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%275%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23a85a1a%27/%3E%3Crect%20x%3D%276%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%272%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3Crect%20x%3D%275%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f0a050%27/%3E%3C/svg%3E") center/12px 12px no-repeat; color: transparent; image-rendering: pixelated; }
.bar { border-radius: 0; border: 2px solid #0a0812; box-shadow: 0 0 0 2px #4a4266, inset 0 0 0 1px #000; image-rendering: pixelated; }
.bar i, .bar u { border-radius: 0; }
.bar.hp i { background: linear-gradient(180deg, #ff9a8a 0 25%, #e0402c 25% 70%, #9a1a1a 70%); }
.bar.en i { background: linear-gradient(180deg, #ffb0f0 0 25%, #c83ab0 25% 70%, #6a1a60 70%); }
.bar.sta i { background: linear-gradient(180deg, #a0ffd0 0 25%, #22b070 25% 70%, #10603a 70%); }
.bar.co i { background: linear-gradient(180deg, #ffc070 0 25%, #b0601a 25% 70%, #5a2a0a 70%); }
.bar u { background: #f8f0d8; opacity: .55; transition: width .9s steps(12) .25s; }
.bar i { transition: width .15s steps(6); box-shadow: none; }
.bar::after { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0,0,0,.45) calc(10% - 2px) 10%); }
.bar span, .bar em { font-family: 'Press Start 2P', 'Ubuntu Mono', monospace; font-size: 7px; letter-spacing: .5px; }
.bar.low { animation: lowpulse 0.8s steps(2) infinite; }
@keyframes lowpulse { 50% { box-shadow: 0 0 0 2px #ff3a3a, inset 0 0 0 1px #000; } }
.card, .card .ci, .pr, .need span { border-radius: 0; }
.card { border: 2px solid #3a3352; box-shadow: 0 0 0 2px #0a0812; }
.card .ci { border: 2px solid #2a2440; background: #0a0814; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.price, .cnt { font-family: 'Press Start 2P', monospace; font-size: 9px; }
#topbtns button.on, #abtns button.on { background: #3a2f6a; border-color: #ffe9a8; box-shadow: 0 0 8px rgba(255,233,168,.45); }

/* ---- Главное меню (menu.rs): фон рисуется на #cv */
.screen > .card, #mainmenu .card, #editor .card.ed { display: block; }
#mainmenu { background: none; align-items: flex-start; }
.mm-wrap { width: min(1040px, 100%); margin: auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.mm-title { font-size: clamp(22px, 6vw, 46px); text-shadow: 4px 4px 0 #5a1f2b, 0 0 30px rgba(255,200,120,.35); margin: 8px 0 0; }
#mm-login { align-self: center; background: rgba(16,14,30,.86); }
.mm-cols { display: grid; grid-template-columns: 250px minmax(0, 680px); gap: 14px; align-items: start; }
.mm-btns { display: flex; flex-direction: column; gap: 8px; }
.mm-btns button { text-align: left; padding: 11px 14px; background: rgba(26,22,48,.88); backdrop-filter: blur(2px); }
.mm-btns button small { display: block; color: var(--dim); font-size: 12px; }
.mm-btns button.go { border-color: var(--gold); background: rgba(58,31,90,.92); font-family: "Press Start 2P", monospace; font-size: 12px; line-height: 1.6; }
.mm-pane { background: rgba(16,14,30,.8); min-height: 200px; }
.mm-pane:hover { border-color: var(--line) !important; box-shadow: 0 0 0 2px #0a0812 !important; }
.chars { display: grid; gap: 8px; }
.ch { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 2px solid var(--line); border-radius: 8px; background: rgba(26,22,48,.7); }
.ch.last { border-color: var(--gold); }
.ch img { width: 64px; height: 96px; image-rendering: pixelated; object-fit: contain; }
.ch .chi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch .chi small { color: var(--dim); font-size: 12px; }
.ch .chb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ch .chb button { padding: 6px 8px; font-size: 13px; }
.ch .chb .go { grid-column: 1 / -1; border-color: var(--gold); background: #3a1f5a; }
.ch .chb .del:hover { border-color: #ff6a6a; }
.ch.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 6px; gap: 0; border-style: dashed; color: var(--dim); }
.ch.empty span { font-size: 22px; color: var(--cyan); }
.srv { padding: 10px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.srv.on { border-color: var(--cyan); }
.srv small { display: block; color: var(--dim); }
.credits p { margin: 6px 0; }
@media (max-width: 720px) {
  .mm-cols { grid-template-columns: 1fr; }
  .mm-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .mm-btns .go { grid-column: 1 / -1; }
  .ch { grid-template-columns: 48px 1fr; }
  .ch img { width: 48px; height: 72px; }
  .ch .chb { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .ch .chb .go { grid-column: auto; }
}

/* ---- Редактор персонажа (editor.rs) */
#editor { background: rgba(5,4,12,.55); align-items: flex-start; }
.card.ed { width: min(1180px, 100%); margin: auto; background: rgba(16,14,30,.95); }
.ed-head { display: flex; justify-content: space-between; align-items: center; }
.ed-head h2 { margin: 0; }
.ed-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; margin-top: 10px; }
.ed-left { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; align-self: start; }
#ed-pv { width: 360px; height: 420px; touch-action: none; cursor: grab; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 40%, #2a2350, #0e0c1c); border: 2px solid var(--line); border-radius: 8px; align-self: center; }
.ed-info { font-size: 13px; color: var(--text); }
.budget { position: relative; height: 22px; background: #1a1428; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.budget i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2a8a5a, #3cff9e); opacity: .45; }
.budget.over i { background: linear-gradient(90deg, #8a2a2a, #ff6a6a); opacity: .7; }
.budget span { position: relative; z-index: 1; font-size: 12px; padding-left: 6px; line-height: 18px; }
.ed-stats { font-size: 12px; max-height: 180px; overflow-y: auto; }
.ed-stats div { padding: 3px 0; border-bottom: 1px dashed #2a2450; }
.ed-stats small { display: block; color: #8affc6; }
#ed-done.dim { opacity: .5; }
.ed-tabs button.on { border-color: var(--gold); }
#editor .cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
#editor .cards.fac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#editor .cards button { min-width: 0; overflow-wrap: anywhere; }
#editor .cards.mode { grid-template-columns: 1fr 1fr; }
#editor .cards.presets { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
#editor .cards.specs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#editor .cards.specs button { align-items: flex-start; text-align: left; }
#editor .cards small.bon { color: var(--cyan); }
#editor .cards button img { width: 48px; height: 72px; object-fit: contain; }
.ed-parts { display: grid; grid-template-columns: 210px 1fr; gap: 10px; }
.ed-slots { display: flex; flex-direction: column; gap: 3px; max-height: 70vh; overflow-y: auto; }
.ed-slots button { display: flex; gap: 8px; align-items: center; text-align: left; padding: 5px 8px; }
.ed-slots button * { pointer-events: none; }
.ed-slots .si { width: 22px; text-align: center; color: var(--gold); font-size: 16px; }
.ed-slots small { display: block; color: var(--dim); font-size: 11px; }
.ed-slots button.on { border-color: var(--gold); background: #3a2f6a; }
#editor .cards.opts { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
#editor .cards.opts button { position: relative; justify-content: flex-start; }
#editor .cards.opts .cost { font-size: 11px; color: var(--gold); }
#editor .cards.opts small.eff { color: #8affc6; }
#editor .cards.opts small.who { color: var(--cyan); }
#editor .cards.opts small.warn { color: #ffb05a; }
#editor .cards.opts button.locked { opacity: .45; }
#editor .cards.opts .lock { position: absolute; top: 4px; right: 6px; font-style: normal; }
#ed-htable { margin-top: 10px; font-size: 13px; }
#ed-htable div { padding: 3px 0; border-bottom: 1px dashed #2a2450; }
#ed-htable .y { color: #3cff9e; } #ed-htable .n { color: #ff6a6a; }
.ptools { display: flex; flex-direction: column; gap: 6px; }
.ptools .seg { flex-wrap: wrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.swatches input[type=color] { width: 40px; height: 32px; }
.swatches i { width: 24px; height: 24px; border: 2px solid #0a0812; box-shadow: 0 0 0 1px #4a4266; cursor: pointer; }
.swatches i.on { box-shadow: 0 0 0 2px var(--gold); }
.pwrap { margin-top: 8px; max-height: 70vh; overflow: auto; background: #0c0a18; border: 2px solid var(--line); border-radius: 6px; padding: 6px; text-align: center; touch-action: none; }
#ed-paint { image-rendering: pixelated; touch-action: none; cursor: crosshair; }
.skrows { display: grid; gap: 4px; }
.skrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; }
.skrow .pips { color: var(--gold); letter-spacing: 2px; min-width: 4em; text-align: center; }
@media (max-width: 760px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-left { position: static; }
  .ed-parts { grid-template-columns: 1fr; }
  .ed-slots { flex-direction: row; overflow-x: auto; max-height: none; }
  .ed-slots button { flex: none; }
  #ed-pv { width: auto; height: 30vh; aspect-ratio: 300 / 340; }
  #ed-pane button, #ed-pane input, #ed-pane select, #ed-tabs button { scroll-margin-top: calc(26vh + 120px); scroll-margin-bottom: 80px; }
  .ed-left { position: static; flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 6px; align-items: start; }
  .ed-left > #ed-pv { grid-row: 1 / span 6; }
  .ed-left > .seg { flex-wrap: wrap; }
  .ed-left > .seg button { flex: 1 1 40%; min-width: 0; }
  #editor button { min-width: 0; }
  #editor { width: 100vw; left: 0; }
  #editor, #editor > .card.ed, .ed-grid, .ed-right { max-width: 100vw; overflow-x: hidden; }
  .ed-left .ed-stats, .ed-left #ed-info, .ed-left #ed-hint { display: none; }
  .ed-left .seg button { padding: 4px 6px; font-size: 11px; min-height: 30px; }
  .ed-left .budget { height: 18px; margin-top: 0; }
  .ed-left .budget span { font-size: 10px; line-height: 14px; }
  .ed-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(16,14,30,.97); border-top: 2px solid var(--line); }
  .ed-save button { min-height: 44px; font-size: 12px; }
  #editor { padding: 0; }
  #editor > .card.ed { display: flex; flex-direction: column; height: 100dvh; padding: 6px 8px 64px; overflow: hidden; border-radius: 0; }
  .ed-head { flex-wrap: wrap; gap: 4px; }
  .ed-head h2 { font-size: 12px; flex: 1 1 50%; min-width: 0; overflow-wrap: anywhere; }
  .ed-hbtns { flex: none; }
  .ed-hbtns button { padding: 6px 9px; min-width: 0; margin: 0; }
  .ed-dirty { font-size: 10px; order: 3; flex-basis: 100%; }
  .ed-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
  .ed-right { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .ed-tabs { flex: none; overflow-x: auto; flex-wrap: nowrap; }
  .ed-tabs button { flex: none; }
  #ed-pane { flex: 1; min-height: 0; overflow-y: auto; }
  .ed-saved, #ed-err { font-size: 11px; }
}
#snd-custom .cm { flex: 1; text-align: left; color: var(--dim); }
#snd-custom .fbtn { margin: 0; min-width: 0; cursor: pointer; border: 2px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.pgrid { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.pgrid .pwrap { margin-top: 0; }
.ed-grid > *, .mm-cols > * { min-width: 0; }
#editor .cards.opts button img { width: 96px; height: 96px; }
@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr; }
  #editor .cards.fac { grid-template-columns: 1fr; }
  .card.ed { padding: 10px; }
  #editor { padding: 6px; }
}

#mm-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 9999; max-width: min(92vw, 640px); padding: 12px 18px; background: #2a0f18; border: 2px solid #ff5a6a; box-shadow: 0 0 0 2px #0a0812, 0 6px 24px rgba(0,0,0,.6); color: #ffd6da; font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.6; text-align: center; }
/* ---- «Анатомия»: скелет, модули, альтмод */
.ed-head { gap: 10px; }
.ed-head h2 { flex: 1; }
.ed-hbtns { display: flex; gap: 4px; }
.ed-dirty { color: #ffb05a; font-size: 12px; }
.ed-save { display: grid; grid-template-columns: auto 1fr; gap: 6px; }
.ed-save button { margin: 0; }
.ed-saved { font-size: 13px; min-height: 1em; }
.ed-saved .ok { color: #3cff9e; } .ed-saved .wait { color: var(--gold); }
#ed-pane { max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 4px; }
#editor .cards.thumbs { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
#editor .cards.thumbs.small { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
#editor .cards.thumbs button { position: relative; padding: 4px; gap: 2px; justify-content: flex-start; }
#editor .cards.thumbs button img.th { width: 96px; height: 96px; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 45%, #2a2350, #0e0c1c); border-radius: 6px; object-fit: contain; }
#editor .cards.thumbs.small button img.th { width: 72px; height: 72px; }
#editor .cards.thumbs button b { font-size: 12px; line-height: 1.15; }
#editor .cards.thumbs button small { font-size: 11px; color: var(--dim); }
#editor .cards.thumbs .cost { font-size: 10px; color: var(--gold); }
#editor .cards.thumbs button.locked { opacity: .45; }
#editor .cards.thumbs .lock { position: absolute; top: 2px; right: 4px; font-style: normal; }
#editor .cards.thumbs button.on { border-color: var(--gold); background: #3a2f6a; }
.modcats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.modcats button { display: flex; align-items: center; gap: 4px; padding: 4px 8px; margin: 0; min-width: 0; }
.modcats button.on { border-color: var(--gold); background: #3a2f6a; }
.modcats .si { color: var(--gold); }
#ed-search, #ed-asearch { width: 100%; margin: 4px 0; }
.bones { display: flex; flex-wrap: wrap; gap: 3px; max-height: 220px; overflow-y: auto; }
.bones button { margin: 0; padding: 3px 8px; font-size: 12px; min-width: 0; text-align: left; }
.bones button.on { border-color: var(--gold); background: #3a2f6a; }
.sline { display: grid; grid-template-columns: 150px 1fr 60px; gap: 6px; align-items: center; font-size: 12px; }
.sline label { margin: 0; }
.sline span { color: var(--gold); text-align: right; }
.scheme { display: grid; gap: 3px; }
.srow { display: grid; grid-template-columns: 130px 44px auto 1fr; gap: 6px; align-items: center; font-size: 12px; }
.srow input[type=color] { width: 44px; height: 26px; padding: 0; }
.srow .pal { display: flex; flex-wrap: wrap; gap: 2px; }
.srow .pal i { width: 14px; height: 14px; border: 1px solid #0a0812; cursor: pointer; }
.srow button { margin: 0; padding: 2px 6px; }
.srow button.on { border-color: var(--gold); }
label.chk { display: flex; gap: 6px; align-items: center; }
.card-stats { display: grid; gap: 2px; font-size: 12px; margin: 4px 0; }
.card-stats > div { display: grid; grid-template-columns: 150px 1fr; gap: 6px; align-items: center; }
.card-stats .ab { display: block; color: var(--cyan); }
.card-stats .bar { display: block; height: 8px; background: #1a1428; border: 1px solid #3a3460; border-radius: 3px; overflow: hidden; box-shadow: none; }
.card-stats .bar i { display: block; position: static; height: 100%; background: linear-gradient(90deg, #2a8a5a, #3cff9e); }
.ed-tip { position: fixed; z-index: 60; max-width: 320px; background: rgba(12,10,24,.97); border: 2px solid var(--gold); border-radius: 8px; padding: 8px 10px; font-size: 12px; pointer-events: none; box-shadow: 0 6px 24px #000a; }
.ed-tip b { font-size: 14px; color: var(--gold); }
.ed-tip .tc { color: var(--dim); }
.ed-tip .eff { color: #8affc6; }
.ed-tip .up { color: #3cff9e; } .ed-tip .down { color: #ff8a6a; }
.ed-tip .diff { margin-top: 4px; border-top: 1px dashed #3a3460; padding-top: 4px; }
@media (max-width: 760px) {
  .sline { grid-template-columns: 1fr 1.4fr 48px; }
  .srow { grid-template-columns: 1fr 40px auto; }
  .srow .pal { grid-column: 1 / -1; }
  #editor .cards.thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  #editor .cards.thumbs button img.th { width: 84px; height: 84px; }
  .card-stats > div { grid-template-columns: 1fr 1fr; }
}
/* космос: свои кнопки на телефоне (круиз, цель, добыча), наземные — прячутся */
.sp-only { display: none !important; }
body.space .sp-only { display: inline-block !important; }
body.space .gnd-only { display: none !important; }

/* скины и заведения */
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.skin { display: grid; grid-template-columns: 48px 1fr; gap: 4px 6px; align-items: center; border: 2px solid var(--line); border-radius: 6px; padding: 4px; }
.skin img { width: 48px; height: 72px; image-rendering: pixelated; grid-row: span 2; }
.skin b { font-size: 12px; overflow-wrap: anywhere; }
.skin .skb { display: flex; flex-wrap: wrap; gap: 3px; }
.skin .skb button { margin: 0; padding: 6px 8px; min-height: 36px; }
.skimp { display: flex; gap: 6px; margin-top: 6px; }
.skimp input { flex: 1; }
.skinnote { color: var(--gold); }
.shopbox { border: 2px solid var(--gold); border-radius: 6px; padding: 6px; font-size: 12px; display: grid; gap: 2px; }
.shopbox small { color: var(--dim); }
.shopbox .down { color: #ff8a6a; }

#editor .cards.thumbs button.nonecard .none { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; font-size: 40px; color: #ff8a6a; background: #0e0c1c; border-radius: 6px; }
.installed { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.installed span { display: inline-flex; gap: 2px; }
.installed span.on button { border-color: var(--gold); }
.installed button { margin: 0; min-height: 34px; }
.budget.over span { color: #ffb0a0; }
@media (max-width: 760px) { #editor .cards.thumbs button.nonecard .none { width: 84px; height: 84px; } }
