/* Первый экран и тест в стиле утверждённых блоков результата (ds.css, 16.10.2026):
   бумага с крапинкой, узкие заголовки system-ui капсом, белые карточки с красным номером,
   цветные плашки глав со сценами, красная кнопка-таблетка.
   Всё под .qz (класс на #app), чтобы не задеть старый экран результата в styles.css. */
:root {
  --paper: #F3EFE8;
  --card-line: #ECE6DD;
  --ink-2: #48443E;
  --mute: #9C968D;
  --grey-2: #B9B5AE;
  --track: #E9E3D9;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .1 0 0 0 2.2 -1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E");
  --specks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .1 0 0 0 5 -3.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body { background: var(--grain), var(--bg); }

/* ---------- каркас: одна колонка под телефон, на компьютере тот же размер без увеличения (решение Ильи 16.10.2026) ---------- */
#app.qz {
  max-width: 430px; padding: 10px 16px 0;
  min-height: 100dvh;
  font: 400 15px/1.45 var(--text); letter-spacing: -0.01em;
}

.qz h1, .qz h2, .qz p { margin: 0; }
.qz .shine {
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 55%, #F0B429 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; animation: none;
}
.qz .mark { background: linear-gradient(transparent 56%, rgba(242, 194, 48, .62) 56%, rgba(242, 194, 48, .62) 92%, transparent 92%); padding: 0 2px; }
.qz .wavy { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.qz .pill { display: inline-block; align-self: flex-start; padding: 7px 12px 8px; border-radius: 999px; background: var(--ink); color: #FBF6EC; font: 500 12.5px/1 var(--text); letter-spacing: 0; }

/* ---------- карточка с номером ---------- */
.qz .card {
  background: #fff; border: 1.5px solid var(--card-line); border-radius: 24px;
  box-shadow: 0 8px 26px rgba(80, 55, 30, .06), 0 1px 2px rgba(80, 55, 30, .04);
  padding: 16px 14px;
}
.qz .card-head { display: flex; align-items: flex-start; gap: 10px; margin: 2px 4px 13px; }
.qz .card-head h2, .qz .card-head .of { padding-top: 1px; }
.qz .card-head h2 { font: 500 16.5px/1.25 var(--text); letter-spacing: -0.02em; margin: 0; }
.qz .card-head .of { font-size: 13px; color: var(--mute); }
.qz .num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--text); color: #fff; letter-spacing: 0;
  background: linear-gradient(180deg, #F06D55, var(--red)); box-shadow: 0 0 0 4px rgba(217, 72, 59, .13);
}
.qz .card-text { margin: 14px 6px 4px; font-size: 14.5px; line-height: 1.47; color: var(--ink-2); letter-spacing: -0.015em; }
.qz .card-text b { color: var(--ink); font-weight: 500; }

/* ---------- кнопки ---------- */
.qz .nav {
  margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 64%, rgba(246, 243, 238, 0));
  gap: 4px;
}
.qz .btn { height: 56px; border-radius: 999px; font: 500 16.5px/1 var(--text); letter-spacing: -0.01em; display: flex; align-items: center; justify-content: center; gap: 10px; }
.qz .btn.primary { background: linear-gradient(180deg, #E8604B, var(--red)); color: #fff; box-shadow: 0 10px 22px rgba(217, 72, 59, .28); }
.qz .btn .go { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; transition: transform .2s ease; }
.qz .btn .go svg { width: 12px; height: 11px; }
.qz .btn.primary:hover .go { transform: translateX(2px); }
.qz .btn.primary:disabled { opacity: 1; background: #E4DDD3; color: #A39C92; box-shadow: none; }
.qz .btn.primary:disabled .go { background: #EFEAE3; color: #BDB6AC; }
.qz .link { color: var(--mute); font-size: 14px; padding: 7px; }

/* ---------- верх: назад + 6 делений по главам, у каждой главы свой цвет ---------- */
.qz .top { height: auto; padding: 4px 0 0; gap: 12px; }
.qz .icon-btn {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--card-line); box-shadow: 0 4px 12px rgba(80, 55, 30, .06); color: var(--ink);
}
.qz .icon-btn svg { width: 8px; height: 13px; margin-left: -2px; }
.qz .prog { gap: 7px; }
.qz .ch-label { font: 400 13px/1.1 var(--text); color: var(--mute); letter-spacing: -0.01em; }
.qz .ch-label b { margin-right: 5px; font: 800 12.5px/1 var(--display); letter-spacing: .07em; text-transform: none; color: var(--ink); }
.qz .chseg { gap: 5px; }
.qz .chseg span { height: 6px; background: var(--track); }
.qz .chseg span.orange i { background: var(--orange); }
.qz .chseg span.yellow i { background: var(--yellow); }
.qz .chseg span.red i { background: var(--red); }
.qz .chseg span.ink i { background: var(--ink); }
.qz .chseg span.cream i { background: #CFC6B8; }

/* ---------- экран вопроса ---------- */
.qz .screen { padding: 18px 0 18px; gap: 8px; }
.qz .screen h1 { margin: 0 4px; font: 600 26px/1.15 var(--text); letter-spacing: -0.035em; }
.qz .screen h1.mid { font-size: 23px; line-height: 1.2; }
.qz .screen h1.long { font: 500 19.5px/1.34 var(--text); letter-spacing: -0.025em; }
.qz .q2 { margin: 4px 4px 0; font: 600 17px/1.35 var(--text); letter-spacing: -0.02em; }
.qz .note-q, .qz .hint { margin: 0 4px; font-size: 14.5px; line-height: 1.4; color: var(--mute); }
.qz .body { margin-top: 10px; gap: 12px; }

/* чипы */
.qz .chips { gap: 7px; }
.qz .chip {
  border: 0; background: var(--paper); border-radius: 999px; padding: 9px 14px 10px;
  font-size: 14.5px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink);
  transition: background .15s, color .15s, transform .15s;
}
.qz .chip:hover { background: #ECE6DC; }
.qz .chip:active { transform: scale(.97); }
.qz .chip.on { background: var(--ink); color: #FBF6EC; }
.qz .qgroup .chips { padding: 0 2px; }
.qz .qgroup .text-in { margin-top: 10px; }

/* варианты-строки */
.qz .opts.list { gap: 8px; }
.qz .opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: var(--paper); border-radius: 16px; padding: 13px 13px 13px 16px;
  font-size: 15px; line-height: 1.3; letter-spacing: -0.015em; text-align: left; color: var(--ink);
  transition: background .15s, color .15s, transform .15s;
}
.qz .opt:hover { background: #ECE6DC; }
.qz .opt:active { transform: scale(.985); }
.qz .opt .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--grey-2); background: #fff; }
.qz .opt.on { background: var(--ink); color: #FBF6EC; }
.qz .opt.on .radio { border-color: var(--red); background: var(--check) center / 12px no-repeat, var(--red); }
.qz .opts.row { gap: 7px; }
.qz .opts.row .opt { justify-content: center; text-align: center; padding: 15px 6px; font-size: 14.5px; }

/* карточки по одной */
.qz .qcard { padding: 16px 14px 14px; }
.qz .qcard-q { margin: 0 4px 14px; font: 500 19px/1.3 var(--text); letter-spacing: -0.025em; }
.qz .qdots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 2px; }
.qz .qdots .d { width: 7px; height: 7px; border-radius: 99px; background: #E7DDD3; transition: width .25s ease, background .25s ease; }
.qz .qdots .d.done { background: #C9BFB2; }
.qz .qdots .d.on { width: 22px; background: var(--red); }
.qz .qdots .arrow { border: 0; background: none; color: var(--ink); padding: 8px 10px; display: grid; place-items: center; }
.qz .qdots .arrow svg { width: 8px; height: 13px; }
.qz .qdots .arrow:disabled { color: #D8D1C7; cursor: default; }

/* открытый ответ */
.qz textarea, .qz .text-in {
  border: 1.5px solid transparent; background: var(--paper); border-radius: 16px;
  font: 400 16px/1.45 var(--text); letter-spacing: -0.01em; color: var(--ink); outline: none;
  transition: border-color .15s, background .15s;
}
.qz textarea { padding: 14px 16px; min-height: 150px; }
.qz .text-in { height: 48px; padding: 0 16px; }
.qz textarea:focus, .qz .text-in:focus { border-color: var(--ink); background: #fff; }
.qz textarea::placeholder, .qz .text-in::placeholder { color: #ABA49A; }
.qz .qopen { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.qz .qopen textarea { min-height: 168px; }
.qz .qopen textarea.short { min-height: 96px; }
.qz .qopen .card-head { margin: 6px 6px 2px; }
.qz .qopen-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 0 0; }
.qz .qopen-foot small { font-size: 12.5px; line-height: 1.3; color: var(--mute); text-align: right; }
.qz .voice {
  flex: none; align-self: auto; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 8px 15px 8px 8px; box-shadow: none;
  background: #FCEDEA; color: var(--red); font: 500 14.5px/1 var(--text); letter-spacing: -0.01em;
}
.qz .voice::before { content: none; }
.qz .voice .mic { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.qz .voice .mic svg { width: 12px; height: 12px; }
.qz .voice.rec { background: var(--red); color: #fff; }
.qz .voice.rec .mic { background: #fff; color: var(--red); animation: pulse 1s infinite; }

/* ---------- обложка главы: цветная плашка со сценой ---------- */
.qz .cover { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 0 8px; }
.qz .cover-plate {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 452px; padding: 20px 20px 16px; border-radius: 24px;
}
.qz .cover-plate.orange { background: var(--specks), radial-gradient(80% 60% at 66% 70%, #F8BC5E, transparent 70%), var(--orange); box-shadow: 0 14px 30px rgba(200, 120, 30, .2); }
.qz .cover-plate.yellow { background: var(--specks), radial-gradient(80% 60% at 66% 70%, #F9D766, transparent 70%), var(--yellow); box-shadow: 0 14px 30px rgba(200, 140, 20, .18); }
.qz .cover-plate.red { background: var(--specks), radial-gradient(80% 60% at 66% 70%, #E8634F, transparent 70%), var(--red); box-shadow: 0 14px 30px rgba(217, 72, 59, .22); color: #FBF6EC; }
.qz .cover-plate.ink { background: radial-gradient(80% 60% at 66% 70%, #34302B, transparent 70%), var(--ink); box-shadow: 0 14px 30px rgba(28, 28, 28, .24); color: #FBF6EC; }
.qz .cover-plate.cream { background: var(--specks), radial-gradient(80% 60% at 66% 70%, #FFFDF8, transparent 70%), #FBF6EC; border: 1.5px solid var(--card-line); }
.qz .cover-plate.red .pill, .qz .cover-plate.ink .pill { background: #FBF6EC; color: var(--ink); }
.qz .cover-pills { display: flex; gap: 6px; }
.qz .cover-pills .pill.ghost { background: rgba(255, 255, 255, .42); color: var(--ink); }
.qz .cover-plate.ink .pill.ghost, .qz .cover-plate.red .pill.ghost { background: rgba(251, 246, 236, .16); color: #FBF6EC; }
.qz .cover-title { margin-top: 16px; font: 800 58px/0.9 var(--display); text-transform: none; letter-spacing: 0.002em; }
.qz .cover-title span { display: block; }
.qz .cover-art { position: relative; margin: auto -10px -8px; aspect-ratio: 300 / 210; }
.qz .cover-art .ill { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qz .cover-art .blob { position: absolute; left: 8%; right: 6%; bottom: 6%; height: 40%; border-radius: 58% 42% 52% 48% / 60% 55% 45% 40%; background: var(--specks), rgba(255, 255, 255, .35); }
.qz .cover-art .sun { position: absolute; right: 18%; top: 8%; width: 30%; height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--specks), var(--yellow); animation: none; }
.qz .cover-text { margin: 0 6px; font-size: 16px; line-height: 1.42; color: var(--ink-2); letter-spacing: -0.015em; }

/* ---------- первый экран ---------- */
/* ---------- первый экран (20.10.2026): один экран как у референса - вопросы сверху, рука с телефоном снизу ---------- */
.qz .landing {
  --pw: min(336px, 86vw);  /* ширина телефона на экране */
  position: relative; height: calc(100dvh - 10px); overflow: hidden; overflow: clip; /* clip: рука шире экрана, вбок не сдвигать даже фокусом */
  display: flex; flex-direction: column; gap: 12px; padding: 4px 0 0;
}
.qz .l-head { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; }
.qz .l-head h1 { margin-top: 12px; font: 800 clamp(30px, 9vw, 37px)/0.98 var(--display); text-transform: none; letter-spacing: 0.002em; }
.qz .l-head h1 span { display: block; white-space: nowrap; }
.qz .l-sci { margin-top: 9px; font-size: 12.5px; line-height: 1.35; color: var(--mute); letter-spacing: -0.015em; max-width: 330px; }

/* верхняя строка: плашка-пасхалка слева, личный кабинет справа (как у референса) */
.qz .l-top { position: relative; z-index: 7; align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* плашка зовёт потянуть: бегущие стрелки и, пока пасхалку не нашли, лёгкий толчок вправо */
.qz .l-pill {
  position: relative; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding-right: 10px; border: 0; cursor: grab;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
  will-change: transform; /* свой слой: тянешь плашку - страница под ней не перерисовывается (доводка, этап 3, 25.10) */
}
.qz .l-pill.drag { transition: none; cursor: grabbing; animation: none; }
.qz .l-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(242, 194, 48, .7); opacity: 0; pointer-events: none; }
.qz .l-pill.nudge { animation: l-nudge-x 4.2s ease-in-out 1.2s infinite; }
.qz .l-pill.nudge::before { animation: l-ring 4.2s ease-out 1.2s infinite; }
@keyframes l-ring { 0%, 70% { opacity: .9; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1.18, 1.5); } }
.qz .l-chev { display: inline-flex; font-style: normal; }
.qz .l-chev b { font-weight: 600; color: var(--yellow); opacity: .25; animation: l-chev 1.5s ease-in-out infinite; }
.qz .l-chev b:nth-child(2) { animation-delay: .18s; }
.qz .l-chev b:nth-child(3) { animation-delay: .36s; }
.qz .l-pill.tug { animation: l-tug .7s ease; }
@keyframes l-tug { 0%, 100% { transform: translate3d(0, 0, 0); } 30% { transform: translate3d(22px, 0, 0); } 55% { transform: translate3d(-3px, 0, 0); } 75% { transform: translate3d(8px, 0, 0); } }
@keyframes l-chev { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes l-nudge-x { 0%, 70%, 100% { transform: none; } 76% { transform: translateX(14px); } 82% { transform: translateX(0); } 87% { transform: translateX(6px); } 92% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .qz .l-pill.nudge, .qz .l-chev b { animation: none; opacity: 1; } }

/* личный кабинет: круглая кнопка и окошко под ней */
.qz .l-cab-btn {
  position: relative; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1.5px solid var(--card-line); color: var(--ink); box-shadow: 0 4px 12px rgba(80, 55, 30, .08);
}
.qz .l-cab-btn svg { width: 20px; height: 20px; }
.qz .l-cab-btn.has::after { content: ""; position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.qz .l-cab {
  position: absolute; z-index: 8; right: 0; top: 50px; width: min(290px, calc(100vw - 32px)); padding: 16px 16px 14px;
  background: #fff; border: 1.5px solid var(--card-line); border-radius: 20px; box-shadow: 0 16px 36px rgba(60, 40, 20, .18);
  animation: l-up .22s ease-out;
}
.qz .l-cab[hidden] { display: none; }
.qz .l-cab::before { content: ""; position: absolute; right: 13px; top: -8px; width: 14px; height: 14px; background: #fff; border-left: 1.5px solid var(--card-line); border-top: 1.5px solid var(--card-line); transform: rotate(45deg); }
.qz .l-cab h3 { font: 800 20px/1 var(--display); text-transform: none; }
.qz .l-cab-report { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: var(--specks), var(--yellow); color: var(--ink); text-decoration: none; }
.qz .l-cab-report small { display: block; font-size: 12px; color: var(--ink-2); }
.qz .l-cab-report b { font-weight: 500; }
.qz .l-cab-report i { font-style: normal; font-size: 13px; font-weight: 500; white-space: nowrap; }
.qz .l-cab-empty { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.qz .l-cab-soon { display: block; margin-top: 14px; font: 800 11.5px/1 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--red); }
.qz .l-cab ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qz .l-cab li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.35; color: var(--mute); }
.qz .l-cab li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; color: var(--ink-2); }

/* кнопка «Что за тест?» в строке про методики */
.qz .l-about-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 3px 9px 4px 4px; border-radius: 999px; vertical-align: 1px;
  background: #fff; border: 1.5px solid var(--card-line); color: var(--ink); font: 500 12.5px/1 var(--text); cursor: pointer;
  box-shadow: 0 3px 8px rgba(80, 55, 30, .07);
}
.qz .l-about-btn i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 800 10.5px/1 var(--display); font-style: normal; color: #fff; background: var(--ink); }

/* описание теста по нажатию на плашку: шторка снизу */
.qz .l-sheet { position: fixed; inset: 0; z-index: 20; background: rgba(28, 28, 28, .38); display: flex; justify-content: center; align-items: flex-end; }
.qz .l-sheet[hidden] { display: none; }
.qz .l-sheet-in {
  width: min(430px, 100%); max-height: 86dvh; overflow-y: auto; padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
  background: var(--grain), var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(28, 28, 28, .18);
  animation: l-up .28s ease-out;
}
@keyframes l-up { from { transform: translateY(40px); opacity: 0; } }
.qz .l-sheet-in h2 { font: 800 26px/1 var(--display); text-transform: none; }
.qz .l-sheet-in ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qz .l-sheet-in li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.42; color: var(--ink-2); }
.qz .l-sheet-in li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.qz .l-sheet-in h3 { margin: 18px 0 0; font: 800 12px/1 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--red); }
.qz .l-sheet-m { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.qz .l-sheet-in .btn { width: 100%; margin-top: 18px; }

/* пасхалка: Волчара-шпион выглядывает из-за телефона */
.qz .l-spy { position: absolute; z-index: 5; left: 0; top: 16%; display: flex; align-items: flex-start; gap: 6px; pointer-events: none; }
.qz .l-spy img { height: 150px; width: auto; transform: translateX(-110%) rotate(8deg); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); filter: drop-shadow(0 10px 14px rgba(60, 40, 20, .25)); will-change: transform; }
.qz .l-spy p {
  max-width: 200px; margin-top: 8px; padding: 10px 13px 11px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1.5px solid var(--card-line);
  box-shadow: 0 10px 24px rgba(80, 55, 30, .14); font: 500 14px/1.3 var(--text); letter-spacing: -0.02em;
  opacity: 0; transform: scale(.8); transform-origin: 0 100%; transition: opacity .25s ease .2s, transform .3s ease .2s; will-change: transform, opacity;
}
.qz .l-spy.on { pointer-events: auto; cursor: pointer; }
.qz .l-spy.on img { transform: translateX(-38%) rotate(8deg); }
.qz .l-spy.on p { opacity: 1; transform: none; }

/* каверзные вопросы списком; Волчара стоит на стыке карточки и телефона */
.qz .l-hooks {
  position: relative; z-index: 3; flex: none; padding: 13px 14px 14px 15px;
  background: #fff; border: 1.5px solid var(--card-line); border-radius: 22px;
  box-shadow: 0 8px 26px rgba(80, 55, 30, .06), 0 1px 2px rgba(80, 55, 30, .04);
}
.qz .l-hooks small { display: block; font: 800 11.5px/1 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--red); }
.qz .l-q { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.qz .l-q li { position: relative; padding-left: 26px; font: 500 14.5px/1.3 var(--text); letter-spacing: -0.035em; }
.qz .l-q li::before {
  content: "?"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font: 800 12px/1 var(--display); color: #fff;
  background: linear-gradient(180deg, #F06D55, var(--red));
}
.qz .l-q em { font-style: normal; background: linear-gradient(transparent 58%, rgba(242, 194, 48, .7) 58%, rgba(242, 194, 48, .7) 92%, transparent 92%); padding: 0 1px; }
.qz .l-sun { position: absolute; z-index: -1; right: 10px; bottom: -40px; width: 70px; aspect-ratio: 1; border-radius: 50%; background: var(--specks), var(--yellow); }
.qz .l-sun::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 50%; transform: translate(-9%, 7%); }
.qz .l-wolf { position: absolute; right: -6px; bottom: -58px; height: 112px; width: auto; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, .22)); }

/* телефон в руке: картинка с прозрачным экраном поверх iframe с примером отчёта */
.qz .l-phone { position: relative; z-index: 1; flex: 1; min-height: 0; margin: 0 -16px; }
.qz .l-device { position: absolute; top: 0; left: 50%; width: min(calc(var(--pw) / .608), 112vw); transform: translateX(-51%); } /* 03.11: рука целиком, пальцы и большой палец видны (Илья: «это продаёт») */
.qz .l-hand { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 18px 26px rgba(60, 40, 20, .2)); }
/* экран по замеру tools/phone_mockup.py: left 23.99%, top 2.79%, width 54.12%, height 87.89% */
.qz .l-screen { position: absolute; z-index: 1; left: 23.99%; top: 2.79%; width: 54.12%; height: 87.89%; overflow: hidden; background: var(--bg); }
.qz .l-status {
  position: relative; z-index: 1; height: calc(var(--pw) * .16); display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 12%; background: var(--bg); color: var(--ink); font: 600 calc(var(--pw) * .042)/1 var(--text); letter-spacing: -0.01em;
}
.qz .l-status svg { width: calc(var(--pw) * .16); height: auto; }
.qz .l-screen iframe { display: block; width: 390px; border: 0; transform-origin: 0 0; background: var(--bg); }
.qz .l-swipe {
  position: absolute; z-index: 3; left: 50%; top: 43%; transform: translateX(-50%) rotate(-2deg);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px 9px 11px; border-radius: 999px;
  background: var(--ink); color: #FBF6EC; font: 500 13px/1 var(--text); white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 18px rgba(28, 28, 28, .22); animation: l-nudge 2.4s ease-in-out infinite;
}
.qz .l-swipe svg { width: 14px; height: 14px; }
.qz .l-swipe.gone { opacity: 0; transition: opacity .3s ease; }
@keyframes l-nudge { 0%, 100% { margin-top: 0; } 50% { margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { .qz .l-swipe { animation: none; } }

/* кнопка поверх низа телефона, телефон уходит в туман */
.qz .l-cta {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; margin: 0 -16px;
  padding-top: 40px; background: linear-gradient(to top, var(--bg) 58%, rgba(246, 243, 238, 0));
}
.qz .l-links { display: flex; justify-content: center; gap: 10px; }
/* «Подарить тест» (24.10): тихая ссылка под кнопкой, не спорит с «Начать тест» */
.qz .l-gift { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 4px 4px; font: 500 15px/1 var(--text); color: var(--ink);
  text-decoration: underline; text-decoration-color: #CFC6B8; text-underline-offset: 4px; }
.qz .l-gift svg { width: 34px; height: 34px; margin: -8px 0 -4px; flex: none; }

.qz .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.qz .ic svg { width: 20px; height: 20px; }
.qz .ic.orange { background: var(--specks), var(--orange); }
.qz .ic.red { background: var(--specks), var(--red); }
.qz .ic.yellow { background: var(--specks), var(--yellow); }
.qz .carousel {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
}
.qz .carousel::-webkit-scrollbar { display: none; }
.qz .carousel > .card { flex: 0 0 100%; scroll-snap-align: center; }
.qz .dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: -4px; }
.qz .dots .arrow { border: 0; background: none; color: var(--mute); padding: 6px 10px; display: grid; place-items: center; }
.qz .dots .arrow svg { width: 8px; height: 13px; }
.qz .dots .d { width: 7px; height: 7px; border-radius: 99px; background: #EBDCD3; transition: width .25s ease, background .25s ease; }
.qz .dots .d.on { width: 24px; background: var(--red); }

/* плашки и картинки из блоков результата */
.qz .plate {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 172px; border-radius: 18px; display: flex; align-items: center; padding: 20px 18px;
}
.qz .plate-title { position: relative; z-index: 1; max-width: 52%; font: 800 31px/1.02 var(--display); text-transform: none; color: var(--ink); }
.qz .plate .art { position: absolute; right: -4px; top: 50%; width: 56%; aspect-ratio: 1; transform: translateY(-50%); }
.qz .art .ill { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qz .plate.orange { background: var(--specks), radial-gradient(80% 100% at 78% 40%, #F8BC5E, transparent 70%), var(--orange); }
.qz .plate.red { background: var(--specks), radial-gradient(80% 100% at 78% 40%, #E8634F, transparent 70%), var(--red); }
.qz .plate.red .plate-title { color: #FBF6EC; }
.qz .scene { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: var(--paper); }
.qz .verdict { display: flex; align-items: center; gap: 10px; margin: 2px 6px 0; font-size: 14.5px; color: var(--ink-2); }
.qz .v { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px 8px 10px; border-radius: 999px; font: 600 14px/1 var(--text); }
.qz .v.fire { background: var(--orange); color: var(--ink); }

/* анатомия: кольца из 4 делений, как в блоке 2 */
.qz .anat { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 8px; margin: 0 0 2px; }
.qz .anat-item { width: calc((100% - 16px) / 3); display: flex; flex-direction: column; align-items: center; text-align: center; }
.qz .anat-label { min-height: 2.36em; display: flex; align-items: flex-end; justify-content: center; font: 400 13.5px/1.18 var(--text); letter-spacing: -0.025em; }
.qz .ring { position: relative; width: 100%; max-width: 100px; aspect-ratio: 1; margin-top: 7px; }
.qz .ring-track { position: absolute; inset: 0; width: 100%; height: 100%; }
.qz .ring-track .seg { stroke: #EFE9E0; }
.qz .ring.good .seg.on { stroke: var(--gold); }
.qz .ring.ok .seg.on { stroke: var(--yellow-pale); }
.qz .ring.warn .seg.on { stroke: var(--orange); }
.qz .ring.bad .seg.on { stroke: var(--red); }
.qz .ring .core { position: absolute; inset: 14%; border-radius: 50%; background: var(--specks), radial-gradient(75% 75% at 34% 28%, #F8F4ED, transparent 72%), #EAE4D9; }
.qz .state { display: inline-block; margin-top: 8px; padding: 5px 9px 4px; border-radius: 99px; font: 800 12px/1 var(--display); letter-spacing: 0.06em; text-transform: none; }
.qz .state.good { background: var(--gold); color: var(--ink); }
.qz .state.good::before { content: '✦'; margin-right: 4px; }
.qz .state.ok { background: var(--yellow-pale); color: var(--ink); }
.qz .state.warn { background: var(--orange); color: var(--ink); }
.qz .state.bad { background: var(--red); color: #FBF6EC; }

.qz .l-note { margin-top: 2px; font-size: 12.5px; color: var(--mute); text-align: center; }

/* ================= экраны вопросов (этап 2, 18.10.2026) ================= */

/* ---------- кружки «где вы, а где бизнес» ---------- */
.qz .circ-card { padding: 20px 10px 16px; display: flex; justify-content: center; }
.qz .circ-big { width: 100%; max-width: 320px; display: block; overflow: visible; }
.qz .circ-big .c1 { fill: var(--yellow); }
.qz .circ-big .c12 { fill: var(--orange); }
.qz .circ-big .c2 { fill: var(--red); fill-opacity: 1; }
.qz .circ-big .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.qz .circ-big text { font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: none; fill: var(--ink); }
.qz .circ-big .c-biz { fill: #FBF6EC; }
.qz .circ-big.ghost .c1, .qz .circ-big.ghost .c2 { fill: #F3EFE8; fill-opacity: 1; mix-blend-mode: normal; stroke: #CFC6B8; stroke-width: 1.5; stroke-dasharray: 4 5; }
.qz .circ-big.ghost .ring { display: none; }
.qz .circ-big.ghost text { fill: #B9B5AE; }
.qz .circ-row { gap: 5px; }
.qz .circ-row button {
  border: 1.5px solid var(--card-line); background: #fff; border-radius: 14px; padding: 10px 2px;
  box-shadow: 0 4px 12px rgba(80, 55, 30, .05); transition: background .15s, border-color .15s, transform .15s;
}
.qz .circ-row button:active { transform: scale(.95); }
.qz .circ-row button.on { background: var(--ink); border-color: var(--ink); }
/* «А как хотите?»: где человек сейчас - пунктирная рамка */
.qz .circ-row button.was:not(.on) { border-style: dashed; border-color: var(--ink); }
.qz .circ-small .c1 { fill: var(--yellow); fill-opacity: .92; mix-blend-mode: multiply; }
.qz .circ-small .c2 { fill: var(--red); fill-opacity: 1; }
.qz .circ-row button.on .c1 { mix-blend-mode: normal; fill-opacity: .9; }
.qz .circ-ends { margin: 2px 4px 0; font-size: 13px; color: var(--mute); }

/* ---------- лестница: три вкладки + настоящая лестница с перилами ---------- */
.qz .lad-tabs { gap: 8px; }
.qz .lad-tab {
  align-items: flex-start; gap: 6px; padding: 10px 12px 11px;
  background: #fff; border: 1.5px solid var(--card-line); border-radius: 18px;
  box-shadow: 0 4px 12px rgba(80, 55, 30, .05); color: var(--mute); font: 400 13px/1.1 var(--text);
}
.qz .lad-tab span { display: inline-flex; align-items: center; gap: 6px; }
.qz .lad-tab b { font: 800 26px/1 var(--display); color: var(--ink); }
.qz .lad-tab.on { background: var(--ink); border-color: var(--ink); color: #CFC6B8; }
.qz .lad-tab.on b { color: #FBF6EC; }
.qz .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.qz .sw-now { background: var(--ink); }
.qz .lad-tab.on .sw-now { background: #FBF6EC; }
.qz .sw-year, .qz .mk-year { background: var(--red); }
.qz .sw-life, .qz .mk-life { background: var(--orange); }
.qz .lad-card { padding: 16px 14px 14px; }
.qz .lad-card .card-head { margin-bottom: 10px; }
.qz .ladder { position: relative; gap: 0; padding: 4px 0; margin: 0 2px; border: 0; border-radius: 0; }
.qz .ladder::before, .qz .ladder::after { content: ""; position: absolute; top: -2px; bottom: -2px; width: 6px; border-radius: 3px; background: var(--ink); }
.qz .ladder::before { left: 30px; }
.qz .ladder::after { right: 0; }
.qz .rung { position: relative; height: 29px; grid-template-columns: 30px 1fr; gap: 0; padding: 0; }
.qz .rung .n { padding-right: 8px; font: 800 14px/1 var(--display); color: var(--mute); }
.qz .rung .bar { height: 9px; margin: 0 6px; border-radius: 0; background: #E6DFD4; transition: background .15s; }
.qz .rung:hover .bar { background: #D6CDBF; }
.qz .rung.on .n { color: var(--ink); }
.qz .lad-now .rung.on .bar { background: var(--ink); }
.qz .lad-year .rung.on .bar { background: var(--red); }
.qz .lad-life .rung.on .bar { background: var(--orange); }
.qz .rung .marks { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); gap: 4px; }
.qz .mk { padding: 4px 8px 5px; font: 500 11px/1 var(--text); letter-spacing: -0.01em; color: #FBF6EC; }
.qz .mk-now { background: var(--ink); }
.qz .mk-life { color: var(--ink); }

/* ---------- образы: карточки с картинкой на цветной плитке ---------- */
.qz .pic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz .pic-opt {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding: 8px 8px 12px; background: #fff; border: 1.5px solid var(--card-line); border-radius: 20px;
  box-shadow: 0 6px 18px rgba(80, 55, 30, .05); text-align: left; color: var(--ink);
  font: 400 14px/1.28 var(--text); letter-spacing: -0.02em;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.qz .pic-opt:active { transform: scale(.97); }
.qz .pic-opt .t { padding: 0 4px; }
.qz .pic { position: relative; display: grid; place-items: center; height: 92px; border-radius: 14px; overflow: hidden; }
.qz .pic .ill { width: 88px; height: 88px; display: block; overflow: visible; }
.qz .pic.yellow { background: var(--specks), radial-gradient(70% 80% at 60% 40%, #F9D766, transparent 70%), var(--yellow); }
.qz .pic.orange { background: var(--specks), radial-gradient(70% 80% at 60% 40%, #F8BC5E, transparent 70%), var(--orange); }
.qz .pic.red { background: var(--specks), radial-gradient(70% 80% at 60% 40%, #E8634F, transparent 70%), var(--red); }
.qz .pic-opt.on { background: var(--ink); border-color: var(--ink); color: #FBF6EC; }
.qz .pic-opt.on::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--check) center / 12px no-repeat, var(--red); box-shadow: 0 0 0 2.5px #fff;
}

/* ---------- плитки с плоскими иконками (списки) ---------- */
.qz .qtile { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background-image: var(--specks); }
.qz .qtile svg { width: 21px; height: 21px; display: block; }
.qz .opts.qtiles .opt { justify-content: flex-start; padding: 10px 13px 10px 10px; }
.qz .opts.qtiles .opt .t { flex: 1; }
.qz .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--grey-2); background: #fff; }
.qz .on > .radio { border-color: var(--red); background: var(--check) center / 12px no-repeat, var(--red); }

/* ---------- «вчерашний день»: кольцо дня ---------- */
.qz .step-n { margin: 0 4px 2px; font: 800 12.5px/1 var(--display); letter-spacing: .07em; text-transform: none; color: var(--red); }
.qz .in-ic { display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; border-radius: 8px; vertical-align: -0.16em; margin: 0 1px; font-style: normal; }
.qz .in-ic svg { width: .74em; height: .74em; }
.qz .in-ic.charge { background: var(--yellow); color: var(--ink); }
.qz .in-ic.drain { background: var(--ink); color: #FBF6EC; }
.qz .dr-card { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px; }
.qz .dr-card.big { padding: 18px 60px; }
.qz .day-ring { width: 100%; max-width: 232px; display: block; overflow: visible; }
.qz .dr-card:not(.big) .day-ring { max-width: 188px; }
.qz .dr-track { fill: none; stroke: #EFE9E0; stroke-width: 30; }
.qz .dr-seg { fill: none; stroke-width: 30; transition: transform .25s ease, opacity .2s ease; }
.qz .dr-seg.dim { opacity: .3; }
.qz .dr-tick { stroke: #D8D0C4; stroke-width: 2; stroke-linecap: round; }
.qz .dr-tick.on { stroke: var(--ink); }
.qz .dr-knob { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.qz .dr-big { font: 800 58px/1 var(--display); fill: var(--ink); }
.qz .dr-small { font: 400 14px/1 var(--text); fill: var(--mute); }
.qz .dr-badge circle { stroke: #fff; stroke-width: 3; }
.qz .dr-badge.charge { color: var(--ink); }
.qz .dr-badge.charge circle { fill: var(--yellow); }
.qz .dr-badge.drain { color: #FBF6EC; }
.qz .dr-badge.drain circle { fill: var(--ink); }
.qz .dr-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper);
  display: grid; place-items: center; font: 400 26px/1 var(--text); color: var(--ink); transition: background .15s, transform .15s;
}
.qz .dr-btn:hover { background: #ECE6DC; }
.qz .dr-btn:active { transform: translateY(-50%) scale(.94); }
.qz .dr-btn:first-of-type { left: 10px; }
.qz .dr-btn:last-of-type { right: 10px; }
.qz .left-pill {
  position: sticky; top: 8px; z-index: 3; align-self: center; margin: 2px auto;
  padding: 9px 16px 10px; border-radius: 999px; background: var(--ink); color: #CFC6B8;
  font-size: 14px; box-shadow: 0 8px 20px rgba(28, 28, 28, .18);
}
.qz .left-pill b { color: #FBF6EC; font: 800 15px/1 var(--display); letter-spacing: .02em; }
.qz .left-pill.ok { background: var(--yellow); color: var(--ink); }
.qz .left-pill.ok b { color: var(--ink); }
.qz .basket { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 10px 10px 10px 10px; border: 1.5px solid var(--card-line); color: var(--ink); }
.qz .basket.pickable { grid-template-columns: 36px 1fr auto auto; transition: background .15s, color .15s; }
.qz .basket .t { font-size: 14.5px; line-height: 1.28; letter-spacing: -0.015em; }
.qz .basket .h { font: 800 14px/1 var(--display); color: var(--mute); }
.qz .basket.pickable.on { background: var(--ink); border-color: var(--ink); color: #FBF6EC; }
.qz .basket.pickable.on .h { color: #CFC6B8; }
.qz .mini-stepper { gap: 6px; }
.qz .mini-stepper button { width: 34px; height: 34px; border: 0; background: var(--paper); font-size: 18px; color: var(--ink); }
.qz .mini-stepper b { min-width: 28px; font: 800 15px/1 var(--display); }
.qz .basket.has .mini-stepper b { color: var(--red); }
.qz .ce { gap: 6px; }
.qz .ce button {
  width: 42px; height: 38px; border-radius: 12px; border: 1.5px solid var(--card-line); background: #fff;
  filter: none; opacity: 1; color: #C9C1B4; display: grid; place-items: center;
}
.qz .ce button svg { width: 20px; height: 20px; }
.qz .ce button.charge.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.qz .ce button.drain.on { background: var(--ink); border-color: var(--ink); color: #FBF6EC; }

/* ---------- испытания: улица домиков + шкала из 4 домиков ---------- */
.qz .street {
  position: sticky; top: 8px; z-index: 3; display: flex; justify-content: space-around; align-items: flex-end;
  padding: 10px 6px 8px; background: #fff; border: 1.5px solid var(--card-line); border-radius: 20px;
  box-shadow: 0 10px 24px rgba(80, 55, 30, .1);
}
.qz .st-h { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 13%; }
.qz .st-h .house { width: 100%; max-width: 40px; height: auto; display: block; overflow: visible; }
.qz .st-h b { font: 800 11px/1 var(--display); color: var(--mute); }
.qz .trial { padding: 16px 14px 14px; gap: 0; }
.qz .trial .card-head { margin-bottom: 12px; }
.qz .scale4 { gap: 6px; }
.qz .scale4 button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 9px;
  border: 1.5px solid transparent; border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 400 12.5px/1.15 var(--text); letter-spacing: -0.02em; transition: background .15s, border-color .15s, transform .15s;
}
.qz .scale4 button:active { transform: scale(.96); }
.qz .scale4 button .house { width: 40px; height: auto; display: block; overflow: visible; }
.qz .scale4 button.on { background: var(--specks), var(--yellow); border-color: var(--ink); }
.qz .on > .qtile { box-shadow: 0 0 0 1.5px rgba(251, 246, 236, .4); }
.qz .street::before { content: ""; position: absolute; z-index: -1; left: -18px; right: -18px; top: -10px; height: 26px; background: var(--grain), var(--bg); }
.qz .street::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 20px; background: #fff; }
.qz .qlist { padding: 8px; }

/* пасхалка «опасная зона» (14+ часов): тёмная карточка, кольцо - сигнальная лента, огонёк, Stay hard */
.qz .dr-card.big { flex-direction: column; overflow: hidden; transition: background .25s, border-color .25s; }
.qz .dr-card.danger { background: var(--ink); border-color: var(--ink); padding-top: 46px; padding-bottom: 16px; }
.qz .dr-card.danger .dr-track { stroke: #3A3632; }
.qz .dr-card.danger .dr-tick { stroke: #4A4540; }
.qz .dr-card.danger .dr-tick.on { stroke: var(--yellow); }
.qz .dr-card.danger .dr-big { fill: var(--yellow); }
.qz .dr-card.danger .dr-small { fill: #9C968D; }
.qz .dr-card.danger .dr-btn { background: #3A3632; color: #FBF6EC; }
.qz .dr-edge { fill: none; stroke: var(--yellow); stroke-width: 2; }
.qz .dr-knob.hot { fill: var(--red); stroke: #FBF6EC; stroke-width: 2.5; }
.qz .dr-tape {
  position: absolute; left: -20px; right: -20px; top: 12px; height: 24px; transform: rotate(-3deg);
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
}
.qz .dr-tape span { padding: 4px 10px 5px; background: var(--ink); color: var(--yellow); font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: none; }
.qz .dr-egg { margin-top: 6px; font: 800 22px/1.05 var(--display); letter-spacing: .04em; text-transform: none; color: var(--yellow); text-align: center; }

/* ================= пасхалки глав 1-2 (18.10.2026): режим включается только на редкий ответ ================= */
.qz .egg { margin: 12px 4px 2px; font: 800 20px/1.08 var(--display); letter-spacing: .04em; text-transform: none; text-align: center; animation: egg-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes egg-in { from { opacity: 0; transform: scale(.85) translateY(6px); } to { opacity: 1; transform: none; } }
.qz .egg-on { transition: background .3s ease, border-color .3s ease; }

/* «Разные планеты» */
.qz .circ-card { flex-direction: column; align-items: center; }
.qz .circ-card.space { background: var(--specks), radial-gradient(90% 80% at 50% 30%, #34302B, transparent 70%), var(--ink); border-color: var(--ink); }
.qz .circ-card.space .egg { color: #FBF6EC; }
.qz .circ-big .saturn { fill: none; stroke: #FBF6EC; stroke-width: 5; stroke-linecap: round; }
.qz .circ-big .star { fill: #FBF6EC; }

/* «Подозрительно идеально» */
.qz .lad-card.gold { background: var(--specks), radial-gradient(80% 70% at 50% 20%, #F9D766, transparent 70%), var(--yellow); border-color: #E3B526; }
.qz .lad-card.gold .rung .bar { background: rgba(255, 255, 255, .45); }
.qz .lad-card.gold .rung .n { color: var(--ink); }
.qz .lad-shades { position: absolute; left: 50px; top: -9px; width: 56px; transform: rotate(-8deg); animation: shades-in .5s .1s both; }
@keyframes shades-in { from { opacity: 0; transform: translateY(-14px) rotate(-8deg); } to { opacity: 1; transform: rotate(-8deg); } }
.qz .lad-shades svg { display: block; width: 100%; height: auto; }

/* «Взлёт разрешён» */
.qz .lad-card.launch { background: var(--specks), radial-gradient(80% 70% at 50% 10%, #E8634F, transparent 70%), var(--red); border-color: var(--red); color: #FBF6EC; }
.qz .lad-card.launch .num { background: #FBF6EC; color: var(--red); box-shadow: 0 0 0 4px rgba(251, 246, 236, .2); }
.qz .lad-card.launch .rung .bar { background: rgba(251, 246, 236, .32); }
.qz .lad-card.launch .rung .n { color: #FBE3DC; }
.qz .lad-card.launch .egg { color: #FBF6EC; }
.qz .lad-card.launch .mk-year { background: var(--ink); }
.qz .lad-medoed { position: absolute; left: 40px; width: 84px; transform: rotate(-90deg); transform-origin: 50% 50%; pointer-events: none; animation: climb 2.4s ease-in-out infinite alternate; }
.qz .lad-medoed svg { display: block; width: 100%; height: auto; }
@keyframes climb { from { translate: 0 6px; } to { translate: 0 -10px; } }

/* «Кот Шрёдингера» */
.qz .pic-opt.quantum { outline: 2px dashed var(--red); outline-offset: 3px; animation: quantum 1.4s steps(2, jump-none) infinite; }
.qz .pic-opt.quantum .pic { animation: quantum-pic 1.4s steps(2, jump-none) infinite; }
@keyframes quantum { 0% { transform: translateX(-1px); } 100% { transform: translateX(1px); } }
@keyframes quantum-pic { 0% { opacity: 1; } 100% { opacity: .55; } }
.qz .egg-pill {
  position: sticky; bottom: 92px; z-index: 4; align-self: center; margin: 4px auto 0; max-width: 330px;
  padding: 12px 18px 13px; border-radius: 18px; background: var(--ink); color: var(--yellow); text-align: center;
  font: 800 17px/1.12 var(--display); letter-spacing: .04em; text-transform: none;
  box-shadow: 0 12px 26px rgba(28, 28, 28, .28); animation: egg-in .45s cubic-bezier(.2, 1.4, .4, 1) both, egg-out .5s ease 3.1s forwards;
}
@keyframes egg-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* режим писателя: длинный ответ превращается в рукопись */
.qz .qopen { position: relative; }
.qz .qopen .stamp { display: none; }
.qz .qopen.writer textarea {
  background-color: #FFFDF8;
  background-image: linear-gradient(90deg, transparent 30px, rgba(217, 72, 59, .45) 30px, rgba(217, 72, 59, .45) 31.5px, transparent 31.5px),
    linear-gradient(rgba(120, 140, 170, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 140, 170, .16) 1px, transparent 1px);
  background-size: 100% 100%, 16px 16px, 16px 16px; padding-left: 42px; border-color: #E8E0D2;
}
.qz .qopen.writer .stamp {
  display: block; position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 6px 10px 7px; transform: rotate(-4deg);
  border: 2.5px solid var(--red); border-radius: 8px; background: rgba(255, 253, 248, .92); color: var(--red);
  font: 800 13px/1 var(--display); letter-spacing: .1em; text-transform: none; font-style: normal;
  animation: stamp-in .4s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-4deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.qz .qopen.writer .qopen-foot small { visibility: hidden; }

/* «Режим рантье» */
.qz .dr-card.chill { background: linear-gradient(#FBF6EC 0 64%, #F6DA80 64%); border-color: #EBD9A6; padding-bottom: 16px; }
.qz .dr-card.chill .dr-track { stroke: #fff; }
.qz .dr-knob.chill { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.qz .dr-sun { position: absolute; left: 22px; top: 18px; width: 44px; aspect-ratio: 1; border-radius: 50%; background: var(--specks), var(--yellow); }
.qz .dr-sun::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 50%; transform: translate(-12%, 10%); }

/* «Пожарная часть имени вас» */
.qz .dr-card.onfire { background: var(--specks), radial-gradient(70% 70% at 50% 45%, #E8634F, transparent 70%), var(--red); border-color: var(--red); }
.qz .dr-card.onfire .dr-track { stroke: #B83A2F; }
.qz .dr-card.onfire .dr-big { fill: #FBF6EC; }
.qz .dr-card.onfire .dr-small { fill: #FBE3DC; }
.qz .dr-card.onfire .egg { color: #FBF6EC; }

/* «А вы тогда чем займётесь?» */
.qz .dr-card.allout .egg { color: var(--ink); }

/* «Любовь и ненависть» */
.qz .dr-badge.love .l { fill: var(--yellow); }
.qz .dr-badge.love .r { fill: var(--ink); }
.qz .dr-badge.love .rim { fill: none; stroke: #fff; stroke-width: 3; }
.qz .dr-badge.love .ic-c { color: var(--ink); }
.qz .dr-badge.love .ic-d { color: #FBF6EC; }
.qz .dr-card.love .egg { color: var(--red); }

/* улица: «Медоеду пофиг» и «Улица спит» */
.qz .street { display: block; }
.qz .st-row { position: relative; z-index: 1; display: flex; justify-content: space-around; align-items: flex-end; }
.qz .street.sunny::after { background: linear-gradient(#FFF6D8, #fff 80%); }
.qz .street.night { border-color: var(--ink); }
.qz .street.night::after { background: var(--specks), var(--ink); }
.qz .street.night .st-h b { color: #6E6862; }
.qz .street .egg { position: relative; z-index: 1; margin: 8px 4px 0; font-size: 16px; }
.qz .street.night .egg { color: #FBF6EC; }
.qz .st-sun { position: absolute; z-index: 0; right: 14px; top: 6px; width: 30px; aspect-ratio: 1; border-radius: 50%; background: var(--specks), var(--yellow); box-shadow: 0 0 0 6px rgba(242, 194, 48, .2); }
.qz .st-moon { position: absolute; z-index: 0; right: 16px; top: 8px; width: 20px; aspect-ratio: 1; border-radius: 50%; box-shadow: -5px 3px 0 0 var(--yellow); }
.qz .st-stars { position: absolute; z-index: 0; inset: 0; background: radial-gradient(1.4px 1.4px at 12% 18%, #FBF6EC 99%, transparent), radial-gradient(1.2px 1.2px at 46% 10%, #FBF6EC 99%, transparent), radial-gradient(1.6px 1.6px at 70% 22%, #FBF6EC 99%, transparent), radial-gradient(1.2px 1.2px at 28% 8%, #FBF6EC 99%, transparent); }
.qz .st-h { position: relative; }
.qz .zz { position: absolute; top: -6px; right: -2px; font: 800 10px/1 var(--display); color: var(--yellow); font-style: normal; animation: zz 2.2s ease-in-out infinite; }
@keyframes zz { 0%, 100% { opacity: .3; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
.qz .st-medoed { position: absolute; z-index: 2; bottom: 34px; left: 0; width: 46px; pointer-events: none; animation: stroll 9s linear infinite; }
.qz .st-medoed svg { display: block; width: 100%; height: auto; }
@keyframes stroll { from { left: -50px; } to { left: 100%; } }

/* «План есть. В плане - вы» */
.qz .qlist.evac {
  background-color: #FFFDF8; border: 2px dashed var(--red);
  background-image: linear-gradient(rgba(217, 72, 59, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 72, 59, .07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.qz .evac-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 4px 12px; color: var(--red); font-size: 18px; }
.qz .qlist.evac .opt.on { background: var(--red); }
.qz .street.sunny, .qz .street.night { padding-top: 30px; }
.qz .street.sunny .st-sun { top: 6px; right: 18px; width: 22px; }

/* ================= ещё 36 пасхалок (18.10.2026) ================= */
.qz .egg-pill { display: flex; align-items: center; justify-content: center; gap: 10px; }
.qz .egg-pill .pi { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
.qz .egg-pill .pi svg { width: 100%; height: 100%; }
.qz .egg-pill .pi:has(.medoed) { width: 54px; height: auto; }
.qz .egg-pill .pi svg[viewBox="0 0 24 24"] { width: 22px; height: 22px; color: var(--yellow); }

/* старт: ракета пролетает через экран, сигнальная лента на «больше 75 ч» */
.qz .egg-fly { position: fixed; z-index: 30; left: -90px; bottom: 120px; width: 90px; pointer-events: none; animation: fly 2.4s cubic-bezier(.5, 0, .7, 1) both; }
.qz .egg-fly svg { display: block; width: 100%; height: auto; }
@keyframes fly { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(520px, -620px) rotate(8deg); } }
.qz .chip.on.hazard { background: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--ink) 7px 14px); color: #fff; text-shadow: 0 0 3px var(--ink), 0 0 2px var(--ink); font-weight: 600; }

/* открытые ответы */
.qz .open-egg:empty { display: none; }
.qz .open-egg { position: relative; }
.qz .egg-inline { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 4px 4px; font-size: 16px; color: var(--red); }
.qz .egg-inline .pi { display: grid; place-items: center; width: 22px; height: 22px; }
.qz .egg-inline .pi svg { width: 100%; height: 100%; }
.qz .egg-inline .pi.mic { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; }
.qz .egg-inline .pi.mic svg { width: 12px; height: 12px; }
.qz .egg-inline.goggins { color: var(--ink); }
.qz .stamp-one {
  display: inline-block; margin: 0 4px 4px auto; padding: 6px 10px 7px; transform: rotate(-4deg); float: right;
  border: 2.5px solid var(--red); border-radius: 8px; color: var(--red); font: 800 13px/1 var(--display); letter-spacing: .1em; text-transform: none; font-style: normal;
  animation: stamp-in .4s cubic-bezier(.2, 1.6, .4, 1) both;
}
.qz .egg-medoed { position: relative; display: block; width: 120px; margin: 6px 0 0 8px; animation: walk-in 1.4s cubic-bezier(.3, .8, .4, 1) both; }
.qz .egg-medoed .medoed { display: block; width: 100%; height: auto; }
.qz .egg-medoed .bubble {
  position: absolute; left: 112px; top: -6px; white-space: nowrap; padding: 8px 12px 9px; border-radius: 14px 14px 14px 4px;
  background: var(--ink); color: #FBF6EC; font: 800 14px/1 var(--display); letter-spacing: .05em; text-transform: none; font-style: normal;
  animation: egg-in .4s 1.2s both;
}
@keyframes walk-in { from { transform: translateX(-140px); } to { transform: none; } }

/* кружки: корона на 7 */
.qz .circ-card.crowned { background: var(--specks), radial-gradient(80% 70% at 50% 30%, #FFF3C4, transparent 70%), #FFF9E6; border-color: #F0DE9C; }
.qz .circ-big .crown { animation: egg-in .5s cubic-bezier(.2, 1.4, .4, 1) both; transform-box: fill-box; transform-origin: center bottom; }

/* лестница: из грязи в князи, счастливый человек */
.qz .lad-rocket { position: absolute; right: 22px; bottom: 0; width: 46px; pointer-events: none; animation: lift 2.6s cubic-bezier(.5, 0, .6, 1) infinite; }
.qz .lad-rocket svg { display: block; width: 100%; height: auto; }
@keyframes lift { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-330px); opacity: 0; } }
.qz .lad-card { position: relative; overflow: hidden; }
.qz .lad-card.happy { background: var(--specks), radial-gradient(70% 50% at 90% 0%, #FFF3C4, transparent 70%), #fff; }
.qz .lad-sun { position: absolute; right: 18px; top: 14px; width: 40px; aspect-ratio: 1; border-radius: 50%; background: var(--specks), var(--yellow); box-shadow: 0 0 0 8px rgba(242, 194, 48, .18); animation: egg-in .5s both; }
.qz .lad-card.happy .card-head h2 { padding-right: 46px; }

/* образы: обычные пары */
.qz .pic-opt.paired { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* вчерашний день: Уолл-стрит, радуга, значок сверху */
.qz .dr-card.wallst { background: var(--specks), radial-gradient(70% 70% at 50% 45%, #34302B, transparent 70%), var(--ink); border-color: var(--ink); }
.qz .dr-card.wallst .dr-track { stroke: #3A3632; }
.qz .dr-card.wallst .dr-big { fill: var(--yellow); }
.qz .dr-card.wallst .dr-small { fill: #9C968D; }
.qz .dr-card.wallst .egg { color: var(--yellow); }
.qz .dr-card.rainbow { background: var(--specks), radial-gradient(70% 70% at 50% 45%, #FFFDF8, transparent 70%), #FBF6EC; }
.qz .top-badge circle { fill: var(--yellow); stroke: #fff; stroke-width: 3; }
.qz .top-badge { color: var(--ink); }
.qz .dr-card.paperLove .egg, .qz .dr-card.adrenaline .egg, .qz .dr-card.strategist .egg, .qz .dr-card.messenger .egg, .qz .dr-card.auditor .egg, .qz .dr-card.rainbow .egg { color: var(--ink); }
.qz .dr-card.big .egg.sub { margin-top: 6px; font-size: 15px; color: #FBF6EC; }

/* испытания: улица горит, улицу трясёт */
.qz .street.burning { border-color: var(--red); }
.qz .street.burning::after { background: var(--specks), linear-gradient(#E8634F, var(--red)); }
.qz .street.burning .egg, .qz .street.burning .st-h b { color: #FBF6EC; }
.qz .street.quake .st-row { animation: quake .18s linear infinite alternate; }
@keyframes quake { from { transform: translate(-1.5px, .5px) rotate(-.4deg); } to { transform: translate(1.5px, -.5px) rotate(.4deg); } }

/* пожар: подпись пары */
.qz .list-cap { margin: 6px 4px 12px; color: var(--red); font-size: 18px; }

/* предвестник опасной зоны: 11-13,5 ч */
.qz .dr-card.near { padding-bottom: 14px; }
.qz .dr-card.near::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--ink) 8px 16px); }
.qz .near-cap { margin-top: 8px; font-size: 18px; color: var(--red); }

/* ================= глава 3 (18.10.2026) ================= */
/* домик трёх поросят */
.qz .pig-card { position: relative; overflow: hidden; padding: 12px 12px 10px; }
.qz .pig-house { display: block; width: 100%; height: auto; overflow: visible; }
.qz .hb { transition: fill .25s; }
.qz .hb.ghost { fill: #F3EFE8; stroke: #D6CDBF; stroke-width: 1.3; stroke-dasharray: 3 3.4; }
.qz .hb.cur { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; animation: cur-blink 1.2s ease-in-out infinite; }
.qz .hb-pat { pointer-events: none; }
@keyframes cur-blink { 50% { stroke-opacity: .25; } }
.qz .pig-legend { margin: 4px 4px 0; font-size: 12px; color: var(--mute); text-align: center; letter-spacing: -0.01em; }
.qz .pig-card .egg { margin-top: 8px; font-size: 17px; }
.qz .pig-wolf { position: absolute; left: 6px; top: 34px; width: 88px; display: flex; align-items: center; animation: egg-in .5s both; }
.qz .pig-wolf .wolf { width: 64px; height: auto; flex: none; }
.qz .pig-wolf .wind { width: 40px; margin-left: -6px; animation: wind-puff .9s ease-out 3 both; } /* 03.11 (Илья): дует 3 раза, ветер затихает и не дует дальше */
@keyframes wind { from { transform: translateX(-2px); opacity: .5; } to { transform: translateX(4px); opacity: 1; } }
@keyframes wind-puff { 0% { transform: translateX(-2px); opacity: 0; } 35% { transform: translateX(4px); opacity: 1; } 100% { transform: translateX(10px); opacity: 0; } }
.qz .pig-wolf.tired .wolf { animation: tired 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes tired { 50% { transform: rotate(-4deg) translateY(2px); } }
.qz .straw { animation: straw 1.6s ease-in infinite; transform-box: fill-box; }
.qz .straw.s1 { animation-delay: .3s; } .qz .straw.s2 { animation-delay: .6s; } .qz .straw.s3 { animation-delay: .9s; } .qz .straw.s4 { animation-delay: 1.2s; }
@keyframes straw { 0% { translate: 0 0; opacity: 0; } 20% { opacity: 1; } 100% { translate: 90px -40px; opacity: 0; } }
.qz .pig-card.stone { background: var(--specks), radial-gradient(80% 70% at 60% 30%, #F3EFE8, transparent 70%), #fff; }
.qz .pig-card.straw .egg { color: var(--red); }

/* ситуации: сценка, пятница ночью, пляж */
.qz .case-scene { margin: -2px 0 12px; border-radius: 16px; background: var(--specks), var(--paper); overflow: hidden; }
.qz .case-scene .ill { display: block; width: 100%; height: auto; }
.qz .qcard.night { background: var(--specks), radial-gradient(80% 60% at 50% 20%, #34302B, transparent 70%), var(--ink); border-color: var(--ink); color: #FBF6EC; }
.qz .qcard.night .case-scene { background: transparent; }
.qz .qcard.night .card-head .of { color: #9C968D; }
.qz .qcard.night .opt { background: #3A3632; color: #FBF6EC; }
.qz .qcard.night .opt.on { background: var(--yellow); color: var(--ink); }
.qz .qcard.night .opt .radio { background: transparent; border-color: #6E6862; }
.qz .qcard.beach { background: linear-gradient(#FBF6EC 0 70%, #F6DA80 70%); border-color: #EBD9A6; }

/* 10 монет: кошелёк и стопки */
.qz .purse-card { position: sticky; top: 8px; z-index: 3; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; padding: 10px 14px 10px 8px; box-shadow: 0 10px 24px rgba(80, 55, 30, .1); }
.qz .purse-card .purse { width: 84px; height: auto; display: block; transition: transform .3s; }
.qz .purse-left { font-size: 14px; color: var(--mute); }
.qz .purse-left b { font: 800 22px/1 var(--display); color: var(--ink); margin-left: 4px; }
.qz .purse-coins { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; min-height: 18px; }
.qz .cn { display: inline-block; width: 18px; height: 18px; font-style: normal; }
.qz .cn .coin { display: block; width: 100%; height: 100%; }
.qz .purse-card.done .purse-left { color: var(--ink); }
.qz .purse-card .egg { grid-column: 1 / -1; margin: 2px 4px 2px; font-size: 16px; }
.qz .basket .stack { display: flex; margin-top: 6px; }
.qz .basket .stack .cn { width: 16px; height: 16px; margin-right: -5px; }
.qz .cn.new { animation: coin-in .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes coin-in { from { transform: translateY(-26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.qz .basket { position: relative; }
.qz .basket.cracked { border-color: var(--ink); }
.qz .basket .crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qz .basket.magic .stack .cn { animation: vanish 1.6s ease-in-out infinite alternate; }
.qz .basket.magic .stack .cn:nth-child(2n) { animation-delay: .4s; }
.qz .basket.magic .stack .cn:nth-child(3n) { animation-delay: .8s; }
@keyframes vanish { from { opacity: 1; transform: none; } to { opacity: .1; transform: translateY(-6px) scale(.7); } }

/* ред флаг: флаг поднимается, пока человек пишет */
.qz .rf-pole { position: absolute; z-index: 2; right: 22px; top: 22px; bottom: 70px; width: 3px; border-radius: 2px; background: #9C968D; pointer-events: none; }
.qz .rf-pole::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 9px; height: 4px; border-radius: 2px; background: #9C968D; }
.qz .rf-flag { position: absolute; right: 2px; width: 28px; height: auto; bottom: calc(var(--h, 0) * (100% - 22px)); transition: bottom .35s ease; }
.qz .rf-pole.auto .rf-flag { bottom: calc(100% - 22px); width: 38px; animation: wave .5s ease-in-out infinite alternate; transform-origin: 100% 50%; }
@keyframes wave { from { transform: skewY(-4deg); } to { transform: skewY(4deg); } }
.qz .qopen:has(.rf-pole) textarea { padding-right: 52px; }

/* ================= глава 4 (18.10.2026) ================= */
/* дилеммы: качели */
.qz .dil-list { display: flex; flex-direction: column; gap: 12px; }
.qz .dilemma { padding: 14px 14px 8px; }
.qz .dil-labels { display: flex; justify-content: space-between; gap: 16px; margin: 0 4px 2px; font: 500 15px/1.25 var(--text); letter-spacing: -0.02em; color: var(--mute); }
.qz .dil-labels span:last-child { text-align: right; }
.qz .dil-labels .lean { color: var(--ink); }
.qz .dil-stage { position: relative; }
.qz .seesaw { display: block; width: 100%; height: auto; overflow: visible; }
.qz .seesaw .fulcrum { fill: var(--red); }
.qz .seesaw .plank { fill: var(--ink); }
.qz .seesaw.empty .plank { fill: #E6DFD4; }
.qz .seesaw .tick { fill: #FBF6EC; opacity: .7; }
.qz .seesaw.empty .tick { fill: #B9B5AE; }
.qz .seesaw .ball circle:first-child { fill: var(--yellow); }
.qz .seesaw .beam { transform-box: view-box; transform-origin: 150px 39px; animation: tilt .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.qz .seesaw .ball { transform-box: view-box; animation: roll .55s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes tilt { from { transform: rotate(calc(var(--from) * 4deg)); } to { transform: rotate(calc(var(--to) * 4deg)); } }
@keyframes roll { from { transform: translateX(calc(var(--from) * 40px)); } to { transform: translateX(calc(var(--to) * 40px)); } }
.qz .dil-hit { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.qz .dil-hit button { border: 0; background: none; padding: 0; cursor: pointer; }
.qz .dil-list.diplomat .plank { fill: var(--yellow); }
.qz .dil-list.extremes .plank { fill: var(--red); }
.qz .dil-list.extremes .fulcrum { fill: var(--ink); }

/* норм или стрём: штампы и свайп */
.qz .qcard.swipe { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .25s ease; }
.qz .qcard.swipe.drag { transition: none; }
.qz .stamp-n {
  position: absolute; z-index: 2; top: 54px; padding: 6px 12px 7px; border: 3px solid currentColor; border-radius: 10px;
  font: 800 26px/1 var(--display); letter-spacing: .08em; text-transform: none; font-style: normal; pointer-events: none; opacity: 0;
}
.qz .stamp-n.l { left: 16px; color: var(--red); transform: rotate(-14deg); opacity: var(--pl, 0); }
.qz .stamp-n.r { right: 16px; color: #D6A419; transform: rotate(12deg); opacity: var(--pr, 0); }
.qz .stamp-n.set { opacity: 1; animation: stamp-hit .3s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp-hit { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: 1; } }
.qz .qcard.fly-l { animation: fly-l .42s ease-in .12s both; }
.qz .qcard.fly-r { animation: fly-r .42s ease-in .12s both; }
@keyframes fly-l { to { transform: translateX(-130%) rotate(-18deg); opacity: 0; } }
@keyframes fly-r { to { transform: translateX(130%) rotate(18deg); opacity: 0; } }
.qz .qcard.all-strem { background: var(--specks), #FFF3F0; }
.qz .swipe-hint { margin: 2px 4px 0; text-align: center; font-size: 13px; color: var(--mute); }
.qz .st-medoed.walk { position: fixed; z-index: 5; bottom: 104px; width: 70px; }

/* батарейка-персонаж */
.qz .bat-card { display: flex; flex-direction: column; align-items: center; padding: 14px 14px 10px; }
.qz .bat-char { display: block; width: 72%; max-width: 230px; height: auto; overflow: visible; }
.qz .bat-char.s0 { animation: bounce 1.2s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-4px); } }
.qz .bat-card.warm { background: var(--specks), radial-gradient(70% 70% at 50% 40%, #FFF6E8, transparent 70%), #FFFBF4; border-color: #F0E2CC; }
.qz .warm-cap { margin: 10px 8px 2px; text-align: center; font: 500 16px/1.35 var(--text); letter-spacing: -0.015em; color: var(--ink-2); animation: egg-in .5s both; }
.qz .bat-opt { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1.5px solid var(--card-line); text-align: left; font-size: 15px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); transition: background .15s, color .15s; }
.qz .bat-opt.on { background: var(--ink); border-color: var(--ink); color: #FBF6EC; }
.qz .bat-opt.on .bat { border-color: #FBF6EC; }
.qz .bat-opt.on .bat::after { background: #FBF6EC; }
.qz .bat-opt.on .bat.l4 i.f { background: #FBF6EC; }

/* блиц: календарь месяца */
.qz .month { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: -4px 4px 14px; }
.qz .month i { aspect-ratio: 1; border-radius: 5px; background: #EFE9E0; }
.qz .month i.on { background: var(--orange); }
.qz .month i.on[style] { animation: day-pop .3s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes day-pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.qz .qcard.rested { background: var(--specks), radial-gradient(60% 50% at 90% 0%, #FFF3C4, transparent 70%), #fff; }

/* ================= глава 5 (18.10.2026) ================= */
.qz .in-ic.flat { background: #E6E3DD; color: var(--ink); }
.qz .table-card { position: relative; overflow: hidden; padding: 8px 8px 10px; }
.qz .table { display: block; width: 100%; height: auto; overflow: visible; }
.qz .table .pour { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 5; animation: pour 1s linear infinite; }
@keyframes pour { to { stroke-dashoffset: -14; } }
.qz .table .straw { stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.qz .table .cur-seat { fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-dasharray: 3 3; }
.qz .table .seat-name { font: 500 10.5px var(--text); fill: #FBF6EC; letter-spacing: -0.02em; }
.qz .table .me { font: 800 9.5px var(--display); fill: #1C1C1C; letter-spacing: .08em; text-transform: none; }
.qz .table-card .egg { font-size: 17px; margin-top: 4px; }
.qz .table-card.allCharge .table g[filter] > g { filter: drop-shadow(0 0 6px rgba(242, 194, 48, .9)); }
.qz .table-card.warmAlone, .qz .table-card.warmDrain { background: var(--specks), radial-gradient(70% 70% at 50% 40%, #FFF6E8, transparent 70%), #FFFBF4; border-color: #F0E2CC; }
.qz .table-medoed { position: absolute; right: 8px; top: 96px; width: 70px; animation: walk-in 1.4s cubic-bezier(.3, .8, .4, 1) both; }
.qz .table-medoed svg { display: block; width: 100%; height: auto; transform: scaleX(-1); }
.qz .add-row { display: flex; gap: 8px; }
.qz .add-row .text-in { flex: 1; min-width: 0; }
.qz .btn.dark.small { height: 48px; padding: 0 18px; border-radius: 16px; background: var(--ink); color: #FBF6EC; font: 500 15px/1 var(--text); }
.qz .counter { margin: 0 4px; font-size: 13px; color: var(--mute); }
.qz .chip.name-chip { display: inline-flex; align-items: center; gap: 6px; padding-right: 8px; }
.qz .chip.name-chip button { border: 0; background: rgba(251, 246, 236, .2); color: #FBF6EC; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; }
.qz .person { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.qz .person-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px; }
.qz .person-head b { font: 600 19px/1.2 var(--text); letter-spacing: -0.02em; }
.qz .person-head .of { font-size: 13px; color: var(--mute); }
.qz .person .group-label { margin: 0 4px 8px; font-size: 13px; color: var(--mute); }
.qz .chip .in-ic { width: 1.25em; height: 1.25em; margin-right: 4px; vertical-align: -0.28em; }

/* карта среды - модуль из блока результата */
.qz .map-card { position: sticky; top: 8px; z-index: 3; padding: 6px 10px 8px; box-shadow: 0 10px 24px rgba(80, 55, 30, .1); }
.qz .map-card .envmap { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; overflow: visible; }
.qz .map-card .envmap text { font: 400 12.5px var(--text); fill: var(--ink-2); letter-spacing: -0.02em; }
.qz .map-card .envmap text.off { fill: var(--mute); }
.qz .map-card .envmap text.me { font: 800 11px var(--display); fill: #FBF6EC; letter-spacing: .08em; }
.qz .map-card.sunny { background: var(--specks), radial-gradient(70% 70% at 50% 50%, #FFF3C4, transparent 75%), #FFFBEE; border-color: #F0DE9C; }
.qz .map-card .egg { font-size: 16px; margin: 2px 4px 0; }
.qz .env-row { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.qz .env-row .name { margin: 0 4px; font: 500 15px/1.25 var(--text); letter-spacing: -0.02em; }
.qz .env-row .scale4 button { padding: 8px 2px 8px; }
.qz .env-row .scale4 .sw { width: 14px; height: 14px; margin: 0 0 2px; border: 0; }
.qz .env-row .scale4 .st-flat .sw { background: #CFC8BD !important; }
.qz .env-row .scale4 .e { font-size: 14px; line-height: 16px; color: var(--mute); }
.qz .env-row .scale4 button.on.st-charge { background: var(--specks), var(--yellow); }
.qz .env-row .scale4 button.on.st-flat { background: #E6E3DD; }
.qz .env-row .scale4 button.on.st-drain { background: var(--specks), var(--red); color: #FBF6EC; }
.qz .env-row .scale4 button.on.st-drain .sw { background: #FBF6EC !important; }
.qz .env-row .scale4 button.on.st-none { background: var(--ink); color: #FBF6EC; }
.qz .env-row .scale4 button.on.st-none .e { color: #FBF6EC; }
.qz .map-card::before, .qz .purse-card::before { content: ""; position: absolute; z-index: -1; left: -18px; right: -18px; top: -10px; height: 26px; background: var(--grain), var(--bg); }
.qz .map-card::after, .qz .purse-card::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 22px; background: inherit; }
.qz .map-card.sunny::after { background: var(--specks), radial-gradient(70% 70% at 50% 50%, #FFF3C4, transparent 75%), #FFFBEE; }

/* ================= глава 6 (18.10.2026) ================= */
/* рассвет над чудо-вопросом */
.qz .dawn { position: relative; order: -1; height: 84px; margin: -2px -2px 2px; border-radius: 14px; overflow: hidden; --d: 0; }
.qz .dawn i { position: absolute; display: block; font-style: normal; }
.qz .dawn .sky-day { inset: 0; background: linear-gradient(#FFF0B8, #FBF6EC 80%); }
.qz .dawn .sky-night { inset: 0; background: var(--specks), linear-gradient(#1C1C1C, #3A3632); opacity: calc(1 - var(--d)); transition: opacity 1.2s ease; }
.qz .dawn .stars { inset: 0; background: radial-gradient(1.4px 1.4px at 14% 28%, #FBF6EC 99%, transparent), radial-gradient(1.2px 1.2px at 38% 16%, #FBF6EC 99%, transparent), radial-gradient(1.6px 1.6px at 66% 30%, #FBF6EC 99%, transparent), radial-gradient(1.2px 1.2px at 86% 14%, #FBF6EC 99%, transparent); opacity: calc(1 - var(--d) * 1.6); transition: opacity 1.2s ease; }
.qz .dawn .sun { left: 50%; bottom: 0; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: var(--specks), var(--yellow); box-shadow: 0 0 0 8px rgba(242, 194, 48, .2); transform: translateY(calc((1 - var(--d)) * 50px - 22px)); transition: transform 1.4s cubic-bezier(.25, .6, .3, 1); }
.qz .dawn .moon { right: 22px; top: 12px; width: 20px; height: 20px; border-radius: 50%; box-shadow: -5px 3px 0 0 var(--yellow); opacity: calc(1 - var(--d) * 1.4); transition: opacity 1.2s ease; }
.qz .dawn.sleep .moon { opacity: 1; box-shadow: -5px 3px 0 0 #9C968D; }
.qz .dawn .hills { left: -10%; right: -10%; bottom: -26px; height: 44px; border-radius: 50% 50% 0 0; background: var(--specks), #F2A23A; }
.qz .dawn .sea-band { left: 0; right: 0; bottom: 0; height: 0; background: repeating-linear-gradient(90deg, #1C1C1C 0 10px, #3A3632 10px 20px); opacity: 0; transition: height 1s ease, opacity 1s ease; }
.qz .dawn.sea .sea-band { height: 20px; opacity: .9; }
.qz .dawn.sea .hills { background: var(--specks), #F6DA80; bottom: -32px; }
.qz .qopen:has(.dawn) { display: flex; flex-direction: column; }

/* четыре топлива цели */
.qz .qgroup.fuel { position: relative; padding-right: 88px; min-height: 120px; }
.qz .fuel-pic { position: absolute; right: 12px; top: 14px; width: 66px; height: 66px; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), filter .3s, opacity .3s; }
.qz .fuel-pic .fuel-ill { display: block; width: 100%; height: 100%; overflow: visible; }
.qz .qgroup.fuel.fx .fuel-pic { opacity: .35; filter: grayscale(1); transform: scale(.85); }
.qz .qgroup.fuel.f0 .fuel-pic { opacity: .45; filter: grayscale(1); transform: scale(.75); }
.qz .qgroup.fuel.f1 .fuel-pic { transform: scale(.95); }
.qz .qgroup.fuel.f2 .fuel-pic { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(242, 194, 48, .7)); }
.qz .qgroup.fuel.full { background: var(--specks), radial-gradient(60% 80% at 90% 30%, #FFF3C4, transparent 70%), #fff; }

/* дорога премортема */
.qz .road-card { padding: 10px 10px 8px; }
.qz .road { display: block; width: 100%; height: auto; overflow: visible; }
.qz .road .me { font: 800 8.5px var(--display); fill: #FBF6EC; letter-spacing: .08em; text-transform: none; }
.qz .road .obst { animation: drop .5s cubic-bezier(.3, 1.6, .5, 1) both; transform-box: fill-box; }
@keyframes drop { from { translate: 0 -40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.qz .road-card .egg { font-size: 16px; margin-top: 4px; }

/* прокачка навыков как в игре */
.qz .skill-hud { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); border-color: var(--ink); color: #CFC6B8; font: 800 13px/1 var(--display); letter-spacing: .1em; text-transform: none; }
.qz .skill-hud b { font: 800 28px/1 var(--display); color: var(--yellow); }
.qz .skill-hud .pips { display: flex; gap: 5px; margin-left: auto; }
.qz .skill-hud .pips i { width: 14px; height: 14px; border-radius: 3px; background: #3A3632; transition: background .2s; }
.qz .skill-hud .pips i.on { background: var(--yellow); box-shadow: 0 0 8px rgba(242, 194, 48, .6); }
.qz .skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qz .skill { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 11px; border: 1.5px solid var(--card-line); border-radius: 18px; background: #fff; color: var(--ink); font: 400 13px/1.2 var(--text); letter-spacing: -0.02em; text-align: center; transition: background .15s, border-color .15s, transform .15s; }
.qz .skill:active { transform: scale(.96); }
.qz .skill.on { background: var(--specks), var(--yellow); border-color: var(--ink); }
.qz .skill .lvl { position: absolute; top: -9px; right: -4px; padding: 4px 6px 5px; border-radius: 8px; background: var(--red); color: #FBF6EC; font: 800 10.5px/1 var(--display); letter-spacing: .06em; font-style: normal; }
.qz .skill .lvl.pop { animation: lvl-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes lvl-pop { 0% { transform: translateY(10px) scale(.4); opacity: 0; } 60% { transform: translateY(-6px) scale(1.15); opacity: 1; } 100% { transform: none; } }
.qz .pick-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ================= экран загрузки (18.10.2026) ================= */
.qz .loading-qz { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 12px; }
.qz .load-card { padding: 10px 10px 16px; }
.qz .load-scene { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: var(--paper); }
.qz .load-title { margin: 14px 6px 10px; font: 800 24px/1.05 var(--display); text-transform: none; letter-spacing: .01em; }
.qz .load-bar { height: 6px; margin: 0 6px 14px; border-radius: 3px; background: var(--track); overflow: hidden; }
.qz .load-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow)); transition: width linear; }
.qz .loading-qz .lines { list-style: none; margin: 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qz .loading-qz .lines li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink-2); opacity: .25; transform: none; transition: opacity .35s; }
.qz .loading-qz .lines li::before { content: none; }
.qz .loading-qz .lines li.show { opacity: 1; }
.qz .lines .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--grey-2); background: #fff; transition: background .2s, border-color .2s; }
.qz .lines li.ok .tick { border-color: var(--red); background: var(--check) center / 11px no-repeat, var(--red); animation: stamp-hit .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.qz .bonus { padding: 14px; gap: 10px; }
.qz .bonus-label { margin: 2px 4px 0; font: 800 12.5px/1 var(--display); letter-spacing: .07em; text-transform: none; color: var(--red); }
.qz .bonus-q { margin: 0 4px 2px; font: 500 17px/1.3 var(--text); letter-spacing: -0.02em; }
.qz .bonus textarea { min-height: 110px; }

/* 29.10: системный шрифт телефона, как в Telegram и X (Илья) */
html, body, body * { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; }
h1, h2, h3, h4 { font-weight: 700 !important; text-transform: none !important; letter-spacing: -.02em !important; }
