/* «Ход Императрицы» · Mini App участницы.
   Палитра из ТЗ Натальи: изумруд, шампань-золото, светлый мрамор, мягкий свет. Цвета — только переменными:
   смена стиля = правка этого блока, а не вёрстки. */
:root {
  --ivory: #f6f1e7;
  --marble: #ece4d4;
  --card: rgba(255, 252, 245, .86);
  --card-solid: #fffcf5;
  --line: rgba(141, 116, 66, .22);
  --emerald: #0e3a2d;
  --emerald-2: #185440;
  --emerald-soft: rgba(14, 58, 45, .08);
  --gold: #b8955a;
  --gold-2: #dcc591;
  --gold-soft: rgba(184, 149, 90, .16);
  --ink: #1d2721;
  --muted: #6c675b;
  --danger: #8f3a2c;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 10px 30px rgba(52, 40, 18, .12), 0 2px 6px rgba(52, 40, 18, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 400 15px/1.55 var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.app { min-height: 100%; max-width: 560px; margin: 0 auto; position: relative; }
.screen { min-height: 100vh; min-height: 100dvh; position: relative; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- типографика ---------- */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; letter-spacing: .01em; margin: 0; color: var(--emerald); }
.h1 { font-size: 38px; line-height: 1.05; }
.h2 { font-size: 30px; line-height: 1.1; }
.h3 { font-size: 22px; line-height: 1.15; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.prose p { margin: 0 0 .8em; }
.prose p:last-child { margin-bottom: 0; }
.ornament { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 14px auto; justify-content: center; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 54px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 14px; height: 14px; }

/* ---------- кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  color: #f7ecd2; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(14, 58, 45, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  cursor: pointer; transition: transform .15s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--gold { background: linear-gradient(180deg, #e9d6a6, var(--gold)); color: var(--emerald); box-shadow: 0 8px 22px rgba(184, 149, 90, .35); }
.btn--ghost { background: transparent; color: var(--emerald); box-shadow: inset 0 0 0 1px var(--line); }
.link { background: none; border: 0; color: var(--emerald-2); font-weight: 600; padding: 8px; cursor: pointer; }

/* ---------- загрузка и служебные экраны ---------- */
.screen--loading, .screen--state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: radial-gradient(120% 70% at 50% 0%, #fffaf0 0%, var(--ivory) 55%, var(--marble) 100%);
}
.crest {
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f4e6c2, var(--gold) 70%);
  box-shadow: 0 0 0 6px var(--gold-soft), var(--shadow);
  position: relative; animation: breathe 2.4s ease-in-out infinite;
}
.crest::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  background: var(--emerald);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-1.6-9-4.4 4-3-7-3 7-4.4-4L3 18zm0 2h18v1.5H3z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-1.6-9-4.4 4-3-7-3 7-4.4-4L3 18zm0 2h18v1.5H3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@keyframes breathe { 50% { transform: scale(1.05); box-shadow: 0 0 0 12px var(--gold-soft), var(--shadow); } }
.loading-text { margin-top: 22px; font-family: var(--serif); font-size: 20px; color: var(--emerald); }
.screen--state .h2 { margin: 22px 0 10px; }
.screen--state p { max-width: 320px; margin: 0 auto 22px; }
.screen--state .btn { max-width: 300px; }

/* ---------- приветствие ---------- */
.welcome { display: flex; flex-direction: column; justify-content: space-between; color: #fff8e8; overflow: hidden; }
.welcome__bg { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.06); animation: drift 18s ease-in-out infinite alternate; }
.welcome__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 20, .55) 0%, rgba(7, 26, 20, 0) 30%, rgba(7, 26, 20, 0) 50%, rgba(7, 26, 20, .82) 82%, rgba(7, 26, 20, .94) 100%); }
@keyframes drift { to { transform: scale(1.12) translateY(-10px); } }
.welcome__top, .welcome__bottom { position: relative; padding: 28px 26px; }
.welcome__top { padding-top: max(28px, env(safe-area-inset-top)); text-align: center; }
.welcome__top .eyebrow { color: var(--gold-2); }
.welcome__bottom { padding-bottom: calc(26px + var(--safe-b)); }
.welcome .h1 { color: #fff4dc; font-size: 42px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.welcome .prose { color: rgba(255, 246, 226, .9); margin: 12px 0 22px; }

/* ---------- шаги знакомства ---------- */
.onb { padding: max(26px, env(safe-area-inset-top)) 22px calc(26px + var(--safe-b));
  background: radial-gradient(130% 60% at 50% 0%, #fffaf0, var(--ivory) 60%, var(--marble)); display: flex; flex-direction: column; }
.onb__dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }
.onb__dots i { width: 22px; height: 3px; border-radius: 3px; background: var(--line); }
.onb__dots i.on { background: var(--gold); }
.onb__body { flex: 1; display: flex; flex-direction: column; }
.onb__body .h2 { text-align: center; }
.onb__body > .prose { margin: 14px 0 20px; text-align: center; }
.onb__actions { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.author { display: flex; flex-direction: column; align-items: center; text-align: center; }
.author__photo { width: 96px; height: 96px; border-radius: 50%; background: center/cover var(--marble); box-shadow: 0 0 0 3px var(--card-solid), 0 0 0 4px var(--gold), var(--shadow); margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.field { display: block; margin-top: 8px; }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card-solid); font: 500 17px/1.4 var(--sans); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { font-size: 15px; min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.avatars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.avatar {
  border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--card-solid); cursor: pointer;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; text-align: center;
}
.avatar__img { aspect-ratio: 3/4; background: center/cover var(--marble); }
.avatar__name { display: block; padding: 8px 4px 10px; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--emerald); }
.avatar.on { box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(184, 149, 90, .35); transform: translateY(-3px); }

/* ---------- карта ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(246, 241, 231, .97), rgba(246, 241, 231, .86));
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.me { width: 42px; height: 42px; border-radius: 50%; background: center/cover var(--marble); box-shadow: 0 0 0 2px var(--gold); flex: none; }
.topbar__text { flex: 1; min-width: 0; }
.topbar__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--emerald); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.progress__bar { flex: 1; max-width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--emerald-2)); border-radius: 4px; transition: width .6s ease; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--card-solid); box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--emerald);
}
.chip svg { width: 16px; height: 16px; color: var(--gold); }

.map { position: relative; }
.map__img { display: block; width: 100%; height: auto; }
.map__fallback { aspect-ratio: 9/16; background: linear-gradient(180deg, #e9f0e6, #d6e3d5 40%, #cfdccb); }
.spot {
  position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px;
}
.spot__seal {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #fbf1d7, var(--gold) 75%);
  box-shadow: 0 0 0 3px rgba(255, 252, 245, .9), 0 8px 20px rgba(40, 30, 10, .35);
  color: var(--emerald);
}
.spot__seal svg { width: 24px; height: 24px; }
.spot__label {
  padding: 5px 12px; border-radius: 999px; background: rgba(14, 58, 45, .92); color: #f5e8c8;
  font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.spot--locked .spot__seal { width: 40px; height: 40px; opacity: .9; background: radial-gradient(circle at 50% 35%, #f2efe8, #b9b3a4 80%); color: #4c4a42; }
.spot--locked .spot__label { background: rgba(40, 44, 40, .72); color: #e9e4d6; }
.spot--done .spot__seal { background: radial-gradient(circle at 50% 35%, #2a7a5d, var(--emerald) 80%); color: var(--gold-2); }
.spot--open .spot__seal { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(255, 252, 245, .9), 0 0 0 12px rgba(220, 197, 145, .45), 0 8px 26px rgba(184, 149, 90, .65); } }
.spot--waiting .spot__seal { background: radial-gradient(circle at 50% 35%, #fbf1d7, #cdb27c 80%); }

.map-hint { margin: 0; padding: 14px 18px calc(18px + var(--safe-b)); text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- зал ---------- */
.hall-cover { position: relative; aspect-ratio: 4/3; background: center/cover var(--marble); }
.hall-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 22, .25), rgba(10, 30, 22, 0) 35%, rgba(246, 241, 231, 0) 60%, var(--ivory) 100%); }
.hall-head { position: relative; margin-top: -54px; padding: 0 20px; z-index: 1; text-align: center; }
.hall-head .h2 { font-size: 34px; }
.hall-head .prose { margin-top: 8px; color: var(--muted); }
.back {
  position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); left: 12px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 252, 245, .88); box-shadow: var(--shadow); color: var(--emerald);
}
.back svg { width: 20px; height: 20px; }
.steps { padding: 18px 16px calc(28px + var(--safe-b)); display: grid; gap: 14px; }
.step { position: relative; }
.step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: var(--emerald); }
.step__icon svg { width: 17px; height: 17px; }
.step__title { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--emerald); line-height: 1.15; flex: 1; }
.step__done { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--emerald-2); letter-spacing: .04em; }
.step__done svg { width: 15px; height: 15px; }
.step--done { opacity: .92; }
.step--done .step__icon { background: var(--emerald); color: var(--gold-2); }
.step .prose { margin-bottom: 14px; }
.step audio { width: 100%; margin: 4px 0 12px; }
.step video, .step img.media { width: 100%; border-radius: 14px; display: block; margin: 4px 0 12px; background: #0b1f18; }
.options { display: grid; gap: 8px; margin-bottom: 4px; }
.option {
  text-align: left; padding: 13px 16px; border-radius: 14px; border: 0; cursor: pointer; background: var(--card-solid);
  box-shadow: 0 0 0 1px var(--line); font-weight: 500; transition: box-shadow .2s, background .2s;
}
.option:active { background: var(--gold-soft); }
.option.on { box-shadow: 0 0 0 2px var(--gold); background: var(--gold-soft); }
.answer { margin-top: 2px; padding: 12px 14px; border-radius: 12px; background: var(--emerald-soft); font-size: 14px; white-space: pre-wrap; }
.req { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hall-done { text-align: center; padding: 6px 4px 0; }

/* ---------- шторка и праздник ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 24, 18, .45); animation: fade .25s ease both; }
.sheet__panel {
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: var(--ivory);
  border-radius: 24px 24px 0 0; padding: 12px 20px calc(22px + var(--safe-b)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  animation: rise .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }
.artifacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.artifact { text-align: center; }
.artifact__seal { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: center/cover radial-gradient(circle at 50% 35%, #fbf1d7, var(--gold) 75%); color: var(--emerald); box-shadow: var(--shadow); }
.artifact__seal svg { width: 28px; height: 28px; }
.artifact__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.artifact--empty .artifact__seal { background: var(--marble); color: #b4ad9c; box-shadow: inset 0 0 0 1px var(--line); }
.artifact--empty .artifact__name { color: var(--muted); }

.celebrate { text-align: center; padding: 10px 4px 0; }
.celebrate .artifact__seal { width: 104px; height: 104px; animation: stamp .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.celebrate .artifact__seal svg { width: 46px; height: 46px; }
@keyframes stamp { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.celebrate .h2 { margin: 18px 0 8px; }
.celebrate .btn { margin-top: 20px; }

/* ---------- финал ---------- */
.final { padding: max(30px, env(safe-area-inset-top)) 22px calc(30px + var(--safe-b)); text-align: center;
  background: radial-gradient(120% 60% at 50% 0%, #fff6dc, var(--ivory) 55%, var(--marble)); }
.final .crest { margin: 10px auto 18px; width: 96px; height: 96px; }
.final .card { margin: 20px 0; text-align: left; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--emerald); color: #f6e9c9;
  font-size: 14px; box-shadow: var(--shadow); animation: fade .25s ease both;
}
.demo-badge { position: fixed; bottom: calc(10px + var(--safe-b)); left: 10px; z-index: 70; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--emerald); font-size: 11px; font-weight: 800; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- живая карта (world.js) ---------- */
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #0b2a21; }
.world__dom, .world__fx { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.world__dom img { display: block; width: 100%; height: 100%; pointer-events: none; }
.world__gl { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.world--gl .world__gl { opacity: 1; }
.world__fx { pointer-events: none; }
.world__fog { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(250, 246, 236, .92), rgba(250, 246, 236, .55) 55%, rgba(250, 246, 236, 0));
  animation: world-fog 7s ease-in-out infinite alternate; }
@keyframes world-fog { from { translate: -6% 0; } to { translate: 6% -4%; } }
.world__dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6d8, rgba(232, 200, 120, .9) 40%, rgba(232, 200, 120, 0) 70%); animation: world-dust linear infinite; }
@keyframes world-dust { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), -60px); opacity: 0; } }
.world__marks { position: absolute; inset: 0; pointer-events: none; }
.world__mk { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.world__mk .spot { pointer-events: auto; transform: translate(-50%, -26px); }
.world__mk .spot--locked { transform: translate(-50%, -20px); }
.spot--shake { animation: spot-shake .45s; }
@keyframes spot-shake { 20%, 60% { margin-left: -6px; } 40%, 80% { margin-left: 6px; } }
.world__rays { position: absolute; right: -10%; top: -6%; width: 85%; pointer-events: none; mix-blend-mode: screen; opacity: .45; }
.world__clouds { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; }
.world__clouds img { position: absolute; width: 150%; opacity: .72; }
.world__clouds img:first-child { left: -45%; top: -24%; }
.world__clouds img:last-child { left: -5%; bottom: -30%; transform: scaleX(-1); }
.world__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(6, 26, 19, .5)); }
.world-veil { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff8e6, #f0dcae 45%, #c9a564); }
.world-doors { position: fixed; inset: 0; z-index: 40; display: flex; perspective: 1200px; pointer-events: none; }
.world-door { position: relative; flex: 1; height: 100%; backface-visibility: hidden;
  background: radial-gradient(60% 40% at 50% 50%, rgba(220, 197, 145, .25), rgba(220, 197, 145, 0) 70%), linear-gradient(180deg, #185440, #0e3a2d 60%, #0a2c22);
  box-shadow: inset 0 0 0 10px #0a2c22, inset 0 0 0 12px rgba(220, 197, 145, .7), inset 0 0 0 26px #0e3a2d, inset 0 0 0 27px rgba(220, 197, 145, .45); }
.world-door.l { transform-origin: left center; }
.world-door.r { transform-origin: right center; }
.world-door::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
  border: 1.5px solid rgba(220, 197, 145, .55); box-shadow: inset 0 0 0 8px rgba(14, 58, 45, .6), inset 0 0 0 9px rgba(220, 197, 145, .35); }
.world-door::after { content: ''; position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 4px solid #d8bd82; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.world-door.l::after { right: 18px; }
.world-door.r::after { left: 18px; }
.world-flyer { position: fixed; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 55; pointer-events: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--emerald); background: radial-gradient(circle, #fff3d0, #e1c27e 55%, #b8955a); box-shadow: 0 0 30px 10px rgba(240, 210, 140, .6); }
.world-flyer svg { width: 32px; height: 32px; }

/* экран карты поверх сцены */
body.on-map { background: #0b2a21; }
body.on-map .app { position: relative; z-index: 1; pointer-events: none; }
.screen--map { min-height: 0; animation: none; }
.screen--map .topbar { position: fixed; left: 10px; right: 10px; top: 0; margin-top: max(8px, env(safe-area-inset-top)); padding: 8px 12px; border-radius: 18px;
  border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); pointer-events: auto; max-width: 540px; margin-left: auto; margin-right: auto; }
.map-card { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); max-width: 540px; margin: 0 auto; pointer-events: auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 20px; background: rgba(246, 241, 231, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.map-card__text { flex: 1; min-width: 0; }
.map-card__title { font: 600 24px/1.1 var(--serif); color: var(--emerald); font-variant-numeric: lining-nums; }
.map-card__hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.map-card .btn { width: auto; flex: none; padding: 12px 20px; }

/* ---------- зал: живая обложка, печати, свитки ---------- */
.hero { position: relative; height: 56vh; min-height: 300px; max-height: 520px; overflow: hidden; background: #0b2a21; }
.hero__bg { position: absolute; inset: -3%; background: center/cover; animation: hero-kb 18s ease-in-out infinite alternate; }
@keyframes hero-kb { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.hero__gl.on { opacity: 1; }
.hero__rays { position: absolute; right: -12%; top: -10%; width: 80%; mix-blend-mode: screen; opacity: .45; pointer-events: none; animation: hero-rays 7s ease-in-out infinite alternate; }
@keyframes hero-rays { to { opacity: .22; } }
.hero__dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6d8, rgba(232, 200, 120, .9) 40%, rgba(232, 200, 120, 0) 70%); animation: world-dust linear infinite; }
.hero__fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 30, 22, .3), rgba(10, 30, 22, 0) 28%, rgba(246, 241, 231, 0) 58%, var(--ivory) 100%); }
.screen--hall .hall-head { margin-top: -70px; }

.seals { margin-top: 14px; display: grid; justify-items: center; gap: 6px; }
.seals__row { display: flex; gap: 8px; }
.seals__row i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff4d6;
  box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(255, 252, 245, .7); }
.seals__row i.cur { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px var(--gold-soft); }
.seals__row i.on { background: radial-gradient(circle at 40% 35%, #b5463a, #7b1f1a 75%); box-shadow: 0 2px 5px rgba(90, 20, 15, .35), inset 0 0 0 1.5px #d8a07a; }
.seals__row i svg { width: 12px; height: 12px; }
.seals__text { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.scroll { position: relative; margin: 10px 4px; padding: 20px 18px 18px; border-radius: 6px; border: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 40% at 10% 90%, rgba(196, 160, 100, .14), rgba(196, 160, 100, 0) 70%),
    linear-gradient(180deg, #fbf6ea, #f4ead4);
  box-shadow: 0 10px 26px rgba(70, 50, 20, .14), inset 0 0 0 1px rgba(184, 149, 90, .28), inset 0 0 40px rgba(196, 160, 100, .12); }
.scroll::before, .scroll::after { content: ''; position: absolute; left: -7px; right: -7px; height: 13px; border-radius: 7px; pointer-events: none;
  background: linear-gradient(180deg, #6b4f26, #e8d29e 38%, #f6e7bf 50%, #b8955a 66%, #5c4220); box-shadow: 0 3px 6px rgba(60, 40, 15, .3); }
.scroll::before { top: -6px; }
.scroll::after { bottom: -6px; }
.step__head { cursor: default; }
.step__fold { display: none; margin-left: auto; color: var(--gold); transform: rotate(-90deg); transition: transform .3s ease; }
.step__fold svg { width: 16px; height: 16px; }
.step--rolled, .step--folded { padding-top: 14px; padding-bottom: 12px; }
.step--rolled .step__body, .step--folded .step__body { display: none; }
.step--rolled.step--open .step__body, .step--folded.step--open .step__body { display: block; }
.step--rolled .step__head, .step--folded .step__head { margin-bottom: 0; cursor: pointer; }
.step--rolled.step--open .step__head, .step--folded.step--open .step__head { margin-bottom: 10px; }
.step--rolled .step__fold, .step--folded .step__fold { display: block; }
.step--open .step__fold { transform: rotate(90deg); }
.step--rolled { opacity: .78; }
.step--rolled .step__title { font-size: 19px; }
.step--current { box-shadow: 0 14px 34px rgba(70, 50, 20, .2), inset 0 0 0 1px rgba(184, 149, 90, .45), 0 0 0 4px rgba(220, 197, 145, .25); }
.step--done { opacity: 1; }
.step--done .step__title { padding-right: 34px; }
.wax { position: absolute; right: 12px; top: 50%; margin-top: -19px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #f4d9b0;
  background: radial-gradient(circle at 38% 32%, #c4554a, #8a2620 55%, #5e1512); transform: rotate(-8deg);
  box-shadow: 0 3px 8px rgba(90, 20, 15, .45), inset 0 0 0 3px rgba(255, 210, 170, .18), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.wax::after { content: ''; position: absolute; inset: -4px; border-radius: 46% 54% 50% 50%; background: inherit; z-index: -1; filter: blur(.3px); }
.wax svg { width: 18px; height: 18px; }
.step--folded.step--open .wax { top: 30px; }
.wax--drop { top: 50%; right: 50%; margin: -19px -19px 0 0; z-index: 3; }

/* ---------- награды-картинки и ларец ---------- */
.artifact__seal--art { background-size: cover; background-position: center; box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(40, 30, 10, .3); }
.casket { position: relative; width: 190px; aspect-ratio: 1; margin: -6px auto 6px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(40, 30, 10, .25); }
.casket__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.casket__img--open { opacity: 0; }
.world-flyer img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #e8d29e; }
.world-flyer:has(img) { background: none; }
.step__skip { display: block; margin: 12px auto 0; padding: 8px 14px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip--icon { padding: 8px; }
