/* ==========================================================
   Юния Шэландрис — «Чёрное серебро»
   Цвета и шрифты меняются в :root
   ========================================================== */
:root {
  --bg: #060607;
  --bg-2: #0d0d10;
  --panel: rgba(16, 16, 20, 0.86);
  --panel-2: rgba(24, 24, 30, 0.9);
  --line: rgba(207, 208, 214, 0.16);
  --line-2: rgba(207, 208, 214, 0.32);
  --silver: #cfd0d6;
  --silver-hi: #f5f5f8;
  --silver-lo: #8b8c94;
  --text: #d6d6dc;
  --muted: #8f909a;
  --ice: #8fd3ff;
  --ice-soft: rgba(143, 211, 255, 0.18);
  --ice-glow: rgba(143, 211, 255, 0.45);

  --f-display: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --f-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --side-w: 300px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
b, strong { color: var(--silver-hi); font-weight: 600; }
::selection { background: var(--ice-soft); color: var(--silver-hi); }

/* скроллбар */
html { scrollbar-color: #3a3a42 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c33; border: 2px solid var(--bg); border-radius: 6px; }

:focus-visible { outline: 1px solid var(--ice); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- фон ---------- */
/* Сменяющийся фон: список картинок — в js/app.js, блок BACKGROUNDS.
   Яркость фона: --bg-bright (0 — чёрный, 1 — как есть), насыщенность: --bg-sat. */
.backdrop {
  --bg-bright: .8;
  --bg-sat: .8;
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: var(--bg);
}
.bg-layer {
  position: absolute; inset: -4%;
  background: center / cover no-repeat;
  filter: saturate(var(--bg-sat)) brightness(var(--bg-bright));
  opacity: 0;
  transition: opacity 3.5s ease;
  will-change: opacity, transform;
}
.bg-layer.is-on { opacity: 1; animation: kenburns 32s ease-in-out infinite alternate; }
.bg-layer.is-alt.is-on { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes kenburns-alt { from { transform: scale(1.12) translate(1.5%, -1%); } to { transform: scale(1.02) translate(0, 1%); } }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 85% 80% at 58% 45%, rgba(6,6,7,.15) 0%, rgba(6,6,7,.5) 70%, rgba(6,6,7,.8) 100%),
    linear-gradient(90deg, rgba(6,6,7,.55) 0, rgba(6,6,7,.1) 30%, rgba(6,6,7,.1) 70%, rgba(6,6,7,.4) 100%);
}
#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- общие элементы ---------- */
.metal {
  background: linear-gradient(180deg, #ffffff 0%, #d9dae0 40%, #8d8e96 52%, #c9cad1 66%, #f2f2f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.frame {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 24px 60px rgba(0, 0, 0, .55);
}
.frame::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(207, 208, 214, .07);
  pointer-events: none;
}
.frame::after {
  content: ""; position: absolute; top: -5px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  background: var(--bg); border: 1px solid var(--line-2);
  transform: rotate(45deg);
  pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 40px; padding: .35em 1.3em;
  font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .12em;
  color: var(--silver-hi);
  background: linear-gradient(180deg, #26262d, #141418);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, color .25s, transform .15s;
}
.btn:hover { border-color: var(--silver); box-shadow: 0 0 18px rgba(207, 208, 214, .12), inset 0 0 12px rgba(207, 208, 214, .06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--silver); }
.btn.ghost:hover { border-color: var(--line-2); }
.btn.big { min-height: 52px; padding: .4em 2.6em; font-size: 20px; }

.kicker {
  display: block;
  font-family: var(--f-display); font-size: 15px; letter-spacing: .32em;
  color: var(--ice);
  text-transform: uppercase;
}

/* ---------- заставка ---------- */
#gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: #000;
  text-align: center;
  padding: 24px 16px;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
#gate.is-gone { opacity: 0; visibility: hidden; }
/* фон заставки — пейзаж (исходник references/gate/). Яркость — brightness, затемнение под текстом — ::after */
.gate-bg {
  position: absolute; inset: 0;
  background: url("../img/gate.webp") 55% 45% / cover no-repeat;
  filter: saturate(.95) brightness(.82);
  transform: scale(1.06);
  animation: drift 26s ease-in-out infinite alternate;
}
.gate-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 50% 52%, rgba(6,8,12,.62) 0%, rgba(6,8,12,.35) 55%, transparent 100%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45));
}
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.gate-inner { position: relative; max-width: 640px; }
.crest {
  position: relative;
  width: min(230px, 52vw); aspect-ratio: 1; margin: 0 auto 18px;
  filter: drop-shadow(0 0 22px rgba(143, 211, 255, .18));
  animation: rise 1.6s var(--ease) both;
}
.crest img { width: 100%; height: 100%; animation: breathe 6s ease-in-out infinite; }
.crest::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  -webkit-mask: url("../img/crest.webp") center / contain no-repeat;
          mask: url("../img/crest.webp") center / contain no-repeat;
  mix-blend-mode: overlay;
  animation: sheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
