/* v32 «Дитяче свято» — общие стили книжки; телефон — v32-m.css, компьютер — v32-d.css.
   Рисованное: «дрожащие» рамки (неровный border-radius + сдвинутая тень, как наклейка),
   кулька с цифрой, ночное/солнечное небо сцены по яркости изделия. */
:root {
  --bg: #fff6e0; --paper: #fffdf6; --ink: #2b2140; --mut: #625775; --line: rgba(43, 33, 64, .16);
  --acc: #e8405a; --acc-ink: #fff; --sun: #ffc93c; --sky: #4cc9f0; --grass: #5fbf72; --vio: #8b5cf6;
  --ok: #23804b; --bad: #b42f2f; --chip: #fff; --shadow: #2b2140;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top: 52px;
  --wob: 18px 26px 20px 28px / 26px 18px 28px 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141832; --paper: #1d2246; --ink: #fff3df; --mut: #c9c0dc; --line: rgba(255, 243, 223, .16);
    --acc: #ff7a8f; --acc-ink: #1b1530; --sun: #ffd166; --sky: #6fd6f5; --grass: #84d996; --vio: #b49bff;
    --ok: #7fe0a4; --bad: #ff9a8f; --chip: #262c57; --shadow: #070915;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141832; --paper: #1d2246; --ink: #fff3df; --mut: #c9c0dc; --line: rgba(255, 243, 223, .16);
  --acc: #ff7a8f; --acc-ink: #1b1530; --sun: #ffd166; --sky: #6fd6f5; --grass: #84d996; --vio: #b49bff;
  --ok: #7fe0a4; --bad: #ff9a8f; --chip: #262c57; --shadow: #070915;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); overflow-x: hidden;
  background-image: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--sun) 22%, transparent) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 62%, color-mix(in srgb, var(--sky) 22%, transparent) 0 2px, transparent 3px);
  background-size: 46px 46px, 62px 62px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--line); }
.logo { font: 800 19px/1 var(--round); text-decoration: none; letter-spacing: .01em; }
.tag-demo { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--sun); color: #2b2140; font-weight: 700; }
.top-sp { flex: 1; }
.top-lab { font-size: 14px; color: var(--mut); }
.lang { font-size: 13px; font-weight: 800; text-decoration: none; padding: 6px 11px; border: 2px solid var(--ink); border-radius: 99px; }

/* сцена 3D: ночное небо (светлое изделие) или солнечное (тёмное) */
.stage { margin: 0; position: relative; overflow: hidden; touch-action: none; border: 2.5px solid var(--ink);
  border-radius: var(--wob); box-shadow: 5px 5px 0 var(--shadow); }
