@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(../fonts/Unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(../fonts/Unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400 900; font-display: swap; src: url(../fonts/Nunito-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400 900; font-display: swap; src: url(../fonts/Nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFC93C; --deep: #E8A800; --ink: #1C1A17; --cta: #1C1A17; --cta-ink: #FFC93C; --pop: #E8442E; --paper: #FFF6E0;
  --dark: #1B1B1F;
  --f-d: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-t: "Nunito", system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); transition: background .35s; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 800 18px/1.35 var(--f-t); -webkit-font-smoothing: antialiased; transition: background .35s, color .35s;
  overscroll-behavior: none;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .13; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
svg { display: block; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 900; }

.screen {
  max-width: 540px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 14px) 20px calc(var(--safe-b) + 16px);
}
.kicker { font: 900 12.5px/1.2 var(--f-t); text-transform: uppercase; letter-spacing: .09em; opacity: .78; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 26px;
  border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: 900 20px/1.1 var(--f-t);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3); transition: transform .08s, box-shadow .08s, opacity .2s; text-align: center;
}
.btn:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.btn[disabled] { opacity: .45; box-shadow: none; }
.btn .ic { width: 24px; height: 24px; }
.btn-sec { background: var(--deep); color: var(--ink); }
.btn-big { min-height: 72px; font-size: 22px; width: 100%; }
.btn-wide { width: 100%; }
.btn-small { min-height: 48px; font-size: 17px; padding: 0 20px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.grow { flex: 1; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--ink); flex: none;
  transition: transform .1s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn.big { width: 62px; height: 62px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.icon-btn.big .ic { width: 28px; height: 28px; }
.icon-btn.back { margin: 0 0 8px -4px; background: transparent; }
.icon-btn.back .ic { width: 28px; height: 28px; }
.link-btn { font: 900 16px var(--f-t); text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; opacity: .9; }

.actions { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.actions.row { flex-direction: row; align-items: center; }
.actions.sticky { position: sticky; bottom: 0; padding-bottom: calc(var(--safe-b) + 14px); margin-bottom: calc(-1 * var(--safe-b) - 16px); background: linear-gradient(to bottom, transparent, var(--bg) 26%); z-index: 3; }
.actions.sticky .btn { width: 100%; }

/* ——— главная ——— */
.home { padding-bottom: 40px; }
.h-hero { padding-top: 10px; }
.h-title { font-family: var(--f-d); font-weight: 900; text-transform: uppercase; line-height: .92; margin: 14px 0 0; letter-spacing: -.01em; }
.h-title span { display: block; white-space: nowrap; }
.h-title span:nth-child(1) { font-size: min(10.4vw, 54px); }
.h-title span:nth-child(2) { font-size: min(23.5vw, 124px); line-height: .9; color: var(--pop); }
.h-title span:nth-child(3) { font-size: min(8.4vw, 44px); }
.h-art { display: flex; justify-content: center; margin: 22px -20px 0; padding: 0 6px 22px; overflow: hidden; }
.h-face { width: 29%; flex: none; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 -3.5%; box-shadow: 0 0 0 5px var(--bg); }
.h-face svg { width: 100%; height: 100%; transform: scale(1.18) translateY(6%); }
.h-face:nth-child(even) { translate: 0 18px; }
.h-face:nth-child(1), .h-face:nth-child(5) { z-index: 1; } .h-face:nth-child(2), .h-face:nth-child(4) { z-index: 2; } .h-face:nth-child(3) { z-index: 3; }
.h-lead { font-size: 20px; line-height: 1.3; margin-top: 18px; max-width: 30ch; }
.h-sub { font: 900 22px/1.1 var(--f-d); margin: 40px 0 16px; }
.h-resume { margin-top: 28px; background: var(--q); color: var(--qi); border-radius: 28px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.h-resume-art { width: 92px; flex: none; }
.h-resume-t { font: 900 19px/1.2 var(--f-t); margin: 4px 0 12px; }
.h-resume .btn { background: var(--qi); color: var(--q); }

.posters { display: flex; flex-direction: column; gap: 16px; }
.poster {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; overflow: hidden; border-radius: 30px; min-height: 280px;
  background: var(--pbg); color: var(--pink); padding: 22px 20px 20px; transition: transform .12s;
}
.poster:active { transform: scale(.98); }
.p-num { position: absolute; right: 14px; top: 6px; font: 900 64px/1 var(--f-d); color: var(--pdeep); opacity: .9; }
.p-art { position: absolute; right: -36px; bottom: -34px; width: 230px; }
.p-title { position: relative; display: block; font: 900 min(7.6vw, 32px)/1 var(--f-d); text-transform: uppercase; max-width: 82%; }
.p-tag { position: relative; display: block; margin: 12px 0 18px; font-size: 17px; line-height: 1.25; max-width: 14ch; }
.p-meta { position: relative; margin-top: auto; font: 900 13px var(--f-t); background: var(--pcta); color: var(--pbg); padding: 7px 12px; border-radius: 999px; }
.poster[data-q="detective"] .p-meta, .poster[data-q="agent"] .p-meta { color: #1B1404; }
.poster[data-q="domovoi"] .p-meta { color: #FFF3DE; }
.poster[data-q="space"] .p-meta { color: #1A0E3D; }
.poster[data-q="treasure"] .p-meta { color: #3A2306; }

.how ol { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; gap: 18px; }
.how li { counter-increment: s; position: relative; padding-left: 56px; font-size: 18px; line-height: 1.35; }
.how li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 900 18px var(--f-d); }
.how b { display: block; font-size: 19px; }

/* ——— экран квеста ——— */
.q-art { margin: -8px auto 6px; width: min(78vw, 340px); }
.q-title { font: 900 min(10vw, 46px)/1 var(--f-d); text-transform: uppercase; margin: 10px 0 12px; }
.q-lead { font-size: 20px; line-height: 1.3; }
.q-meta { margin-top: 12px; font-size: 15px; opacity: .85; }
.q-sub { font: 900 19px var(--f-d); margin: 30px 0 14px; }
.q-skills { list-style: none; padding: 0; margin: 0; counter-reset: k; display: grid; gap: 12px; }
.q-skills li { counter-increment: k; display: flex; align-items: center; gap: 14px; font-size: 19px; }
.q-skills li::before { content: counter(k); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: grid; place-items: center; font: 900 16px var(--f-d); }
.q-note { margin: 24px 0 8px; font-size: 17px; opacity: .9; }

/* ——— подготовка ——— */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stepper i { width: 34px; height: 8px; border-radius: 4px; background: var(--deep); }
.stepper i.on { background: var(--cta); }
.stepper span { margin-left: 8px; font-size: 14px; opacity: .8; }
.s-title { font: 900 min(8.4vw, 36px)/1.05 var(--f-d); margin-bottom: 14px; }
.s-lead { font-size: 18px; line-height: 1.3; margin-bottom: 18px; opacity: .95; }
.s-sub { font: 900 18px var(--f-d); margin: 26px 0 12px; }
.field { display: block; margin: 10px 0 22px; }
.field span, .field-label { display: block; font-size: 15px; margin-bottom: 8px; opacity: .85; }
.field input {
  width: 100%; font: 900 24px var(--f-t); padding: 18px 20px; border-radius: 20px; border: 0; outline: 0;
  background: var(--paper); color: var(--dark);
}
.field input:focus { box-shadow: 0 0 0 4px var(--cta); }
.ages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.age { aspect-ratio: 1; border-radius: 16px; background: var(--deep); font: 900 19px var(--f-d); }
.age.on { background: var(--cta); color: var(--cta-ink); transform: scale(1.06); }
.hint-line { margin-top: 14px; font-size: 16px; opacity: .85; min-height: 3em; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place {
  position: relative; min-height: 96px; border-radius: 22px; background: var(--deep); color: var(--ink); padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; --ic2: var(--deep);
  transition: transform .1s, background .15s;
}
.place:active { transform: scale(.97); }
.place .pl-ic { width: 42px; height: 42px; opacity: .55; }
.place .pl-n { font: 900 17px/1.15 var(--f-t); opacity: .8; }
.place .pl-tick { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: none; place-items: center; }
.place .pl-tick .ic { width: 18px; height: 18px; }
.place.on { background: var(--paper); color: var(--dark); --ic2: var(--paper); }
.place.on .pl-ic, .place.on .pl-n { opacity: 1; }
.place.on .pl-tick { display: grid; }
.tip { margin-top: 18px; font-size: 17px; line-height: 1.35; }
.ready .r-step { display: flex; gap: 14px; margin: 8px 0 22px; }
.r-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: grid; place-items: center; font: 900 17px var(--f-d); }
.r-h { font: 900 19px/1.2 var(--f-t); margin-bottom: 6px; }
.r-step p { font-size: 17px; }
.r-step .ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.route span { background: var(--deep); padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.route span:last-child { background: var(--paper); color: var(--dark); }
.route i { font-style: normal; opacity: .7; }

/* ——— режим ребёнка ——— */
body[data-mode="child"] { overflow: hidden; }
body[data-mode="child"] .screen { height: 100dvh; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; margin-bottom: 8px; }
.tb-r { display: flex; gap: 8px; }
.tb-r .icon-btn { width: 40px; height: 40px; }
.tb-r .icon-btn .ic { width: 19px; height: 19px; }
.lock { position: relative; opacity: .75; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lock .ring { position: absolute; inset: -4px; width: 48px; height: 48px; transform: rotate(-90deg); pointer-events: none; }
.lock .ring circle { fill: none; stroke: var(--cta); stroke-width: 4; stroke-dasharray: 107; stroke-dashoffset: 107; stroke-linecap: round; }
.lock.hold .ring circle { transition: stroke-dashoffset 1.2s linear; stroke-dashoffset: 0; }

.inv { display: flex; gap: 5px; }
.inv-s { width: 36px; height: 42px; border-radius: 10px; background: var(--deep); display: grid; place-items: center; font: 900 15px var(--f-d); color: var(--ink); opacity: .9; overflow: hidden; }
.inv-s:not(.on) { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.inv-s.on { background: var(--paper); color: var(--dark); }
.inv-s.fresh { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) .2s both; }
.inv-map { gap: 0; }
.inv-map .inv-s { border-radius: 0; width: 38px; height: 38px; }
.inv-map .inv-s:first-child { border-radius: 10px 0 0 10px; }
.inv-map .inv-s:last-child { border-radius: 0 10px 10px 0; }
.inv-map .inv-s svg { width: 100%; height: 100%; }
.inv-systems .inv-s, .inv-clues .inv-s { width: 38px; height: 38px; border-radius: 50%; }
.inv-systems .inv-s .rv-ic, .inv-clues .inv-s .rv-ic { width: 22px; height: 22px; opacity: .4; }
.inv-systems .inv-s.on, .inv-clues .inv-s.on { background: var(--pop); color: var(--deep); }
.inv-systems .inv-s.on .rv-ic, .inv-clues .inv-s.on .rv-ic { opacity: 1; }
.inv-syllables .inv-s { width: auto; min-width: 34px; padding: 0 6px; font-size: 12px; }
.rv-ic, .rv-ic svg { display: block; width: 100%; height: 100%; }
.rv-digit, .rv-syl { font-family: var(--f-d); font-weight: 900; }

.intro { text-align: center; justify-content: center; }
.in-art { width: min(80vw, 330px); margin: 0 auto 10px; animation: bob 3.2s ease-in-out infinite; }
.in-title { font: 900 min(10vw, 46px)/1.02 var(--f-d); margin: 12px 0 14px; text-transform: uppercase; overflow-wrap: anywhere; }
.in-lead { font-size: 21px; max-width: 22ch; margin: 0 auto; }
.intro .actions { margin-top: 30px; }

.story .st-art { position: relative; flex: 1 1 auto; min-height: 120px; display: grid; place-items: center; }
.story .st-art > svg { height: 100%; max-height: 360px; width: auto; max-width: 92%; animation: bob 3.4s ease-in-out infinite; }
.st-place { position: absolute; left: 0; bottom: 8px; width: 74px; height: 74px; border-radius: 50%; background: var(--paper); color: var(--dark); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.st-place .ic { width: 46px; height: 46px; }
.st-body { padding-top: 10px; }
.st-text { font: 900 clamp(21px, 5.9vw, 27px)/1.26 var(--f-t); margin-top: 8px; text-wrap: pretty; }

.t-head { margin-bottom: 10px; }
.t-title { font: 900 min(7.4vw, 30px)/1.05 var(--f-d); margin: 6px 0 6px; }
.t-text { font-size: 18px; line-height: 1.28; opacity: .95; }
.t-game { flex: 1 0 auto; display: flex; flex-direction: column; }
.hint-btn.pulse { animation: pulse 1.2s ease-in-out infinite; background: var(--paper); color: var(--dark); }

.pre-body, .rd-body, .wh-body, .rw-body, .fn-body { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.pre-art { flex: 1 0 auto; display: grid; place-items: center; padding: 4px 0; }
.pre-art > svg { height: 100%; max-height: 220px; width: auto; max-width: 64%; }
.pre-place { width: min(38vw, 19vh, 160px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--dark); --ic2: var(--paper); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.pre-place .ic { width: 62%; height: 62%; }
.pre .pre-body { flex: 0 0 auto; }
.pre-q { font: 900 clamp(22px, 6vw, 28px)/1.22 var(--f-t); margin: 10px 0 18px; }
.opts-col { display: flex; flex-direction: column; gap: 10px; }
.reply { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.reply-ava { width: 66px; height: 66px; flex: none; border-radius: 50%; overflow: hidden; background: var(--deep); }
.reply-ava svg { width: 100%; height: 100%; transform: scale(1.5) translateY(14%); }
.reply p { font-size: 19px; line-height: 1.3; }

.rd-art { flex: 1 1 auto; min-height: 90px; display: grid; place-items: center; }
.rd-art > svg { height: 100%; max-height: 260px; width: auto; max-width: 70%; animation: bob 3.4s ease-in-out infinite; }
.riddle .rd-body { flex: 0 0 auto; padding-top: 6px; }
.rd-intro { font-size: 20px; line-height: 1.3; margin: 8px 0 12px; opacity: .9; }
.rd-text { font: 900 clamp(24px, 6.8vw, 32px)/1.24 var(--f-t); text-wrap: pretty; }
.final .rd-text { color: var(--cta); }
.riddle .btn-sec { width: 62px; height: 62px; padding: 0; min-height: 0; border-radius: 50%; }

.wh-body .t-title { margin: 6px 0 18px; }
.place-grid.kid .place { min-height: 128px; background: var(--paper); color: var(--dark); --ic2: var(--paper); }
.place-grid.kid .pl-ic { width: 56px; height: 56px; opacity: 1; }
.place-grid.kid .pl-n { opacity: 1; font-size: 18px; }
.place.no { opacity: .3; background: var(--deep) !important; color: var(--ink) !important; }

.rw-body { align-items: center; text-align: center; }
.rw-item { width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 22px; animation: rewardIn .8s cubic-bezier(.2, 1.5, .4, 1) both; }
.rw-digits { background: var(--paper); color: var(--dark); border-radius: 36px; font-size: 130px; transform: rotate(-4deg); }
.rw-map { border-radius: 26px; overflow: hidden; transform: rotate(4deg); }
.rw-map svg { width: 100%; height: 100%; }
.rw-systems, .rw-clues { background: var(--pop); color: var(--deep); border-radius: 50%; padding: 40px; }
.rw-syllables { background: var(--paper); color: var(--dark); border-radius: 36px; font-size: 64px; width: auto; min-width: 190px; padding: 0 26px; transform: rotate(-4deg); }
.rw-title { font: 900 min(9vw, 38px)/1.05 var(--f-d); }
.rw-text { font-size: 20px; margin-top: 10px; max-width: 24ch; }

/* финал */
.fx { flex: 1 1 auto; min-height: 150px; display: grid; place-items: center; position: relative; }
.fx svg { max-height: 100%; }
.fx-safe { perspective: 800px; }
.fx-safe .safe-in { width: min(62vw, 250px); }
.fx-safe .safe-door {
  position: absolute; width: min(66vw, 270px); aspect-ratio: 1; border-radius: 28px; background: var(--dark); z-index: 2;
  display: grid; place-items: center; transform-origin: left center; animation: door 1.4s cubic-bezier(.5, 0, .3, 1) .6s both;
}
.safe-door i { width: 44%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--cta); }
.safe-door b { position: absolute; bottom: 14%; font: 900 22px var(--f-d); color: var(--cta); letter-spacing: .15em; }
.fx-map > svg { width: min(70vw, 280px); height: auto; border-radius: 22px; animation: mapIn 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.fx-launch .rocket { height: 100%; max-height: 300px; display: grid; place-items: center; animation: launch 2.4s cubic-bezier(.6, 0, .4, 1) .3s both; }
.fx-launch .rocket svg { height: 100%; width: auto; }
.fx-reveal > svg { width: min(56vw, 220px); animation: peek 1s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
.fx-magic > svg { width: min(62vw, 250px); animation: magic 1.6s ease-in-out both; }
.fn-body { flex: 0 0 auto; text-align: center; padding-top: 6px; }
.fn-title { font: 900 min(9vw, 38px)/1.05 var(--f-d); text-transform: uppercase; }
.fn-text { font-size: 19px; line-height: 1.3; margin-top: 10px; }
.fn-say { font: 900 min(8vw, 34px)/1.12 var(--f-d); margin-top: 8px; }

.done { text-align: center; justify-content: center; position: relative; }
.dn-art { width: min(52vw, 210px); margin: 0 auto 8px; }
.dn-name { font: 900 min(14vw, 64px)/1 var(--f-d); text-transform: uppercase; margin: 10px 0 14px; overflow-wrap: anywhere; color: var(--cta); }
.dn-badge { display: inline-block; align-self: center; font: 900 21px/1.2 var(--f-t); background: var(--paper); color: var(--dark); padding: 12px 20px; border-radius: 16px; transform: rotate(-2deg); max-width: 18ch; }
.dn-date { margin-top: 16px; font-size: 15px; opacity: .8; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 12px; height: 18px; border-radius: 3px; background: var(--c); animation: fall 3.6s linear var(--d) infinite; }

/* штамп */
.stamp {
  position: fixed; left: 50%; top: 44%; z-index: 50; pointer-events: none; font: 900 min(8vw, 38px)/1 var(--f-d); text-transform: uppercase;
  padding: 16px 26px 18px; border-radius: 18px; white-space: nowrap; animation: stampIn 1.1s cubic-bezier(.2, 1.4, .4, 1) both;
}
.stamp.good { background: var(--cta); color: var(--cta-ink); }
.stamp.bad { background: var(--paper); color: var(--dark); animation-duration: .9s; }

/* подсказка */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 8, 14, .5); opacity: 0; transition: opacity .25s; }
.sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 540px; margin: 0 auto; background: var(--paper); color: var(--dark);
  border-radius: 30px 30px 0 0; padding: 22px 20px calc(var(--safe-b) + 18px); transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .9, .3, 1);
}
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .say { margin-left: auto; }
.sheet .actions.row .btn { padding: 0 14px; }
.sheet-ava { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--bg); flex: none; }
.sheet-ava svg { width: 100%; height: 100%; transform: scale(1.5) translateY(14%); }
.sheet-place { width: 90px; height: 90px; margin: 14px auto 0; color: var(--dark); --ic2: var(--paper); }
.sheet-text { font: 900 23px/1.28 var(--f-t); margin: 16px 0 6px; }
.sheet .icon-btn.big { background: var(--bg); color: var(--ink); }
.sheet .btn-sec { background: var(--bg); color: var(--ink); }

/* взрослым */
.adult { position: fixed; inset: 0; z-index: 60; background: rgba(12, 12, 16, .985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: auto; padding: calc(var(--safe-t) + 20px) 18px 30px; color: #FFF6E0; }
.ad-card { max-width: 480px; margin: 0 auto; }
.ad-title { font: 900 22px/1.15 var(--f-d); margin: 8px 0 16px; }
.ad-line { font-size: 17px; margin-bottom: 6px; }
.ad-route { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; font-size: 14px; }
.ad-route span { padding: 5px 10px; border-radius: 999px; background: #2A2A31; }
.ad-route span.past { opacity: .5; }
.ad-route span.now { background: #FFC93C; color: #1C1A17; opacity: 1; }
.ad-route i { font-style: normal; opacity: .5; }
.ad-answer { background: #FFC93C; color: #1C1A17; border-radius: 18px; padding: 14px 16px; font: 900 19px/1.3 var(--f-t); margin: 6px 0 14px; }
.ad-btns { display: grid; gap: 10px; }
.adult .btn { background: #FFC93C; color: #1C1A17; min-height: 54px; font-size: 18px; }
.adult .btn-sec { background: #2A2A31; color: #FFF6E0; }
.ad-close { display: block; margin: 16px auto 0; color: #FFF6E0; }

/* ——— игры ——— */
.g { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.g-q { font: 900 18px/1.25 var(--f-t); text-align: center; opacity: .95; }
.g-q-big { font-size: clamp(20px, 5.6vw, 24px); }
.opts { display: grid; gap: 12px; width: 100%; }
.opts-n2 { grid-template-columns: 1fr 1fr; }
.opts-n3 { grid-template-columns: repeat(3, 1fr); }
.opts-n4 { grid-template-columns: 1fr 1fr; }
.opts-pics { grid-template-columns: 1fr 1fr; }
.opts-pics:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr 1fr; }
.opt {
  min-height: 74px; border-radius: 22px; background: var(--paper); color: var(--dark); font: 900 22px/1.15 var(--f-t);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28); transition: transform .08s, background .2s, opacity .2s; padding: 10px;
}
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.opt-num { font: 900 30px/1 var(--f-d); }
.opt-wide { min-height: 64px; font-size: 21px; }
.opt-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; }
.opt-e { font-size: 50px; line-height: 1; }
.opt-t { font: 900 17px/1.1 var(--f-t); }
.opt.yes { background: var(--cta); color: var(--cta-ink); transform: scale(1.04); }
.opt.no { opacity: .3; background: var(--deep); color: var(--ink); box-shadow: none; text-decoration: line-through; }

.m-pics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: 100%; }
.m-group { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 170px; background: var(--deep); padding: 10px; border-radius: 20px; }
.m-count { background: var(--deep); padding: 14px; border-radius: 24px; max-width: 280px; gap: 12px; }
.m-ic { width: 40px; height: 40px; position: relative; }
.m-count .m-ic { width: 52px; height: 52px; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) calc(var(--d) * 80ms) both; }
.m-ic svg { width: 100%; height: 100%; }
.m-gone { opacity: .35; }
.m-gone::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 5px; background: var(--ink); transform: rotate(-35deg); border-radius: 3px; }
.m-op { font: 900 34px var(--f-d); }
.m-expr { font: 900 min(13vw, 54px)/1 var(--f-d); white-space: nowrap; }
.m-q { display: inline-block; color: var(--cta); }

.c-msg { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.c-cell { width: 52px; height: 84px; border-radius: 16px; background: var(--paper); color: var(--dark); opacity: .9; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; transition: background .2s; }
.c-msg:has(> :nth-child(5)) .c-cell { width: 48px; }
.c-sym { width: 34px; height: 34px; }
.c-sym svg { width: 100%; height: 100%; }
.c-let { font: 900 24px/1 var(--f-d); height: 26px; }
.c-cell.on { opacity: 1; box-shadow: 0 0 0 5px var(--cta); animation: pulse 1.1s ease-in-out infinite; }
.c-cell.ok { opacity: 1; background: var(--cta); color: var(--cta-ink); }
.c-msg.solved .c-cell { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.c-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.c-key { min-height: 78px; border-radius: 20px; background: var(--paper); color: var(--dark); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); }
.c-key:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.c-key b { font: 900 26px var(--f-d); }

.g-simon { gap: 12px; }
.s-status { font: 900 22px var(--f-d); padding: 8px 18px; border-radius: 999px; background: var(--deep); }
.s-status.go { background: var(--cta); color: var(--cta-ink); }
.s-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(78vw, 46vh, 330px); }
.s-pad { aspect-ratio: 1; border-radius: 30px; background: var(--deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .12s, background .12s, box-shadow .12s; }
.s-pad svg { width: 54%; height: auto; }
.s-pad span { font: 900 15px var(--f-t); }
.s-pad.lit { background: var(--paper); color: var(--dark); transform: scale(1.06); box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 40%, transparent); }
.s-pad:disabled { cursor: default; }
.g-simon.s-house .s-pads { background: #0A0F24; padding: 18px; border-radius: 0 0 20px 20px; gap: 18px; }
.s-roof { width: min(78vw, 46vh, 330px); height: 46px; background: #0A0F24; clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-bottom: -12px; }
.g-simon.s-house .s-pad { background: transparent; border-radius: 8px; }
.g-simon.s-house .s-pad svg { width: 86%; }
.g-simon.s-house .s-pad.lit { background: transparent; box-shadow: 0 0 40px #FFD23F; }
.s-dots { display: flex; gap: 8px; }
.s-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--deep); }
.s-dots i.on { background: var(--cta); }
.s-replay { padding: 4px; }

.sc-box { position: relative; width: min(84vw, 50vh, 340px); aspect-ratio: 1; border-radius: 30px; overflow: hidden; background: var(--paper); color: var(--dark); }
.sc-reveal { position: absolute; inset: 0; display: grid; place-items: center; }
.sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity .6s; }
.sc-canvas.gone { opacity: 0; pointer-events: none; }
.sc-bar { width: min(60vw, 240px); height: 10px; border-radius: 5px; background: var(--deep); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; background: var(--cta); transition: width .2s; }
.r-note { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.r-note span { font-size: 18px; color: #2E5AA8; }
.r-note b { font: 900 140px/1 var(--f-d); color: #2E5AA8; }
.r-map { width: 70%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.r-map svg { width: 100%; border-radius: 16px; }
.r-map span, .r-ic span, .r-syl span { font-size: 18px; text-align: center; }
.r-ic { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; }
.r-ic svg { width: 150px; height: 150px; }
.r-crystal svg { filter: drop-shadow(0 0 18px #5CF0C0); }
.r-ic span { color: var(--dark); }
.r-syl { display: flex; flex-direction: column; align-items: center; }
.r-syl b { font: 900 110px/1 var(--f-d); color: #C94A1C; }

.g-flash { align-items: stretch; }
.fl-area { position: relative; flex: 1 1 auto; min-height: 280px; border-radius: 28px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #2B3266; }
.fl-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl-it { position: absolute; width: max(52px, 15%); aspect-ratio: 1; z-index: 1; pointer-events: none; }
.fl-it svg { width: 100%; height: 100%; }
.fl-it.found { z-index: 4; filter: drop-shadow(0 0 10px #FFD23F) drop-shadow(0 0 2px #FFD23F); }
.fl-dark {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; --x: 50%; --y: 50%; --r: 90px;
  background: radial-gradient(circle var(--r) at var(--x) var(--y), rgba(255, 220, 120, .16) 0, rgba(3, 5, 16, 0) 45%, #03050F 100%);
  transition: opacity .6s;
}
.fl-dark.on { opacity: .15; }
.fl-count { position: absolute; z-index: 5; left: 12px; top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: 900 16px var(--f-t); }
.fl-count b { font-family: var(--f-d); }

.pz-grid { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; width: min(84vw, 48vh, 340px); aspect-ratio: 1; transition: gap .4s; }
.pz-t { border-radius: 8px; overflow: hidden; transition: transform .15s, box-shadow .15s, border-radius .4s; }
.pz-t svg { width: 100%; height: 100%; }
.pz-t.sel { transform: scale(.88) rotate(-3deg); box-shadow: 0 0 0 5px var(--cta); }
.pz-grid.solved { gap: 0; }
.pz-grid.solved .pz-t { border-radius: 0; }
.pz-peek { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .2s; border-radius: 8px; overflow: hidden; }
.pz-peek svg { width: 100%; height: 100%; }
.pz-grid.peek .pz-peek { opacity: 1; }

.pp-grid { display: grid; grid-template-columns: 44px repeat(var(--cols), 1fr) 44px; gap: 6px; width: min(94vw, 50vh, 400px); align-items: center; }
.pp-cell { aspect-ratio: 1; border-radius: 14px; }
.pp-tile { background: var(--deep); }
.pp-tile svg { width: 100%; height: 100%; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.pp-tile path { fill: none; stroke: var(--paper); stroke-width: 24; stroke-linecap: round; }
.pp-tile:active { transform: scale(.94); }
.pp-empty { display: grid; place-items: center; }
.pp-empty i { width: 8px; height: 8px; border-radius: 50%; background: var(--deep); }
.pp-side { display: grid; place-items: center; }
.pp-bat, .pp-eng { width: 44px; height: 44px; color: var(--pop); --ic2: var(--bg); }
.pp-bat svg, .pp-eng svg { width: 100%; height: 100%; }
.pp-eng { color: var(--paper); }
.pp-grid.powered .pp-tile path { stroke: var(--pop); stroke-dasharray: 14 10; animation: flow .6s linear infinite; }
.pp-grid.powered .pp-eng { color: var(--cta); animation: pop .5s ease both; }

.or-row { display: flex; gap: 6px; justify-content: center; min-height: 54px; flex-wrap: wrap; }
.or-slot { width: 46px; height: 46px; border-radius: 12px; background: var(--deep); display: grid; place-items: center; font-style: normal; }
.or-slot svg { width: 38px; height: 38px; }
.or-slot b { font: 900 16px var(--f-d); }
.or-slot span { width: 34px !important; height: 34px !important; }
.or-slot.on { background: var(--paper); color: var(--dark); }
.or-items { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; align-items: center; max-width: 360px; }
.or-it { position: relative; transform: translate(var(--jx), var(--jy)); transition: opacity .25s, transform .25s; }
.or-it.done { opacity: .18; transform: translate(var(--jx), var(--jy)) scale(.85); pointer-events: none; }
.or-buoy .or-it { width: 82px; animation: bob 2.6s ease-in-out calc(var(--d) * .3s) infinite; }
.or-buoy .or-it.done { animation: none; }
.or-buoy .or-it svg { width: 100%; }
.or-buoy .or-it b { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font: 900 24px var(--f-d); color: #1C1A17; }
.or-buoy .or-slot { position: relative; }
.or-buoy .or-slot b { position: absolute; inset: 0; display: grid; place-items: center; color: #1C1A17; font-size: 14px; padding-bottom: 6px; }
.or-planet .or-it span { display: block; }
.or-planet .or-it svg { width: 100%; height: 100%; }
.or-syllable .or-it { background: var(--paper); color: var(--dark); border-radius: 20px; padding: 16px 20px; min-width: 96px; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); }
.or-syllable .or-it b { font: 900 28px var(--f-d); }
.or-syllable .or-slot { width: auto; min-width: 46px; padding: 0 8px; }
.or-syllable .or-slot b { font-size: 14px; }

.pt-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pt-lamp { width: 54px; height: 54px; border-radius: 50%; background: var(--deep); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) calc(var(--d) * 90ms) both; }
.pt-lamp svg { width: 70%; height: 70%; }
.pt-lamp b { font: 900 19px var(--f-d); }
.pt-q { background: var(--paper); color: var(--dark); animation: pulse 1.2s ease-in-out infinite; }
.pt-q.lit { animation: none; background: var(--deep); box-shadow: 0 0 0 4px var(--cta); color: var(--ink); }
.pt-opt svg { width: 50px; height: 50px; margin: 0 auto; }

.cd-safe { background: var(--dark); border-radius: 26px; padding: 18px 14px; width: 100%; max-width: 360px; transition: transform .4s; }
.cd-safe.open { transform: scale(1.04); box-shadow: 0 0 0 6px var(--cta); }
.cd-slots { display: flex; gap: 8px; justify-content: center; }
.cd-slots span { width: 52px; height: 64px; border-radius: 14px; background: #2E2E35; color: var(--cta); display: grid; place-items: center; font: 900 30px var(--f-d); }
.cd-slots span.on { background: var(--paper); box-shadow: 0 0 0 4px var(--cta); animation: pulse 1.1s ease-in-out infinite; }
.cd-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 330px; }
.cd-k { min-height: 58px; border-radius: 18px; background: var(--paper); color: var(--dark); font: 900 26px var(--f-d); box-shadow: 0 5px 0 rgba(0, 0, 0, .28); }
.cd-k:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.cd-k:last-child { grid-column: 2; }

.ct-num { font: 900 22px var(--f-t); }
.ct-num b { font: 900 54px var(--f-d); vertical-align: -6px; color: var(--pop); }
.ct-btn { width: min(58vw, 34vh, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 0 rgba(0, 0, 0, .3); }
.ct-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.ct-btn span { width: 44%; }
.ct-btn span svg { width: 100%; height: auto; }
.ct-btn b { font: 900 30px var(--f-d); }
.ct-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ct-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--deep); }
.ct-dots i.on { background: var(--pop); }

.sus { display: grid; gap: 10px; width: 100%; }
.sus-n3 { grid-template-columns: repeat(3, 1fr); }
.sus-n4 { grid-template-columns: 1fr 1fr; }
.sus-b { background: var(--paper); color: var(--dark); border-radius: 24px; padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); transition: transform .1s, opacity .2s; }
.sus-b svg { width: 100%; max-width: 120px; height: auto; }
.sus-n4 .sus-b svg { max-width: 128px; }
.sus-b span { font: 900 15px/1.1 var(--f-t); }
.sus-b.yes { background: var(--cta); color: var(--cta-ink); transform: scale(1.05); }
.sus-b.no { opacity: .3; box-shadow: none; }

/* движение */
.shake { animation: shake .45s ease both; }
.popin { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes shake { 0%, 100% { translate: 0; } 20% { translate: -10px; } 40% { translate: 9px; } 60% { translate: -6px; } 80% { translate: 4px; } }
@keyframes pop { 0% { scale: .6; opacity: .3; } 100% { scale: 1; opacity: 1; } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes stampIn {
  0% { transform: translate(-50%, -50%) scale(2.6) rotate(-22deg); opacity: 0; }
  18% { transform: translate(-50%, -50%) scale(.94) rotate(-7deg); opacity: 1; }
  26% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
  78% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.1) rotate(-8deg); opacity: 0; }
}
@keyframes rewardIn { 0% { scale: 0; rotate: -30deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes door { 0% { transform: rotateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: rotateY(-100deg); opacity: 0; } }
@keyframes mapIn { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
@keyframes launch { 0% { transform: translateY(0); } 15% { transform: translateY(6px) rotate(-2deg); } 30% { transform: translateY(0) rotate(2deg); } 100% { transform: translateY(-14vh); } }
@keyframes peek { 0% { transform: translateY(60%) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes magic { 0% { transform: scale(.4) rotate(-180deg); opacity: 0; } 70% { transform: scale(1.08) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(540deg); } }
@keyframes flow { to { stroke-dashoffset: -24; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-height: 760px) {
  .st-text { font-size: clamp(22px, 6.2vw, 29px); }
}

.t-choice .t-text, .t-suspects .t-text { display: none; }

.opt-num .opt-t { font: inherit; }
.sheet .actions.row .btn { font-size: 17px; }
body[data-quest="domovoi"] .dn-name { color: var(--pop); }

@media (max-height: 680px) {
  .screen { padding-top: calc(var(--safe-t) + 8px); padding-bottom: calc(var(--safe-b) + 10px); }
  .topbar { min-height: 42px; margin-bottom: 4px; }
  .inv-s { width: 32px; height: 36px; font-size: 13px; }
  .inv-map .inv-s, .inv-systems .inv-s, .inv-clues .inv-s { width: 32px; height: 32px; }
  .tb-r .icon-btn { width: 36px; height: 36px; }
  .t-head { margin-bottom: 6px; }
  .t-title { font-size: min(6.4vw, 24px); margin: 4px 0; }
  .t-text { font-size: 16px; }
  .g { gap: 10px; }
  .btn { min-height: 54px; font-size: 18px; }
  .btn-big { min-height: 58px; font-size: 20px; }
  .icon-btn.big, .riddle .btn-sec { width: 54px; height: 54px; }
  .actions { padding-top: 12px; }
  .st-text { font-size: clamp(19px, 5.4vw, 23px); }
  .pre-q { font-size: clamp(19px, 5.4vw, 23px); margin: 6px 0 12px; }
  .opts-col { gap: 8px; }
  .opt { min-height: 60px; font-size: 20px; }
  .opt-wide { min-height: 52px; }
  .opt-pic { min-height: 96px; }
  .opt-e { font-size: 40px; }
  .opt-num { font-size: 26px; }
  .m-ic { width: 32px; height: 32px; }
  .m-count .m-ic { width: 42px; height: 42px; }
  .m-expr { font-size: min(11vw, 44px); }
  .c-cell { height: 70px; }
  .c-key { min-height: 62px; }
  .cd-safe { padding: 12px; }
  .cd-slots span { width: 44px; height: 52px; font-size: 24px; }
  .cd-pad { gap: 8px; }
  .cd-k { min-height: 46px; font-size: 22px; }
  .s-pads { width: min(70vw, 40vh, 300px); gap: 10px; }
  .s-status { font-size: 18px; padding: 6px 14px; }
  .place-grid.kid .place { min-height: 100px; }
  .place-grid.kid .pl-ic { width: 44px; height: 44px; }
  .sus-b svg { max-width: 90px; }
  .sus-n4 .sus-b svg { max-width: 96px; }
  .rd-text { font-size: clamp(20px, 5.8vw, 26px); }
  .rd-intro { font-size: 17px; margin: 4px 0 8px; }
  .rw-item { width: 150px; height: 150px; margin-bottom: 14px; }
  .rw-digits { font-size: 100px; }
  .ct-btn { width: min(48vw, 30vh, 200px); }
  .sc-box { width: min(80vw, 46vh, 320px); }
  .pz-grid { width: min(80vw, 44vh, 320px); }
}

.sc-box { container-type: inline-size; }
.r-syl b[style*="--len"] { font-size: min(100px, calc(118cqw / var(--len))); }