@keyframes breathe { 50% { filter: brightness(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.gate-name {
  margin: 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(38px, 7vw, 72px); letter-spacing: .08em; line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #dcdde2 42%, #8d8e96 54%, #cfd0d6 70%, #fafafa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.85)) drop-shadow(0 0 22px rgba(0,0,0,.6));
  animation: rise 1.6s var(--ease) .25s both;
}
.gate-quote {
  margin: 14px 0 34px;
  font-style: italic; font-size: clamp(18px, 2.4vw, 22px); color: var(--silver-hi);
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.8);
  animation: rise 1.6s var(--ease) .5s both;
}
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 1.6s var(--ease) .75s both; }
#gate .btn.ghost { background: rgba(6,8,12,.55); border-color: var(--line-2); color: var(--silver-hi); }
/* RU / EN на заставке — в правом верхнем углу */
#gate .gate-lang {
  position: absolute; top: 20px; right: 20px; z-index: 1; margin: 0;
  background: rgba(6,8,12,.55); border-color: var(--line-2);
  animation: rise 1.6s var(--ease) 1s both;
}
@media (max-width: 600px) { #gate .gate-lang { top: 16px; right: 16px; } }

/* ---------- каркас ---------- */
.shell { position: relative; z-index: 2; display: flex; min-height: 100vh; }

.side {
  position: sticky; top: 0;
  flex: 0 0 var(--side-w); height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 22px 22px;
  background: linear-gradient(180deg, rgba(10,10,12,.7), rgba(6,6,7,.82));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.who { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; }
.medallion {
  position: relative; display: block;
  width: 168px; aspect-ratio: 1;
  border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, #f5f5f8, #6d6e76, #d9dae0, #55565d, #f5f5f8);
  box-shadow: 0 0 0 1px #000, 0 0 30px rgba(143, 211, 255, .12);
}
.medallion::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 1px dashed rgba(207, 208, 214, .22);
  animation: spin 60s linear infinite;
}
.medallion img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #120e0c; }
@keyframes spin { to { transform: rotate(360deg); } }
.who-text { display: block; margin-top: 18px; }
.who-name {
  display: block;
  font-family: var(--f-display); font-weight: 600; font-size: 27px; letter-spacing: .06em; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #d9dae0 45%, #8d8e96 58%, #e9e9ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.who-title { display: block; margin-top: 6px; font-size: 16px; font-style: italic; color: var(--muted); line-height: 1.35; }

.lang { display: flex; gap: 2px; margin-top: 16px; padding: 2px; border: 1px solid var(--line); }
.lang a {
  min-width: 42px; padding: 3px 10px; text-align: center;
  font-family: var(--f-display); font-size: 14px; letter-spacing: .18em; text-decoration: none;
  color: var(--silver-lo); transition: color .2s, background .2s;
}
.lang a:hover { color: var(--silver-hi); }
.lang a[aria-current] { color: var(--bg); background: var(--silver); }

.nav { width: 100%; margin: 22px 0 18px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  text-decoration: none; color: var(--muted);
  font-family: var(--f-display); font-size: 19px; letter-spacing: .08em; line-height: 1.15;
  border: 1px solid transparent;
  transition: color .25s, background .25s, border-color .25s;
}
.nav-glyph { flex: 0 0 auto; width: 20px; height: 20px; color: var(--silver-lo); transition: color .25s, filter .25s; }
.nav a:hover { color: var(--silver-hi); background: rgba(207, 208, 214, .04); }
.nav a:hover .nav-glyph { color: var(--silver); }
.nav a[aria-current="page"] .nav-glyph { color: var(--ice); filter: drop-shadow(0 0 6px var(--ice-glow)); }
.nav a[aria-current="page"] {
  color: var(--silver-hi);
  background: linear-gradient(90deg, rgba(207, 208, 214, .09), transparent);
  border-color: var(--line);
  border-right-color: transparent;
}
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -1px; top: 50%; width: 2px; height: 70%;
  transform: translateY(-50%);
  background: var(--ice); box-shadow: 0 0 10px var(--ice-glow);
}

.sound { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 6px; }
.sound-btn {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 7px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; color: var(--silver);
  transition: border-color .25s, color .25s;
}
.sound-btn:hover { border-color: var(--line-2); color: var(--silver-hi); }
.sound-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .wave { display: none; }
.sound-btn[aria-pressed="true"] .wave { display: inline; }
.sound-btn[aria-pressed="true"] .mute { display: none; }
.sound-btn[aria-pressed="true"] { color: var(--ice); border-color: rgba(143, 211, 255, .4); }
.vol { flex: 1; min-width: 0; accent-color: var(--silver); height: 4px; }
.dl-btn {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--silver); transition: border-color .25s, color .25s;
}
.dl-btn:hover { border-color: var(--line-2); color: var(--ice); }
.dl-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.stage { position: relative; flex: 1; min-width: 0; padding: 48px clamp(16px, 4vw, 64px) 80px; }

/* ---------- страницы ---------- */
.page { max-width: 1060px; margin: 0 auto; }
.js .page { display: none; }
.js .page.is-active { display: block; animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }

.page-head { text-align: center; margin-bottom: 34px; }
/* текст, стоящий прямо на фоне, — с мягкой тенью для читаемости */
.page-head, .lead, .sub, .tome-intro, .page-quote, .oath, .cat-desc, .rail { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.85); }
.page-head h2 { filter: drop-shadow(0 2px 10px rgba(0,0,0,.9)); }
.page-head h2 {
  margin: 6px 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(38px, 5vw, 56px); letter-spacing: .08em; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #d9dae0 42%, #8d8e96 55%, #cfd0d6 70%, #f5f5f8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule {
  position: relative; display: block;
  width: min(360px, 70%); height: 1px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--silver-lo), transparent);
}
.rule::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg); border: 1px solid var(--silver);
}
.lead { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-style: italic; }

.sub {
  margin: 44px 0 16px;
  font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: .1em;
  color: var(--silver-hi);
  display: flex; align-items: center; gap: 16px;
}
.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

blockquote { margin: 0; }
.page-quote, .tome-intro blockquote {
  position: relative;
  margin: 0 auto 30px; max-width: 760px;
  padding: 6px 0 6px 26px;
  border-left: 1px solid var(--line-2);
  font-style: italic; color: var(--silver);
}

/* ---------- I. Облик ---------- */
.banner { margin: 0; padding: 6px; }
.banner img { width: 100%; height: auto; aspect-ratio: 1200 / 674; object-fit: cover; }
.banner figcaption {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  padding: 60px 28px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  font-style: italic; font-size: clamp(17px, 2vw, 22px); color: var(--silver-hi);
  text-align: right;
}
.plaques {
  margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.plaque {
  position: relative;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(28,28,34,.85), rgba(14,14,17,.85));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.plaque:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plaque dt { font-family: var(--f-display); font-size: 14px; letter-spacing: .24em; color: var(--silver-lo); text-transform: uppercase; }
.plaque dd { margin: 2px 0 0; font-size: 21px; color: var(--silver-hi); line-height: 1.3; }

.scene { padding: 30px clamp(18px, 3vw, 40px) 20px; }
.scene-lines { min-height: 200px; }
.line { margin: 0 0 1em; }
.line.narr { font-style: italic; color: #a9aab3; }
.line.speech { color: var(--silver-hi); padding-left: 18px; border-left: 1px solid var(--ice); }
.js .scene .line { display: none; }
.js .scene .line.is-shown { display: block; animation: lineIn .8s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } }
.scene-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.scene-dots { margin-right: auto; display: flex; gap: 6px; }
.scene-dots i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--silver-lo); }
.scene-dots i.on { background: var(--silver); border-color: var(--silver); }
.scene.is-done [data-next], .scene.is-done [data-all] { display: none; }

