/* ============================================================
   Путь к любви — неоновый стиль
   Картинки: положите файлы в assets/img/ с именами из docs/IMAGE_PROMPTS.md.
   Пока файла нет, показывается градиентный фон-заглушка.
   ============================================================ */

:root {
  --bg: #0A0710;
  --bg-deep: #050307;
  --ink: #F6EEF3;
  --ink-2: #D6C5CF;
  --muted: #9A8594;
  --pink: #FF4F9A;
  --pink-2: #FF7DB6;
  --pink-soft: rgba(255, 79, 154, 0.35);
  --violet: #B08CFF;
  --gold: #FFC46B;
  --lilac: #A98BFF;
  --card: rgba(24, 12, 24, 0.78);
  --card-line: rgba(255, 255, 255, 0.09);
  --accent: var(--pink);
  --accent-soft: rgba(255, 79, 154, 0.35);
  --display: 'Forum', 'Times New Roman', serif;
  --serif: 'Lora', Georgia, serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --radius: 18px;
  --gutter: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-deep); color: var(--ink); }
body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
a { color: var(--pink-2); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- сцена ---------- */
.stage {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 120px rgba(255, 79, 154, 0.08);
}
.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) calc(26px + env(safe-area-inset-bottom));
  animation: screen-in 0.45s ease both;
}
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* фон: картинка (если есть) поверх градиента-заглушки */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 16, 0.15) 0%, rgba(10, 7, 16, 0.35) 45%, rgba(10, 7, 16, 0.92) 78%, var(--bg) 100%);
}
.bg--soft::after { background: linear-gradient(180deg, rgba(10,7,16,.55), rgba(10,7,16,.9) 60%, var(--bg)); }

