:root {
  --ink: #f4eddc;
  --ink-dim: #c2b49c;
  --panel: rgba(40, 31, 26, 0.92);
  --panel-2: rgba(46, 35, 29, 0.97);
  --panel-3: rgba(30, 23, 20, 0.98);
  --edge: rgba(222, 190, 128, 0.32);
  --edge-strong: rgba(236, 204, 140, 0.66);
  --gold: #eac25e;
  --gold-2: #ffe9b0;
  --wood: #5a4534;
  --wood-2: #3a2c22;
  --hp: #d9534f;
  --mp: #4f8fd9;
  --st: #6bbf59;
  --xp: #c07bff;
  --good: #7fdc95;
  --bad: #ff7a7a;
  --font: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --font-title: Georgia, 'Times New Roman', 'Noto Serif', serif;
}

* { box-sizing: border-box; }
/* атрибут hidden прячет всегда: свой display у элемента не должен его перебивать */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: #0b0d14; color: var(--ink);
  font-family: var(--font);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.hidden { display: none !important; }

/* ── Загрузочный экран ─────────────────────────────────────────────────── */
.boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, #2b3350 0%, #141827 45%, #0a0c14 100%);
}
.boot-inner { text-align: center; max-width: 640px; padding: 24px; }
.boot-emblem { font-size: 44px; letter-spacing: 12px; margin-bottom: 6px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.boot h1 {
  margin: 6px 0 2px; font-size: 56px; letter-spacing: 3px; font-family: var(--font-title); font-weight: 600;
  background: linear-gradient(180deg, #fff1c8, #d9a441 70%, #b07c2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(217,164,65,.28));
}
.boot-sub { margin: 0 0 26px; color: var(--ink-dim); font-size: 15px; letter-spacing: .6px; font-family: var(--font-title); font-style: italic; }
.boot-sub::before, .boot-sub::after { content: ' ✦ '; color: var(--gold); font-style: normal; opacity: .7; }
.boot-progress { width: 320px; height: 6px; margin: 0 auto; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.boot-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #d9a441, #ffe9b0); transition: width .25s ease; }
.boot-menu { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.btn {
  padding: 11px 26px; min-width: 220px;
  background: linear-gradient(180deg, var(--wood), var(--wood-2));
  border: 1px solid var(--edge); border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,235,200,.14), 0 2px 6px rgba(0,0,0,.35);
  color: var(--ink); font-family: var(--font); font-size: 15px; cursor: pointer;
  transition: transform .1s ease, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--edge-strong); transform: translateY(-1px); background: linear-gradient(180deg, #6a5340, #45352a); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(180deg, #e0b24c, #a67a2a); border-color: #ffe0a0; color: #1f1706; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,245,220,.5), 0 2px 8px rgba(217,164,65,.35); }
.btn.primary:hover { background: linear-gradient(180deg, #f0c25a, #b5862f); }
.btn.small { min-width: 0; padding: 6px 14px; font-size: 13px; }
.btn.danger { border-color: rgba(255,107,107,.5); color: #ffb0b0; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }

/* ── HUD ────────────────────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.28) 100%);
}

.hud-left { position: absolute; top: 16px; left: 16px; }
.portrait-row { display: flex; gap: 10px; align-items: flex-start; }
.portrait {
  width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 50% 35%, rgba(90,70,52,.95), var(--panel-3));
  border: 2px solid var(--edge-strong); border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(60,44,32,.7), 0 4px 14px rgba(0,0,0,.45);
}
.vitals { width: 250px; display: flex; flex-direction: column; gap: 3px; }
.name-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; text-shadow: 0 2px 4px #000; font-family: var(--font-title); letter-spacing: .3px; }
.name-row .lvl { color: var(--gold); font-weight: 600; font-family: var(--font); }

.bar {
  position: relative; height: 13px; border-radius: 7px; overflow: hidden;
  background: rgba(22,16,14,.8); border: 1px solid rgba(222,190,128,.25);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
}
.bar .fill { height: 100%; width: 100%; transition: width .18s ease; border-radius: 6px; box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18); }
.bar.hp .fill { background: linear-gradient(180deg, #ef6b66, #a8322e); }
.bar.mp .fill { background: linear-gradient(180deg, #64a6ef, #2c5d9e); }
.bar.st { height: 6px; }
.bar.st .fill { background: linear-gradient(180deg, #8cd97a, #4a8f3c); }
.bar.xp { height: 11px; }
.bar.xp .fill { background: linear-gradient(180deg, #d09bff, #7c47c4); }
.bar-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10.5px; letter-spacing: .3px; text-shadow: 0 1px 2px #000; color: #fff;
}

/* Статусы героя: ряд под полосами, цвет свой у каждого (см. data/statuses.js) */
.statuses { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; max-width: 320px; }
.statuses:empty { display: none; }
.status-chip {
  display: flex; align-items: center; gap: 4px; padding: 2px 7px;
  background: rgba(12,10,14,.78); border: 1px solid currentColor; border-radius: 12px;
  font-size: 11.5px; line-height: 1.5; text-shadow: 0 1px 2px #000;
}
.status-chip b { color: inherit; font-variant-numeric: tabular-nums; }

.buffs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; max-width: 320px; }
.buff {
  display: flex; align-items: center; gap: 5px; padding: 3px 8px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 14px;
  font-size: 11.5px;
}
.buff b { color: var(--gold); }
.buff.meal { border-color: rgba(255,200,120,.55); }
.buff.pet { border-color: rgba(138,224,160,.45); }
.buff.pet b { color: #8ae0a0; }
.buff.pet.hungry { border-color: rgba(255,107,107,.5); }
.buff.pet.hungry b { color: var(--bad); }

.hud-right { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.clock-box {
  background: linear-gradient(180deg, rgba(58,44,34,.94), var(--panel)); border: 1px solid var(--edge-strong); border-radius: 10px;
  padding: 7px 14px; text-align: right; box-shadow: 0 0 0 2px rgba(60,44,32,.5), 0 4px 14px rgba(0,0,0,.4);
}
.clock-time { font-size: 22px; font-weight: 600; letter-spacing: 1px; line-height: 1; font-family: var(--font-title); color: var(--gold-2); }
.clock-day { font-size: 11.5px; color: var(--ink-dim); margin-top: 3px; }
.stat-chip {
  display: flex; align-items: center; gap: 7px; padding: 5px 12px;
  background: linear-gradient(180deg, rgba(58,44,34,.94), var(--panel)); border: 1px solid var(--edge); border-radius: 16px;
  font-size: 13px; box-shadow: inset 0 1px 0 rgba(255,235,200,.1), 0 3px 10px rgba(0,0,0,.35);
}
.stat-chip b { font-weight: 600; }
.stat-chip i { font-style: normal; color: var(--ink-dim); font-size: 11px; }
.stat-chip.gold b { color: var(--gold); }
.stat-chip.pouch { border-color: rgba(232,192,90,.4); }
.stat-chip.pouch b { color: var(--gold-2); }
.stat-chip.omen { border-color: rgba(192,123,255,.4); }
.stat-chip.omen b { color: var(--ink); }
.stat-chip.omen i { color: var(--xp); }
.stat-chip.sneak { border-color: rgba(140,170,200,.45); opacity: .9; }
.stat-chip.sneak b { color: #bfd4e8; font-weight: 500; }
/* спутник главы: пока он на ногах — здоровье, упал — сколько ждать */
.stat-chip.ally { border-color: rgba(232,192,90,.35); }
.stat-chip.ally b { color: var(--gold-2); }
.stat-chip.ally.down { border-color: rgba(140,140,150,.4); opacity: .75; }
.stat-chip.ally.down b, .stat-chip.ally.down i { color: #a0a4ac; }

.quest-tracker {
  position: absolute; right: 16px; top: 200px; width: 250px;
  display: flex; flex-direction: column; gap: 5px;
}
.qt-item {
  background: linear-gradient(90deg, rgba(58,44,34,.9), rgba(40,31,26,.82)); border-left: 3px solid var(--gold);
  padding: 6px 10px; border-radius: 0 6px 6px 0; font-size: 12px;
}
.qt-item .qt-title { color: var(--ink); margin-bottom: 2px; }
.qt-item .qt-prog { color: var(--ink-dim); font-size: 11px; }
.qt-item.done { border-left-color: var(--good); }
.qt-item.done .qt-prog { color: var(--good); }

.crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.crosshair .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 4px rgba(0,0,0,.8); }

.prompt {
  position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(58,44,34,.95), var(--panel)); border: 1px solid var(--edge-strong); border-radius: 8px;
  padding: 9px 18px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(60,44,32,.5), 0 6px 20px rgba(0,0,0,.5);
}
.prompt kbd {
  display: inline-block; min-width: 20px; text-align: center;
  background: linear-gradient(180deg,#4a4356,#332e3e); border: 1px solid var(--edge);
  border-radius: 4px; padding: 1px 6px; margin-right: 7px; font-size: 12px; font-family: var(--font);
  color: var(--gold);
}
.prompt .sub { color: var(--ink-dim); font-size: 12px; margin-left: 8px; }

.cast-bar {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  width: 220px; height: 16px; background: rgba(10,10,16,.85);
  border: 1px solid var(--edge); border-radius: 8px; overflow: hidden;
}
.cast-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#c9973a,#ffe9b0); transition: width .05s linear; }
.cast-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; text-shadow: 0 1px 2px #000; }

.fish-bar {
  position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
  width: 320px; padding: 9px 14px 8px; text-align: center;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.fish-label { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 6px; }
.fish-bar.bite .fish-label { color: var(--gold); animation: fishPulse .5s ease-in-out infinite alternate; }
@keyframes fishPulse { from { opacity: .7; } to { opacity: 1; } }
.fish-track {
  position: relative; height: 18px; border-radius: 9px; overflow: hidden;
  background: rgba(10,10,16,.85); border: 1px solid rgba(255,255,255,.1);
}
.fish-wait {
  position: absolute; inset: 0; opacity: .55;
  background: linear-gradient(90deg, rgba(44,93,158,.2) 0%, rgba(100,166,239,.9) 50%, rgba(44,93,158,.2) 100%);
  background-size: 200% 100%; animation: fishWait 1.8s linear infinite;
}
@keyframes fishWait { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fish-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #8cd97a, #4a8f3c); box-shadow: 0 0 10px rgba(107,216,138,.5); }
.fish-marker { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 6px #fff; }
.fish-hint { font-size: 11px; color: var(--ink-dim); margin-top: 6px; }
.fish-hint kbd {
  background: linear-gradient(180deg,#4a4356,#332e3e); border: 1px solid var(--edge);
  border-radius: 4px; padding: 0 5px; color: var(--gold); font-size: 10.5px; font-family: var(--font);
}

/* Захват цели (Tab): ромб над головой врага, имя и тонкая полоса здоровья */
.lock-marker {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-shadow: 0 2px 5px rgba(0,0,0,.9); will-change: left, top;
}
.lock-ring { font-size: 15px; line-height: 1; color: var(--gold-2); animation: lockPulse 1.9s ease-in-out infinite; }
.lock-name { font-size: 11px; letter-spacing: .6px; color: var(--ink); white-space: nowrap; }
.lock-status { font-size: 12px; line-height: 1; letter-spacing: 1px; }
.lock-status:empty { display: none; }
/* уязвимости цели по материалу тела (см. DAMAGE_PROFILES) */
.lock-weak { font-size: 11px; line-height: 1; letter-spacing: 1px; opacity: .95; }
.lock-weak:empty { display: none; }
.lock-bar { width: 64px; height: 4px; background: rgba(10,10,16,.8); border: 1px solid var(--edge); border-radius: 3px; overflow: hidden; }
.lock-fill { height: 100%; background: linear-gradient(180deg,#ff8a6b,#a82c2c); transition: width .18s; }
@keyframes lockPulse {
  0%, 100% { opacity: .62; transform: scale(.9); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* полоска здоровья спутника над головой — меньше и тише, чем у захваченной цели */
.ally-marker { position: absolute; transform: translate(-50%, -100%); pointer-events: none; will-change: left, top; }
.ally-bar { width: 46px; height: 3px; background: rgba(10,10,16,.8); border: 1px solid var(--edge); border-radius: 3px; overflow: hidden; }
.ally-fill { height: 100%; background: linear-gradient(180deg,#ffe9b0,#c8913a); transition: width .18s; }
.ally-marker.down .ally-fill { background: linear-gradient(180deg,#9aa0a8,#5a5e66); }

.damage-layer { position: absolute; inset: 0; overflow: hidden; }
.dmg {
  position: absolute; font-weight: 700; font-size: 17px; text-shadow: 0 2px 4px rgba(0,0,0,.9);
  animation: floatUp 1.05s ease-out forwards; will-change: transform, opacity;
}
.dmg.crit { font-size: 25px; color: #ffd45e; }
.dmg.player { color: #ff7a7a; }
.dmg.heal { color: #7ce89a; }
.dmg.status { font-size: 13px; font-weight: 600; }
.dmg.xp { color: #d09bff; font-size: 14px; }
.dmg.gold { color: var(--gold); font-size: 14px; }
/* речь спутника: висит дольше урона и почти не уплывает — реплику надо успеть прочесть */
.dmg.speech {
  font-size: 13px; font-weight: 600; color: #ffe9b0; white-space: nowrap; max-width: 320px;
  animation: floatSpeech 2.5s ease-out forwards;
}
@keyframes floatUp {
  0%   { transform: translate(-50%, 0) scale(.7); opacity: 0; }
  18%  { transform: translate(-50%, -14px) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -62px) scale(.95); opacity: 0; }
}
@keyframes floatSpeech {
  0%   { transform: translate(-50%, 0) scale(.85); opacity: 0; }
  8%   { transform: translate(-50%, -10px) scale(1); opacity: 1; }
  82%  { transform: translate(-50%, -22px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -34px) scale(.98); opacity: 0; }
}

.toasts {
  position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column-reverse; gap: 6px;
  max-width: 330px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(58,44,34,.96), var(--panel)); border: 1px solid var(--edge); border-left-width: 4px; border-left-color: var(--edge-strong);
  border-radius: 6px; padding: 7px 12px; font-size: 13px;
  animation: slideIn .22s ease-out; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.toast .t-icon {
  font-size: 17px; width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  background: rgba(0,0,0,.28); border: 1px solid var(--edge); border-radius: 50%;
}
.toast.good { border-left-color: var(--good); }
.toast.bad { border-left-color: var(--bad); }
.toast.gold { border-left-color: var(--gold); }
.toast.big { font-size: 15px; padding: 11px 16px; }
.toast .t-sub { color: var(--ink-dim); font-size: 11.5px; }
@keyframes slideIn { from { transform: translateX(-22px); opacity: 0; } to { transform: none; opacity: 1; } }

.hotbar {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 8px; pointer-events: auto;
}
.slot {
  width: 54px; height: 54px; position: relative; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, rgba(72,56,42,.96), var(--panel-3)); border: 1px solid var(--edge); border-radius: 9px;
  display: grid; place-items: center; font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255,235,200,.1), 0 4px 12px rgba(0,0,0,.4); transition: transform .1s, border-color .15s;
}
.slot:hover { border-color: var(--edge-strong); transform: translateY(-2px); }
.slot .key { position: absolute; top: 2px; left: 5px; font-size: 10px; color: var(--gold); }
.slot .qty { position: absolute; bottom: 2px; right: 5px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.slot.empty { opacity: .35; }
.hotbar-gap { width: 10px; }
.slot.skill { border-color: rgba(120,160,255,.35); }
.slot.skill .qty { color: #8fb4ff; font-weight: 600; }
.slot .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.72); border-radius: 0 0 8px 8px; pointer-events: none; }
.slot .cdt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.slot.locked { opacity: .45; filter: grayscale(1); }
.slot.locked .qty { color: var(--ink-dim); }
.slot.nomana .qty { color: #ff8a8a; }

.radar {
  position: absolute; right: 16px; bottom: 16px; width: 150px; height: 150px; border-radius: 50%;
  border: 3px solid rgba(90,69,52,.95); box-shadow: 0 0 0 2px var(--edge-strong), 0 6px 20px rgba(0,0,0,.5), inset 0 0 18px rgba(0,0,0,.45);
  overflow: hidden; background: rgba(10,10,16,.6);
}
.radar canvas { display: block; width: 150px; height: 150px; }
.radar-n { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--gold); text-shadow: 0 1px 2px #000; }

/* История в дневнике */
.story-card {
  background: linear-gradient(180deg, rgba(255,225,180,.10), rgba(255,225,180,.04));
  border: 1px solid rgba(201,151,58,.45); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.story-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.story-head b { font-family: var(--font-title); font-size: 17px; color: var(--gold); }
.story-num { font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .6px; }
.story-intro { font-family: var(--font-title); font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); margin-bottom: 8px; font-style: italic; }
.story-goal { font-size: 14px; color: var(--ink); }
.story-goal span { color: var(--gold); margin-left: 6px; }
.story-done { margin-top: 8px; font-size: 11.5px; color: var(--ink-dim); border-top: 1px dashed rgba(201,151,58,.3); padding-top: 6px; }
.section-title { font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .6px; margin: 12px 0 6px; }

/* Календарь года в дневнике: четыре строки-сезона по семь дней */
.cal-year { display: grid; grid-template-columns: auto repeat(7, 1fr); gap: 4px; align-items: center; margin: 6px 0 10px; }
.cal-season { font-size: 11px; color: var(--ink-dim); padding-right: 6px; white-space: nowrap; }
.cal-cell {
  position: relative; text-align: center; font-size: 11px; line-height: 1.15; padding: 5px 2px;
  border-radius: 7px; background: rgba(255,255,255,.035); color: var(--ink-dim);
}
.cal-cell b { display: block; font-size: 11px; font-weight: 600; color: var(--ink); }
.cal-cell .cal-mark { display: block; font-size: 12px; height: 14px; }
.cal-cell.fair { background: rgba(201,151,58,.18); border: 1px solid rgba(201,151,58,.45); }
.cal-cell.bday { background: rgba(255,138,184,.14); }
.cal-cell.today { outline: 2px solid var(--gold); outline-offset: -2px; }
.cal-cell.past { opacity: .45; }
.cal-next { font-size: 12px; color: var(--ink-dim); }
.cal-next b { color: var(--gold); font-weight: 600; }
.cal-badge { cursor: help; }
.dialog-pages { display: flex; gap: 5px; margin: -2px 0 8px; }
.dialog-pages i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,225,180,.18); }
.dialog-pages i.on { background: var(--gold); }
.qt-item.story { border-left-color: var(--gold); }
.qt-item.story .qt-title { color: var(--gold); }
.qt-item.personal { border-left-color: #e08ab8; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,225,180,.25); cursor: pointer; padding: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 5px rgba(0,0,0,.4); }
.swatch:hover { border-color: var(--edge-strong); transform: translateY(-1px); }
.swatch.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(234,194,94,.45), 0 2px 5px rgba(0,0,0,.4); }

.cam-hint {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--edge); border-radius: 8px;
  padding: 6px 14px; font-size: 12px; color: var(--ink-dim); text-align: center; line-height: 1.6;
  max-width: min(640px, calc(100vw - 360px)); min-width: 220px;
}
.cam-hint kbd {
  background: linear-gradient(180deg,#4a4356,#332e3e); border: 1px solid var(--edge);
  border-radius: 4px; padding: 0 5px; margin: 0 2px; color: var(--gold); font-size: 11px; font-family: var(--font);
}

.zone-banner {
  position: absolute; left: 50%; top: 24%; transform: translateX(-50%);
  text-align: center; opacity: 0; pointer-events: none;
}
.zone-banner.show { animation: banner 3.4s ease-out forwards; }
.zone-banner .zb-title {
  font-size: 40px; letter-spacing: 4px; font-family: var(--font-title); font-weight: 600;
  background: linear-gradient(180deg, #fff3d0, #e8c05a 70%, #c08a30);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.9));
}
.zone-banner .zb-title::before, .zone-banner .zb-title::after { content: ' ✦ '; font-size: 22px; vertical-align: middle; }
.zone-banner .zb-sub { font-size: 14px; color: var(--ink); letter-spacing: 2px; margin-top: 4px; font-family: var(--font-title); font-style: italic; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
@keyframes banner {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.boss-bar { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); width: min(440px, 42vw); text-align: center; }
.boss-name { font-size: 16px; letter-spacing: 2px; text-shadow: 0 2px 6px #000; margin-bottom: 4px; }
.boss-status { font-size: 13px; letter-spacing: 2px; line-height: 1; margin-bottom: 4px; text-shadow: 0 2px 6px #000; }
.boss-status:empty { display: none; }
.boss-phase { font-size: 12px; letter-spacing: 1px; color: #ffb26b; text-shadow: 0 2px 6px #000; margin-bottom: 4px; }
.boss-phase:empty { display: none; }
.boss-weak { font-size: 13px; letter-spacing: 2px; line-height: 1; margin-bottom: 4px; text-shadow: 0 2px 6px #000; }
.boss-weak:empty { display: none; }
.boss-track { position: relative; height: 14px; background: rgba(10,10,16,.85); border: 1px solid rgba(255,120,120,.5); border-radius: 8px; overflow: hidden; }
.boss-fill { height: 100%; width: 100%; background: linear-gradient(180deg,#ff8a6b,#a82c2c); transition: width .2s; }
/* насечки на порогах фаз: видно, когда босс изменится (см. data/bosses.js) */
.boss-notches { position: absolute; inset: 0; pointer-events: none; }
.boss-notches i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,235,190,.8); box-shadow: 0 0 4px rgba(0,0,0,.6); }

/* ── Модальные окна ─────────────────────────────────────────────────────── */
.modal-root {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(10,8,10,.6); backdrop-filter: blur(3px); pointer-events: auto;
}
/* Пергаментная рамка: тёплый фон, двойной кант, орнаменты по углам */
.panel {
  position: relative;
  width: min(960px, 94vw); max-height: 88vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel-3));
  border: 1px solid var(--edge-strong); border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(60,44,32,.75), 0 0 0 4px rgba(222,190,128,.28), 0 24px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,235,200,.08);
  animation: pop .18s ease-out;
}
.panel::before, .panel::after {
  content: '✦'; position: absolute; color: var(--gold); font-size: 13px; line-height: 1; pointer-events: none;
  text-shadow: 0 0 6px rgba(232,192,90,.5);
}
.panel::before { top: -9px; left: -9px; }
.panel::after { bottom: -9px; right: -9px; }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel.narrow { width: min(560px, 92vw); }
.panel.wide { width: min(1100px, 96vw); }
.panel.map { width: min(760px, 94vw); }

.panel-foot kbd, .panel-head kbd {
  background: linear-gradient(180deg,#4a4356,#332e3e); border: 1px solid var(--edge);
  border-radius: 4px; padding: 0 5px; color: var(--gold); font-size: 11px; font-family: var(--font);
}

.panel-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--edge);
}
.panel-head h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .6px; font-family: var(--font-title); color: var(--gold-2); }
.panel-head .head-sub { color: var(--ink-dim); font-size: 12.5px; }
.panel-head .spacer { flex: 1; }
.panel-close {
  width: 30px; height: 30px; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--edge); color: var(--ink);
  display: grid; place-items: center; font-size: 16px;
}
.panel-close:hover { background: rgba(255,255,255,.12); }
.panel-body { padding: 16px 20px; overflow-y: auto; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--edge); display: flex; gap: 10px; align-items: center; }
.panel-foot .spacer { flex: 1; }

.tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--edge); }
.tab {
  padding: 9px 16px; cursor: pointer; font-size: 13.5px; color: var(--ink-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Сетка предметов */
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; }
.cell {
  aspect-ratio: 1; position: relative; cursor: pointer; border-radius: 8px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  display: grid; place-items: center; font-size: 24px; transition: transform .08s, border-color .12s, background .12s;
}
.cell:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
/* Добыча текущей вылазки: тихая пометка «с вылазки» */
.cell.slot-pouch { border-color: rgba(232,192,90,.34); }
.cell.slot-pouch::before { content: '🎒'; position: absolute; top: 1px; left: 3px; font-size: 9px; opacity: .7; pointer-events: none; }
/* Вещь со случайными свойствами: золотая кромка и точка в углу */
.cell.affixed { border-color: rgba(255,214,120,.5); }
.cell.affixed .aff, .equip-slot.affixed .aff {
  position: absolute; bottom: 3px; left: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: #ffd678; box-shadow: 0 0 5px rgba(255,214,120,.85); pointer-events: none;
}
.cell.sel { border-color: var(--gold); background: rgba(232,192,90,.12); }
.cell .qty { position: absolute; bottom: 2px; right: 4px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px #000; }

.cell .up, .equip-slot .up {
  position: absolute; top: 2px; right: 4px; font-size: 10.5px; font-weight: 700; color: var(--gold);
  text-shadow: 0 1px 2px #000;
}

.cell.empty { opacity: .3; cursor: default; }
.cell.empty:hover { transform: none; background: rgba(255,255,255,.035); }

.inv-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }

.equip-slot {
  aspect-ratio: 1; border-radius: 8px; position: relative; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 24px;
}
.equip-slot.filled { border-style: solid; border-color: var(--edge-strong); background: rgba(232,192,90,.08); }

/* Щит за спиной при двуручном оружии: слот занят, но молчит */
.equip-slot.idle { opacity: .55; }
/* Пояс с инструментами: пустое гнездо серое и без наведения */
.belt-wrap { margin-bottom: 14px; }

.belt-slots { margin-bottom: 18px; }
.belt-slots .equip-slot { font-size: 20px; }
.belt-slots .equip-slot.blank { opacity: .32; cursor: default; }

/* Кукла героя: голова, тело, ноги и ступни посередине, оружие и руки слева, вторая рука и талисман справа */
.equip-doll { grid-template-columns: repeat(3, 54px); justify-content: center; gap: 17px 12px; margin-bottom: 20px; }
.equip-doll .equip-slot { font-size: 22px; }
.doll-gap { pointer-events: none; }
/* Бонусы комплектов брони: в окне героя и в карточке части; работающая ступень — с галочкой */

.detail {
  background: rgba(0,0,0,.28); border: 1px solid var(--edge); border-radius: 10px; padding: 14px;
  min-height: 220px; font-size: 13px;
}
.detail h3 { margin: 0 0 2px; font-size: 17px; font-family: var(--font-title); }
.detail .d-type { color: var(--ink-dim); font-size: 11.5px; margin-bottom: 10px; }
.detail .d-desc { color: #cfc7b8; font-style: italic; font-size: 12.5px; margin: 10px 0; line-height: 1.5; }
.detail .d-stats { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; }
.detail .d-stat { display: flex; justify-content: space-between; }
.detail .d-stat .v.pos { color: var(--good); }
.detail .d-stat .v.neg { color: var(--bad); }
.detail .d-price { color: var(--gold); margin-top: 8px; font-size: 12.5px; }
/* Случайные свойства находки и правило уникальной вещи */

.detail .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

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

.derived-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.dv { background: rgba(255,255,255,.035); border-radius: 7px; padding: 8px 11px; font-size: 12.5px; }
.dv b { display: block; font-size: 16px; color: var(--ink); margin-top: 2px; }
.dv span { color: var(--ink-dim); font-size: 11px; }

/* Списки (задания, магазин, крафт, стройка) */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: rgba(255,225,180,.045); border: 1px solid rgba(222,190,128,.12); border-radius: 9px;
  transition: border-color .12s, background .12s;
}
.row:hover { border-color: var(--edge); background: rgba(255,225,180,.09); }
.row .r-icon { font-size: 26px; width: 34px; text-align: center; flex: none; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-size: 14px; margin-bottom: 2px; }
.row .r-sub { font-size: 11.5px; color: var(--ink-dim); }
.row .r-side { text-align: right; font-size: 12px; white-space: nowrap; }
.row.done { border-color: rgba(107,216,138,.45); background: rgba(107,216,138,.08); }
.row.locked { opacity: .5; }
.row.ach-locked .r-icon { filter: grayscale(.8); opacity: .6; }
.rank-badge {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  font-weight: 700; font-size: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--edge);
}
.reward { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; }
.reward .g { color: var(--gold); }
.reward .p { color: #7ac6e8; }
.reward .x { color: #d09bff; }

.progress-mini { height: 5px; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.progress-mini > div { height: 100%; background: linear-gradient(90deg, #c9973a, #ffe9b0); }

.cost-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; margin-top: 4px; }
.cost-item { color: var(--ink-dim); }
.cost-item.ok { color: var(--good); }
.cost-item.miss { color: var(--bad); }

.rank-header {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(232,192,90,.14), transparent);
  border: 1px solid var(--edge); border-radius: 10px;
}
.rank-big { font-size: 44px; font-weight: 700; line-height: 1; font-family: var(--font-title); }
.rank-info { flex: 1; }
.rank-info .r-name { font-size: 15px; margin-bottom: 3px; }
.rank-info .r-blurb { color: var(--ink-dim); font-size: 12px; font-style: italic; }
.rank-bar { height: 7px; background: rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; margin-top: 7px; }
.rank-bar > div { height: 100%; background: linear-gradient(90deg,#c9973a,#ffe9b0); }

.shop-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shop-col h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Рынок: спрос недели, дневной запас и просевшая цена */
.demand-note { font-size: 12px; color: #ffd98a; background: rgba(201,151,58,.12); border: 1px solid rgba(201,151,58,.3);
  border-radius: 7px; padding: 7px 10px; margin: 0 0 10px; }
.demand-tag { color: #ffd98a; }
.drop-tag { color: var(--bad); }
.shop-stock { color: var(--ink-dim); }
.shop-stock.out { color: var(--bad); font-style: italic; }
/* Своя торговая лавка */
.cell.locked { opacity: .42; filter: grayscale(1); }
.stall-rows { margin-top: 10px; }
.stall-info { margin: 12px 0 6px; font-size: 13px; }
.stall-log h4 { margin: 10px 0 6px; font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; }
.stall-log .r-sub { font-size: 12px; }

.build-layout { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.storage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.storage-col h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; display: flex; gap: 8px; align-items: baseline; }
.storage-col .grid-items { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
.storage-col .cell { font-size: 21px; }

.empty-note { color: var(--ink-dim); text-align: center; padding: 34px 10px; font-style: italic; font-size: 13px; }

/* Плакат контракта на именное чудовище */
.bounty-poster { display: flex; gap: 14px; padding: 14px; border-radius: 10px; align-items: flex-start;
  background: rgba(180,69,58,.1); border: 1px solid rgba(180,69,58,.4); }
.bounty-poster.taken { background: rgba(201,151,58,.12); border-color: rgba(201,151,58,.45); }
.bounty-poster.done { opacity: .72; filter: grayscale(.4); }
.bounty-poster .b-face { font-size: 40px; line-height: 1; flex: 0 0 auto;
  width: 62px; height: 62px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(0,0,0,.35); border: 1px solid var(--edge); }
.bounty-poster .b-main { flex: 1; min-width: 0; }
.bounty-poster .b-name { font-family: var(--font-title); font-size: 19px; color: var(--gold); letter-spacing: .5px; }
.bounty-poster .b-where { font-size: 12.5px; color: var(--ink-dim); margin: 2px 0 7px; }
.bounty-poster .b-text { font-size: 13px; line-height: 1.6; }
.bounty-poster .b-stats { font-size: 12px; color: var(--bad); margin-top: 7px; }
.bounty-reward { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px;
  font-size: 13px; }
.bounty-reward > div { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--edge); }
.bounty-reward b { color: var(--gold); }
/* Походный карман над сеткой сумки */
.pouch-note {
  margin-bottom: 10px; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; color: var(--ink-dim);
  background: rgba(232,192,90,.07); border: 1px solid rgba(232,192,90,.28);
}
.pouch-note b { color: var(--gold); font-weight: 600; }

.dialog-text { font-size: 15px; line-height: 1.7; margin-bottom: 6px; font-family: var(--font-title); }
.rep-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; }
.rep-row .rep-name { color: var(--gold); min-width: 86px; }
.rep-row .rep-pts { color: var(--ink-dim); white-space: nowrap; }
.rep-bar { flex: 1; height: 7px; background: rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; }
.rep-bar > div { height: 100%; background: linear-gradient(90deg, #d86a9a, #ffb0d0); }
.rep-perk { color: var(--ink-dim); font-size: 12px; margin-top: 6px; font-style: italic; }
.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.talent-branch { --br: var(--gold); display: flex; flex-direction: column; gap: 8px; }
.tb-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--edge); border-top: 2px solid var(--br); }
.tb-head .tb-icon { font-size: 24px; }
.tb-head b { color: var(--br); }
.tb-head .tb-count { margin-left: auto; color: var(--ink-dim); font-size: 12px; }
.talent {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); margin-left: 12px;
}
.talent::before { content: ''; position: absolute; left: -8px; top: -9px; bottom: 50%; width: 2px; background: rgba(255,255,255,.12); }
.talent.learned { border-color: color-mix(in srgb, var(--br) 60%, transparent); background: color-mix(in srgb, var(--br) 12%, transparent); }
.talent.learned::before { background: var(--br); }
.talent.ready { border-color: var(--edge-strong); }
.talent.locked { opacity: .55; }
.talent .t-icon { font-size: 22px; width: 30px; text-align: center; flex: none; }
.talent .t-main { flex: 1; min-width: 0; }
.talent .t-title { font-size: 13.5px; }
.talent .t-cost { color: var(--gold); font-size: 11px; margin-left: 4px; }
.talent.learned .t-cost { color: var(--good); }
.talent .t-desc { font-size: 11.5px; color: var(--ink-dim); margin-top: 2px; line-height: 1.4; }
.talent .t-req { font-size: 11px; color: var(--bad); margin-top: 3px; }
.talent .t-teach { font-size: 11px; color: var(--gold); margin-top: 3px; }
.talent .btn { flex: none; }
/* Второй ярус ветви: заголовок с замком, пока не пройдена четвёртая глава */
.tb-tier2 {
  margin: 10px 0 2px; padding: 7px 10px; border-radius: 8px; font-size: 11.5px; letter-spacing: .3px;
  color: var(--br); background: color-mix(in srgb, var(--br) 10%, transparent);
  border: 1px dashed color-mix(in srgb, var(--br) 45%, transparent);
}
.tb-tier2.locked { color: var(--ink-dim); background: rgba(255,255,255,.03); border-color: var(--edge); }

.friends-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.friend { background: rgba(255,255,255,.035); border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.friend .f-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.friend .f-head span { color: var(--ink-dim); font-size: 11px; }
.friend .f-sub { margin-top: 4px; color: var(--ink-dim); font-size: 11px; }
.friend .f-perk { margin-top: 3px; color: var(--ink-dim); font-size: 10.5px; font-style: italic; }
.dialog-name { color: var(--gold); font-size: 12.5px; margin-bottom: 8px; letter-spacing: .6px; text-transform: uppercase; }

.death {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(30,4,4,.72); backdrop-filter: blur(4px);
}
.death-inner { text-align: center; }
.death h2 { font-size: 36px; margin: 0 0 10px; color: #ff9b9b; letter-spacing: 2px; font-family: var(--font-title); }
.death p { color: var(--ink-dim); margin: 0 0 22px; }

/* ── Финал: выбор в последней сцене и эпилог ─────────────────────────────── */
/* Полноэкранный оверлей в духе экрана смерти, только тёплый: тёмное небо и пергамент */
.ending {
  position: fixed; inset: 0; z-index: 62; display: grid; place-items: center;
  padding: 24px; overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, rgba(58,40,64,.86), rgba(14,10,16,.95));
  backdrop-filter: blur(5px);
}
.ending-card {
  width: min(720px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 26px 30px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(62,48,36,.97), var(--panel-3));
  border: 1px solid var(--edge-strong); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.ending-mark { font-size: 12px; letter-spacing: 1.4px; color: var(--ink-dim); text-transform: none; margin-bottom: 10px; }
.ending h2 { font-size: 30px; margin: 0 0 8px; color: var(--gold-2); font-family: var(--font-title); letter-spacing: 1.5px; }
.ending-sub { color: var(--ink-dim); margin: 0 0 18px; font-size: 14px; font-style: italic; }
.ending-choices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; }
.ending-choice {
  flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 18px; cursor: pointer; color: var(--ink); font-family: var(--font); font-size: 14px;
  background: linear-gradient(180deg, rgba(74,58,44,.95), rgba(44,34,28,.95));
  border: 1px solid var(--edge); border-radius: 12px; transition: transform .12s ease, border-color .12s ease;
}
.ending-choice:hover { transform: translateY(-2px); border-color: var(--edge-strong); }
.ending-choice b { font-size: 16px; font-family: var(--font-title); color: var(--gold-2); letter-spacing: .6px; }
.ending-icon { font-size: 30px; line-height: 1; }
.ending-hint { color: var(--ink-dim); font-size: 12.5px; line-height: 1.45; }
.ending-text { text-align: left; margin: 4px 0 0; cursor: pointer; }
.ending-para {
  margin: 0 0 12px; line-height: 1.62; font-size: 14.5px; color: var(--ink);
  font-family: var(--font-title); opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
}
.ending-para.on { opacity: 1; transform: none; }
.ending-foot { margin-top: 14px; min-height: 34px; }

.fade {
  position: fixed; inset: 0; z-index: 70; background: #000; opacity: 0;
  pointer-events: none; transition: opacity .5s ease;
}
.fade.on { opacity: 1; }

.settings-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.settings-row label { flex: 1; font-size: 13.5px; }
.settings-row input[type=range] { width: 180px; }
.settings-row select { background: var(--panel); color: var(--ink); border: 1px solid var(--edge); border-radius: 6px; padding: 5px 10px; font-family: var(--font); font-size: 13px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
::-webkit-scrollbar-thumb { background: rgba(214,186,130,.28); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(214,186,130,.45); }