/* ---------- II. Беседа ---------- */
.dialogue { padding: 26px clamp(16px, 3vw, 36px); }
.js .qa-source { display: none; }
.qa-source .q { color: var(--silver-hi); font-weight: 600; margin-bottom: 4px; }
.qa-source .a { margin-bottom: 1.2em; }
.log:empty::before {
  content: attr(data-empty);
  display: block; text-align: center; color: var(--muted); font-style: italic; padding: 24px 0;
}
.msg { display: flex; gap: 14px; margin-bottom: 18px; animation: lineIn .6s var(--ease) both; }
.msg p { margin: 0; }
.msg-body { flex: 1; min-width: 0; }
.msg-who { display: block; font-family: var(--f-display); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-lo); }
.msg.you { justify-content: flex-end; text-align: right; }
.msg.you .msg-body { max-width: 80%; flex: 0 1 auto; color: #a9aab3; font-style: italic; }
.msg.her .msg-who { color: var(--ice); }
.msg.her .msg-body { color: var(--silver-hi); padding: 14px 18px; background: rgba(207,208,214,.04); border: 1px solid var(--line); }
.msg .ava { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: conic-gradient(#f5f5f8, #6d6e76, #d9dae0, #55565d, #f5f5f8); }
.msg .ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.caret::after { content: "▍"; color: var(--ice); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.choices { border-top: 1px solid var(--line); padding-top: 16px; }
.choices .topic-name { font-family: var(--f-display); font-size: 14px; letter-spacing: .24em; color: var(--silver-lo); text-transform: uppercase; margin: 6px 0 6px; }
.choice {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px 9px 36px; margin-bottom: 4px;
  position: relative;
  background: transparent; border: 1px solid transparent;
  color: var(--silver); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.choice::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; transform: rotate(45deg);
  border: 1px solid var(--silver-lo); transition: background .2s, border-color .2s;
}
.choice:hover { background: rgba(207,208,214,.05); border-color: var(--line); color: var(--silver-hi); }
.choice:hover::before { border-color: var(--ice); background: var(--ice); box-shadow: 0 0 8px var(--ice-glow); }
.choice.asked { color: var(--silver-lo); }
.choice.asked::before { background: var(--silver-lo); }
.choice:disabled { cursor: default; opacity: .5; }
.choices .end { text-align: center; color: var(--muted); font-style: italic; margin: 8px 0 12px; }
.choices .end + .btn { display: flex; margin: 0 auto; }

/* ---------- III. Обет ---------- */
.oath-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 54px); align-items: center; }
.arch { margin: 0; position: relative; }
.arch::before {
  content: ""; position: absolute; inset: 8% 6% 4%;
  background: radial-gradient(ellipse at 50% 40%, rgba(90, 140, 255, .35), transparent 70%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
.arch img {
  position: relative; width: 100%;
  /* контур стрельчатой арки витража */
  clip-path: polygon(45.6% 0, 42% .5%, 39.4% 1%, 37.9% 2%, 33.1% 4%, 28.1% 7%, 23.9% 10%, 16.7% 15%, 10.8% 20%, 6.3% 25%, 2.8% 30%, .5% 35%, 0 40%,
    0 100%, 100% 100%, 100% 40%, 99% 35%, 96.7% 30%, 93.7% 25%, 88.6% 20%, 82.8% 15%, 75.5% 10%, 70.5% 7%, 64.4% 4%, 59.5% 2%, 56.9% 1%, 55.4% .5%, 53.8% 0);
}
.oath { text-align: center; }
.oath-crest { width: 92px; margin: 0 auto; opacity: .9; filter: drop-shadow(0 0 14px rgba(143,211,255,.25)); }
.oath .sub { justify-content: center; margin-top: 18px; }
.oath .sub::after { display: none; }
.oath-text {
  font-size: clamp(22px, 2.5vw, 29px); font-style: italic; line-height: 1.55;
  color: var(--silver-hi);
}
.oath-text .w { opacity: .08; transition: opacity .9s ease, text-shadow 1.4s ease; }
.oath-text .w.lit { opacity: 1; text-shadow: 0 0 18px rgba(143,211,255,.35); }
.oath-text .w.settled { text-shadow: none; }
.oath-sign { margin-top: 22px; font-family: var(--f-display); letter-spacing: .14em; color: var(--silver-lo); }
.oath-sign + .voice-btn { margin-top: 18px; }

/* ---------- кнопка «Послушать» (голос Юнии) ---------- */
.voice-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 4px 15px 4px 5px;
  font-family: var(--f-display); font-size: 14px; font-style: normal; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  color: var(--silver); background: rgba(10, 10, 13, .6);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .25s, color .25s, box-shadow .25s;
}
.voice-btn:hover { border-color: var(--line-2); color: var(--silver-hi); }
.voice-btn:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; }
.vb-ico {
  flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: border-color .25s;
}
.vb-ico svg { width: 11px; height: 11px; fill: currentColor; }
.voice-btn .vb-stop { display: none; }
.voice-btn[aria-pressed="true"] { color: var(--ice); border-color: rgba(143, 211, 255, .45); box-shadow: 0 0 16px rgba(143, 211, 255, .12); }
.voice-btn[aria-pressed="true"] .vb-play { display: none; }
.voice-btn[aria-pressed="true"] .vb-stop { display: inline; }
.voice-btn[aria-pressed="true"] .vb-ico { border-color: var(--ice); animation: vbPulse 1.8s ease-in-out infinite; }
@keyframes vbPulse { 50% { box-shadow: 0 0 0 4px rgba(143, 211, 255, .14); } }
/* полоска прогресса по нижнему краю */
.voice-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ice); opacity: .75; transform-origin: left;
  transform: scaleX(var(--p, 0)); transition: transform .25s linear;
}
@media (prefers-reduced-motion: reduce) { .voice-btn[aria-pressed="true"] .vb-ico { animation: none; } }

/* где стоит кнопка */
.gate-quote + .voice-btn { margin: -18px 0 30px; }
.ov-quote + .voice-btn { margin: -6px 0 20px; }
.line .voice-btn { display: flex; width: max-content; margin: 0 0 10px; }
.msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.msg-head .voice-btn { font-size: 12px; padding: 3px 12px 3px 4px; }
.msg-head .vb-ico { width: 20px; height: 20px; }
.msg-head .vb-ico svg { width: 9px; height: 9px; }

