:root {
  --bg: #0A0D0F;
  --text: #E6E2D8;
  --muted: #97A093;
  --accent: #C89A4F;
  --accent-cool: #7E9B5A;
  --line: rgba(230,226,216,0.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

/* ============ Сцена ============ */

.stage {
  position: fixed; inset: 0;
  overflow: hidden;
  background: #06080A;
  cursor: default;
}

.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#fx { pointer-events: none; }

.hotspots { position: absolute; inset: 0; pointer-events: none; }

/* Комнату можно тащить: курсор об этом говорит */
.stage.pannable { cursor: grab; }
.stage.dragging { cursor: grabbing; }
.stage.dragging .hs-label { opacity: 0; }

/* ============ Горячие точки ============ */

/* Положение задаёт камера через transform, поэтому здесь
   только нулевая точка отсчёта: иначе сдвиг сложится дважды. */
.hs {
  position: absolute; top: 0; left: 0;
  width: 76px; height: 76px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  display: grid; place-items: center;
}

.hs-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200,154,79,0.55);
  box-shadow: 0 0 22px 6px rgba(200,154,79,0.18), inset 0 0 18px rgba(200,154,79,0.12);
  animation: breathe 3.4s ease-in-out infinite;
  transition: opacity 400ms ease, transform 400ms ease;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.78); opacity: 0.55; }
  50%      { transform: scale(1);    opacity: 0.95; }
}

.hs-dot {
  position: absolute;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(200,154,79,0.6);
}

.hs-label {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.9);
  opacity: 0; transition: opacity 260ms ease;
  pointer-events: none;
}
.hs:hover .hs-label { opacity: 1; }
.hs:hover .hs-ring { transform: scale(1.08); }

/* На телефоне наведения не бывает, поэтому там подписи видны
   всегда — иначе объекты пришлось бы искать наугад. */
@media (hover: none) {
  .hs-label { opacity: 0.62; }
  .hs.gear .hs-label { opacity: 0.4; }
}

/* Выполненный объект: пульс гаснет, остаётся тихая галочка */
.hs.done .hs-ring {
  animation: none;
  border-color: rgba(126,155,90,0.5);
  box-shadow: 0 0 14px 2px rgba(126,155,90,0.14);
  transform: scale(0.7);
  opacity: 0.5;
}
.hs.done .hs-dot { background: var(--accent-cool); box-shadow: 0 0 8px 2px rgba(126,155,90,0.45); }

/* Склад, карта и дверь — не нужды, а снаряжение. Они не
   пульсируют и не тянут внимание на себя: дневной круг важнее. */
.hs.gear .hs-ring {
  animation: none;
  border-color: rgba(230,226,216,0.26);
  box-shadow: none;
  transform: scale(0.68);
  opacity: 0.55;
}
.hs.gear .hs-dot { background: rgba(230,226,216,0.66); box-shadow: none; }
.hs.gear:hover .hs-ring { opacity: 1; transform: scale(0.84); }