.bg--home    { background-image: url('../assets/img/home.jpg'),    radial-gradient(ellipse at 50% 38%, #5A1233 0%, #25091A 38%, #0A0710 70%); }
.bg--map     { background-image: url('../assets/img/map.jpg'),     radial-gradient(ellipse at 30% 85%, #4A1030 0%, #1C0A1E 40%, #0A0710 75%); }
.bg--final   { background-image: url('../assets/img/final.jpg'),   radial-gradient(ellipse at 50% 30%, #5A1233 0%, #1C0A1E 45%, #0A0710 75%); }

/* цвет акцента по комнате */
[data-room="garden"]  { --accent: #FF4F9A; --accent-soft: rgba(255,79,154,.35); }
[data-room="cabinet"] { --accent: #FF9A6B; --accent-soft: rgba(255,154,107,.35); }
[data-room="market"]  { --accent: #FFC46B; --accent-soft: rgba(255,196,107,.35); }
[data-room="fog"]     { --accent: #A98BFF; --accent-soft: rgba(169,139,255,.38); }
[data-room="chair"]   { --accent: #7FB2FF; --accent-soft: rgba(127,178,255,.35); }
[data-room="balcony"] { --accent: #FFB08A; --accent-soft: rgba(255,176,138,.35); }

/* ---------- типографика ---------- */
.caps {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.title-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  color: #fff;
}
.title-xl {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #FFE9F3;
  text-shadow: 0 0 18px var(--accent-soft), 0 0 2px rgba(255,255,255,.4);
}
.title-room {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #FFEFF6;
  text-shadow: 0 0 20px var(--accent-soft);
}
.lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.question {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  color: #fff;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.spacer { flex-grow: 1; }

/* ---------- кнопки ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0 26px;
  border: none;
  border-radius: 30px;
  font-family: var(--serif);
  font-size: 20px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn-primary {
  color: #22061A;
  background: linear-gradient(180deg, #FF9ACB 0%, #FF5FA2 45%, #E23A84 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 28px rgba(255, 79, 154, 0.45), 0 0 40px rgba(255, 79, 154, 0.25);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 34px rgba(255, 79, 154, 0.6), 0 0 50px rgba(255, 79, 154, 0.35); }
.btn-primary .arrow { font-family: var(--ui); font-size: 22px; }
.btn-dark {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--accent-soft);
}
.btn-dark:hover:not(:disabled) { border-color: var(--accent); }
.btn-link {
  display: inline-block;
  margin: 14px auto 0;
  padding: 8px 10px;
  border: none;
  background: none;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--pink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,125,182,.5);
}
.btn-link:hover { color: #fff; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--ink-2);
}
.btn-back:hover { color: #fff; }

/* ---------- верхняя панель ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--accent-soft);
  background: rgba(20, 10, 20, 0.6);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.pill .gem {
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff, var(--pink));
  box-shadow: 0 0 8px var(--pink);
}
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--card-line);
  background: rgba(20,10,20,.55);
}

/* ---------- главная ---------- */
.home-hero { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.home-arch {
  position: relative;
  width: 210px; height: 290px;
  margin: 18px auto 0;
  border: 3px solid var(--pink);
  border-bottom: none;
  border-radius: 105px 105px 0 0;
  box-shadow: 0 0 22px var(--pink), inset 0 0 26px rgba(255,79,154,.5);
  background: radial-gradient(ellipse at 50% 40%, rgba(255,79,154,.3), rgba(10,7,16,0) 70%);
}
.has-img .home-arch { display: none; }
.home-title { margin: 22px 0 0; font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; color: #FFE9F3; text-shadow: 0 0 22px rgba(255,79,154,.7); }
.price-line { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--pink-2); }

/* ---------- нижняя панель «Что меня ждёт» ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(5, 3, 7, 0.6);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 21;
  width: 100%; max-width: 480px;
  transform: translateX(-50%);
  padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border-top: 1px solid var(--pink-soft);
  background: #120A14;
  box-shadow: 0 -10px 60px rgba(255,79,154,.18);
  animation: sheet-up .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 28px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 44px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.06); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 9px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pink); color: var(--pink-2); font-family: var(--ui); font-size: 13px;
  box-shadow: 0 0 10px rgba(255,79,154,.4);
}
.sheet-close { position: absolute; top: 14px; right: 14px; }

/* ---------- поля ---------- */
.field-label { display: block; margin-bottom: 10px; }
.textarea, .input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent-soft);
  background: rgba(18, 9, 20, 0.82);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  resize: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { min-height: 118px; }
.textarea::placeholder, .input::placeholder { color: #8C7788; }
.textarea:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,79,154,.14), 0 0 22px var(--accent-soft); }
.field-wrap { position: relative; }
.counter { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); }
.field-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- подсказки-чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--accent-soft);
  background: rgba(20, 10, 20, 0.55);
  font-family: var(--ui);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { border-color: var(--accent); background: rgba(255,79,154,.14); box-shadow: 0 0 14px var(--accent-soft); }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.or-line::before, .or-line::after { content: ''; flex-grow: 1; height: 1px; background: rgba(255,255,255,.1); }

/* варианты-карточки в сцене */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background: var(--card);
  font-family: var(--ui); font-size: 15px; text-align: left; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.option .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); }
.option.is-on { border-color: var(--accent); box-shadow: 0 0 18px var(--accent-soft); }
.option.is-on .dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); box-shadow: 0 0 8px var(--accent); }

/* ---------- прогресс ---------- */
.progress { display: flex; gap: 8px; margin-top: 12px; }
.progress span { flex-grow: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); }
.progress span.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- чекбоксы ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--pink); }

/* ---------- карта ---------- */
.map {
  position: relative;
  flex-grow: 1;
  margin: 6px -8px 0;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zone {
  position: absolute;
  width: 18%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 125, 182, 0.35);
  background: rgba(10, 7, 16, 0.88);
  padding: 0;
  transition: box-shadow .3s, border-color .3s;
}
.zone.is-done { border-color: var(--pink); background: radial-gradient(circle, rgba(255,79,154,.45), rgba(10,7,16,.6) 70%); box-shadow: 0 0 16px rgba(255,79,154,.7); }
.zone.is-next { border-color: #FFD3E6; box-shadow: 0 0 0 2px var(--pink), 0 0 26px var(--pink), inset 0 0 18px rgba(255,79,154,.55); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px var(--pink), 0 0 40px var(--pink), inset 0 0 22px rgba(255,79,154,.7); } }
.zone-label {
  position: absolute;
  transform: translate(-50%, 0);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-2);
  text-shadow: 0 1px 6px #000, 0 0 2px #000;
  pointer-events: none;
}
.zone-label.is-next { color: #fff; font-weight: 600; }

.belt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 24px; background: rgba(18, 9, 20, 0.7); border: 1px solid var(--card-line); }
.belt-slots { display: flex; gap: 6px; }
.slot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.slot.is-on { border: 1.5px solid var(--pink); background: radial-gradient(circle, rgba(255,79,154,.55), rgba(255,79,154,.1) 70%); box-shadow: 0 0 12px rgba(255,79,154,.6); }
.slot.is-open { border: 1.5px solid rgba(169,139,255,.7); }
.slot i { width: 9px; height: 9px; transform: rotate(45deg); background: #fff; box-shadow: 0 0 6px #fff; }

.dice-face {
  width: 30px; height: 30px; border-radius: 8px;
  background: #1A0A14;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 5px; gap: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset;
}
.dice-face b { width: 5px; height: 5px; border-radius: 50%; background: var(--pink-2); align-self: center; justify-self: center; visibility: hidden; }
.dice-face b.on { visibility: visible; }

.map-footer-note { margin-top: 10px; text-align: center; }

/* кубик поверх карты */
.dice-overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(5,3,7,.55); backdrop-filter: blur(3px);
  animation: fade .2s ease both;
}
.big-dice {
  width: 110px; height: 110px; border-radius: 24px;
  background: linear-gradient(145deg, #2A1020, #120610);
  border: 2px solid var(--pink);
  box-shadow: 0 0 36px rgba(255,79,154,.7), inset 0 0 20px rgba(255,79,154,.3);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 18px; gap: 4px;
}
.big-dice b { width: 16px; height: 16px; border-radius: 50%; background: #FFD3E6; box-shadow: 0 0 10px var(--pink); align-self: center; justify-self: center; visibility: hidden; }
.big-dice b.on { visibility: visible; }
.big-dice.rolling { animation: roll .9s cubic-bezier(.3,.7,.3,1) both; }
@keyframes roll { 0% { transform: rotate(-200deg) scale(.4); } 70% { transform: rotate(20deg) scale(1.08); } 100% { transform: rotate(0) scale(1); } }
.dice-result { font-family: var(--serif); font-size: 19px; text-align: center; color: #fff; min-height: 56px; padding: 0 30px; }
.dice-result small { display: block; margin-top: 4px; font-family: var(--ui); font-size: 13px; color: var(--ink-2); }

/* портал */
.portal {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(10,7,16,0) 0%, rgba(10,7,16,.85) 60%);
  pointer-events: none;
}
.portal-ring {
  width: 120px; height: 160px;
  border-radius: 60px 60px 8px 8px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent), inset 0 0 30px var(--accent);
  animation: portal 1.5s cubic-bezier(.6,0,.4,1) forwards;
}
.portal-flash { position: absolute; inset: 0; background: var(--accent); opacity: 0; animation: flash 1.5s ease forwards; }
@keyframes portal { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(9); opacity: .9; } }
@keyframes flash { 0%, 55% { opacity: 0; } 80% { opacity: .35; } 100% { opacity: 0; } }

/* ---------- комната ---------- */
.room-head { text-align: center; margin-top: 10px; }
.room-head .caps { display: block; margin-top: 8px; }
.room-visual { position: relative; height: 200px; margin: 10px -8px 0; }
.has-img .room-visual { height: 240px; }
.scene-text { margin: 10px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: #F3E6ED; text-align: center; }

/* декоративные объекты-заглушки, пока нет картинок */
.fruit { position: absolute; width: 58px; height: 58px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; background: radial-gradient(circle at 35% 30%, #FFE1EF, var(--accent) 45%, #5A0A2A 100%); box-shadow: 0 0 30px var(--accent-soft); }
.stem { position: absolute; width: 1.5px; background: rgba(255,255,255,.25); }
.mirror { position: absolute; left: 50%; top: 0; width: 116px; height: 160px; transform: translateX(-50%); border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(ellipse at 50% 40%, #241A48, #07060C 75%); box-shadow: 0 0 26px var(--accent-soft), inset 0 0 30px var(--accent-soft); }
.figure-head { position: absolute; left: 50%; top: 118px; width: 38px; height: 38px; transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: 0 -2px 10px var(--accent-soft); }
.figure-body { position: absolute; left: 50%; top: 148px; width: 104px; height: 52px; transform: translateX(-50%); border-radius: 55px 55px 0 0; background: #000; box-shadow: 0 -3px 12px var(--accent-soft); }
.lamp { position: absolute; left: 50%; top: 20px; width: 90px; height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #FFE3C4, var(--accent) 35%, rgba(0,0,0,0) 70%); filter: blur(2px); }
.folder { position: absolute; left: 50%; top: 110px; width: 170px; height: 90px; transform: translateX(-50%) perspective(300px) rotateX(35deg); border-radius: 6px; background: #3A1E14; border: 1px solid var(--accent-soft); }
.scale-beam { position: absolute; left: 50%; top: 60px; width: 200px; height: 2px; transform: translateX(-50%) rotate(-8deg); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.scale-pan { position: absolute; top: 90px; width: 70px; height: 20px; border-radius: 0 0 40px 40px; border: 2px solid var(--accent); border-top: none; }
.chair { position: absolute; top: 90px; width: 70px; height: 90px; border-radius: 16px 16px 6px 6px; border: 2px solid var(--accent); box-shadow: 0 0 16px var(--accent-soft); }
.door { position: absolute; left: 50%; top: 20px; width: 110px; height: 170px; transform: translateX(-50%); border-radius: 55px 55px 4px 4px; background: linear-gradient(180deg, #FFE0C8, var(--accent)); box-shadow: 0 0 40px var(--accent-soft); }
.has-img .deco { display: none; }

/* карточка версии ведущей */
.hyp {
  margin-top: 14px;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(180deg, rgba(40, 14, 34, .88), rgba(18, 9, 20, .92));
  box-shadow: 0 0 40px rgba(255,79,154,.12);
}
.hyp h2 { margin: 6px 0 10px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; color: #fff; }
.hyp p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: #F1E4EB; }
.hyp .quote { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-2); font-size: 15px; }
.hyp .alt { margin-top: 12px; font-size: 14px; color: var(--muted); font-family: var(--ui); }
.hyp .bold-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 10px; background: rgba(255,79,154,.18); color: var(--pink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rate .btn { min-height: 54px; font-size: 16px; border-radius: 16px; padding: 0 8px; }
.btn-hit { color: #22061A; background: linear-gradient(180deg, #FF9ACB, #E23A84); box-shadow: 0 6px 22px rgba(255,79,154,.4); }
.btn-maybe { background: var(--card); border: 1px solid var(--pink-soft); color: var(--ink); }
.btn-miss { background: var(--card); border: 1px solid rgba(255,255,255,.14); color: var(--ink-2); }
.bold-btn { margin-top: 12px; min-height: 50px; font-size: 16px; }
.demo-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* думает */
.thinking { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; }
.orb { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--accent) 40%, rgba(0,0,0,0) 72%); box-shadow: 0 0 60px var(--accent-soft); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .8; } }
.thinking p { margin: 0; font-family: var(--serif); font-size: 19px; color: #F3E6ED; min-height: 28px; }

/* артефакт */
.artifact-orb {
  width: 120px; height: 120px; margin: 26px auto 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent);
  background: radial-gradient(circle, rgba(255,255,255,.35), var(--accent-soft) 40%, rgba(10,7,16,.4) 75%);
  box-shadow: 0 0 40px var(--accent-soft), inset 0 0 26px var(--accent-soft);
  animation: breathe 3s ease-in-out infinite;
}
.artifact-orb i { width: 30px; height: 30px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--accent)); box-shadow: 0 0 18px #fff; }
.artifact-fly { position: fixed; z-index: 45; width: 30px; height: 30px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--pink)); box-shadow: 0 0 20px #fff; pointer-events: none; transition: all .9s cubic-bezier(.5,0,.2,1); }

/* ---------- итог ---------- */
.result-block { margin-top: 18px; padding: 18px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); }
.result-block h3 { margin: 0 0 8px; font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--pink-2); }
.result-block p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #F1E4EB; }
.result-main p { font-size: 19px; line-height: 1.5; color: #fff; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.two-col ul { margin: 0; padding-left: 16px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.art-list { list-style: none; margin: 0; padding: 0; }
.art-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--serif); font-size: 15px; color: #F1E4EB; }
.art-list li:last-child { border-bottom: none; }
.art-list .tag { flex: none; width: 92px; font-family: var(--ui); font-size: 11px; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.art-list .st { margin-left: auto; flex: none; font-family: var(--ui); font-size: 11px; color: var(--pink-2); padding-top: 3px; }
.disclaimer { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- сохранение и тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translateX(-50%);
  padding: 12px 18px; border-radius: 14px;
  background: #1E0E1C; border: 1px solid var(--pink-soft);
  font-size: 14px; color: var(--ink);
  animation: fade .2s ease both;
}

/* ---------- широкий экран ---------- */
@media (min-width: 700px) {
  body { background: radial-gradient(ellipse at 50% 20%, #1A0A16, #050307 70%); }
  .stage { border-left: 1px solid rgba(255,79,154,.08); border-right: 1px solid rgba(255,79,154,.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- печать итогового PDF (тёмный) ---------- */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #0A0710 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; }
}
#print { display: none; }
.pdf {
  width: 210mm; min-height: 297mm;
  padding: 16mm 16mm 14mm;
  background: #0A0710;
  color: #F6EEF3;
  font-family: var(--serif);
  page-break-after: always;
  position: relative;
}
.pdf:last-child { page-break-after: auto; }
.pdf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,79,154,.35); padding-bottom: 6mm; }
.pdf-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30pt; color: #FFE9F3; }
.pdf-head span { font-family: var(--ui); font-size: 9pt; color: #9A8594; letter-spacing: .2em; text-transform: uppercase; }
.pdf-req { margin: 6mm 0 0; font-size: 11pt; color: #D6C5CF; font-style: italic; }
.pdf .pdf-main { margin-top: 8mm; font-size: 15pt; line-height: 1.5; color: #fff; }
.pdf h3 { margin: 9mm 0 3mm; font-family: var(--ui); font-size: 8pt; letter-spacing: .3em; text-transform: uppercase; color: #FF7DB6; }
.pdf p, .pdf li { font-size: 11.5pt; line-height: 1.55; color: #F1E4EB; }
.pdf .ring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; margin-top: 4mm; }
.pdf .ring div { padding: 4mm; border-radius: 4mm; border: 1px solid rgba(255,79,154,.3); background: #140A16; font-size: 10.5pt; }
.pdf .ring small { display: block; margin-bottom: 1.5mm; font-family: var(--ui); font-size: 7.5pt; letter-spacing: .15em; text-transform: uppercase; color: #9A8594; }
.pdf .foot { position: absolute; left: 16mm; right: 16mm; bottom: 10mm; font-family: var(--ui); font-size: 8pt; color: #9A8594; text-align: center; }

/* Фон и игровые точки используют одну систему координат. */
.map-illustrated { background: url("../assets/img/map.jpg") center / 100% 100% no-repeat; border-radius: 20px; }
.screen:has(.map-illustrated) ~ .bg--map { background-image: none; }

/* ---------- Комнаты: картинка только сверху, текст на спокойном фоне ---------- */
.bg--garden, .bg--cabinet, .bg--market, .bg--fog, .bg--chair, .bg--balcony {
  top: 150px;
  bottom: auto;
  height: 360px;
  background-size: cover;
  background-position: center 22%;
}
.bg--garden::after, .bg--cabinet::after, .bg--market::after,
.bg--fog::after, .bg--chair::after, .bg--balcony::after {
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(10, 7, 16, 0.25) 16%,
    rgba(10, 7, 16, 0.05) 45%,
    rgba(10, 7, 16, 0.80) 82%,
    var(--bg) 100%);
}
/* подпись ракурса и заголовок читаются поверх картинки */
.room-head .title-room, .room-head .caps, .scene-text { text-shadow: 0 1px 12px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9); }
.has-img .room-visual { height: 200px; }
/* варианты и поля — плотнее, без просвечивания */
.option, .textarea, .input, .chip { background-color: #120A14; }
/* на экранах вопросов картинка ниже шапки и короче, чтобы не лезть под вопрос */
.stage:has(.progress) .bg--garden, .stage:has(.progress) .bg--cabinet, .stage:has(.progress) .bg--market,
.stage:has(.progress) .bg--fog, .stage:has(.progress) .bg--chair, .stage:has(.progress) .bg--balcony {
  top: 70px;
  height: 250px;
}

/* Round 3: artwork belongs only to its own card, never behind text. */
.screen.room-screen { background: var(--bg); }
.screen[data-room] .room-visual {
  flex: none;
  width: 100%; height: auto; aspect-ratio: 3 / 2;
  margin: 16px 0; overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--accent-soft);
  background-color: #120A14;
  background-size: cover; background-position: center;
}
.screen[data-room] .room-visual--question { aspect-ratio: 3 / 1; }
.screen[data-room] .room-visual.is-placeholder { background-image: none; }
.room-visual.is-placeholder .deco { display: block; }
.room-visual--question .deco { transform: scale(.65); transform-origin: center top; }
.room-screen .room-head .title-room,
.room-screen .room-head .caps, .room-screen .scene-text { text-shadow: none; }

.room-visual.has-art { isolation:isolate; }
.art-mist {position:absolute;inset:-10%;background:radial-gradient(ellipse at 30% 50%,#b68ab42b,transparent 65%);animation:art-drift 14s ease-in-out infinite alternate;pointer-events:none}
.art-petal{position:absolute;left:calc(10% + var(--i)*12%);top:15%;width:7px;height:11px;border-radius:70% 10% 70% 10%;background:var(--accent);opacity:.4;animation:art-fall 9s linear infinite;animation-delay:calc(var(--i)*-1.3s);pointer-events:none}
@keyframes art-drift{to{transform:translateX(12%);opacity:.3}}
@keyframes art-fall{from{transform:translate(0,-30px) rotate(0);opacity:0}25%{opacity:.5}to{transform:translate(30px,230px) rotate(160deg);opacity:0}}
.page-hidden .art-mist,.page-hidden .art-petal{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.art-mist,.art-petal{animation:none;display:none}}
.action-readout h3{margin-top:16px}.action-host .note:empty{display:none}
.legal-links{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:28px;font-size:12px;color:#b6a1b1}.archetype h2{font-size:32px;color:#ff9acb}.archetype small{display:block;margin-top:12px;color:#b6a1b1}.conversation summary{cursor:pointer;color:#ff9acb;font-size:20px}
.music-toggle{position:fixed;right:10px;bottom:10px;z-index:10;border:1px solid #70455f;border-radius:18px;background:#130b18e8;color:#d7b9cb;padding:7px 12px;font:12px var(--ui)}.screen{padding-bottom:58px}

/* Living home portal: compositor-only movement, no interaction capture. */
.home-motion{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.portal-glow{position:absolute;left:43%;top:8%;width:33%;height:35%;border-radius:50%;background:radial-gradient(ellipse,transparent 35%,#ed72be45 61%,transparent 74%);animation:portal-breathe 7s ease-in-out infinite alternate}
.home-motion .art-mist{inset:5% -20% 30%;opacity:.3}
.home-motion .art-petal{top:-4%;animation-duration:18s;opacity:.3}
@keyframes portal-breathe{from{transform:scale(.96);opacity:.3}to{transform:scale(1.04);opacity:.75}}
.page-hidden .home-motion *{animation-play-state:paused}
button.pill{font:inherit;color:inherit;cursor:pointer}
@media(prefers-reduced-motion:reduce){.home-motion{display:none}.portal-glow{animation:none}}

/* Primary action remains reachable at every viewport height. */
.screen{animation-name:screen-fade}
@keyframes screen-fade{from{opacity:0}to{opacity:1}}
.action-dock{position:fixed;z-index:20;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,480px);padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#0a0710 75%,#0a0710ee);margin:0!important}
.action-dock>.btn,.action-dock>.primary{width:100%;margin:0}
.screen.has-dock{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.music-toggle{bottom:calc(92px + env(safe-area-inset-bottom));z-index:21}
.map-screen{height:100dvh;min-height:0;max-height:100dvh;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(94px + env(safe-area-inset-bottom))!important;gap:4px;overflow:hidden}
.map-screen .topbar{flex:0 0 auto;min-height:44px;margin:0}
.map-screen .map-illustrated{flex:1 1 0;min-height:0;width:100%;margin:0;background-size:100% 100%}
.map-screen .belt{flex:0 0 auto;margin:0;padding:6px 10px}
.map-screen .map-footer-note{display:none}
.map-screen>.center{flex:0 0 auto;height:22px;line-height:20px}
.map-screen .zone{width:15%;border-width:2px}
.map-screen .zone-label{font-size:12px}
.map-screen .caps{font-size:9px}
.map-screen .slot{width:24px;height:24px}
.map-screen .title-brand{font-size:26px}
.room-instruction{font:16px/1.6 var(--ui);color:#f6eef3;margin:6px 0 18px}
.hyp>p:not(.quote):not(.alt),.hyp>div>p{font:500 22px/1.5 var(--serif);color:#fff}
.hyp .quote{font:14px/1.5 var(--ui);color:#ddcbd7;margin-top:18px}
.hyp .alt{font:20px/1.5 var(--serif);color:#fff}
.sheet{max-height:calc(100dvh - 24px);overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
@media(max-height:700px){.map-screen .zone-label{font-size:11px}.map-screen .zone{width:13%}.map-screen .belt{padding:4px 8px}.map-screen .slot{width:22px;height:22px}.map-screen .belt-slots{gap:5px}}

.action-dock .rate{margin:0!important}.action-dock .bold-btn{margin-top:8px!important;min-height:40px}.screen:has(.action-dock .rate){padding-bottom:calc(170px + env(safe-area-inset-bottom))}.stage:has(.map-screen)~.music-toggle,body:has(.map-screen)>.music-toggle{top:12px;bottom:auto}

/* Calm waiting, including the final conversation. */
.ask-thinking {padding:24px 12px;gap:14px;min-height:180px;}
.ask-thinking .orb {width:64px;height:64px;}
.thinking .orb::after {content:"";display:block;position:absolute;inset:-12px;border:1px solid #ff9bcb66;border-radius:50%;animation:breathe 3s ease-in-out infinite reverse;}
.thinking .orb {position:relative;}
.page-hidden .thinking .orb,.page-hidden .thinking .orb::after {animation-play-state:paused;}
@media(prefers-reduced-motion:reduce){.thinking .orb,.thinking .orb::after{animation:none;}}

.tester-dialog{background:#1b1224;color:#f7eaf2;border:1px solid #b35483;border-radius:22px;max-width:440px;width:calc(100% - 32px);padding:28px}.tester-dialog::backdrop{background:#080510cc}.tester-dialog p{line-height:1.5}.tester-dialog input{display:block;width:100%;box-sizing:border-box;margin:12px 0;padding:14px;background:#0f0b17;color:white;border:1px solid #b35483;border-radius:12px}.tester-dialog .btn{width:100%;margin:12px 0}

.site-footer{position:relative;max-width:750px;margin:24px auto 0;padding:24px 20px calc(130px + env(safe-area-inset-bottom));font:12px/1.7 system-ui,sans-serif;color:#c5b1c0;text-align:center;border-top:1px solid #ffffff20;overflow-wrap:anywhere}.site-footer p{margin:6px 0}.site-footer a{color:#ff95c7}.site-footer nav{margin-top:12px}
.checkout-legal{font-size:11px;line-height:1.5;margin:0 0 10px;color:#d6c5cf}.screen:has([data-act="pay"]){padding-bottom:230px}

.game-number{position:fixed;top:env(safe-area-inset-top,0);right:8px;font-size:11px;color:#dbc4d4;z-index:12;pointer-events:none}