/* ---------- IV. Фолиант ---------- */
.tome-intro { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.tome-intro blockquote { text-align: left; margin-top: 18px; }
.tome { padding: 0 0 22px; }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 14px 12px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  font-family: var(--f-display); font-size: 15px; letter-spacing: .14em; color: var(--muted);
  cursor: pointer; transition: color .25s, border-color .25s, background .25s;
}
.tabs [role="tab"] .glyph { width: 28px; height: 28px; }
.tabs [role="tab"]:hover { color: var(--silver-hi); background: rgba(207,208,214,.03); }
/* игровые иконки во вкладках фолианта */
.tab-icon {
  width: 38px; height: 38px;
  border: 1px solid #4a4a52; box-shadow: 0 0 0 1px #000;
  filter: saturate(.75) brightness(.8);
  transition: filter .25s, border-color .25s, box-shadow .25s;
}
.tabs [role="tab"]:hover .tab-icon { filter: none; }
.tabs [role="tab"][aria-selected="true"] .tab-icon { filter: none; border-color: var(--ice); box-shadow: 0 0 0 1px #000, 0 0 14px var(--ice-glow); }
.tabs [role="tab"][aria-selected="true"] { color: var(--silver-hi); border-bottom-color: var(--ice); }
.tabs [role="tab"][aria-selected="true"] .glyph { color: var(--ice); filter: drop-shadow(0 0 6px var(--ice-glow)); }
.tab-panel { padding: 22px clamp(14px, 3vw, 30px) 0; animation: lineIn .5s var(--ease) both; }
.cat-desc { margin: 0 0 20px; color: #b4b5bd; }

.picker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; text-align: left;
  background: rgba(10,10,13,.7); border: 1px solid var(--line);
  cursor: pointer; color: var(--silver);
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.pick:hover { border-color: var(--line-2); color: var(--silver-hi); transform: translateY(-1px); }
.pick[aria-pressed="true"] { border-color: var(--silver); background: rgba(207,208,214,.07); color: var(--silver-hi); box-shadow: inset 0 0 0 1px rgba(207,208,214,.15); }
.pick-name { min-width: 0; font-size: 18px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.js .pick .pick-text { display: none; }
.icon {
  position: relative; flex: 0 0 auto;
  width: 42px; height: 42px; padding: 7px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2b2b33, #0b0b0e);
  border: 1px solid var(--line-2);
  color: var(--silver);
}
.icon.has-img { padding: 0; border-color: #4a4a52; box-shadow: inset 0 0 0 1px #000; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
/* игровые иконки: тонкая тёмная рамка, как в интерфейсе игры */
.icon.has-img img { outline: 1px solid rgba(0,0,0,.8); outline-offset: -1px; }
.pick[aria-pressed="true"] .icon { border-color: var(--ice); color: var(--ice); box-shadow: 0 0 12px var(--ice-soft); }

.pick-out {
  position: sticky; top: 24px;
  min-height: 200px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(24,24,30,.95), rgba(10,10,13,.95));
  border: 1px solid var(--line-2);
}
.pick-out:empty { display: none; }
.out-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.out-head .icon { width: 58px; height: 58px; padding: 10px; border-color: var(--ice); color: var(--ice); box-shadow: 0 0 16px var(--ice-soft); }
.out-head .icon.has-img { padding: 0; }
.out-name { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: .05em; line-height: 1.15; color: var(--silver-hi); }
.out-text { margin: 0; animation: lineIn .45s var(--ease) both; }

/* ---------- Ремёсла ---------- */
/* Карточка: иконка и название, текст, под ним картинка одного размера (3:2) на всю ширину карточки */
.crafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.craft { display: flex; flex-direction: column; padding: 20px 20px 18px; }
.craft-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.craft-head .icon { width: 46px; height: 46px; }
.craft-head h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: .06em; color: var(--silver-hi); line-height: 1.15; }
.craft-text { flex: 1; margin: 0 0 16px; font-size: 18px; line-height: 1.55; }
.craft-art { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px #000; }
.craft-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform 1.2s var(--ease), filter .6s; }
.craft:hover .craft-art img { transform: scale(1.04); filter: none; }

/* ---------- VI. Имущество ---------- */
.bag-wrap { grid-template-columns: auto minmax(0, 1fr); gap: 26px; }
.bag { padding: 22px 22px 24px; }
.bag-title { margin: 0 0 14px; text-align: center; font-family: var(--f-display); letter-spacing: .2em; color: var(--silver-lo); font-size: 15px; text-transform: uppercase; }
.slots { grid-template-columns: repeat(4, 76px); gap: 10px; }
.slot { width: 76px; height: 76px; padding: 0; justify-content: center; background: radial-gradient(circle at 50% 30%, #1d1d23, #070709); }
.slot .icon { width: 100%; height: 100%; padding: 18px; border: 0; background: none; }
.slot .icon.has-img { padding: 3px; }
.js .slot .pick-name { display: none; }
.slot:hover { transform: translateY(-2px); box-shadow: 0 0 14px rgba(207,208,214,.1); }
.slot[aria-pressed="true"] { border-color: var(--ice); box-shadow: 0 0 16px var(--ice-soft), inset 0 0 12px var(--ice-soft); }
.slot[aria-pressed="true"] .icon { box-shadow: none; }
.item-card { border-color: var(--silver-lo); }
.item-card .out-name { color: #e8f6ff; }

/* ---------- VII. Летопись ---------- */
.chron-banner { display: none; } /* фон с боем теперь стоит за всей главой */
.chron-banner--on { display: block; margin: -10px 0 26px; height: 220px; overflow: hidden; position: relative; }
.chron-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.55) brightness(.6) contrast(1.05); }
.chron-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,7,.2), var(--bg)), linear-gradient(90deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.chron { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.rail { list-style: none; margin: 0; padding: 0 0 0 18px; position: sticky; top: 24px; border-left: 1px solid var(--line); }
.rail li { position: relative; }
.rail button {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px 8px 14px; background: none; border: 0; cursor: pointer;
  color: var(--muted); transition: color .2s;
}
.rail button::before {
  content: ""; position: absolute; left: -23px; top: 18px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--bg); border: 1px solid var(--silver-lo);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.rail button:hover { color: var(--silver-hi); }
.rail button[aria-current="step"] { color: var(--silver-hi); }
.rail button[aria-current="step"]::before { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 10px var(--ice-glow); }
.rail button.read::before { background: var(--silver-lo); }
.rail-years { display: block; font-size: 14px; color: var(--silver-lo); font-style: italic; line-height: 1.2; }
.rail-name { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: .06em; line-height: 1.25; }
.chron-read { padding: 30px clamp(18px, 3.4vw, 46px) 20px; }
.era { animation: lineIn .6s var(--ease) both; }
.era h3 {
  margin: 4px 0 6px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: .05em; line-height: 1.15;
  color: var(--silver-hi);
}
.era h4 { margin: 28px 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .06em; color: var(--silver); }
.era h4::before { content: "◆"; font-size: 11px; color: var(--ice); margin-right: 10px; vertical-align: 3px; }
.era p { margin: 0 0 1em; text-indent: 1.4em; }
.era p.kicker { text-indent: 0; }
.era p.speech { text-indent: 0; padding-left: 18px; border-left: 1px solid var(--ice); color: var(--silver-hi); font-style: italic; }
.chron-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.chron-count { flex: 1; text-align: center; color: var(--muted); font-style: italic; font-size: 17px; }

/* ---------- Арты (внешность, главная) ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.art-grid .shot { aspect-ratio: 3 / 4; }
.eras-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shot { margin: 0; position: relative; }
.shot button { display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); background: #000; cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.25) brightness(.85); }
.shot button:hover img { transform: scale(1.04); filter: none; }
.shot figcaption {
  position: absolute; left: 1px; right: 1px; bottom: 1px;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
  font-family: var(--f-display); letter-spacing: .16em; font-size: 15px; color: var(--silver);
  pointer-events: none;
}
#lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center;
  background: rgba(0,0,0,.94);
  animation: lineIn .35s var(--ease) both;
}
#lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; }
#lightbox img { max-height: 86vh; width: auto; border: 1px solid var(--line); }
#lightbox figcaption { margin-top: 10px; font-family: var(--f-display); letter-spacing: .16em; color: var(--silver); }
#lightbox button { background: none; border: 0; color: var(--silver); font-size: 44px; cursor: pointer; line-height: 1; }
#lightbox button:hover { color: var(--silver-hi); }
.lb-close { position: absolute; top: 12px; right: 20px; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }

/* ---------- Главная ---------- */
.ov-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3.5vw, 44px); align-items: center; }
.ov-art .shot { padding: 6px; }
.ov-art .shot button { border: 0; }
.ov-art img { aspect-ratio: 640 / 934; }
.ov-name {
  margin: 0;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.2vw, 50px); letter-spacing: .06em; line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #d9dae0 42%, #8d8e96 55%, #cfd0d6 70%, #f5f5f8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.9));
}
.ov-title { margin: 6px 0 0; font-family: var(--f-display); font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); text-shadow: 0 0 14px rgba(0,0,0,.9); }
.ov-quote { margin: 16px 0 20px; font-style: italic; font-size: 20px; color: var(--silver); text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact {
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(28,28,34,.85), rgba(14,14,17,.85));
  border: 1px solid var(--line);
}
.fact dt { font-family: var(--f-display); font-size: 13px; letter-spacing: .22em; color: var(--silver-lo); text-transform: uppercase; }
.fact dd { margin: 2px 0 0; font-size: 18px; line-height: 1.3; color: var(--silver-hi); }
.ov-summary {
  padding: 22px clamp(18px, 3vw, 34px) 8px;
  background: linear-gradient(180deg, rgba(20,20,25,.82), rgba(10,10,13,.82));
  border-left: 1px solid var(--ice);
}
.ov-summary p { margin: 0 0 1em; }
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.trait {
  position: relative; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(24,24,30,.88), rgba(10,10,13,.88));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.trait:hover { border-color: var(--line-2); transform: translateY(-2px); }