/* Лампа — единственное действие, которое закрывает день */
.hs.lamp .hs-ring {
  border-color: rgba(255,205,120,0.7);
  box-shadow: 0 0 30px 10px rgba(255,190,95,0.22), inset 0 0 20px rgba(255,190,95,0.16);
}
.hs.lamp .hs-dot { background: #FFD07A; box-shadow: 0 0 16px 5px rgba(255,200,110,0.7); }
.hs.lamp .hs-label { opacity: 1; color: #FFD9A0; }

/* ============ Расписание приёма ============ */

.reg-block { margin-top: 22px; }
.reg-head { margin-bottom: 10px; }
.reg-time {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 3px;
}
.reg-when { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }

.reg-row {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 13px; margin-bottom: 7px;
  background: rgba(230,226,216,0.035);
  border: 1px solid rgba(230,226,216,0.08);
  border-radius: 11px;
  font-family: inherit; color: inherit; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.reg-row:active { background: rgba(230,226,216,0.07); }
.reg-row.on { border-color: rgba(200,154,79,0.45); background: rgba(200,154,79,0.08); }

.reg-box {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid rgba(230,226,216,0.28); border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; color: transparent;
  transition: all 160ms ease;
}
.reg-row.on .reg-box { border-color: var(--accent); background: var(--accent); color: #14100A; }

.reg-body { flex: 1; min-width: 0; }
.reg-name { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.reg-row.on .reg-name { color: var(--accent); }
.reg-note { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.reg-free { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.reg-free b { color: var(--text); font-weight: 600; }

/* ============ Атмосферные накладки ============ */

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.55) 88%, rgba(0,0,0,0.8) 100%);
}

/* Зерно: фиксированный размер и сдвиг фона вместо трансформа вчетверо
   большего слоя с режимом наложения — тот вариант ел кадры. */
.grain {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-shift 640ms steps(1) infinite;
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  25%  { background-position: -37px 19px; }
  50%  { background-position: 23px -41px; }
  75%  { background-position: -19px -13px; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hs-ring { animation: none; }
}

.grain-src { position: absolute; width: 0; height: 0; }

/* ============ HUD ============ */

.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: calc(18px + env(safe-area-inset-top)) 22px 46px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,8,10,0.82) 0%, rgba(6,8,10,0.35) 55%, rgba(6,8,10,0) 100%);
  transition: opacity 500ms ease;
}
.loc {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 5px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}
.day {
  font-size: 25px; font-weight: 700; letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
}

.hud-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 22px calc(24px + env(safe-area-inset-bottom));
  pointer-events: none;
  background: linear-gradient(to top, rgba(6,8,10,0.9) 0%, rgba(6,8,10,0.5) 50%, rgba(6,8,10,0) 100%);
  transition: opacity 500ms ease;
}
.prompt {
  font-size: 15px; line-height: 1.5; color: var(--text);
  text-shadow: 0 1px 12px rgba(0,0,0,0.95);
  max-width: 460px; margin: 0 auto 16px; text-align: center;
  transition: opacity 300ms ease;
}

/* ============ Панель объектов ============ */

.dock {
  display: flex; gap: 6px; justify-content: flex-start;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 4px;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}
.dock::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .dock { justify-content: center; } }

