/* ============================================================
   life.os — тёмный интерфейс, пастельные акценты, линованные иконки
   ============================================================ */:root {
  --bg:        #14141a;
  --bg-elev:   #1a1a22;
  --surface:   #1f1f29;
  --surface-2: #262631;
  --line:      #30303d;
  --line-soft: #272733;

  --ink:       #e8e6ef;
  --ink-2:     #a6a2b6;
  --ink-3:     #6e6a80;

  --mint:      #d4b5e8;
  --lav:       #bdb0f5;
  --peach:     #f7b3a4;
  --butter:    #f5dda0;
  --sky:       #9fd0f5;
  --rose:      #f2a9c0;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.28);
}* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }html, body { height: 100%; }body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 3px 3px;
}.muted { color: var(--ink-2); }.dot { color: var(--mint); }/* ---------- иконки ---------- */i[data-icon] { display: inline-flex; line-height: 0; }i[data-icon] svg { display: block; }.ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }/* ============================================================
   ЭКРАНЫ
   ============================================================ */.screen { display: none; height: 100dvh; flex-direction: column; }.screen.active { display: flex; }/* ---------- ВХОД ---------- */#screen-login {
  justify-content: center; align-items: center; padding: 24px;
  background:
    radial-gradient(760px 420px at 50% -12%, rgba(189,176,245,.10), transparent 70%),
    radial-gradient(520px 360px at 12% 108%, rgba(159,227,196,.07), transparent 70%),
    var(--bg);
}.login-form { display: flex; flex-direction: column; gap: 14px; }.btn {
  font: inherit; font-size: 13.5px; font-weight: 500;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  transition: filter .15s, background .15s, border-color .15s, transform .08s;
  white-space: nowrap;
}.btn:hover { background: #2e2e3b; }.btn:active { transform: translateY(1px); }.btn:disabled { opacity: .4; cursor: not-allowed; }.btn.primary {
  background: var(--mint); border-color: var(--mint); color: #15121c; font-weight: 600;
  margin-top: 4px; padding: 11px 16px;
}.btn.primary:hover { filter: brightness(1.07); background: var(--mint); }.btn.tiny { font-size: 12px; padding: 6px 11px; }.btn.warn { color: var(--peach); border-color: rgba(247,179,164,.34); background: transparent; }.btn.warn:hover { background: rgba(247,179,164,.1); }.link-btn {
  background: none; border: none; font: inherit; font-size: 11.5px;
  color: var(--ink-3); cursor: pointer; padding: 2px 4px; border-radius: 5px;
}.link-btn:hover { color: var(--mint); }.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--ink-3); cursor: pointer; transition: color .15s, background .15s;
}.icon-btn:hover { color: var(--ink); background: var(--surface-2); }/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ============================================================ */.wordmark { font-size: 13.5px; font-weight: 600; letter-spacing: -.02em; }.grow { flex: 1; }.clock { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }/* ============================================================
   РАСКЛАДКА
   ============================================================ */.layout {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
  gap: 12px; padding: 12px;
  overflow-y: auto;
}.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  min-height: 0;
}/* ---------- персонаж ---------- */.char-card {
  padding: 16px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto;
}.portrait {
  position: relative; align-self: center;
  width: 104px; height: 104px; flex: 0 0 104px;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(189,176,245,.18), transparent 62%),
    var(--bg);
  border: 1px solid var(--line);
}@keyframes spin { to { transform: rotate(360deg); } }.portrait svg { width: 52px; height: 52px; color: var(--lav); }.vitals { display: flex; flex-direction: column; gap: 10px; }.vital .head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-size: 11px; color: var(--ink-3);
}.vital .head b { margin-left: auto; font-weight: 600; font-size: 11.5px; }.vital .head svg { width: 13px; height: 13px; }.track {
  height: 6px; border-radius: 99px; background: var(--bg);
  overflow: hidden; border: 1px solid var(--line-soft);
}.fill {
  height: 100%; border-radius: 99px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}.money-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: auto;
}.money-row .lbl { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }.money { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--butter); }.day { font-size: 19px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }.right { text-align: right; }/* ---------- инфо-панель ---------- */.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px;
}.log {
  flex: 1; min-height: 90px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
  padding-right: 4px;
}.log-row {
  display: flex; gap: 9px; font-size: 12px; padding: 4px 6px;
  border-radius: 6px; transition: background .12s;
}.log-row:hover { background: var(--bg-elev); }.log-time { color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; flex: 0 0 34px; padding-top: 1px; }.log-txt { color: var(--ink-2); }.log-row:first-child .log-txt { color: var(--ink); }.log-row.money .log-txt { color: var(--butter); }.log-row.system .log-txt { color: var(--lav); }.log-row.work .log-txt { color: var(--mint); }.log-row.tax .log-txt { color: var(--peach); }.log-row.social .log-txt { color: var(--rose); }/* ============================================================
   ВКЛАДКИ
   ============================================================ */.tabs {
  flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev);
  padding-bottom: env(safe-area-inset-bottom);
}.tab {
  font: inherit; background: none; border: none; cursor: pointer;
  color: var(--ink-3); padding: 9px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; position: relative;
  transition: color .15s;
}.tab i svg { width: 19px; height: 19px; }.tab:hover { color: var(--ink-2); }.tab.active { color: var(--mint); }.tab.active::before {
  content: ""; position: absolute; top: -1px; left: 26%; right: 26%;
  height: 2px; border-radius: 0 0 2px 2px; background: var(--mint);
}.tab .badge {
  position: absolute; top: 5px; right: calc(50% - 17px);
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 99px; background: var(--rose); color: #241016;
  font-size: 9.5px; font-weight: 700; display: grid; place-items: center;
}/* ============================================================
   ШИТ
   ============================================================ *//* Полноэкранная вкладка вместо шторки снизу */.sheet {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; justify-content: center;
  animation: fade .14s ease;
}.sheet[hidden] { display: none; }@keyframes fade { from { opacity: 0; } }.sheet-panel {
  width: min(760px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slidein .18s cubic-bezier(.2,.8,.2,1);
}@keyframes slidein { from { transform: translateX(14px); opacity: .4; } }.sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elev);
  padding-top: calc(10px + env(safe-area-inset-top));
}.sheet-head > span {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}/* Кнопка «назад» — только стрелка, без подписи. */.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12.5px; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line);
  border-radius: 99px; padding: 0; width: 30px; height: 30px; cursor: pointer;
  flex: 0 0 auto;
}.back-btn:hover { color: var(--ink); background: var(--surface-2); }.back-btn svg { width: 14px; height: 14px; }.sheet-tabs {
  display: flex; gap: 4px; padding: 0 14px 10px; overflow-x: auto;
  scrollbar-width: none;
}.sheet-tabs::-webkit-scrollbar { display: none; }.stab {
  font: inherit; font-size: 11.5px; white-space: nowrap;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-3); border-radius: 99px; padding: 5px 11px;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
}.stab svg { width: 13px; height: 13px; }.stab:hover { color: var(--ink-2); border-color: var(--ink-3); }.stab.active { color: var(--bg); background: var(--mint); border-color: var(--mint); font-weight: 500; }.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px max(6px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 7px;
}/* ---------- строки-карточки ---------- */.row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: border-color .15s, background .15s;
}.row:hover { border-color: var(--line); background: var(--surface-2); }.row.locked { opacity: .44; }.row .ico { width: 30px; height: 30px; color: var(--ink-2); }.row .ico svg { width: 22px; height: 22px; }.row .body { flex: 1; min-width: 0; }.row .title {
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
}.row .meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }.row .meta + .meta { margin-top: 1px; }.row .req { font-size: 10.5px; color: var(--butter); margin-top: 3px; }.row .side { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }.row .price { font-size: 12px; color: var(--butter); font-weight: 600; font-variant-numeric: tabular-nums; }.row .cd { font-size: 10.5px; color: var(--ink-3); }.badge-ok { font-size: 10px; color: var(--mint); border: 1px solid rgba(159,227,196,.3); border-radius: 99px; padding: 1px 6px; font-weight: 500; }.badge-eq { font-size: 10px; color: var(--bg); background: var(--mint); border-radius: 99px; padding: 1px 6px; font-weight: 600; }.sub-title {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: 10px 2px 2px;
}.sub-title:first-child { margin-top: 2px; }.empty {
  text-align: center; color: var(--ink-3); font-size: 12px;
  padding: 26px 12px;
}.offers {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid rgba(242,169,192,.25);
  background: rgba(242,169,192,.06);
  border-radius: var(--r-sm); padding: 10px;
}.offers .row { background: var(--surface); }/* ---------- тосты ---------- */#toasts {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column; gap: 7px;
  pointer-events: none; width: max-content; max-width: calc(100vw - 28px);
}.toast {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 2px solid var(--mint);
  border-radius: 8px; padding: 9px 13px;
  font-size: 12.5px; color: var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  animation: toast-in .2s cubic-bezier(.2,.8,.2,1);
}.toast.bad { border-left-color: var(--peach); }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }/* ============================================================
   МОБИЛЬНЫЙ
   ============================================================ */@media (max-width: 720px) {.layout {
    display: flex; flex-direction: column; gap: 9px; padding: 9px; overflow-y: auto;
  }.char-card { flex: 0 0 auto; padding: 12px; gap: 10px; }.portrait { width: 60px; height: 60px; flex-basis: 60px; align-self: flex-start; }.portrait svg { width: 30px; height: 30px; }.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.vital:first-child { grid-column: 1 / -1; }.money-row { padding-top: 9px; }.log { max-height: 34dvh; }.sheet-panel { max-height: 90dvh; border-radius: var(--r) var(--r) 0 0; }.stats { grid-template-columns: repeat(3, 1fr); }}@media (max-width: 380px) {.stats { grid-template-columns: repeat(2, 1fr); }.tab span { font-size: 9.5px; }}/* ============================================================
   РУЛЕТКА РОЖДЕНИЯ
   ============================================================ */#screen-birth {
  justify-content: center; align-items: center; padding: 20px;
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(189,176,245,.12), transparent 70%),
    radial-gradient(520px 360px at 8% 110%, rgba(159,227,196,.08), transparent 70%),
    var(--bg);
}.birth-wrap {
  width: min(460px, 100%);
  display: flex; flex-direction: column; gap: 16px;
}.birth-head {
  display: flex; align-items: baseline; gap: 10px;
}.birth-head .wordmark { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }.birth-sub {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}.birth-steps { display: flex; flex-direction: column; gap: 9px; }.bstep {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .2s, background .2s, opacity .2s;
}.bstep.pending { opacity: .34; }.bstep.active { border-color: rgba(159,227,196,.4); background: var(--surface-2); }.bstep.done { border-color: var(--line); }.bstep .lbl {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}.bstep .lbl .num {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px;
}.bstep.done .lbl .num { color: var(--mint); border-color: rgba(159,227,196,.35); }.bstep .val {
  margin-top: 5px; font-size: 17px; font-weight: 600; letter-spacing: -.015em;
  min-height: 24px; display: flex; align-items: center; gap: 8px;
}.bstep .val .spin {
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  color: var(--ink-2); letter-spacing: -.02em;
}.bstep.done .val { color: var(--ink); }.bstep .sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }.bstep .sub b { color: var(--ink-2); font-weight: 500; }.bstep .bar {
  margin-top: 8px; height: 3px; border-radius: 99px;
  background: var(--bg); overflow: hidden;
}.bstep .bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--mint), var(--lav));
  transition: width .12s linear;
}.birth-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 2px;
}.birth-seed {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 9.5px;
  color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}.birth-foot .btn { flex: 0 0 auto; margin-top: 0; }.bstep .flash { animation: bflash .3s ease; }@keyframes bflash {
  0% { color: var(--mint); transform: translateY(-2px); }
  100% { color: inherit; transform: none; }
}/* карточка места рождения в игре */.birth-card { display: flex; flex-direction: column; gap: 6px; }.birth-card .bc-row {
  display: flex; align-items: baseline; gap: 8px; font-size: 12px;
}.birth-card .bc-row .k { color: var(--ink-3); font-size: 11px; min-width: 74px; }.birth-card .bc-row .v { color: var(--ink); }.btn.ghost {
  background: transparent; border-color: var(--line); color: var(--ink-2);
}.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }.money-usd {
  font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  margin-top: 1px;
}/* ---------- модули: формы и кнопки ---------- */.form-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px;
}.form-row .btn { flex: 1 1 auto; }.row .side .btn + .btn { margin-left: 4px; }.row .side { flex-wrap: wrap; }@media (max-width: 520px) {.tabs { grid-template-columns: repeat(6, 1fr); }.tab { font-size: 9px; padding: 7px 2px 8px; }.tab i svg { width: 17px; height: 17px; }}.inner-tabs {
  display: flex; gap: 5px; margin: 2px 0 8px; flex-wrap: wrap;
}/* закрытый раздел без телефона */.locked-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 14px; margin-top: 6px;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
}.locked-note svg { width: 22px; height: 22px; color: var(--butter); flex: 0 0 auto; }.locked-note b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 3px; }.locked-note p { margin: 0; font-size: 12px; line-height: 1.45; }/* ---------- выбор пола и имени ---------- */.name-gender {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}.gender-btn {
  font: inherit; font-size: 13px; padding: 12px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s;
}.gender-btn:hover { color: var(--ink); border-color: var(--ink-3); }.gender-btn.active {
  background: var(--mint); border-color: var(--mint);
  color: #15121c; font-weight: 600;
}.name-list { display: flex; flex-direction: column; gap: 7px; }.name-opt {
  font: inherit; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--ink); font-size: 14px; transition: all .15s;
}.name-opt:hover { border-color: var(--line); background: var(--surface-2); }.name-opt.active {
  border-color: var(--mint); background: rgba(159,227,196,.08);
  box-shadow: inset 0 0 0 1px rgba(159,227,196,.35);
}/* ============================================================
   ТЕЛЕФОН: домашний экран с приложениями
   ============================================================ */.phone-home { display: flex; flex-direction: column; gap: 10px; }.phone-status {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-2);
  padding: 8px 12px; border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); background: var(--surface);
}.phone-status span { color: var(--ink-3); font-size: 11px; }.phone-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}.phone-icon {
  font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent;
  color: var(--ink); transition: background .15s, border-color .15s;
}.phone-icon:hover { background: var(--surface); border-color: var(--line-soft); }.phone-icon .pi {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--mint);
}.phone-icon .pi svg { width: 24px; height: 24px; }.phone-icon .pn { font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.2; }.phone-icon.dim .pi { opacity: .45; }.phone-icon.off { opacity: .35; cursor: default; }.phone-icon.off .pi { color: var(--ink-3); }.phone-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}.link-btn.warn { color: var(--peach); }.phone-app { display: flex; flex-direction: column; gap: 8px; }.phone-app-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}.phone-app-head span { font-size: 14px; font-weight: 600; }.phone-app-body { display: flex; flex-direction: column; gap: 7px; }/* ============================================================
   ЭКРАН ВЫБОРА ИМЕНИ: адаптив ПК/мобильный
   ============================================================ */@media (min-width: 700px) {#screen-birth, #screen-name { padding: 40px 24px; }#screen-name {
    justify-content: center; align-items: center;
    background:
      radial-gradient(700px 420px at 50% -10%, rgba(189,176,245,.12), transparent 70%),
      radial-gradient(520px 360px at 8% 110%, rgba(159,227,196,.08), transparent 70%),
      var(--bg);
  }.birth-wrap { width: min(560px, 100%); }.name-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }.name-list .name-opt:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }.name-opt { font-size: 15px; padding: 14px 16px; }.gender-btn { font-size: 14px; padding: 14px; }}@media (max-width: 380px) {.name-opt { font-size: 13px; padding: 10px 12px; }.gender-btn { font-size: 12px; padding: 10px 6px; }}/* ============ деньги: подсказка в долларах ============ */.money-usd { font-size: 11px; color: var(--ink-3); }/* ============ хранилище ============ */.storage-head {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 8px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg-elev); font-size: 11.5px; color: var(--ink-3);
}.storage-head b { color: var(--ink); font-weight: 600; }.storage-grid { display: flex; flex-direction: column; gap: 6px; }.storage-item {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--surface);
}.storage-item.on { border-color: var(--mint); }.si-ico { flex: 0 0 auto; color: var(--ink-2); display: flex; }.si-body { min-width: 0; flex: 1 1 auto; }.si-name { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }.si-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }.si-side { flex: 0 0 auto; display: flex; gap: 6px; }/* ============ телефон не куплен ============ */.phone-locked { display: flex; justify-content: center; padding: 6px 0 14px; }.phone-body {
  width: min(260px, 78vw);
  border: 1px solid var(--line); border-radius: 26px;
  background: var(--bg-elev);
  padding: 12px 10px 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}.phone-notch {
  width: 64px; height: 5px; border-radius: 999px; margin: 0 auto 10px;
  background: var(--line);
}.phone-screen.locked {
  border: 1px dashed var(--line);
  border-radius: 16px; padding: 26px 14px; min-height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
}.phone-lock { color: var(--butter); }.phone-lock-title { font-size: 13px; color: var(--ink); font-weight: 600; }.phone-lock-sub { font-size: 11px; color: var(--ink-3); line-height: 1.45; max-width: 190px; }.phone-home-bar {
  width: 90px; height: 3px; border-radius: 999px; margin: 10px auto 2px;
  background: var(--line);
}/* ============ форма выставления лота ============ */.auction-form, .sign-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px; padding: 10px; margin-top: 5px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg-elev);
}.field-inline { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--ink-3); }.field-inline input, .field-inline select {
  font: inherit; font-size: 12px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 6px 7px; min-width: 0;
}.auction-form .btn, .sign-form .btn { align-self: end; }.sign-form { grid-template-columns: minmax(160px, 1fr) auto; }.name-form { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) auto; }/* ============================================================
   УВЕДОМЛЕНИЯ СВЕРХУ (добыча, покупки, события)
   ============================================================ */#notices {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 3000; display: flex; flex-direction: column; gap: 6px;
  width: min(420px, calc(100vw - 20px));
  padding: max(8px, env(safe-area-inset-top)) 0 0;
  pointer-events: none;
}.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(24, 24, 29, .96);
  border: 1px solid var(--line);
  border-left: 2px solid var(--mint);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
  font-size: 12.5px; color: var(--ink);
  backdrop-filter: blur(8px);
  animation: notice-in .26s cubic-bezier(.2,.9,.25,1);
}.notice.out { animation: notice-out .22s ease forwards; }.notice .n-ico { flex: 0 0 auto; display: flex; color: var(--mint); }.notice .n-txt { flex: 1 1 auto; min-width: 0; line-height: 1.35; }.notice .n-txt b { font-weight: 600; }.notice .n-sub { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }.notice.loss { border-left-color: var(--peach); }.notice.loss .n-ico { color: var(--peach); }.notice.info { border-left-color: var(--lavender); }.notice.info .n-ico { color: var(--lavender); }.notice.money { border-left-color: var(--butter); }.notice.money .n-ico { color: var(--butter); }@keyframes notice-in {
  from { opacity: 0; transform: translateY(-14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}@keyframes notice-out {
  to { opacity: 0; transform: translateY(-10px) scale(.98); }
}/* ============ фильтр склада ============ */.storage-filters {
  display: flex; gap: 5px; margin: 0 0 8px; flex-wrap: wrap;
}.storage-filters .stab { font-size: 11.5px; }/* ============ новости города ============ *//* ============ мини-полоса прогресса ============ */.bar-mini {
  width: 64px; height: 4px; border-radius: 999px; overflow: hidden;
  background: var(--line-soft);
}.bar-mini i { display: block; height: 100%; background: var(--mint); }/* ============================================================
   ГЛАВНЫЙ ЭКРАН: компактная карточка персонажа
   ============================================================ */.char-top { display: flex; gap: 12px; align-items: center; }.char-top .portrait { width: 62px; height: 62px; flex: 0 0 62px; align-self: center; }.char-top .portrait svg { width: 30px; height: 30px; }.char-id { min-width: 0; flex: 1 1 auto; }.char-id h2 {
  font-size: 16px; margin: 0 0 3px; line-height: 1.2;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}.lvl-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--bg); background: var(--mint);
  border-radius: 4px; padding: 1px 5px; letter-spacing: .02em;
}.char-line { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }.sep-dot { color: var(--ink-3); opacity: .6; }/* характеристики — узкой строкой */.stat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
}.chip-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 2px 5px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg-elev);
  color: var(--ink-3);
}.chip-stat b { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1; }.chip-stat small { font-size: 9px; color: var(--mint); }.chip-stat span { font-size: 9px; letter-spacing: .02em; margin-top: 1px; }/* виталки — строки с тонкой полосой */.vitals { display: flex; flex-direction: column; gap: 5px; }.vital {
  display: grid; grid-template-columns: 16px 1fr auto;
  grid-template-areas: "i t v" "b b b";
  align-items: center; gap: 2px 6px;
  font-size: 11px;
}.vital .vi { grid-area: i; display: flex; }.vital .vt { grid-area: t; color: var(--ink-3); }.vital .vb { grid-area: v; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }.vital .track { grid-area: b; height: 3px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }.vital .track i { display: block; height: 100%; border-radius: 999px; transition: width .25s; }.vital.low .vt { color: var(--peach); }/* обстановка */.env-strip {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  padding-top: 9px; border-top: 1px solid var(--line-soft);
  font-size: 11px; color: var(--ink-3);
}.env-item { display: inline-flex; align-items: center; gap: 4px; }.env-item b { color: var(--ink-2); font-weight: 600; }.env-item.muted { color: var(--ink-3); }/* «откуда ты» — свёрнутый блок */.why-card { grid-column: 1 / -1; padding: 0; overflow: hidden; }.why-card summary {
  cursor: pointer; list-style: none; padding: 9px 14px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}.why-card summary::-webkit-details-marker { display: none; }.why-card summary::before { content: "▸ "; color: var(--mint); }.why-card[open] summary::before { content: "▾ "; }.why-body { padding: 0 14px 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }.why-body .bc-row { display: flex; gap: 6px; font-size: 11px; }.why-body .bc-row .k { color: var(--ink-3); }.why-body .bc-row .v { color: var(--ink-2); }/* уведомления — лёгкая прозрачность */.notice { background: rgba(24, 24, 29, .82); backdrop-filter: blur(10px); }@media (max-width: 720px) {.stat-strip { grid-template-columns: repeat(5, 1fr); gap: 3px; }.chip-stat span { font-size: 8px; }.why-card { grid-column: auto; }}/* ============================================================
   МАГАЗИН: сетка карточек (в терминальном стиле)
   ============================================================ */.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px; margin-bottom: 12px;
}.shop-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg-elev);
  transition: border-color .15s, transform .12s;
}.shop-card:hover { border-color: var(--line); }.shop-card.locked { opacity: .5; }.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }.sc-ico { color: var(--mint); display: flex; }.sc-badge {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-3);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 4px;
}.sc-badge.on { color: var(--bg); background: var(--mint); border-color: var(--mint); }.sc-name { font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.25; }.sc-desc { font-size: 10.5px; color: var(--ink-3); line-height: 1.35; }.sc-stats { display: flex; flex-wrap: wrap; gap: 3px; }.sc-stat {
  font-size: 9.5px; color: var(--ink-2);
  background: var(--surface); border-radius: 4px; padding: 1px 5px;
  font-family: var(--mono);
}.sc-stat.up { color: var(--mint); }.sc-stat.down { color: var(--peach); }.sc-hint { font-size: 9.5px; color: var(--ink-3); }.sc-price {
  margin-top: auto; font-family: var(--mono); font-size: 12px;
  color: var(--butter); font-weight: 600;
}.sc-actions { display: flex; flex-wrap: wrap; gap: 4px; }.sc-actions .btn { flex: 1 1 auto; }.shop-note {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--ink-3); margin: -4px 0 10px;
}/* ============================================================
   ЧАТ ГОРОДА
   ============================================================ */.chat-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 8px; }.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-3);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}.chat-city, .chat-online { display: inline-flex; align-items: center; gap: 4px; }.chat-list {
  flex: 1 1 auto; min-height: 180px; max-height: 52dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding-right: 3px;
}.chat-msg {
  align-self: flex-start; max-width: 86%;
  padding: 6px 9px;
  border-left: 2px solid var(--line);
  background: var(--bg-elev);
  border-radius: 0 8px 8px 0;
}.chat-msg.mine { align-self: flex-end; border-left: none; border-right: 2px solid var(--mint); border-radius: 8px 0 0 8px; }.cm-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }.cm-nick { font-size: 10.5px; font-weight: 600; color: var(--mint); font-family: var(--mono); }.chat-msg.mine .cm-nick { color: var(--lav); }.cm-time { font-size: 9.5px; color: var(--ink-3); font-family: var(--mono); }.cm-text { font-size: 12px; color: var(--ink-2); line-height: 1.4; word-break: break-word; }.chat-form { display: flex; gap: 6px; }.chat-form input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 12.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 8px 10px;
}.chat-form input:focus { outline: none; border-color: var(--mint); }.chat-form .btn { flex: 0 0 auto; }/* ============================================================
   ШАПКА: главная, события по центру, склад перед часами
   ============================================================ */.top-btn {
  font: inherit; font-size: 11.5px; color: var(--ink-3);
  background: transparent; border: 1px solid transparent;
  border-radius: 6px; padding: 4px 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .14s, border-color .14s, background .14s;
}.top-btn:hover { color: var(--ink); border-color: var(--line-soft); background: var(--bg-elev); }.top-btn svg { width: 14px; height: 14px; }.events { position: relative; }.events-btn { color: var(--ink-2); }.events-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--line); background: var(--bg-elev); }.ev-arrow { font-style: normal; font-size: 9px; opacity: .7; transition: transform .15s; }.events-btn[aria-expanded="true"] .ev-arrow { transform: rotate(180deg); }.events-pop {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px));
  max-height: min(56dvh, 420px);
  display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: 0 16px 44px rgba(0,0,0,.55);
  padding: 8px; z-index: 1500;
}.events-pop[hidden] { display: none; }.events-pop .log { max-height: none; overflow-y: auto; min-height: 60px; }/* «откуда ты» внутри карточки персонажа */.why { border-top: 1px solid var(--line-soft); padding-top: 8px; }.why summary {
  cursor: pointer; list-style: none;
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}.why summary::-webkit-details-marker { display: none; }.why summary::after { content: " ▾"; font-size: 9px; }.why[open] summary::after { content: " ▴"; }.why-body { padding-top: 7px; display: flex; flex-direction: column; gap: 3px; }.why-body .bc-row { display: flex; gap: 7px; font-size: 10.5px; }.why-body .bc-row .k { color: var(--ink-3); flex: 0 0 54px; }.why-body .bc-row .v { color: var(--ink-2); min-width: 0; }/* нижнее меню: теперь 5 вкладок */.tabs { grid-template-columns: repeat(5, 1fr); }/* карточки товаров компактнее */.shop-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }.shop-card { padding: 7px 8px; gap: 3px; }.sc-ico svg { width: 18px; height: 18px; }.sc-name { font-size: 11px; line-height: 1.2; }.sc-desc { font-size: 9.5px; line-height: 1.3; }.sc-stat { font-size: 9px; padding: 0 4px; }.sc-hint { font-size: 9px; }.sc-price { font-size: 11px; }.sc-actions .btn { font-size: 10px; padding: 4px 6px; }.sc-badge { font-size: 9px; }/* ============================================================
   ASCII-ГРАФИКА
   Размер картинки задаётся только размером шрифта: <pre> моноширинный.
   ============================================================ */pre.asc-avatar, pre.asc-item {
  margin: 0; font-family: var(--mono);
  line-height: 1.05; letter-spacing: 0;
  white-space: pre; user-select: none;
}.portrait pre.asc-avatar {
  font-size: 13px; color: var(--mint);
  text-shadow: 0 0 10px rgba(159, 227, 196, .25);
}pre.asc-item { font-size: 9px; color: var(--ink-2); }pre.asc-item.big { font-size: 12px; }.sc-ico pre.asc-item { color: var(--mint); }.chest-art pre.asc-item { font-size: 10px; color: var(--ink-2); }/* портрет больше не круг с SVG — это блок текста */.char-top .portrait {
  width: auto; height: auto; flex: 0 0 auto;
  border-radius: 0; background: none; box-shadow: none;
  display: block; align-self: flex-start;
}/* ============================================================
   СКЛАД: сетка-сундук
   ============================================================ */.chest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}.chest-cell {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); border-radius: 6px;
  background: var(--bg-elev);
  transition: border-color .14s, background .14s;
  min-height: 52px;
}.chest-cell:hover { border-color: var(--line); background: var(--surface); }.chest-cell.on { border-color: var(--mint); }.chest-cell.empty { opacity: .35; background: none; }.chest-qty {
  position: absolute; right: 3px; bottom: 2px;
  font-family: var(--mono); font-size: 9px; color: var(--ink);
  background: rgba(0,0,0,.5); border-radius: 3px; padding: 0 3px;
}.chest-eq {
  position: absolute; left: 3px; top: 2px;
  font-size: 8px; color: var(--mint);
}.chest-act {
  position: absolute; inset: auto 0 0 0;
  font: inherit; font-size: 8.5px; color: var(--ink-3); cursor: pointer;
  background: rgba(0,0,0,.62); border: none; border-top: 1px solid var(--line-soft);
  padding: 1px 0; opacity: 0; transition: opacity .12s;
  border-radius: 0 0 5px 5px;
}.chest-cell:hover .chest-act { opacity: 1; }@media (hover: none) {.chest-act { opacity: .85; }}/* шапка: только иконки, события строго по центру */.top-btn[data-icon] svg { width: 16px; height: 16px; }.top-btn[data-icon] { padding: 5px 7px; }/* ============================================================
   Динамическая высота: страница растёт, когда раскрывают блоки.
   Раньше .layout был с overflow:hidden и фиксированной высотой —
   из-за этого «откуда ты» съедал место, а нижний бар уезжал.
   ============================================================ */.screen.active#screen-main { display: flex; flex-direction: column; height: 100dvh; min-height: 100dvh; }#screen-main .layout {
  flex: 1 1 auto; min-height: 0;
  grid-template-columns: minmax(280px, 380px);
  overflow-y: auto; overflow-x: hidden;
  align-content: start;
}#screen-main .tabs { position: sticky; bottom: 0; z-index: 20; }.char-card { overflow: visible; }@media (max-width: 720px) {#screen-main .layout { display: flex; flex-direction: column; overflow-y: auto; }.tabs { display: grid; }.tab span { font-size: 9.5px; }.topbar { padding: 8px 10px; gap: 4px; }.topbar > .clock { margin-right: 30px; font-size: 11px; }.events-btn span { font-size: 10.5px; }}/* ============================================================
   ТОПБАР: три зоны, ничего не наезжает
   Левая — бренд и домик, центр — события, правая — склад, часы, выход.
   ============================================================ */.topbar {
  display: flex; align-items: center;
  height: 46px; flex: 0 0 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elev);
  position: relative;
}.tb-left, .tb-right {
  display: flex; align-items: center; gap: 6px;
  flex: 1 1 0; min-width: 0;
}.tb-right { justify-content: flex-end; }.tb-center {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}.topbar .wordmark { white-space: nowrap; }.topbar .clock { font-size: 11.5px; }@media (max-width: 480px) {.topbar { padding: 0 8px; }.tb-left { gap: 3px; }.tb-right { gap: 3px; }.events-btn span { font-size: 10px; }}/* ============================================================
   ASCII: детальнее, но НЕ крупнее.
   Аватар 11 строк и предметы 5 строк умещаются в те же габариты,
   что раньше 7 и 3, за счёт меньшего кегля и плотного интерлиньяжа.
   ============================================================ */pre.asc-avatar, pre.asc-item {
  margin: 0;
  font-family: var(--mono);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: pre;
  user-select: none;
  font-variant-ligatures: none;
}.portrait pre.asc-avatar {
  font-size: 9px;
  color: var(--mint);
  text-shadow: 0 0 9px rgba(159, 227, 196, .22);
}pre.asc-item { font-size: 6.5px; color: var(--ink-2); }pre.asc-item.big { font-size: 8px; }pre.asc-item.hero { font-size: 13px; color: var(--mint); }.sc-ico pre.asc-item { color: var(--mint); }.chest-art pre.asc-item { font-size: 7px; }/* портрет — текстовый блок, а не круг с SVG */.char-top .portrait {
  width: auto; height: auto; flex: 0 0 auto;
  border-radius: 0; background: none; box-shadow: none;
  display: block; align-self: flex-start;
}/* ============ TERM LOGIN v3 (per-line tear) ============ */#screen-login {
  background: #15121c;
  color: #d8c8e0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', 'Menlo', 'Consolas', monospace;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}#screen-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196, 148, 220, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 6s ease-in-out infinite;
}@keyframes ambient-drift {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}.term-login {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 2;
}.term-noise {
  position: absolute;
  inset: -10% -5%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(220, 180, 235, 0.05) 0px,
      rgba(220, 180, 235, 0.05) 1px,
      transparent 1px,
      transparent 3px),
    repeating-linear-gradient(90deg,
      rgba(196, 148, 220, 0.04) 0px,
      rgba(196, 148, 220, 0.04) 1px,
      transparent 1px,
      transparent 4px);
  animation: tv-noise 0.12s steps(4) infinite;
}@keyframes tv-noise {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, 0); }
  100% { transform: translate(0, 1px); }
}/* ===== ЛОГОТИП ===== */.term-logo {
  font-family: inherit;
  font-size: clamp(6px, 2.1vw, 11px);
  line-height: 1.1;
  color: #d4b5e8;
  margin: 0 auto 40px;
  padding: 8px 0;
  text-align: center;
  display: block;
  width: fit-content;
  max-width: 100%;
  position: relative;
  z-index: 2;
  animation: term-pulse 1.2s ease-in-out infinite;
  will-change: filter;
}@keyframes term-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(212, 181, 232, 0.55))
            drop-shadow(0 0 8px rgba(212, 181, 232, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(212, 181, 232, 1))
            drop-shadow(0 0 14px rgba(212, 181, 232, 0.6))
            drop-shadow(0 0 22px rgba(212, 181, 232, 0.25));
  }
}/* ===== ПОСТРОЧНЫЙ РАЗРЫВ ===== */.tl-line {
  display: block;
  white-space: pre;
  will-change: transform, clip-path;
  animation: line-tear 3s steps(1) infinite;
}.tl-line:nth-child(1) { animation-duration: 3.4s; animation-delay: -0.2s; }.tl-line:nth-child(2) { animation-duration: 2.8s; animation-delay: -1.3s; }.tl-line:nth-child(3) { animation-duration: 3.7s; animation-delay: -0.6s; }.tl-line:nth-child(4) { animation-duration: 3.1s; animation-delay: -2.0s; }.tl-line:nth-child(5) { animation-duration: 2.6s; animation-delay: -0.9s; }.tl-line:nth-child(6) { animation-duration: 3.5s; animation-delay: -1.6s; }@keyframes line-tear {
  0%, 76%, 100% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    text-shadow: 0 0 2px rgba(212, 181, 232, 0.35);
    color: #d4b5e8;
  }
  77% {
    transform: translateX(-7px);
    clip-path: inset(0 0 0 0);
    text-shadow:
      -2px 0 0 rgba(255, 90, 160, 0.85),
       2px 0 0 rgba(100, 180, 255, 0.85),
       0 0 6px rgba(212, 181, 232, 0.9);
    color: #e8c5f0;
  }
  77.6% {
    transform: translateX(9px);
    clip-path: inset(35% 0 40% 0);
    text-shadow:
      -2px 0 0 rgba(255, 90, 160, 0.85),
       2px 0 0 rgba(100, 180, 255, 0.85);
  }
  78.4% {
    transform: translateX(-5px);
    clip-path: inset(0 0 0 0);
    text-shadow:
      -2px 0 0 rgba(255, 90, 160, 0.7),
       2px 0 0 rgba(100, 180, 255, 0.7);
  }
  79% {
    transform: translateX(11px);
    clip-path: inset(60% 0 10% 0);
    text-shadow:
      -2px 0 0 rgba(255, 90, 160, 0.7),
       2px 0 0 rgba(100, 180, 255, 0.7);
  }
  79.6% {
    transform: translateX(-2px);
    clip-path: inset(0 0 0 0);
    text-shadow: 0 0 2px rgba(212, 181, 232, 0.4);
    color: #d4b5e8;
  }
  80% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    text-shadow: 0 0 2px rgba(212, 181, 232, 0.35);
    color: #d4b5e8;
  }
}.term-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}.term-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}.term-label {
  font-size: 11px;
  color: #7a6b85;
  letter-spacing: 1px;
}.term-label::before {
  content: '$ ';
  color: #d4b5e8;
}.term-field input {
  background: #1c1826;
  border: 1px solid #2a2338;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #d8c8e0;
  outline: none;
  transition: all 0.2s ease;
  caret-color: #d4b5e8;
  -webkit-appearance: none;
  appearance: none;
}.term-field input::placeholder { color: #3d3450; }.term-field input:focus {
  border-color: #d4b5e8;
  background: #221c2e;
  box-shadow:
    0 0 0 3px rgba(212, 181, 232, 0.1),
    0 0 16px rgba(212, 181, 232, 0.2);
}.term-btn {
  margin-top: 10px;
  padding: 16px;
  background: rgba(212, 181, 232, 0.05);
  border: 1px solid #d4b5e8;
  border-radius: 10px;
  color: #d4b5e8;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}.term-btn:hover {
  background: rgba(212, 181, 232, 0.12);
  box-shadow:
    0 0 14px rgba(212, 181, 232, 0.3),
    inset 0 0 14px rgba(212, 181, 232, 0.05);
  text-shadow: 0 0 8px rgba(212, 181, 232, 0.7);
}.term-btn:active { transform: translateY(1px); }.term-btn:disabled { opacity: 0.5; cursor: wait; }.term-err {
  min-height: 20px;
  margin-top: 14px;
  text-align: left;
  font-size: 13px;
  color: #e88a9c;
  font-family: inherit;
  position: relative;
  z-index: 2;
}.term-err:not(:empty)::before {
  content: 'err: ';
  color: #7a6b85;
}/* ФИКС: скрывать экран логина, когда он не .active */#screen-login:not(.active) {
  display: none;
}/* ============ ЛОГОТИП В ШАПКЕ (ASCII, сжат по высоте, статичное свечение) ============ */.topbar .top-logo {
  font-family: var(--mono);
  font-size: 2.6px;
  line-height: 0.9;
  color: #d4b5e8;
  margin: 0;
  padding: 0;
  white-space: pre;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transform: scaleY(0.85);
  transform-origin: left center;
  filter:
    drop-shadow(0 0 2px rgba(212, 181, 232, 0.55))
    drop-shadow(0 0 6px rgba(212, 181, 232, 0.25));
}/* Отключаем line-tear анимацию у строк логотипа в шапке */.topbar .top-logo .tl-line {
  animation: none !important;
  clip-path: none !important;
  transform: none !important;
  color: inherit;
  display: block;
}@media (min-width: 480px) {.topbar .top-logo { font-size: 3px; }}@media (min-width: 768px) {.topbar .top-logo { font-size: 3.4px; }}/* ============ КНОПКА "СОБЫТИЯ" (ещё чуть меньше) ============ */.topbar .events-btn {
  font-size: 13px !important;
  padding: 5px 12px !important;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
}.topbar .events-btn span {
  font-size: 13px !important;
  letter-spacing: 0.02em;
  line-height: 1;
}.topbar .events-btn .ev-arrow {
  font-size: 1em !important;
  margin-left: 2px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}@media (min-width: 480px) {.topbar .events-btn,
  .topbar .events-btn span {
    font-size: 14px !important;
  }.topbar .events-btn {
    padding: 6px 14px !important;
  }}/* ============ КНОПКА СКЛАДА ЧУТЬ БОЛЬШЕ ============ */.topbar #top-storage {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  font-size: 20px;
}.topbar #top-storage [data-icon],
.topbar #top-storage svg {
  width: 22px !important;
  height: 22px !important;
}@media (min-width: 480px) {.topbar #top-storage {
    width: 42px !important;
    height: 42px !important;
  }.topbar #top-storage [data-icon],
  .topbar #top-storage svg {
    width: 24px !important;
    height: 24px !important;
  }}/* ============ ФОРМА СМЕНЫ ФИО (минималистично) ============ */.name-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  background: #1c1826;
  border: 1px solid #2a2338;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}.name-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}@media (min-width: 560px) {.name-edit-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }}.name-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}.name-edit-field span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a6b85;
}.name-edit-field input {
  width: 100%;
  box-sizing: border-box;
  background: #15121c;
  border: 1px solid #2a2338;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #d8c8e0;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  caret-color: #d4b5e8;
  -webkit-appearance: none;
  appearance: none;
}.name-edit-field input:focus {
  border-color: #d4b5e8;
  box-shadow: 0 0 0 2px rgba(212, 181, 232, 0.15);
}.name-edit-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 8px 16px;
  background: rgba(212, 181, 232, 0.08);
  border: 1px solid #d4b5e8;
  border-radius: 8px;
  color: #d4b5e8;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
}.name-edit-btn:hover {
  background: rgba(212, 181, 232, 0.15);
  box-shadow: 0 0 12px rgba(212, 181, 232, 0.25);
}.name-edit-btn:active {
  transform: translateY(1px);
}/* На узких экранах — кнопка на всю ширину, но без вылезания */@media (max-width: 360px) {.name-edit-btn {
    align-self: stretch;
    text-align: center;
  }}/* ============ AUTOPREVENT-LOGIN-FLASH ============ *//* Если токен есть — логин НЕ показывается, даже мигая */html.authed #screen-login {
  display: none !important;
}/* Пока идёт boot() у залогиненных, показываем тонкий фиолетовый спиннер на тёмном фоне */html.authed body {
  background: #15121c;
}/* ============ ITEM TAG + PORTRAIT SLOTS ============ */.item-tag {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: rgba(212, 181, 232, 0.08);
  border: 1px solid rgba(212, 181, 232, 0.18);
  border-radius: 4px;
  text-transform: lowercase;
  white-space: nowrap;
  vertical-align: middle;
}.sc-ico .item-tag {
  font-size: 10.5px;
  padding: 3px 7px;
}.chest-art .item-tag {
  font-size: 11px;
  padding: 3px 8px;
}/* Заглушка под будущие слоты одежды на главной *//* ============ ARM MODAL ============ */.arm-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 8, 14, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: arm-fade 0.15s ease;
}.arm-modal[hidden] {
  display: none;
}@keyframes arm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}.arm-modal-card {
  width: 100%;
  max-width: 320px;
  background: #1c1826;
  border: 1px solid #2a2338;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: arm-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}@keyframes arm-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}.arm-modal-title {
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6b85;
  text-align: center;
  margin-bottom: 14px;
}.arm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}.arm-btn {
  padding: 14px 8px;
  background: rgba(212, 181, 232, 0.05);
  border: 1px solid rgba(212, 181, 232, 0.25);
  border-radius: 10px;
  color: #d4b5e8;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}.arm-btn:hover {
  background: rgba(212, 181, 232, 0.14);
  box-shadow: 0 0 14px rgba(212, 181, 232, 0.25);
}.arm-btn:active {
  transform: translateY(1px);
}.arm-modal-cancel {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: #7a6b85;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
}.arm-modal-cancel:hover {
  color: #d4b5e8;
}/* ============ SLOTS GRID (персонаж, анатомический) ============ */.char-top .portrait {
  width: 200px;
  flex: 0 0 200px;
  height: auto;
}@media (max-width: 480px) {.char-top .portrait {
    width: 165px;
    flex: 0 0 165px;
  }}.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "hat      glasses  ears"
    "neck     jewel    bag"
    "wrist-l  body     wrist-r"
    "finger-l body     finger-r"
    ".        feet     .";
  grid-auto-rows: 42px;
  gap: 5px;
  width: 100%;
}.slot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 181, 232, 0.15);
  border-radius: 7px;
  background: rgba(212, 181, 232, 0.02);
  color: #4a3f58;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 16px;
  overflow: visible;
  width: 100%;
  height: 100%;
  position: relative;
}.slot-cell.empty {
  border-style: dashed;
}.slot-cell.empty i,
.slot-cell.empty [data-icon] {
  opacity: 0.35;
}.slot-cell.filled {
  border-color: rgba(212, 181, 232, 0.45);
  background: rgba(212, 181, 232, 0.09);
  color: #d4b5e8;
  box-shadow: 0 0 8px rgba(212, 181, 232, 0.12);
}.slot-cell:hover {
  border-color: #d4b5e8;
  background: rgba(212, 181, 232, 0.14);
  color: #d4b5e8;
}.slot-cell i,
.slot-cell [data-icon] {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
}.slot-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #d4b5e8;
  color: #15121c;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  box-shadow: 0 0 6px rgba(212, 181, 232, 0.4);
}/* Grid-area assignments */.slot-cell[data-slot="hat"]       { grid-area: hat; }.slot-cell[data-slot="glasses"]   { grid-area: glasses; }.slot-cell[data-slot="ears"]      { grid-area: ears; }.slot-cell[data-slot="neck"]      { grid-area: neck; }.slot-cell[data-slot="jewellery"] { grid-area: jewel; }.slot-cell[data-slot="bag"]       { grid-area: bag; }.slot-cell[data-slot="body"]      { grid-area: body; }.slot-cell[data-slot="feet"]      { grid-area: feet; }.slot-cell[data-slot="wrist_l"]   { grid-area: wrist-l; }.slot-cell[data-slot="wrist_r"]   { grid-area: wrist-r; }.slot-cell[data-slot="finger_l"]  { grid-area: finger-l; }.slot-cell[data-slot="finger_r"]  { grid-area: finger-r; }/* ============ SLOT WRAPPER RESET ============ */.char-top,
.char-top .portrait,
.char-top .portrait .slots-grid,
.slots-grid {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}/* ============ SLOTS CLICK-FIX ============ *//* Гарантируем: клики доходят до кнопок */.char-card,
.char-top,
.char-top .portrait,
.slots-grid,
.slot-cell {
  pointer-events: auto !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}.char-top .portrait {
  z-index: 2;
}.slot-cell {
  cursor: pointer;
  z-index: 3;
}/* Если внутри кнопки paintIcons вставил SVG или i, они не должны блокировать клик */.slot-cell > * {
  pointer-events: none;
}/* ============ SLOT MODAL FORCE SHOW ============ *//* Базовое состояние - скрыто */.slot-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(10, 8, 14, 0.85) !important;
  backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}/* Скрыто когда hidden */.slot-modal[hidden] {
  display: none !important;
}/* Внутренняя карточка */.slot-modal .slot-modal-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 420px !important;
  max-height: 80vh !important;
  background: #1c1826 !important;
  border: 1px solid #2a2338 !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55) !important;
  position: relative !important;
  z-index: 999999 !important;
  overflow: hidden !important;
}/* ============ SLOT MODAL (full) ============ */.slot-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 8, 14, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}.slot-modal[hidden] { display: none; }.slot-modal .slot-modal-card,
.slot-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  background: #1c1826;
  border: 1px solid #2a2338;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}.slot-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #2a2338;
  flex-shrink: 0;
}.slot-modal-title {
  font-family: var(--mono, monospace);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4b5e8;
}.slot-modal-close {
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  color: #7a6b85;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}.slot-modal-close:hover {
  color: #d4b5e8;
  background: rgba(212, 181, 232, 0.08);
}.slot-modal-list {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}.slot-modal-loading,
.slot-modal-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: #7a6b85;
  font-family: var(--mono, monospace);
}.slot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(212, 181, 232, 0.03);
  border: 1px solid rgba(212, 181, 232, 0.1);
  border-radius: 10px;
  color: #d8c8e0;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .14s, border-color .14s;
  width: 100%;
}.slot-item:hover {
  background: rgba(212, 181, 232, 0.09);
  border-color: rgba(212, 181, 232, 0.35);
}.slot-item.equipped {
  background: rgba(212, 181, 232, 0.08);
  border-color: rgba(212, 181, 232, 0.5);
}.slot-item-icon {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(212, 181, 232, 0.06);
  border-radius: 8px;
}.slot-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}.slot-item-name {
  font-size: 13.5px;
  color: #d8c8e0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.slot-item-meta {
  font-size: 11px;
  color: #7a6b85;
  font-family: var(--mono, monospace);
}.slot-item-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(212, 181, 232, 0.2);
  color: #d4b5e8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}.slot-item-action {
  flex-shrink: 0;
  font-size: 11px;
  color: #d4b5e8;
  font-family: var(--mono, monospace);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}.slot-item.equipped .slot-item-action {
  color: #e88a9c;
}/* Фикс выезда сетки за экран */.chest-grid,
.chest-cell {
  min-width: 0 !important;
  box-sizing: border-box !important;
}.sheet-body { overflow-x: hidden !important; }/* Фикс: sheet занимает всё место над нижним меню */.sheet {
  z-index: 2000 !important;
}.sheet-panel {
  height: 100vh !important;
  height: 100dvh !important;
}.sheet-body {
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
}/* Нижнее меню (tabs) — не должно быть видно, когда sheet открыт */.sheet:not([hidden]) ~ .tabs,
body:has(.sheet:not([hidden])) .tabs {
  /* fallback: ничего не делать, z-index уже решает */
}/* ============ НАВИГАЦИЯ: убираем sheet-head, topbar виден всегда ============ *//* 1. Скрываем родную навигацию страниц (стрелка назад, title, крестик) */.sheet-head {
  display: none !important;
}/* 2. Sheet начинается ПОД topbar (46px) и заканчивается НАД tabs (~52px) */#screen-main .sheet,
.sheet {
  position: fixed !important;
  top: 46px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 52px !important;
  z-index: 5000 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}/* 3. Внутри sheet — panel на всю оставшуюся высоту */.sheet-panel {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}/* 4. topbar выше шита — чтобы клики доходили и он не перекрывался */#screen-main .topbar {
  position: relative !important;
  z-index: 6000 !important;
}/* 5. Мелкий padding у контента шита снизу (safe-area) */.sheet-body {
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}/* 6. sheet-tabs — прямо под topbar, без лишнего отступа сверху */.sheet-tabs {
  padding-top: 8px !important;
}/* ============ БРЕНД-КНОПКА (лого = главная) ============ */.topbar .top-brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}.topbar .top-brand:hover {
  background: rgba(212, 181, 232, 0.06);
}.topbar .top-brand:active {
  transform: scale(0.97);
  background: rgba(212, 181, 232, 0.1);
}.topbar .top-brand:focus-visible {
  outline: 2px solid rgba(212, 181, 232, 0.5);
  outline-offset: 2px;
}.topbar .top-brand .top-logo {
  pointer-events: none;
}/* Бейдж слота на карточке одежды (мелкий, приглушённый) */.sc-badge.slot-badge {
  background: rgba(212, 181, 232, 0.1);
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}/* ============ МУЛЬТИПОКУПКА (кнопки +/−/купить) ============ */.sc-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}.buy-row {
  display: flex;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  height: 26px;
}.buy-row .btn,
.buy-row .buy-counter-btn {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}.buy-row .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px !important;
  white-space: nowrap;
}.buy-counter-btn {
  flex: 0 0 26px;
  width: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px !important;
  cursor: pointer;
  font-family: inherit;
}.buy-counter-btn:hover {
  background: var(--surface-2);
}.buy-counter-btn:active {
  transform: scale(0.94);
}.buy-counter-num {
  flex: 0 0 auto;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  text-align: center;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink);
}.buy-btn-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  color: var(--ink-3) !important;
}

/* ============ ЧАТ НА ВЕСЬ ЭКРАН (внутри телефона) ============ */
.phone-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.phone-app-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}
.chat-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
}
/* Убираем лишний padding у sheet-body когда открыт чат */
.sheet-body:has(.chat-wrap) {
  padding-bottom: 0 !important;
}