.trait h4 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .08em; color: var(--silver-hi); }
.trait h4::before { content: "◆"; font-size: 10px; color: var(--ice); margin-right: 8px; vertical-align: 3px; }
.trait p { margin: 0; font-size: 17px; line-height: 1.5; color: #b9bac2; }
.sub-lead { margin: -6px 0 14px; color: var(--muted); font-style: italic; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.sub-lead.center { text-align: center; margin: 0 0 20px; }
.next-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.next-links a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 14px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(24,24,30,.88), rgba(10,10,13,.88));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.next-links a:hover { border-color: var(--silver-lo); transform: translateY(-2px); box-shadow: 0 0 22px rgba(143,211,255,.08); }
.next-links .glyph { width: 26px; height: 26px; color: var(--silver); margin-bottom: 4px; }
.next-links a:hover .glyph { color: var(--ice); }
.nl-title { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: .06em; color: var(--silver-hi); }
.nl-kicker { font-size: 15px; font-style: italic; color: var(--muted); line-height: 1.3; }

/* ---------- Внешность ---------- */
.appear { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; margin-top: 22px; align-items: start; }
.appear-text {
  padding: 22px clamp(18px, 3vw, 30px) 6px;
  background: linear-gradient(180deg, rgba(20,20,25,.85), rgba(10,10,13,.85));
  border: 1px solid var(--line);
}
.appear-text p { margin: 0 0 1em; }
.features { margin: 0; display: grid; gap: 8px; }
.feature {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(28,28,34,.9), rgba(14,14,17,.8));
  border-left: 2px solid var(--silver-lo);
}
.feature dt { font-family: var(--f-display); font-size: 13px; letter-spacing: .22em; color: var(--ice); text-transform: uppercase; }
.feature dd { margin: 2px 0 0; color: var(--silver-hi); font-size: 18px; line-height: 1.3; }

/* ---------- Путь паладина: подвкладки ---------- */
.subtabs { margin-bottom: 26px; border-bottom: 0; gap: 8px; justify-content: center; flex-wrap: wrap; overflow: visible; }
.subtabs [role="tab"] {
  flex: 0 1 180px; flex-direction: row; justify-content: center; gap: 10px;
  padding: 12px 18px;
  font-size: 18px; letter-spacing: .1em;
  background: linear-gradient(180deg, rgba(24,24,30,.85), rgba(10,10,13,.85));
  border: 1px solid var(--line);
}
.subtabs [role="tab"] .glyph { width: 22px; height: 22px; }
.subtabs [role="tab"][aria-selected="true"] { border-color: var(--silver); border-bottom-color: var(--ice); box-shadow: inset 0 -2px 0 var(--ice), 0 0 20px rgba(143,211,255,.08); }
.sub-panel { padding: 0; }