.dk {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 999px;
  background: rgba(10,13,15,0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: inherit; font-size: 12.5px; color: var(--text);
  white-space: nowrap; cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.dk-d {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(230,226,216,0.26);
  transition: background 400ms ease, box-shadow 400ms ease;
}
.dk.need .dk-d { background: rgba(200,154,79,0.5); }
.dk.on { border-color: rgba(126,155,90,0.42); color: var(--muted); }
.dk.on .dk-d { background: var(--accent-cool); box-shadow: 0 0 8px 2px rgba(126,155,90,0.4); }

/* Снаряжение не обязанность: тише по контрасту */
.dk.gear { color: var(--muted); font-size: 12px; }
.dk.gear .dk-d { display: none; }

.dk.lamp {
  border-color: rgba(255,205,120,0.5);
  color: #FFD9A0;
}
.dk.lamp .dk-d { background: #FFD07A; box-shadow: 0 0 10px 3px rgba(255,200,110,0.55); }

.stage.zoomed .hud-top, .stage.zoomed .hud-bottom { opacity: 0; }

.back {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 20px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(10,13,15,0.72); color: var(--text);
  border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: inherit; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  /* Выше шторки: иначе её затемнение перехватывает нажатие,
     и видимая кнопка перестаёт работать. */
  z-index: 70;
}
.back[hidden] { display: none; }

/* ============ Шторка ============ */

.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-wrap[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4,6,8,0.5); }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  background: rgba(16,20,23,0.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 22px 24px calc(26px + env(safe-area-inset-bottom));
  max-height: 82vh; overflow-y: auto;
  animation: rise 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise { from { transform: translateY(100%); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.sheet .eyebrow {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.sheet h2 { font-size: 23px; margin: 0 0 8px; font-weight: 700; }
.sheet .lede { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }

.sheet .kv {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(230,226,216,0.08);
  font-size: 14.5px;
}
.sheet .kv:last-of-type { border-bottom: 0; }
.sheet .kv span:last-child { color: var(--muted); text-align: right; }

.sheet ul { margin: 16px 0 0; padding-left: 20px; }
.sheet li { font-size: 14px; line-height: 1.65; margin-bottom: 5px; color: var(--muted); }

.sheet .warn {
  font-size: 13px; line-height: 1.6; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 14px; margin: 20px 0 0;
}

.act {
  display: block; width: 100%; margin-top: 22px; padding: 17px 20px;
  border: 0; border-radius: 13px;
  background: var(--accent); color: #14100A;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: inherit; cursor: pointer;
}
.act:active { opacity: 0.85; }
.act.undo {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600;
}

/* ============ Карточка «день закрыт» ============ */

.epilogue {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(4,6,8,0.72);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade 700ms ease;
  padding: 24px;
}
.epilogue[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.epilogue-inner { max-width: 380px; text-align: center; }
.epilogue .mark {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.epilogue h2 { font-size: 30px; margin: 0 0 14px; font-weight: 700; }
.epilogue p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 26px; }

/* ============ Быстрые цифры в HUD ============ */

.chips {
  display: flex; gap: 8px; justify-content: center;
  margin: 0 auto 14px; max-width: 460px;
  pointer-events: auto;
}
.chip {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px;
  background: rgba(10,13,15,0.6);
  border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: inherit; color: var(--text); cursor: pointer;
}
.chip b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.chip span {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center; line-height: 1.25;
}
.chip.bad b { color: #D98A6A; }
.stage.zoomed .chips { pointer-events: none; }

/* Подсказка про панораму: показывается один раз и тает */
.panhint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(10,13,15,0.78);
  border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
  animation: hintfade 5s ease forwards;
}
@keyframes hintfade {
  0%, 12% { opacity: 0; }
  24%, 62% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.stage:not(.pannable) .panhint { display: none; }

/* ============ Общие части шторки ============ */

.sheet h3 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 26px 0 12px; font-weight: 600;
}
.sheet .muted { font-size: 12.5px; line-height: 1.6; color: var(--muted); opacity: 0.8; margin: 12px 0 0; }
.sheet .note {
  font-size: 13px; line-height: 1.6; color: var(--text);
  background: rgba(200,154,79,0.09);
  border: 1px solid rgba(200,154,79,0.22);
  border-radius: 11px; padding: 12px 14px; margin: 16px 0 0;
}
.sheet .note b { color: var(--accent); }

.kvs { margin-top: 6px; }
.row2 { display: flex; gap: 10px; }
.row2 .act { flex: 1; }

.act.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); font-weight: 600;
}
.act.small {
  margin-top: 12px; padding: 12px 14px;
  font-size: 12px; border-radius: 10px;
}
.act:disabled { opacity: 0.34; cursor: default; }

/* ============ Полосы нормы ============ */

.meter { margin-bottom: 16px; }
.meter-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 7px;
}
.meter-top span:first-child {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.meter-top span:last-child { font-size: 13px; color: var(--muted); }
.meter-top b { color: var(--text); font-size: 16px; font-weight: 700; }
.meter-bar {
  height: 6px; border-radius: 999px;
  background: rgba(230,226,216,0.1); overflow: hidden;
}
.meter-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cool), var(--accent));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.meter.over .meter-bar i { background: linear-gradient(90deg, var(--accent), #C9603F); }
.meter.over .meter-top b { color: #D98A6A; }

/* ============ Журнал (еда, вылазки) ============ */

.log { border-top: 1px solid rgba(230,226,216,0.08); }
.log-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid rgba(230,226,216,0.08);
}
.log-name { flex: 1; font-size: 14px; min-width: 0; }
.log-num { font-size: 12px; color: var(--muted); white-space: nowrap; }
.log-del {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
}

/* ============ Вкладки и список еды ============ */

.tabs {
  display: flex; gap: 6px; overflow-x: auto;
  margin-bottom: 12px; padding-bottom: 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 8px 13px; border-radius: 999px;
  background: rgba(230,226,216,0.05);
  border: 1px solid rgba(230,226,216,0.1);
  font-family: inherit; font-size: 12.5px; color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.tab.on { background: rgba(200,154,79,0.14); border-color: rgba(200,154,79,0.45); color: var(--accent); }

.food { max-height: 300px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.food-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 6px;
  background: rgba(230,226,216,0.035);
  border: 1px solid rgba(230,226,216,0.08); border-radius: 10px;
  font-family: inherit; color: inherit; cursor: pointer;
}
.food-row:active { background: rgba(200,154,79,0.1); }
.food-name { font-size: 14px; font-weight: 600; }
.food-serv { font-size: 11.5px; color: var(--muted); grid-column: 1; }
.food-num {
  grid-row: 1 / 3; grid-column: 2;
  align-self: center; text-align: right;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.tagm, .tags {
  display: inline-block; margin-left: 7px; padding: 1px 6px;
  border-radius: 5px; font-size: 9.5px; font-style: normal;
  letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px;
}
.tagm { background: rgba(126,155,90,0.2); color: var(--accent-cool); }
.tags { background: rgba(201,96,63,0.18); color: #D98A6A; }

/* ============ Стаканы воды ============ */

.glasses { display: flex; gap: 7px; margin-bottom: 10px; }
.glass {
  flex: 1; height: 44px;
  border: 1px solid rgba(230,226,216,0.16);
  border-radius: 6px 6px 9px 9px;
  background: transparent; cursor: pointer;
  position: relative; overflow: hidden;
}
.glass.on {
  border-color: rgba(126,155,90,0.5);
  background: linear-gradient(to top, rgba(126,155,90,0.42), rgba(126,155,90,0.14));
}
.glass-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

/* ============ Запас добавок ============ */

.sup { border-top: 1px solid rgba(230,226,216,0.08); }
.sup-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(230,226,216,0.08);
}
.sup-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.sup-left { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sup-row.low .sup-left { color: var(--accent); }
.sup-row.out .sup-left { color: #D98A6A; }
.sup-add {
  flex-shrink: 0; padding: 7px 11px; border-radius: 8px;
  background: rgba(230,226,216,0.06); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 12px; cursor: pointer;
}

/* ============ Ввод шагов ============ */

.steps {
  background: rgba(230,226,216,0.035);
  border: 1px solid rgba(230,226,216,0.1);
  border-radius: 13px; padding: 15px 16px; margin-bottom: 4px;
}
.steps-lab {
  display: block; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px;
}
.steps-in { display: flex; gap: 9px; }
.steps-in input {
  flex: 1; min-width: 0; padding: 13px 14px;
  background: rgba(6,8,10,0.6);
  border: 1px solid rgba(230,226,216,0.16); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 19px; font-weight: 700;
}
.steps-in input:focus { outline: 0; border-color: rgba(200,154,79,0.6); }
.steps-in .act { margin: 0; width: auto; flex-shrink: 0; padding: 13px 18px; border-radius: 10px; }
.steps-sum {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 11px; font-size: 12.5px; color: var(--muted);
}
.steps-sum b { color: var(--text); font-size: 14px; }

/* ============ Локации вылазки ============ */

.places { display: grid; gap: 8px; }
.place {
  display: block; width: 100%; text-align: left;
  padding: 13px 15px;
  background: rgba(230,226,216,0.035);
  border: 1px solid rgba(230,226,216,0.09); border-radius: 12px;
  font-family: inherit; color: inherit; cursor: pointer;
}
.place.sel { border-color: rgba(200,154,79,0.55); background: rgba(200,154,79,0.09); }
.place.locked { opacity: 0.42; cursor: default; }
.place-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.place-n { font-size: 14.5px; font-weight: 600; }
.place.sel .place-n { color: var(--accent); }
.place-t { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.place-a { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.place-f {
  display: block; margin-top: 7px; font-size: 11px;
  letter-spacing: 0.06em; color: var(--accent-cool);
}

/* ============ Склад ============ */

.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mat {
  padding: 12px 10px; border-radius: 11px; text-align: center;
  background: rgba(230,226,216,0.04);
  border: 1px solid rgba(230,226,216,0.1);
}
.mat b { display: block; font-size: 20px; font-weight: 700; }
.mat span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.mat.t2 { border-color: rgba(200,154,79,0.3); }
.mat.t2 b { color: var(--accent); }
.mat.t3 { border-color: rgba(126,155,90,0.38); }
.mat.t3 b { color: var(--accent-cool); }

/* ============ Улучшения и рейды ============ */

.ups, .raids { display: grid; gap: 10px; }
.up, .raid {
  padding: 14px 15px; border-radius: 12px;
  background: rgba(230,226,216,0.03);
  border: 1px solid rgba(230,226,216,0.09);
}
.up.ready, .raid.ready { border-color: rgba(200,154,79,0.35); }
.up.built { border-color: rgba(126,155,90,0.35); background: rgba(126,155,90,0.06); }
.raid.taken { border-color: rgba(126,155,90,0.28); }

.up-h, .raid-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.up-n, .raid-n { font-size: 15px; font-weight: 700; }
.up-e { font-size: 11px; color: var(--accent-cool); text-align: right; }
.raid-d { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.up-a, .raid-a { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 5px 0 0; }

.up-c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.cost {
  padding: 4px 9px; border-radius: 7px; font-size: 11px;
  background: rgba(201,96,63,0.12); color: #D98A6A;
  border: 1px solid rgba(201,96,63,0.22);
}
.cost.ok { background: rgba(126,155,90,0.14); color: var(--accent-cool); border-color: rgba(126,155,90,0.28); }

.up-done {
  margin-top: 12px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-cool);
}

.raid-req {
  margin-top: 10px; font-size: 12px; color: #D98A6A;
}
.raid-odds { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.raid-odds b { color: var(--text); font-size: 14px; }

/* ============ Характеристики ============ */

.stats { display: grid; gap: 15px; margin-bottom: 20px; }
.stat-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.stat-n { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.stat-l { font-size: 17px; font-weight: 700; color: var(--accent); }
.stat-bar { display: flex; gap: 3px; }
.stat-bar i {
  flex: 1; height: 5px; border-radius: 2px;
  background: rgba(230,226,216,0.1);
}
.stat-bar i.on { background: var(--accent); box-shadow: 0 0 7px rgba(200,154,79,0.4); }
.stat-f { font-size: 11px; color: var(--muted); margin-top: 6px; opacity: 0.85; }

/* ============ Добыча ============ */

.haul { display: grid; gap: 6px; margin-top: 4px; }
.haul-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: 10px;
  background: rgba(230,226,216,0.04);
  border-left: 2px solid rgba(230,226,216,0.2);
  animation: haulin 420ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes haulin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.haul-row.t2 { border-left-color: var(--accent); }
.haul-row.t3 { border-left-color: var(--accent-cool); }
.haul-n { font-size: 14px; }
.haul-c { font-size: 15px; font-weight: 700; color: var(--accent); }

/* ============ Найденная история ============ */

.story {
  margin-top: 20px; padding: 16px 18px; border-radius: 12px;
  background: rgba(6,8,10,0.5);
  border: 1px solid rgba(230,226,216,0.1);
}
.story-m {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px;
}
.story p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text); font-style: italic; }

@media (max-width: 520px) {
  .day { font-size: 22px; }
  .prompt { font-size: 14px; }
  .hs { width: 64px; height: 64px; }
  .chip b { font-size: 15px; }
  .sheet { max-height: 86vh; }
}