.stage[data-bg="dark"] { background: radial-gradient(110% 90% at 50% 30%, #3a3170 0%, #1a1838 62%, #0f0f24 100%); }
.stage[data-bg="light"] { background: radial-gradient(110% 90% at 50% 30%, #fffbe8 0%, #ffe39a 60%, #ffc95e 100%); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: radial-gradient(circle, #fff 0 1.4px, transparent 2px), radial-gradient(circle, #ffe9a8 0 1px, transparent 1.6px);
  background-size: 70px 60px, 43px 51px; background-position: 10px 8px, 30px 22px; }
.stage[data-bg="light"] .stars { background-image: radial-gradient(circle, #fff 0 18px, transparent 19px), radial-gradient(circle, #fff 0 12px, transparent 13px);
  background-size: 210px 160px, 150px 190px; background-position: -30px 20px, 60px 120px; opacity: .55; }
html:not(.rm) .stars { animation: drift 40s linear infinite; }
@keyframes drift { to { background-position: 80px 68px, 73px 73px; } }
.poster, .gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster { margin: auto; width: auto; height: 76%; max-width: 76%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; opacity: .92; transition: opacity .4s; }
.poster.gone { opacity: 0; }
.gl { opacity: 0; transition: opacity .5s, filter .3s; outline: none; }
.gl.ready { opacity: 1; }
.stage:has(.gl.ready) .poster { opacity: 0; }
.gl.busy.ready { filter: saturate(.6) brightness(.9); }
.pill { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0 auto; width: fit-content; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 2px solid #2b2140;
  background: #fffdf6; color: #2b2140; font-size: 13px; line-height: 1.3; box-shadow: 3px 3px 0 #2b2140; }
.pill i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #c9a227; }
.pill[data-k="ok"] i { background: #23a35a; }
.pill[data-k="bad"] i { background: #d23b3b; }
html:not(.rm) .pill[data-k="wait"] i { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(.5); opacity: .5; } }
.pill-t { min-width: 0; overflow-wrap: anywhere; }
.pill-more { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; flex: none; }
.stage-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { flex: none; border: 2px solid var(--ink); background: var(--chip); border-radius: 99px; padding: 5px 12px; font: 700 14px/1.2 var(--round); }
.stage-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.attr { margin: 6px 2px 0; font-size: 11px; line-height: 1.35; color: var(--mut); min-height: 1em; overflow-wrap: anywhere; }

/* книжка: вкладки, лента страниц */
.tabs { display: flex; gap: 4px; }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 8px;
  border: 2px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--paper) 70%, var(--bg));
  font: 700 12px/1.15 var(--round); color: var(--mut); transform: translateY(4px); transition: transform .2s, background .2s; }
.tab b { font-size: 15px; color: var(--ink); }
.tab span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.tab[aria-current="page"] { background: var(--paper); color: var(--ink); transform: none; }
.tab:nth-child(1)[aria-current] { box-shadow: inset 0 5px 0 var(--acc); }
.tab:nth-child(2)[aria-current] { box-shadow: inset 0 5px 0 var(--sun); }
.tab:nth-child(3)[aria-current] { box-shadow: inset 0 5px 0 var(--grass); }
.tab:nth-child(4)[aria-current] { box-shadow: inset 0 5px 0 var(--sky); }
.tab:nth-child(5)[aria-current] { box-shadow: inset 0 5px 0 var(--vio); }
.track { position: relative; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 0 0 24px 24px;
  box-shadow: 5px 5px 0 var(--shadow); transition: height .3s ease; outline: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
html.rm .track { transition: none; }
.page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 20px 18px 26px;
  transform-origin: 0 50%; transition: opacity .45s, transform .45s; }
.page:not(.cur) { opacity: .3; transform: perspective(1400px) rotateY(-9deg) scale(.96); }
html.rm .page { transition: none; }
html.rm .page:not(.cur) { transform: none; }

.kicker { margin: 0 0 6px; font: 800 13px/1.2 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.kt { margin: 0 0 6px; font: 800 30px/1.1 var(--round); letter-spacing: -.01em; overflow-wrap: anywhere; }
h1.kt { font-size: 36px; }
.w { display: inline-block; clip-path: inset(-.15em -.12em -.25em -.12em); }
.wi { display: inline-block; }
html:not(.rm) .page.cur .wi { animation: hopin .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes hopin { from { transform: translateY(70%) rotate(-6deg); opacity: 0; } }
html:not(.rm) .page.cur > :not(.kt) { animation: rise .5s ease both; }
html:not(.rm) .page.cur > :nth-child(2) { animation-delay: .06s; } html:not(.rm) .page.cur > :nth-child(3) { animation-delay: .12s; }
html:not(.rm) .page.cur > :nth-child(4) { animation-delay: .18s; } html:not(.rm) .page.cur > :nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.sub, .lead { margin: 0 0 14px; color: var(--mut); }
.lead { font-size: 17px; color: var(--ink); }
.lbl { display: block; margin: 16px 0 8px; font: 800 15px/1.2 var(--round); }
.note { margin: 10px 0 0; font-size: 14px; color: var(--mut); }
.more-note { margin: 12px 0 0; font-size: 13px; color: var(--mut); }
.demo-note { display: inline-block; margin: 4px 0 14px; font-size: 13px; padding: 3px 10px; border-radius: 99px; border: 1.5px dashed var(--mut); color: var(--mut); }

/* обложка: кулька */
.hero-row { display: flex; gap: 16px; align-items: center; }
.balloon { position: relative; flex: none; width: 120px; height: 160px; padding: 0; border: 0; background: none; transform-origin: 50% 85%; }
.balloon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.b-body { fill: var(--acc); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.b-shine { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 5; stroke-linecap: round; }
.b-str { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.b-n { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font: 900 58px/1 var(--round); color: #fff;
  -webkit-text-stroke: 2.5px #2b2140; paint-order: stroke fill; pointer-events: none; }
.b-tap { position: absolute; left: -10px; right: -10px; bottom: -6px; text-align: center; font: 700 11px/1.2 var(--round); color: var(--mut); }
html:not(.rm) .balloon { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(2deg); } }
html:not(.rm) .balloon.inflate { animation: inflate .7s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes inflate { 0% { transform: scale(.55); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.go { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; padding: 12px 20px; border: 2.5px solid var(--ink);
  border-radius: var(--wob); background: var(--sun); color: #2b2140; font: 800 17px/1.1 var(--round); box-shadow: 4px 4px 0 var(--shadow); }
.go svg, .pager svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.go:active, .btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.fears-h { margin: 22px 0 10px; font: 800 18px/1.2 var(--round); }
.fears { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fears li { padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--wob); background: var(--bg); }
.fears b { display: block; font: 800 15px/1.25 var(--round); margin-bottom: 2px; }
.fears span { font-size: 14px; color: var(--mut); }
.fears .f1 { box-shadow: inset 6px 0 0 var(--sun); } .fears .f2 { box-shadow: inset 6px 0 0 var(--grass); } .fears .f3 { box-shadow: inset 6px 0 0 var(--sky); }

/* выбор: возраст-кружки, чипы имён */
.ages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.age { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%; background: var(--chip);
  font: 800 18px/1 var(--round); transition: transform .15s; }
.age[aria-checked="true"] { background: var(--acc); color: #fff; transform: scale(1.08) rotate(-4deg); box-shadow: 3px 3px 0 var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 2px solid var(--ink); background: var(--chip); border-radius: 99px; padding: 6px 13px; font: 700 15px/1.2 var(--round); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--sky); color: #102030; box-shadow: 2px 2px 0 var(--shadow); }
.cast { margin-top: 18px; padding: 14px; border: 2px dashed var(--ink); border-radius: var(--wob); background: var(--bg); }
.cast-k { margin: 0 0 10px; font: 800 13px/1.2 var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.cast-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stk { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 16px;
  background: var(--paper); border: 2px solid var(--ink); transform: rotate(-2deg); }
.stk:nth-child(even) { transform: rotate(2deg); }
.stk b { font: 900 26px/1.1 var(--round); }
.stk.m-big b { font-size: 40px; color: var(--acc); }
.stk span { font-size: 12px; color: var(--mut); }

/* тема: зверушки, цвета */
.animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; }
.animal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border: 2px solid var(--ink);
  border-radius: var(--wob); background: var(--chip); color: var(--ink); font: 700 13px/1.2 var(--round); transition: transform .15s; }
.animal img, .animal .ico { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #2a2550; }
.animal span { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.animal[aria-checked="true"] { outline: 4px solid var(--sun); outline-offset: 1px; transform: rotate(-2deg) scale(1.03); }
.ico { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); transform: scale(1.06); }

/* пакетик */
.bag { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gift { border: 2px solid var(--line); border-radius: var(--wob); padding: 10px; background: var(--bg); transition: border-color .2s, opacity .2s; }
.gift.on { border-color: var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--shadow); }
.gift:not(.on) .gthumb, .gift:not(.on) .g-t { opacity: .55; }
.gift.shown { box-shadow: 3px 3px 0 var(--shadow), inset 0 0 0 3px var(--sky); }
.g-head { display: flex; align-items: center; gap: 10px; }
.g-cb { position: relative; flex: none; width: 30px; height: 30px; }
.g-cb input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.g-cb i { position: absolute; inset: 0; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--chip); pointer-events: none; }
.g-cb input:checked + i { background: var(--grass); }
.g-cb input:checked + i::after { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 14px; border: solid #10301c; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.g-cb input:focus-visible + i { outline: 3px solid var(--sky); outline-offset: 2px; }
.gthumb { flex: none; width: 54px; height: 54px; border-radius: 14px; background: #2a2550; display: grid; place-items: center; overflow: hidden; color: var(--c); }
.gthumb img { width: 100%; height: 100%; object-fit: contain; }
.gthumb .ico { width: 70%; height: 70%; stroke: var(--c); }
.g-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-t b { font: 800 16px/1.2 var(--round); overflow-wrap: anywhere; }
.g-ins { font: 800 15px/1.3 var(--round); color: var(--acc); overflow-wrap: anywhere; }
.g-3d { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); background: var(--chip); display: grid; place-items: center; }
.ico3d { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.seg button { border: 0; border-radius: 9px; background: none; padding: 7px 2px; font: 700 13px/1.15 var(--round); min-width: 0; overflow-wrap: anywhere; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.g-note { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--mut); }
.honest { margin-top: 16px; padding: 14px; border-radius: var(--wob); background: color-mix(in srgb, var(--grass) 18%, var(--paper)); border: 2px solid var(--ink); }
.honest h3 { margin: 0 0 4px; font: 800 16px/1.2 var(--round); }
.honest p { margin: 0; font-size: 14px; }
.rule { margin: 10px 0 0; color: var(--bad); font-weight: 700; }

/* гости */
.kids { display: flex; flex-wrap: wrap; gap: 3px; min-height: 30px; margin: 4px 0 6px; color: var(--c); position: relative; }
.kids::after { content: attr(data-more); align-self: center; font: 800 14px/1 var(--round); color: var(--mut); margin-left: 4px; }
.kb { width: 26px; height: 26px; }
.kb .bg { fill: var(--c); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.kb .hd { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.kb .dt { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
html:not(.rm) .page.cur .kb { animation: dropin .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes dropin { from { transform: translateY(-16px) scale(.4); opacity: 0; } }
.row-g { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-g .lbl { margin: 10px 0; }
.stepper { display: flex; align-items: center; border: 2.5px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--chip); }
.stepper button { width: 46px; height: 44px; border: 0; background: none; font: 800 22px/1 var(--round); }
.stepper input { width: 64px; height: 44px; border: 0; border-left: 2px solid var(--line); border-right: 2px solid var(--line); text-align: center;
  font: 800 20px/1 var(--round); background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quick { margin-top: 2px; }
.date { width: 100%; max-width: 280px; height: 46px; padding: 0 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--chip); font: 700 16px/1 var(--round); }
.sum-card { margin: 18px 0 14px; padding: 14px; border: 2.5px solid var(--ink); border-radius: var(--wob); background: var(--bg); box-shadow: 4px 4px 0 var(--shadow); }
.sum-card h3 { margin: 0 0 10px; font: 900 22px/1.15 var(--round); }
.sum-bag { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sum-bag li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); font: 700 13px/1.2 var(--round); }
.sum-bag .gthumb { width: 30px; height: 30px; border-radius: 50%; }
.sum-bag b { color: var(--acc); }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.sum dt { color: var(--mut); }
.sum dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 15px; cursor: pointer; }
.confirm input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--acc); }
.confirm span { overflow-wrap: anywhere; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 15px 22px; border: 2.5px solid var(--ink);
  border-radius: var(--wob); background: var(--acc); color: #fff; font: 900 19px/1.1 var(--round); box-shadow: 4px 4px 0 var(--shadow); }
.btn.ghost { background: var(--chip); color: var(--ink); font-size: 16px; }
.kp-st { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.kp-st[data-k="bad"] { color: var(--bad); font-weight: 700; }
.tested { margin: 14px 0 0; font-size: 12px; color: var(--mut); }

/* листалка */
.pager { display: flex; align-items: center; gap: 8px; }
.pager button { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 2.5px solid var(--ink); border-radius: 99px;
  background: var(--chip); font: 800 15px/1 var(--round); }
.pg-next { background: var(--sun) !important; color: #2b2140; }
.pager.last .pg-next { visibility: hidden; }
.dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); transition: background .2s, transform .2s; }
.dots i.on { background: var(--acc); transform: scale(1.25); }

/* протокол — лист */
.sheet { border: 2.5px solid var(--ink); border-radius: 24px 24px 0 0; padding: 10px 18px 22px; background: var(--paper); color: var(--ink);
  width: 100%; max-width: 560px; max-height: 86svh; overflow: auto; }
.sheet::backdrop { background: rgba(15, 12, 30, .5); }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { margin: 0 0 4px; font: 900 22px/1.2 var(--round); }
.sheet h3 { margin: 14px 0 6px; font: 800 16px/1.2 var(--round); }
.proto { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.proto dt { color: var(--mut); }
.proto dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.adv { margin: 0; padding-left: 20px; font-size: 14px; }
.rule-box { margin-top: 12px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--bad); color: var(--bad); }
.rule-box h3 { margin: 0 0 4px; }
.rule-box ul { margin: 0; padding-left: 18px; }
.p-wait { grid-column: 1 / -1; margin: 0; color: var(--mut); }
.sheet .btn { margin-top: 16px; }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; display: none; }
.confetti.on { display: block; }
.stage[data-k="bad"] .poster:not(.gone) { filter: grayscale(1); opacity: .35; }