/* ---------- Знакомые ---------- */
/* Карточка: портрет, имя, роль. По нажатию снизу плавно выдвигается панель с текстом, мнением Юнии и отношениями. */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.person { padding: 0; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.person.is-open { border-color: var(--silver-lo); box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 0 30px rgba(143,211,255,.1), 0 24px 60px rgba(0,0,0,.55); }
.person-toggle {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 100%;
  padding: 20px 18px 18px; background: none; border: 0; cursor: pointer; text-align: center; color: inherit;
}
.person-art { display: block; width: 100%; max-width: 230px; aspect-ratio: 1; margin-bottom: 14px; }
.person-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) saturate(.9); transition: transform .6s var(--ease), filter .4s; }
.person-toggle:hover .person-art img, .person.is-open .person-art img { transform: scale(1.04); filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(143,211,255,.18)); }
.person-name { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .05em; line-height: 1.15; color: var(--silver-hi); }
.person-role { margin-top: 6px; font-family: var(--f-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.person-chevron {
  width: 10px; height: 10px; margin-top: 12px;
  border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver);
  transform: rotate(45deg); transition: transform .4s var(--ease), border-color .3s;
}
.person-toggle:hover .person-chevron { border-color: var(--ice); }
.person.is-open .person-chevron { transform: translateY(4px) rotate(-135deg); border-color: var(--ice); }
.person-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.person.is-open .person-more { grid-template-rows: 1fr; }
.person-more-inner {
  min-height: 0; overflow: hidden;
  padding: 0 22px; border-top: 1px solid transparent;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .4s ease, transform .55s var(--ease), padding .55s var(--ease), border-color .3s;
}
.person.is-open .person-more-inner { padding: 16px 22px 20px; border-top-color: var(--line); opacity: 1; transform: none; transition-delay: .08s; }
.person-more h4 { margin: 14px 0 4px; font-family: var(--f-display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-lo); }
.person-more h4:first-child { margin-top: 0; }
.person-more p { margin: 0; font-size: 17px; line-height: 1.55; color: #c3c4cb; }
.person-opinion { margin: 0; padding-left: 14px; border-left: 1px solid var(--ice); font-style: italic; }
.person-more .todo { color: var(--silver-lo); font-style: italic; opacity: .75; }

/* ---------- Орден ---------- */
.order-hero { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); padding: 26px clamp(18px, 3vw, 36px); }
.order-crest { flex: 0 0 auto; width: clamp(110px, 16vw, 170px); filter: drop-shadow(0 0 20px rgba(143,211,255,.22)); animation: breathe 6s ease-in-out infinite; }
.order-lead { margin: 6px 0 0; font-size: 21px; color: var(--silver-hi); }
.order-p { margin: 0; max-width: 860px; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.corps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.corp {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px;
  background: linear-gradient(180deg, rgba(24,24,30,.88), rgba(10,10,13,.88));
  border: 1px solid var(--line);
  font-family: var(--f-display); font-size: 19px; letter-spacing: .1em; color: var(--silver-hi);
  transition: border-color .25s;
}
.corp:hover { border-color: var(--silver-lo); }
.corp .glyph { width: 34px; height: 34px; color: var(--silver); }
.corp:hover .glyph { color: var(--ice); }
.charter {
  margin: 0; padding: 18px 24px;
  font-style: italic; font-size: 22px; color: var(--silver-hi); text-align: center;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: rgba(10,10,13,.6);
}
.leaders { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.leader { padding: 14px 18px; background: linear-gradient(180deg, rgba(24,24,30,.88), rgba(10,10,13,.88)); border: 1px solid var(--line); }
.leader dt { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--silver-hi); letter-spacing: .04em; }
.leader dd { margin: 2px 0 0; font-size: 16px; font-style: italic; color: var(--muted); }

/* ---------- Летопись: книга ---------- */
/* Размеры страницы (--pw, --ph) и шрифт (--pf) подбирает js/app.js под ширину экрана.
   Картинки из ChatGPT подключаются классами has-cover / has-paper / … (флаги BOOK_ASSETS в app.js). */
.js .chron-source { display: none; }
.chronicle {
  --pw: 440px; --ph: 620px; --pf: 16.5px;
  --paper: #ebe1cb; --paper-2: #d9ccaf; --ink: #2a221a; --ink-2: #6a5844; --ink-accent: #2f4f6e;
}
.book-wrap { display: flex; flex-direction: column; align-items: center; padding: 14px 0 6px; }
.book {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph);
  perspective: 2800px; cursor: pointer; outline: none;
  transition: transform .95s cubic-bezier(.45,.05,.25,1);
}
.book.is-closed { transform: translateX(-25%); }
.book:focus-visible::before { box-shadow: 0 0 0 2px var(--ice), 0 30px 70px rgba(0,0,0,.7); }
/* кожаный переплёт под страницами */
.book::before {
  content: ""; position: absolute; top: -10px; bottom: -10px; left: -12px; right: -12px; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, #2c2c33, #0b0b0e 70%);
  box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(207,208,214,.2);
  transition: left .95s cubic-bezier(.45,.05,.25,1);
}
.book.is-closed::before { left: calc(50% - 6px); }
.spread { position: absolute; inset: 0; }
/* торец стопки страниц справа */
.spread::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; right: -6px; width: 6px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #d9ccb0 0 1px, #b4a68a 1px 2px);
}
.book.is-closed .spread::after { display: none; }

.bpage { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
/* Статичные страницы рисуются так же, как переворачиваемый лист (отдельным слоем с тем же сглаживанием),
   поэтому в момент, когда страницу подменяет лист и обратно, текст не сдвигается ни на пиксель. */
.book { -webkit-font-smoothing: antialiased; }
.spread .bpage, .leaf { will-change: transform; }
.pg-left { left: 0; }
.pg-right { left: 50%; }
.book.is-closed .pg-left { visibility: hidden; }

/* бумага */
.pg-content, .pg-title, .pg-toc, .pg-endpage, .pg-back {
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(255,251,240,.55), transparent 70%),
              linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
}
.has-paper .pg-content, .has-paper .pg-title, .has-paper .pg-toc, .has-paper .pg-endpage, .has-paper .pg-back {
  background: url("../img/book/paper.webp") center / cover;
}
/* тень у корешка и мягкий край страницы */
.bpage.is-left { border-radius: 5px 0 0 5px; box-shadow: inset -28px 0 32px -20px rgba(70,48,24,.55), inset 1px 0 0 rgba(0,0,0,.15); }
.bpage.is-right { border-radius: 0 5px 5px 0; box-shadow: inset 28px 0 32px -20px rgba(70,48,24,.55), inset -1px 0 0 rgba(0,0,0,.15); }

/* обложка */
.pg-cover {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 38% 28%, #2b2b33 0%, #121216 55%, #08080a 100%);
  border-radius: 3px 10px 10px 3px;
  box-shadow: inset 0 0 0 1px rgba(207,208,214,.22), inset 0 0 0 12px #0e0e12, inset 0 0 0 13px rgba(207,208,214,.4),
              inset 0 0 0 16px #0e0e12, inset 0 0 0 17px rgba(207,208,214,.18), inset 14px 0 22px rgba(0,0,0,.65) !important;
  color: var(--silver-hi);
}
.has-cover .pg-cover { background: url("../img/book/cover.webp") center / cover; box-shadow: inset 10px 0 16px rgba(0,0,0,.45) !important; }
.has-cover .pg-cover .cover-frame { display: none; }
.cover-frame { text-align: center; padding: 10% 12%; }
.cover-crest { display: block; width: 52%; margin: 0 auto 8%; filter: drop-shadow(0 0 18px rgba(143,211,255,.22)); }
.cover-crest img { width: 100%; }
.cover-title {
  margin: 0; font-family: var(--f-display); font-weight: 600; font-size: calc(var(--pw) * .1); letter-spacing: .14em; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #d9dae0 42%, #8d8e96 55%, #cfd0d6 70%, #f5f5f8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cover-sub { margin: .4em 0 0; font-style: italic; font-size: calc(var(--pw) * .048); color: var(--silver); }

/* форзац и пустая сторона переплёта */
.pg-endpaper, .pg-empty { background: #12141b; }
.pg-endpaper::before, .pg-empty::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/crest.webp") 0 0 / 70px 70px repeat; opacity: .06;
}
.has-endpaper .pg-endpaper { background: url("../img/book/endpaper.webp") center / cover; }
.has-endpaper .pg-endpaper::before { display: none; }

/* страница с текстом */
.pg-content {
  display: flex; flex-direction: column;
  padding: calc(var(--ph) * .06) calc(var(--pw) * .1) calc(var(--ph) * .045);
  font-size: var(--pf); line-height: 1.5;
}
.pg-run {
  flex: 0 0 auto; text-align: center;
  font-family: var(--f-display); font-size: .7em; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: .5em; margin-bottom: .9em; border-bottom: 1px solid rgba(106,88,68,.3);
}
.pg-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.pg-num { flex: 0 0 auto; text-align: center; padding-top: .45em; font-family: var(--f-display); font-size: .8em; color: var(--ink-2); }
.pg-body p { margin: 0 0 .55em; text-indent: 1.3em; text-align: justify; hyphens: auto; color: var(--ink); text-shadow: none; }
.pg-body p.cont, .pg-body p.dropcap { text-indent: 0; }
.pg-body p.split { text-align-last: justify; }
.pg-body p.speech { font-style: italic; text-indent: 0; padding-left: .9em; border-left: 2px solid var(--ink-accent); color: #3b3127; }
.pg-body b { color: inherit; }
.pg-body p.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-weight: 600; font-size: 3.2em; line-height: .78;
  padding: .06em .08em 0 0; color: var(--ink-accent);
}
.pg-body h4 { margin: .75em 0 .35em; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 1.08em; letter-spacing: .05em; color: var(--ink-accent); }
.era-head { text-align: center; margin: .3em 0 1em; }
.era-years { margin: 0; text-indent: 0 !important; text-align: center !important; font-family: var(--f-display); font-size: .76em; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-accent); }
.era-head h3 { margin: .25em 0 .3em; font-family: var(--f-display); font-weight: 600; font-size: 1.45em; line-height: 1.15; color: #1d1a20; }
.era-orn { position: relative; display: block; width: 62%; height: 12px; margin: .35em auto 0;
  background: linear-gradient(90deg, transparent, rgba(47,79,110,.7), transparent) center / 100% 1px no-repeat; }
.era-orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%) rotate(45deg);
  border: 1px solid var(--ink-accent); background: var(--paper); }
.has-divider .era-orn { width: 86%; height: calc(var(--pw) * .1); margin-top: .2em; background: url("../img/book/divider.webp") center / contain no-repeat; }
.has-divider .era-orn::after { display: none; }
/* уголки-орнаменты на всех пергаментных страницах: слева сверху и справа снизу.
   Нижний — отдельная, заранее повёрнутая картинка, тень вшита в обе: без transform и filter
   уголки не просвечивают с обратной стороны листа во время переворота. */
.has-corner :is(.pg-content, .pg-title, .pg-toc, .pg-endpage, .pg-plate, .pg-ornament)::before,
.has-corner :is(.pg-content, .pg-title, .pg-toc, .pg-endpage, .pg-plate, .pg-ornament)::after {
  content: ""; position: absolute; width: calc(var(--pw) * .28); aspect-ratio: 728 / 754; pointer-events: none; z-index: 1;
  background: url("../img/book/corner.webp") center / contain no-repeat;
}
.has-corner :is(.pg-content, .pg-title, .pg-toc, .pg-endpage, .pg-plate, .pg-ornament)::before { top: 4px; left: 4px; }
.has-corner :is(.pg-content, .pg-title, .pg-toc, .pg-endpage, .pg-plate, .pg-ornament)::after { bottom: 4px; right: 4px; background-image: url("../img/book/corner-br.webp"); }

/* титул, содержание, последняя страница */
/* Поля — через ширину страницы (--pw), а не в процентах: проценты считаются от родителя,
   а у страницы на развороте и у переворачиваемого листа родители разной ширины — текст съезжал бы. */
.pg-title, .pg-toc, .pg-endpage { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--pw) * .15) calc(var(--pw) * .16); font-size: var(--pf); }
.pg-title, .pg-endpage { justify-content: center; }
.title-crest, .end-crest { display: block; width: 34%; margin-bottom: 1em; filter: drop-shadow(0 3px 6px rgba(70,48,24,.35)) brightness(.85) contrast(1.15); }
.end-crest { width: 24%; opacity: .85; }
.title-crest img, .end-crest img { width: 100%; }
.title-main { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 2.4em; letter-spacing: .12em; line-height: 1.1; color: #1d1a20; }
.title-sub { margin: .15em 0 .5em; font-style: italic; font-size: 1.25em; color: var(--ink-2); }
.title-span { margin: .8em 0 0; font-family: var(--f-display); font-size: .75em; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-accent); }
.title-from { margin: 2.2em 0 0; font-style: italic; font-size: .88em; color: var(--ink-2); }
.toc-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.6em; letter-spacing: .14em; color: #1d1a20; }
.pg-toc ol { list-style: none; width: 100%; margin: 1em 0 0; padding: 0; }
.pg-toc button {
  display: flex; align-items: baseline; gap: .4em; width: 100%; padding: .3em 0;
  background: none; border: 0; font: inherit; font-size: .98em; color: var(--ink); text-align: left; cursor: pointer;
  transition: color .2s;
}
.pg-toc button:hover, .pg-toc button:focus-visible { color: var(--ink-accent); }
.toc-dots { flex: 1; position: relative; top: -.28em; border-bottom: 1px dotted rgba(106,88,68,.6); }
.toc-n { font-family: var(--f-display); }
.end-text { margin: 0; font-style: italic; font-size: 1.2em; color: var(--ink-2); }

/* переворачиваемая страница */
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; z-index: 5; pointer-events: none;
  transform-style: preserve-3d; transform-origin: left center; }
.leaf.on-left { left: 0; transform-origin: right center; }
.leaf.on-single { left: 0; width: 100%; transform-origin: left center; }
/* Обратную сторону скрываем только у самих сторон листа: если повесить это на каждый элемент внутри,
   браузер превратит каждую строку в отдельный 3D-слой, и текст при повороте будет дрожать. */
.leaf .bpage { left: 0; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf-back { transform: rotateY(180deg); }
/* затенение листа во время переворота — отдельный элемент, а не ::after страницы (там живёт уголок) */
.turn-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(20,12,4,.35), rgba(20,12,4,.05) 45%, rgba(255,255,255,.08) 70%, rgba(20,12,4,.2)); }
.leaf.is-turning .turn-shade { animation: turnShade var(--turn, 950ms) ease-in-out; }
@keyframes turnShade { 50% { opacity: 1; } }

/* невидимая страница для замера текста */
.pg-measure { left: 0 !important; width: var(--pw) !important; visibility: hidden; pointer-events: none; z-index: -1; }

/* навигация под книгой */
.book-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 74px; }
.book-count { min-width: 10em; text-align: center; color: var(--muted); font-style: italic; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.book-nav .btn:disabled { opacity: .35; cursor: default; }
.book-hint { margin: 12px 0 0; text-align: center; font-size: 15px; font-style: italic; color: var(--silver-lo); text-shadow: 0 1px 10px rgba(0,0,0,.9); transition: opacity .8s; }
.was-turned .book-hint { opacity: 0; }

/* одна страница (телефон, узкое окно) */
.is-single .book { width: var(--pw); }
.is-single .book.is-closed { transform: none; }
.is-single .book::before, .is-single .book.is-closed::before { left: -8px; right: -8px; }
.is-single .pg-right { left: 0; width: 100%; }
.is-single .pg-left { display: none; }

/* ---------- Книга как паладинский фолиант (в цветах ордена) ---------- */
/* рамка на страницах, как в книгах WoW, но в серебре и стали ордена */
.pg-frame { position: absolute; inset: calc(var(--pw) * .035); pointer-events: none;
  border: 1px solid rgba(93,111,128,.45); outline: 1px solid rgba(93,111,128,.22); outline-offset: 4px; }
.pg-frame::before, .pg-frame::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(93,111,128,.7); background: var(--paper-2); }
.pg-frame::before { top: 0; }
.pg-frame::after { top: 100%; }
.has-corner .pg-frame { display: none; }

/* страница-иллюстрация перед эпохой: картина в стрельчатой рамке */
.pg-plate, .pg-ornament {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--ph) * .08) calc(var(--pw) * .11) calc(var(--ph) * .06);
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(255,251,240,.55), transparent 70%),
              linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink); font-size: var(--pf);
}
.has-paper .pg-plate, .has-paper .pg-ornament { background: url("../img/book/paper.webp") center / cover; }
.plate {
  position: relative; flex: 1 1 auto; width: 100%; min-height: 0; margin: 0;
  border-radius: 50% 50% 3px 3px / 16% 16% 3px 3px; overflow: hidden; background: #cbbd9e;
  box-shadow: 0 0 0 2px #e7dcc4, 0 0 0 3px #8d8e96, 0 0 0 6px #e7dcc4, 0 0 0 7px #4e6478, 0 8px 18px rgba(60,40,20,.35);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 26px rgba(40,28,14,.45); border-radius: inherit; }
.plate-cap { margin: 1em 0 0; font-family: var(--f-display); font-size: .8em; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-accent); }
.orn-crest { display: block; width: 40%; opacity: .12; filter: grayscale(1) brightness(.4); }
.orn-crest img { width: 100%; }

/* серебряные оковки на углах обложки и голубые камни */
.pg-cover::before, .pg-cover::after {
  content: ""; position: absolute; left: 0; right: 0; height: calc(var(--pw) * .2); pointer-events: none;
  background:
    linear-gradient(135deg, #f1f1f4 0%, #a7a8b0 18%, #6c6d75 26%, transparent 27%) left top / calc(var(--pw) * .2) 100% no-repeat,
    linear-gradient(225deg, #f1f1f4 0%, #a7a8b0 18%, #6c6d75 26%, transparent 27%) right top / calc(var(--pw) * .2) 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
}
.pg-cover::before { top: 0; }
.pg-cover::after { bottom: 0; transform: scaleY(-1); }
.cover-frame { position: relative; z-index: 1; }
.cover-frame::before, .cover-frame::after {
  content: ""; position: absolute; left: 50%; width: calc(var(--pw) * .045); aspect-ratio: 1; transform: translateX(-50%) rotate(45deg);
  background: radial-gradient(circle at 35% 30%, #e9f8ff 0%, #8fd3ff 30%, #2d6f9e 70%, #123a57 100%);
  box-shadow: 0 0 0 2px #c9cad1, 0 0 0 3px #3a3b42, 0 0 14px rgba(143,211,255,.55);
}
.cover-frame::before { top: -14%; }
.cover-frame::after { bottom: -14%; }
.has-cover .pg-cover::before, .has-cover .pg-cover::after, .has-cover .cover-frame::before, .has-cover .cover-frame::after { display: none; }
/* если обложка — готовая картинка, на ней остаётся только название в нижней трети */
.has-cover .pg-cover { align-items: flex-end; }
.has-cover .pg-cover .cover-frame { display: block; padding-bottom: 16%; }
.has-cover .cover-crest { display: none; }

/* лента-закладка: выглядывает из-под нижнего края книги */
.book::after {
  content: ""; position: absolute; top: calc(100% + 4px); right: 18%; width: 22px; height: 58px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #1d4566, #3f7fb0 45%, #2a5c84);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
  opacity: .95; transition: opacity .4s;
}
.book.is-closed::after { right: 22%; }
.is-single .book::after { right: 14%; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --side-w: 250px; }
  .medallion { width: 130px; }
  .picker { grid-template-columns: minmax(0, 1fr); }
  .pick-out { position: static; }
  .bag-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bag-wrap .pick-out { width: 100%; }
}

@media (max-width: 860px) {
  body { font-size: 19px; }
  .shell { flex-direction: column; }
  .side {
    position: sticky; top: 0; z-index: 10;
    height: auto; flex: none;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-right: 0; border-bottom: 1px solid var(--line);
    overflow: visible;
    /* backdrop-filter сделал бы шапку контейнером для fixed-меню, и меню прилипло бы к верху */
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(6,6,7,.92);
  }
  .who { flex-direction: row; gap: 10px; text-align: left; min-width: 0; flex: 1; }
  .medallion { width: 44px; padding: 2px; }
  .medallion::before { display: none; }
  .who-text { margin: 0; min-width: 0; }
  .who-name { font-size: 17px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .who-title { display: none; }
  .sound { margin: 0; width: auto; padding: 0; }
  .lang { margin: 0; }
  .lang a { min-width: 0; padding: 3px 7px; font-size: 12px; letter-spacing: .1em; }
  .vol { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    margin: 0; flex-direction: row; gap: 0; overflow-x: auto;
    background: rgba(6,6,7,.96); border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 0 auto; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px 10px; font-size: 13px; letter-spacing: .04em; border: 0; }
  .nav-glyph { width: 18px; height: 18px; }
  .nav a[aria-current="page"] { background: rgba(207,208,214,.06); border: 0; }
  .nav a[aria-current="page"]::before { left: 20%; right: 20%; top: 0; width: auto; height: 2px; transform: none; }
  .stage { padding: 28px 16px 110px; }
  .plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .plaque { padding: 10px 12px; }
  .plaque dt { font-size: 12px; letter-spacing: .16em; }
  .plaque dd { font-size: 18px; }
  .banner figcaption { position: static; padding: 12px 8px 6px; background: none; text-align: center; font-size: 17px; }
  .page-head { margin-bottom: 24px; }
  .oath-wrap { grid-template-columns: minmax(0, 1fr); }
  .arch { max-width: 380px; margin: 0 auto; }
  .crafts { grid-template-columns: minmax(0, 1fr); }
  .chron { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; gap: 4px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail li { flex: 0 0 auto; }
  .rail button { padding: 8px 12px; border: 1px solid var(--line); }
  .rail button::before { display: none; }
  .rail button[aria-current="step"] { border-color: var(--ice); }
  .art-grid, .eras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ov-art { max-width: 340px; margin: 0 auto; }
  .ov-info { text-align: center; }
  .facts { text-align: left; }
  .appear { grid-template-columns: minmax(0, 1fr); }
  .subtabs [role="tab"] { flex: 1 1 40%; padding: 10px 12px; font-size: 16px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .person-toggle { padding: 14px 10px 12px; }
  .person-name { font-size: 18px; }
  .person-role { font-size: 11px; letter-spacing: .12em; }
  .order-hero { flex-direction: column; text-align: center; }
  .corps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .pick-grid.slots { grid-template-columns: repeat(4, 64px); gap: 8px; }
  .slot { width: 64px; height: 64px; }
  .slot .icon { padding: 14px; }
  .bag { padding: 18px 14px; }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .msg.you .msg-body { max-width: 92%; }
  .msg .ava { flex-basis: 38px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
