:root {
  --bg: #FFF4E8; --paper: #FFFFFF; --ink: #3B2A4A; --muted: #85749A;
  --pink: #FF5E92; --pink-d: #E0447A; --pink-2: #FFD9E6;
  --mint: #2FBF97; --mint-d: #1E9C7A; --mint-2: #D3F5EA;
  --gold: #FFB52E; --gold-2: #FFF0C9; --plum: #7B5CD6; --plum-2: #ECE6FF;
  --red: #EE5050; --grid: #D7E6F4; --line: #EBDDCB; --r: 22px;
  --sh: 0 5px 0 rgba(59, 42, 74, .13); --sh2: 0 10px 30px rgba(59, 42, 74, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Nunito', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.4; -webkit-tap-highlight-color: transparent; min-height: 100vh;
  background-image: radial-gradient(circle at 10% 10%, #FFE6EF 0, transparent 30%), radial-gradient(circle at 90% 30%, #E9F7F1 0, transparent 30%), radial-gradient(circle at 50% 100%, #FFF0D2 0, transparent 40%); background-attachment: fixed; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; border: 0; background: none; -webkit-user-select: none; user-select: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; font-weight: 900; }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 20px; }
p { margin: 0 0 .8em; }
#app { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
b { font-weight: 800; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 16px; background: #fff; font-weight: 800; box-shadow: var(--sh); transition: transform .08s; min-height: 50px; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(59, 42, 74, .13); }
.btn.pink { background: var(--pink); color: #fff; box-shadow: 0 5px 0 var(--pink-d); }
.btn.mint { background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-d); }
.btn.danger { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn.ghost { background: transparent; box-shadow: none; border: 2px dashed #D9C6B2; }
.btn.sm { padding: 8px 14px; min-height: 40px; font-size: 15px; }
.btn.big { font-size: 20px; padding: 16px 28px; width: 100%; max-width: 520px; display: flex; margin: 18px auto 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--muted); text-decoration: underline; padding: 10px; font-size: 15px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.row-btns .btn.big { margin: 0; flex: 1 1 240px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800; box-shadow: var(--sh); white-space: nowrap; }
.pill.icon { padding: 8px 12px; }
.pill.big { font-size: 20px; padding: 10px 20px; margin-bottom: 12px; }
.chip { display: inline-block; background: var(--pink-2); padding: 4px 10px; border-radius: 10px; margin: 3px; font-weight: 700; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; background: #fff; padding: 5px; border-radius: 16px; box-shadow: var(--sh); }
.seg button { padding: 9px 14px; border-radius: 12px; font-weight: 800; color: var(--muted); flex: 1 0 auto; }
.seg button.on { background: var(--pink); color: #fff; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 75%, transparent); }
.top h1 { flex: 1; font-size: clamp(20px, 3.6vw, 26px); margin: 0; }
.back { width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: var(--sh); font-size: 24px; font-weight: 900; flex: none; }
.page { padding-top: 4px; }

/* ---------- кот ---------- */
svg.cat { width: 100%; height: auto; display: block; overflow: visible; }
svg.cat .tail { transform-origin: 146px 198px; animation: tail 3s ease-in-out infinite; }
svg.cat .eyes { transform-origin: 100px 97px; transform-box: view-box; animation: blink 5s infinite; }
@keyframes tail { 50% { transform: rotate(-8deg); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- знакомство ---------- */
.hello { max-width: 620px; margin: 0 auto; text-align: center; padding: 24px 0; }
.hello-cat { width: 210px; margin: 0 auto 8px; }
.hello h1 { font-size: clamp(26px, 6vw, 38px); }
.brand { color: var(--pink); }
.lead { font-size: 18px; }
.lbl { display: block; font-weight: 800; margin: 18px 0 8px; }
.nmi { width: 100%; max-width: 360px; font: inherit; font-size: 22px; font-weight: 800; text-align: center; padding: 14px; border-radius: 16px; border: 3px solid var(--line); background: #fff; color: var(--ink); outline: none; }
.nmi:focus { border-color: var(--pink); }
.furs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fur { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 8px 14px 8px 8px; border-radius: 999px; font-weight: 700; box-shadow: var(--sh); border: 3px solid transparent; }
.fur i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.fur.on { border-color: var(--pink); }

/* ---------- главная ---------- */
.home-top { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 0 6px; }
.home-top .pill:first-child { margin-right: auto; }
.hero { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 28px; padding: 18px 22px; box-shadow: var(--sh2); }
.hero-cat { width: clamp(120px, 24vw, 180px); flex: none; }
.hero-cat.wiggle { animation: wiggle .5s; }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.hero-info { flex: 1; min-width: 0; }
.hero-name { font-size: clamp(22px, 4vw, 30px); font-weight: 900; }
.rank { font-weight: 800; color: var(--plum); margin: 2px 0 6px; }
.bar { height: 14px; background: #F1E6DA; border-radius: 99px; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 99px; transition: width .6s; }
.bar.mint i { background: linear-gradient(90deg, #7FE0C1, var(--mint)); }
.daily { margin-top: 12px; background: var(--mint-2); padding: 10px 14px; border-radius: 16px; }
.resume { display: block; width: 100%; margin-top: 14px; padding: 14px 18px; background: var(--gold-2); border: 3px dashed var(--gold); border-radius: 18px; font-weight: 800; text-align: left; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.tile { text-align: left; padding: 18px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 104px; transition: transform .1s; }
.tile:active { transform: scale(.97); }
.tile .ti { grid-row: span 2; font-size: 38px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; }
.tile b { font-size: 19px; }
.tile small { color: var(--muted); font-size: 14px; }
.t-case .ti { background: var(--pink-2); } .t-school .ti { background: var(--plum-2); } .t-blitz .ti { background: var(--gold-2); }
.t-bug .ti { background: #E4EEF8; } .t-shop .ti { background: #FFE3EC; } .t-book .ti { background: var(--mint-2); }
.tile.glow { outline: 3px solid var(--plum); animation: glow 1.6s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(123, 92, 214, .18); } }
.foot { text-align: center; margin-top: 26px; }

/* ---------- задачи: общий каркас ---------- */
.task-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--sh); margin-bottom: 14px; }
.task-head.wrap { background: transparent; box-shadow: none; padding: 0; }
.clues { display: flex; gap: 6px; }
.clue-dot { width: 38px; height: 38px; border-radius: 12px; background: #F3EBE2; display: grid; place-items: center; font-size: 20px; }
.clue-dot.got { background: var(--mint-2); } .clue-dot.now { outline: 3px dashed var(--pink); }
.task-wrap { display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .task-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .ctrl-col { position: sticky; top: 80px; } }
.task-title { font-size: clamp(24px, 4.5vw, 32px); font-weight: 900; text-align: center; margin-bottom: 8px; }
.paper { background: #fff; border-radius: var(--r); box-shadow: var(--sh2); padding: 18px; overflow-x: auto; display: flex; justify-content: center; }
.paper.raccoon { background: #FBFDFF; border: 3px dashed #C9D9EA; }
.legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.lg.hl { background: var(--gold-2); border: 2px solid var(--gold); } .lg.hlc { background: var(--pink-2); border: 2px solid var(--pink); } .lg.target { background: var(--plum-2); border: 2px dashed var(--plum); }
.after { margin-top: 6px; }

/* ---------- столбик ---------- */
.mgrid { --cell: min(54px, calc((100vw - 76px) / var(--w))); display: inline-block; }
@media (min-width: 860px) { .mgrid { --cell: min(54px, calc(480px / var(--w))); } }
.mrow { display: flex; }
.cell { width: var(--cell); height: var(--cell); border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); display: flex; align-items: center; justify-content: center; font-size: calc(var(--cell) * .64); font-weight: 800; font-variant-numeric: tabular-nums; position: relative; transition: background .2s; }
.mrow:first-child .cell { border-top: 1px solid var(--grid); }
.mrow .cell:first-child { border-left: 1px solid var(--grid); }
.mrow.small .cell { height: calc(var(--cell) * .52); font-size: calc(var(--cell) * .4); color: var(--pink); }
.cell.ul { box-shadow: inset 0 -3px 0 var(--ink); }
.cell.sign { color: var(--muted); }
.cell.hl { background: var(--gold-2); }
.cell.hlc { background: var(--pink-2); border-radius: 6px; }
.cell.carry { color: var(--pink); }
.cell.ghost { color: #CFC4DC; }
.cell.w { color: var(--plum); }
.cell.target { background: var(--plum-2); outline: 3px dashed var(--plum); outline-offset: -3px; animation: blinkbg 1.2s infinite; }
@keyframes blinkbg { 50% { background: #fff; } }
.cell.tap { background: var(--mint-2); cursor: pointer; }
.cell.tap:hover { background: #B9EEDC; }
.cell.wrong { background: #FFC9C9 !important; }
.cell.pulse { animation: pulse 0.9s infinite; background: #B9EEDC; }
.cell.done { background: var(--mint-2); color: var(--mint-d); }
.cell.pop { animation: pop .35s; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 4px var(--mint); } }
.paper.mini { padding: 12px; box-shadow: none; border: 2px solid var(--line); }
.paper.mini .mgrid { --cell: min(44px, calc((100vw - 90px) / var(--w))); }
.pickrow { cursor: pointer; border-radius: 8px; transition: background .2s; }
.pickrow:hover { background: #F7F1FF; }
.pickrow.badrow { background: #FFE0E0; outline: 3px solid var(--red); }
.pickrow.okrow { background: var(--mint-2); }
.pickrow.warnrow { background: var(--gold-2); }

/* ---------- помощник и ввод ---------- */
.helper { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.mini-cat { width: 70px; flex: none; }
.bubble { position: relative; flex: 1; background: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--sh2); font-size: 17px; min-height: 56px; }
.bubble::before { content: ''; position: absolute; left: -9px; top: 22px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble.pop { animation: bpop .3s; }
@keyframes bpop { from { transform: scale(.96); opacity: .5; } }
.fb { font-weight: 800; color: var(--mint-d); margin-bottom: 4px; }
.fb.bad { color: var(--red); }
.cc { color: var(--pink); font-weight: 900; }
.g { color: #CFC4DC; }
.rule { background: var(--mint-2); border-radius: 12px; padding: 8px 12px; margin: 6px 0; font-weight: 700; }
.labels { font-size: 15px; background: var(--gold-2); border-radius: 12px; padding: 6px 10px; margin-top: 6px; }
.labels span { font-weight: 800; }
.ask { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sh); margin-bottom: 12px; text-align: center; }
.ask:empty { display: none; }
.ask-txt { font-weight: 800; font-size: 18px; }
.ask-sub { color: var(--muted); font-size: 15px; }
.ask-eq { font-size: clamp(26px, 5vw, 34px); font-weight: 900; }
.ask-eq.win { color: var(--mint-d); }
.inp { display: inline-block; min-width: 2.2ch; border-bottom: 4px solid var(--plum); color: var(--plum); padding: 0 4px; }
.inp.bad { color: var(--red); border-color: var(--red); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.k { height: 64px; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #E6D6C4; font-size: 30px; font-weight: 900; transition: transform .06s; }
.k:active { transform: translateY(4px); box-shadow: 0 1px 0 #E6D6C4; background: var(--plum-2); }
.k.fn { background: var(--gold-2); }
.k.ok { background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-d); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- уравнения ---------- */
.eqpaper { display: block; background-image: repeating-linear-gradient(#fff 0 47px, var(--grid) 47px 48px); }
.eq-lines { font-size: clamp(21px, 3.8vw, 28px); font-weight: 800; }
.eql { padding: 0 4px; min-height: 48px; line-height: 48px; }
.eql.first { color: var(--ink); }
.eql.last:not(.first) { animation: pop .35s; }
.eql.check { color: var(--mint-d); font-size: .8em; line-height: 1.3; padding: 12px 4px; }
.eql .why { color: var(--muted); font-size: .7em; margin-left: 8px; }
.eq-lines .op, .eqbig .op { margin: 0 .25em; }
.eq-focus { text-align: center; margin-bottom: 12px; }
.eqbig { display: inline-block; font-size: clamp(26px, 5.5vw, 38px); font-weight: 900; background: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: var(--sh); }
.eqbig.win { color: var(--mint-d); font-size: 44px; }
i.x { font-style: italic; color: var(--plum); font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.sub { color: var(--pink); }
.op.tap { width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--gold-2); border: 3px solid var(--gold); font-weight: 900; font-size: 1em; display: inline-grid; place-items: center; margin: 0 .2em; vertical-align: middle; animation: tapme 1.4s infinite; }
@keyframes tapme { 50% { transform: scale(1.1); } }
.op.tap.right { background: var(--mint); border-color: var(--mint-d); color: #fff; animation: none; }
.op.tap.wrong { background: #FFC9C9; border-color: var(--red); }
.op.tap.pulse { box-shadow: 0 0 0 6px rgba(47, 191, 151, .4); }
.box { position: relative; background: var(--gold-2); outline: 3px dashed var(--gold); border-radius: 10px; padding: 0 .25em; margin: 0 .1em; }
.box::before { content: '📦'; position: absolute; top: -.95em; left: -.4em; font-size: .6em; }
.boxed { background: var(--gold-2); border-radius: 8px; padding: 0 .2em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.opts.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .opts.six { grid-template-columns: 1fr 1fr; } }
.opt { background: var(--plum-2); padding: 12px 8px; border-radius: 14px; font-weight: 800; font-size: 17px; box-shadow: 0 4px 0 #D4C8F5; }
.opt.wide { grid-column: 1 / -1; font-size: 22px; }
.opt.right { background: var(--mint); color: #fff; box-shadow: 0 4px 0 var(--mint-d); }
.opt.wrong { background: #FFC9C9; animation: shake .4s; }

/* ---------- дела ---------- */
.case-head { text-align: center; }
.paper-note { display: inline-block; background: var(--gold-2); padding: 6px 16px; border-radius: 10px; font-weight: 900; transform: rotate(-2deg); margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; border: 4px solid transparent; }
.choice span { font-size: 40px; } .choice b { font-size: 18px; } .choice small { color: var(--muted); }
.choice.on { border-color: var(--pink); background: #FFF7FA; }
.diff { max-width: 520px; margin: 0 auto 8px; }
.dossier { position: relative; background: #FFFDF6; border-radius: var(--r); padding: 22px; box-shadow: var(--sh2); border-left: 10px solid var(--gold); margin-bottom: 18px; overflow: hidden; }
.stamp { position: absolute; right: 14px; top: 16px; border: 3px solid var(--red); color: var(--red); font-weight: 900; padding: 2px 10px; border-radius: 8px; transform: rotate(12deg); opacity: .7; letter-spacing: 2px; }
.sus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sus { position: relative; background: #fff; border-radius: 18px; padding: 12px 8px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; border: 4px solid transparent; transition: opacity .2s; }
.sus .sa { font-size: 44px; line-height: 1.1; }
.sus .sn { font-weight: 800; font-size: 14px; text-align: center; }
.sus .attrs { display: flex; gap: 6px; align-items: center; font-size: 22px; }
.scarf { display: inline-block; width: 22px; height: 14px; border-radius: 5px; border: 2px solid var(--ink); }
.scarf.mini { width: 16px; height: 10px; vertical-align: 0; background: var(--red); }
.sus.crossed { opacity: .35; }
.sus.crossed::after { content: '✖'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px; color: var(--red); }
.sus.sel { border-color: var(--pink); transform: scale(1.04); }
.sus-legend { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0; }
.clue-list { display: grid; gap: 6px; margin: 10px 0; }
.clue { background: var(--gold-2); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.clue.old { opacity: .75; font-size: 15px; }
.clue-big { text-align: center; }
.clue-ic { font-size: 56px; animation: pop .5s; }
.clue-txt { font-size: 22px; font-weight: 800; background: var(--gold-2); padding: 14px; border-radius: 16px; }
.win-page { max-width: 640px; margin: 0 auto; }
.win-cat { position: relative; width: 200px; margin: 0 auto; }
.arrested { position: absolute; right: -70px; bottom: 10px; font-size: 56px; }
.arrested span { font-size: 36px; }
.perfect { display: inline-block; background: var(--plum-2); color: var(--plum); font-weight: 900; padding: 8px 16px; border-radius: 12px; margin: 8px 0; }
.loot { display: flex; gap: 14px; justify-content: center; margin: 16px 0; }
.loot div { background: #fff; padding: 12px 22px; border-radius: 18px; box-shadow: var(--sh); font-size: 26px; display: flex; flex-direction: column; align-items: center; }
.loot small { font-size: 14px; color: var(--muted); }

/* ---------- школа и уроки ---------- */
.school-card { display: flex; gap: 16px; background: #fff; border-radius: 26px; padding: 20px; box-shadow: var(--sh2); margin-bottom: 16px; align-items: flex-start; }
.sc-ic { font-size: 44px; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; flex: none; }
.school-card.mul .sc-ic { background: var(--pink-2); } .school-card.eq .sc-ic { background: var(--gold-2); }
.sc-body { flex: 1; } .sc-body .row-btns { justify-content: flex-start; }
.slide { background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--sh2); min-height: 380px; }
.slide-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.slide-head .mini-cat { width: 60px; }
.slide-head h2 { margin: 0; }
.slide-row { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .slide-row { grid-template-columns: 1.2fr 1fr; } }
.story { font-size: 19px; line-height: 1.55; margin-bottom: 12px; }
.boxes { font-size: 28px; line-height: 1.3; word-break: break-all; text-align: center; }
.formula { font-size: clamp(22px, 4.5vw, 32px); font-weight: 900; text-align: center; background: #FFFBF3; border-radius: 16px; padding: 12px; margin: 12px 0; }
.formula.sm { font-size: 24px; margin: 4px 0; }
.formula.old { opacity: .45; font-size: 22px; padding: 4px; margin: 4px 0; }
.formula.now { animation: pop .4s; }
.hlm { background: var(--gold-2); padding: 0 .2em; border-radius: 8px; } .hlp { background: var(--mint-2); padding: 0 .2em; border-radius: 8px; }
.lastop { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--mint); color: #fff; }
.slide-nav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.slide-nav .btn.pink { margin-left: auto; }
.dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E5D7C8; } .dots i.on { background: var(--pink); width: 26px; border-radius: 6px; }
.rules { font-size: 18px; line-height: 1.5; padding-left: 1.4em; } .rules li { margin-bottom: 8px; }
.names { display: grid; gap: 10px; font-size: clamp(16px, 3vw, 21px); font-weight: 800; margin: 12px 0; }
.names > div { background: #FFFBF3; padding: 10px; border-radius: 14px; text-align: center; }
.nm { background: var(--plum-2); color: var(--plum); padding: 3px 8px; border-radius: 8px; display: inline-block; margin: 2px; }
.nm.r { background: var(--mint-2); color: var(--mint-d); }
.rules6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.r6 { background: #FFFBF3; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.r6 small { color: var(--muted); font-size: 15px; }
.r6 code { font-family: inherit; font-weight: 800; font-size: 18px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.ex-list { display: grid; gap: 10px; } .ex-list > div { background: #FFFBF3; border-radius: 16px; padding: 8px 12px; text-align: center; }
.box-demo { margin-bottom: 8px; }

/* ---------- блиц ---------- */
.blitz { max-width: 520px; margin: 0 auto; }
.big-emoji { font-size: 64px; }
.timer { height: 18px; background: #F1E6DA; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.bz-score { font-size: 24px; font-weight: 900; color: var(--mint-d); }
.bz-q { font-size: clamp(40px, 10vw, 60px); font-weight: 900; background: #fff; border-radius: 22px; padding: 16px; margin: 12px 0 16px; box-shadow: var(--sh2); transition: background .15s; }
.bz-q.ok { background: var(--mint-2); }
.misses { margin: 10px 0; }

/* ---------- магазин ---------- */
.shop { display: grid; gap: 16px; }
@media (min-width: 800px) { .shop { grid-template-columns: 280px 1fr; align-items: start; } .shop-cat { position: sticky; top: 80px; } }
.shop-cat { background: #fff; border-radius: 26px; padding: 20px 30px; box-shadow: var(--sh2); max-width: 300px; margin: 0 auto; width: 100%; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 14px; }
.item { background: #fff; border-radius: 18px; padding: 10px 6px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 3px solid transparent; }
.item .ii { font-size: 36px; } .item .in { font-weight: 800; font-size: 14px; text-align: center; } .item .ip { font-size: 14px; color: var(--pink-d); font-weight: 800; }
.item.own .ip { color: var(--mint-d); }
.item.on { border-color: var(--mint); background: #F3FFFA; }

/* ---------- блокнот ---------- */
.tabs { margin-bottom: 14px; }
.card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh2); margin-bottom: 14px; }
.ttable { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 560px; margin: 0 auto; }
.tc { background: #fff; border-radius: 8px; text-align: center; padding: 8px 0; font-weight: 800; font-size: clamp(14px, 3vw, 18px); }
.tc.hd { background: var(--plum-2); color: var(--plum); }
.tc.e1 { background: var(--pink-2); } .tc.e3 { background: var(--pink); color: #fff; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { background: #fff; border-radius: 18px; padding: 14px 10px; text-align: center; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 2px; opacity: .55; }
.badge.got { opacity: 1; background: #FFFBF0; outline: 3px solid var(--gold); }
.badge span { font-size: 38px; } .badge small { color: var(--muted); font-size: 13px; }
.caselog { display: grid; gap: 8px; }
.cl { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.cl small { color: var(--muted); }

/* ---------- родителям ---------- */
.parents .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.kpis div { background: #FFFBF3; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; } .kpis b { font-size: 26px; } .kpis small { color: var(--muted); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); } .tbl th { color: var(--muted); font-size: 14px; }
.erow { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.et small { display: block; color: var(--muted); font-size: 14px; }
.ebar { height: 22px; background: #F3EBE2; border-radius: 8px; position: relative; overflow: hidden; }
.ebar i { display: block; height: 100%; background: var(--pink); } .ebar span { position: absolute; right: 8px; top: 1px; font-weight: 800; font-size: 14px; }
.act { display: flex; gap: 4px; align-items: flex-end; height: 110px; }
.ab { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 2px; }
.ab i { display: block; width: 100%; background: var(--mint); border-radius: 6px 6px 0 0; min-height: 2px; } .ab small { font-size: 11px; color: var(--muted); }
@media (max-width: 560px) { .parents .kpis { grid-template-columns: repeat(2, 1fr); } .erow { grid-template-columns: 1fr 90px; } }

/* ---------- модалки, тосты, конфетти ---------- */
.modal { position: fixed; inset: 0; background: rgba(59, 42, 74, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.sheet { background: var(--bg); border-radius: 28px; padding: 22px; max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; text-align: center; animation: up .25s; box-shadow: var(--sh2); }
.sheet.wide { max-width: 860px; }
.sheet .btn { margin-top: 12px; }
.m-cat { width: 150px; margin: 0 auto; }
.howto { text-align: left; padding-left: 0; list-style: none; } .howto li { background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(30px); opacity: 0; } }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: #fff; border-radius: 20px; padding: 12px 18px; box-shadow: 0 12px 40px rgba(59, 42, 74, .25); display: flex; gap: 12px; align-items: center; animation: tin .35s; max-width: calc(100vw - 32px); }
.toast .tb { font-size: 36px; } .toast.out { opacity: 0; transition: opacity .4s; }
@keyframes tin { from { transform: translate(-50%, -40px); opacity: 0; } }
.floater { position: fixed; left: 50%; top: 45%; transform: translateX(-50%); z-index: 70; font-size: 30px; font-weight: 900; color: var(--pink); background: #fff; padding: 8px 18px; border-radius: 20px; box-shadow: var(--sh2); pointer-events: none; animation: floatup 1.5s forwards; white-space: nowrap; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, 20px); } 15% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -90px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti span { position: absolute; top: -50px; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; text-align: center; padding: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 14px 8px; }
  .tile .ti { grid-row: auto; }
  .k { height: 58px; }
  .arrested { right: -40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ================= анимации кота и эффекты ================= */
svg.cat .head { transform-box: view-box; transform-origin: 100px 145px; animation: headIdle 7s ease-in-out infinite; }
svg.cat .ear-r { transform-box: view-box; transform-origin: 140px 70px; animation: earTwitch 6s infinite; }
svg.cat .ear-l { transform-box: view-box; transform-origin: 60px 70px; animation: earTwitch 9s 2s infinite; }
svg.cat .body { transform-box: view-box; transform-origin: 100px 224px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes headIdle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-5deg); } 82% { transform: rotate(4deg); } }
@keyframes earTwitch { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-14deg); } 96% { transform: rotate(6deg); } }
@keyframes breathe { 50% { transform: scale(1.025, .985); } }
.m-happy svg.cat { animation: catJump .55s cubic-bezier(.3, 1.6, .5, 1); }
.m-happy svg.cat .tail { animation: tailHappy .25s ease-in-out 4; }
@keyframes catJump { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(2px) scale(1.06, .92); } 55% { transform: translateY(-16%) scale(.96, 1.05); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes tailHappy { 50% { transform: rotate(-22deg); } }
.m-sad svg.cat .head { animation: headSad 1.2s ease-out forwards; }
.m-sad svg.cat .ear-l { animation: earDownL 1.2s forwards; } .m-sad svg.cat .ear-r { animation: earDownR 1.2s forwards; }
.m-sad svg.cat .tail { animation: none; transform: rotate(25deg); transition: transform .4s; }
@keyframes headSad { 30%, 100% { transform: rotate(-9deg) translateY(4px); } }
@keyframes earDownL { 30%, 100% { transform: rotate(-28deg); } } @keyframes earDownR { 30%, 100% { transform: rotate(28deg); } }
.m-purr svg.cat { animation: purrShake .09s linear infinite; }
.m-purr svg.cat .tail { animation: tailHappy 1.4s ease-in-out infinite; }
@keyframes purrShake { 0% { transform: translate(0, 0); } 25% { transform: translate(.6px, -.4px); } 50% { transform: translate(-.5px, .5px); } 75% { transform: translate(.4px, .4px); } }
.m-yawn svg.cat .head { animation: yawnHead 1.2s ease-in-out; }
@keyframes yawnHead { 40%, 70% { transform: rotate(-8deg) scale(1.04, 1.07); } }
.m-twitch svg.cat .ear-r, .m-twitch svg.cat .ear-l { animation: earTwitch .5s 1 both; animation-timing-function: steps(6); }
.hero-cat { touch-action: none; -webkit-touch-callout: none; cursor: grab; }
.hero-cat:active { cursor: grabbing; }

.heart { position: fixed; z-index: 75; pointer-events: none; font-size: 26px; animation: heartUp 2s ease-out forwards; opacity: 0; }
@keyframes heartUp { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; transform: translate(0, -10px) scale(1.1); } 100% { opacity: 0; transform: translate(var(--dx), -140px) scale(.9) rotate(15deg); } }
.flycandy { position: fixed; left: 50%; top: 50%; z-index: 76; font-size: 30px; pointer-events: none; animation: flyc 1s cubic-bezier(.5, -0.3, .7, 1) forwards; opacity: 0; }
@keyframes flyc { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.3); } 100% { opacity: .2; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.5) rotate(360deg); } }
.pill.candy.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.25); background: var(--gold-2); } }
.pawfx { position: fixed; z-index: 74; pointer-events: none; font-size: 18px; transform: translate(-50%, 0); animation: pawUp .85s ease-out forwards; }
@keyframes pawUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -38px) scale(1.1) rotate(-15deg); } }
.big-emoji.hissing { animation: hissShake .12s linear 6; display: inline-block; }
@keyframes hissShake { 25% { transform: translateX(-5px) rotate(-4deg); } 75% { transform: translateX(5px) rotate(4deg); } }

/* переходы экранов и появление элементов */
#app > * { animation: scrIn .35s ease-out both; }
@keyframes scrIn { from { opacity: 0; transform: translateY(14px); } }
.tiles .tile { animation: tileIn .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.tiles .tile:nth-child(2) { animation-delay: .05s; } .tiles .tile:nth-child(3) { animation-delay: .1s; } .tiles .tile:nth-child(4) { animation-delay: .15s; } .tiles .tile:nth-child(5) { animation-delay: .2s; } .tiles .tile:nth-child(6) { animation-delay: .25s; }
@keyframes tileIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.tile:hover .ti { animation: tiWiggle .5s; }
@keyframes tiWiggle { 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.1); } }
.sus { animation: tileIn .4s both; }
.sus:nth-child(2) { animation-delay: .06s; } .sus:nth-child(3) { animation-delay: .12s; } .sus:nth-child(4) { animation-delay: .18s; } .sus:nth-child(5) { animation-delay: .24s; }
.k:active { animation: none; }
.opt:active, .choice:active, .item:active, .sus:active { transform: scale(.95); }
.clue-txt { animation: clueIn .6s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes clueIn { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.win-cat-in { animation: catJump .7s cubic-bezier(.3, 1.6, .5, 1) 3; }
.arrested { animation: arrestIn .8s .3s both; }
@keyframes arrestIn { from { transform: translateX(120px) rotate(20deg); opacity: 0; } }
.cell.w.pop { animation: pop .35s, inkIn .6s; }
@keyframes inkIn { from { color: var(--pink); } }

/* ================= маскот ================= */
#mascot { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; gap: 6px; pointer-events: none; }
#mascot[hidden] { display: none; }
.ms-cat { width: 92px; height: 104px; pointer-events: auto; touch-action: none; -webkit-touch-callout: none; filter: drop-shadow(0 6px 8px rgba(59, 42, 74, .18)); animation: msIn .6s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes msIn { from { transform: translateY(120%); } }
.ms-bubble, .hero-say { position: relative; background: #fff; border-radius: 18px; padding: 10px 14px; font-weight: 800; font-size: 16px; box-shadow: 0 8px 24px rgba(59, 42, 74, .18); max-width: min(280px, calc(100vw - 130px)); margin-bottom: 60px; pointer-events: auto; }
.ms-bubble::before { content: ''; position: absolute; left: -8px; bottom: 14px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.ms-bubble.in, .hero-say.in { animation: sayIn .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sayIn { from { transform: scale(.5) translateY(10px); opacity: 0; } }
.hero-say { margin: 0 0 8px; max-width: none; display: inline-block; background: var(--gold-2); box-shadow: none; }
.hero-say[hidden], .ms-bubble[hidden] { display: none; }
.hero-say::before { content: ''; position: absolute; left: -8px; top: 12px; border: 9px solid transparent; border-right-color: var(--gold-2); border-left: 0; }
@media (max-width: 560px) { .hero-say::before { display: none; } }
body.has-mascot #app { padding-bottom: 130px; }
.helper { position: relative; }
.cheer { position: absolute; left: 50px; top: -26px; z-index: 3; background: var(--pink); color: #fff; font-weight: 900; font-size: 15px; padding: 5px 12px; border-radius: 14px; white-space: nowrap; box-shadow: 0 6px 14px rgba(255, 94, 146, .35); animation: cheerIn 2.2s ease-out forwards; pointer-events: none; }
@keyframes cheerIn { 0% { transform: scale(.4) translateY(10px); opacity: 0; } 12% { transform: scale(1.1); opacity: 1; } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.mini-cat { touch-action: manipulation; }

.ms-bubble { pointer-events: none; }
.slide-head { position: relative; }
.blitz .helper { text-align: left; }
@media (max-width: 600px) {
  .ms-cat { width: 68px; height: 78px; }
  #mascot { flex-direction: column-reverse; align-items: flex-start; }
  .ms-bubble { margin: 0 0 4px 8px; font-size: 14px; max-width: calc(100vw - 40px); }
  .ms-bubble::before { left: 22px; bottom: -8px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
  body.has-mascot #app { padding-bottom: 110px; }
}

@media (max-width: 600px) {
  .ms-cat { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); transform: translate(-42%, 34%) rotate(16deg); animation: none; }
  #mascot.talk .ms-cat { transform: none; }
}

/* ================= голос, контакт, музыка ================= */
svg.cat .mo { opacity: 0; transform-box: fill-box; transform-origin: center; }
body.cat-talking svg.cat .mo { animation: mouth .18s ease-in-out infinite alternate; }
@keyframes mouth { from { opacity: 1; transform: scaleY(.25); } to { opacity: 1; transform: scaleY(1.1); } }
body.cat-talking .ms-cat svg.cat .head, body.cat-talking .mini-cat svg.cat .head, body.cat-talking .hero-cat svg.cat .head { animation: talkBob .36s ease-in-out infinite; }
@keyframes talkBob { 50% { transform: rotate(-3deg) translateY(-1px); } }
body.music-on .hero-cat svg.cat .tail, body.music-on .ms-cat svg.cat .tail { animation: tail 1.1s ease-in-out infinite; }
body.music-on .hero-cat svg.cat .head { animation: groove 1.1s ease-in-out infinite; }
@keyframes groove { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.mini-cat, .shop-cat, .win-cat-in, .m-cat, .hello-cat { cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.say-btn { position: absolute; right: -6px; bottom: -10px; width: 38px; height: 38px; border-radius: 50%; background: var(--plum-2); box-shadow: var(--sh); font-size: 18px; z-index: 2; }
.say-btn:active { transform: scale(.9); }
.bubble { padding-right: 34px; }
.m-cat { position: relative; }
.music-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.mcard { background: #fff; border-radius: 18px; padding: 14px 10px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 3px solid transparent; }
.mcard span { font-size: 34px; } .mcard small { color: var(--muted); font-size: 13px; }
.mcard.on { border-color: var(--pink); background: #FFF7FA; }
.vol { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 10px auto; }
.vol input { flex: 1; accent-color: var(--pink); height: 30px; }
.nowp { min-height: 24px; margin: 6px 0; }
.credit { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ================= истории, сундуки, подарки, домик ================= */
.story-card { background: #FFFBF0; border: 3px dashed var(--gold); border-radius: 18px; padding: 12px 16px; margin-bottom: 12px; font-size: 18px; line-height: 1.45; animation: scrIn .4s both; }
.chest-wrap { text-align: center; }
.chest { font-size: 96px; line-height: 1; animation: chestShake 1s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(59,42,74,.25)); }
@keyframes chestShake { 0%, 60%, 100% { transform: rotate(0) scale(1); } 70% { transform: rotate(-10deg) scale(1.05); } 80% { transform: rotate(10deg) scale(1.08); } 90% { transform: rotate(-6deg) scale(1.05); } }
.chest.open { animation: chestOpen .7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes chestOpen { 40% { transform: scale(1.4) rotate(-8deg); } 100% { transform: scale(1.15); opacity: .9; } }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.cd { background: #fff; border-radius: 14px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--sh); font-size: 13px; }
.cd span { font-size: 26px; } .cd b { font-size: 16px; }
.cd.past { opacity: .55; } .cd.now { outline: 3px solid var(--pink); background: #FFF7FA; animation: glow 1.4s infinite; }
@media (max-width: 520px) { .cal { grid-template-columns: repeat(4, 1fr); } }
.goalbar { position: relative; margin: 10px 0 18px; }
.gt { position: absolute; top: -10px; transform: translateX(-60%); font-size: 20px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gt small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.gt.got { animation: pop .4s; }
.t-house .ti { background: #FFE9D6; }
.shoptabs { max-width: 420px; margin: 0 auto 12px; }
.lockt { font-size: 13px; color: var(--muted); font-weight: 700; }
.items.locked { opacity: .5; filter: grayscale(.6); }
.room-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.rtab { flex: none; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 800; box-shadow: var(--sh); white-space: nowrap; border: 3px solid transparent; }
.rtab.on { border-color: var(--pink); } .rtab.lock { color: var(--muted); }
.room { position: relative; height: min(62vh, 520px); min-height: 380px; border-radius: 26px; overflow: hidden; box-shadow: var(--sh2); }
.room .wall { position: absolute; inset: 0 0 34% 0; background: var(--wall); background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2px); background-size: 26px 26px; }
.room .floor { position: absolute; inset: 66% 0 0 0; background: var(--floor); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 70px); }
.room.dark .wall { background-image: radial-gradient(rgba(255,255,255,.7) 1.5px, transparent 2px); background-size: 40px 40px; }
.window { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: 22%; aspect-ratio: 1.1; background: linear-gradient(#BFE6FF, #E8F7FF); border: 8px solid #fff; border-radius: 12px; display: grid; place-items: center; font-size: 34px; box-shadow: inset 0 0 0 3px rgba(59,42,74,.15); }
.room.dark .window { background: linear-gradient(#1B1838, #3A3170); }
.furn { position: absolute; transform: translateX(-50%); font-size: clamp(44px, 9vw, 72px); line-height: 1; z-index: 2; filter: drop-shadow(0 6px 4px rgba(0,0,0,.15)); transition: transform .15s; }
.furn.own:active { transform: translateX(-50%) scale(.92); }
.furn.slot { width: 64px; height: 64px; border-radius: 16px; border: 3px dashed rgba(59,42,74,.35); background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; filter: none; }
.furn.slot small { font-size: 11px; font-weight: 800; }
.furn.boing { animation: boing .6s; }
@keyframes boing { 30% { transform: translateX(-50%) scale(1.3, .8); } 60% { transform: translateX(-50%) scale(.9, 1.2) translateY(-14px); } 100% { transform: translateX(-50%); } }
.room-cat { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: clamp(120px, 26%, 200px); z-index: 3; cursor: pointer; }
.room.closed > *:not(.room-lock) { filter: blur(6px) grayscale(.5); }
.room-lock { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,244,232,.6); padding: 20px; }
.room-lock .bar { width: min(320px, 80%); }
.upd { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--mint); color: #fff; font-weight: 900; padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 20px rgba(47,191,151,.4); animation: tin .4s, glow 1.5s infinite; }

/* ================= новый домик ================= */
.room.big { height: auto; aspect-ratio: 16 / 10; min-height: 340px; max-height: 72vh; touch-action: pan-y; }
.room.big .wall { inset: 0 0 38% 0; }
.room.big .floor { inset: 62% 0 0 0; }
.room .window { top: 8%; width: 18%; }
.shelf { position: absolute; left: 6%; top: 52%; width: 22%; height: 8px; background: rgba(120, 80, 50, .35); border-radius: 4px; }
.fx { position: absolute; transform: translateX(-50%); font-size: clamp(40px, 7.5vw, 70px); line-height: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .18)); transition: transform .15s; touch-action: none; user-select: none; -webkit-user-select: none; }
.fx .ctag { position: absolute; right: -10px; top: -8px; font-size: 18px; background: #fff; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; box-shadow: var(--sh); }
.fx.needs { animation: needPulse 1.2s ease-in-out infinite; }
.fx.needs .ctag { background: var(--pink); }
@keyframes needPulse { 50% { transform: translateX(-50%) scale(1.15); filter: drop-shadow(0 0 12px rgba(255, 94, 146, .9)); } }
.fx.boing { animation: boing .6s; }
.room.editing .fx, .room.editing .room-cat { outline: 3px dashed rgba(123, 92, 214, .55); outline-offset: 4px; border-radius: 12px; cursor: grab; }
.fx.dragging, .room-cat.dragging { transform: translateX(-50%) scale(1.15); z-index: 500 !important; transition: none; }
.room .room-cat { width: clamp(90px, 17%, 170px); z-index: 150; transition: left .7s ease-in-out, bottom .7s ease-in-out; touch-action: none; }
.room-cat.walking svg.cat { animation: walkBob .25s ease-in-out infinite; }
@keyframes walkBob { 50% { transform: translateY(-6%) rotate(-3deg); } }
.room-cat.sleeping svg.cat { transform: rotate(-12deg) translateY(8%); transition: transform .5s; }
.trash { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 300; background: rgba(255, 255, 255, .85); border: 3px dashed var(--pink); border-radius: 18px; padding: 6px 16px; font-size: 30px; display: flex; flex-direction: column; align-items: center; }
.trash small { font-size: 12px; font-weight: 800; }
.trash.over { background: var(--pink-2); transform: translateX(-50%) scale(1.15); }
.care-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.cbar { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 14px; padding: 6px 8px; box-shadow: var(--sh); }
.cbar span { font-size: 20px; } .cbar i { flex: 1; height: 10px; background: #F1E6DA; border-radius: 6px; overflow: hidden; display: block; }
.cbar i b { display: block; height: 100%; background: linear-gradient(90deg, #7FE0C1, var(--mint)); border-radius: 6px; transition: width .6s; }
.cbar.low { animation: glow 1.2s infinite; } .cbar.low i b { background: linear-gradient(90deg, #FF9DBB, var(--pink)); }
.cbar.off { opacity: .45; }
@media (max-width: 560px) { .care-bars { grid-template-columns: repeat(5, 1fr); gap: 4px; } .cbar { flex-direction: column; padding: 4px; } .cbar i { width: 100%; } }
.house-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 6px; }
.tray { background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--sh2); margin: 8px 0; }
.care-alert { display: block; width: 100%; margin-top: 14px; padding: 14px 18px; background: var(--pink-2); border: 3px solid var(--pink); border-radius: 18px; font-weight: 800; text-align: left; animation: glow 1.4s infinite; }
.item.lockd { opacity: .55; }

/* ================= домик v3: размеры, кот пользуется вещами ================= */
.room.big { --u: 8px; touch-action: none; }
.room.big .fx { font-size: calc(var(--u) * var(--s) * 0.82); transform: translateX(-50%); }
.room.big .fx .ctag { font-size: max(14px, calc(var(--u) * 2)); width: auto; height: auto; padding: 2px 4px; right: -4px; top: -4px; }
.room.big .room-cat { width: calc(var(--u) * 15 * var(--cs, 1)); transition: left .7s ease-in-out, bottom .7s ease-in-out, width .4s; }
.room.placing { cursor: copy; outline: 4px dashed var(--plum); outline-offset: -6px; }
.room .ghost { position: absolute; transform: translateX(-50%); font-size: calc(var(--u) * 11); opacity: .65; pointer-events: none; z-index: 600; animation: needPulse 1s infinite; }
.trash { opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.trash.show { opacity: 1; }
.fx.dragging, .room-cat.dragging { transition: none !important; filter: drop-shadow(0 14px 10px rgba(0,0,0,.3)); }
.fx.in-use { filter: brightness(1.05); }
.blanket { position: absolute; transform: translateX(-50%); height: calc(var(--u) * 6); background: repeating-linear-gradient(45deg, #FF9DBB 0 10px, #FFC2D4 10px 20px); border-radius: 40% 40% 18px 18px; border: 3px solid #3B2A4A; animation: breathe 2.4s ease-in-out infinite; }
.room-cat.sleeping svg.cat { transform: rotate(-90deg) translate(-8%, -4%); transition: transform .5s; }
.room-cat.eating svg.cat { animation: eatBob .35s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes eatBob { 50% { transform: rotate(14deg) translateY(4%); } }
.room-cat.scratching svg.cat { animation: scratchy .15s linear infinite; }
@keyframes scratchy { 50% { transform: translateY(-4%) rotate(-6deg); } }
.room-cat.playing svg.cat { animation: catJump .5s ease-in-out infinite; }
.room-cat.shaking svg.cat { animation: purrShake .05s linear infinite; }
.room-cat.flip svg.cat { transform: scaleX(-1); transition: transform .3s; }
.room-cat.rocking svg.cat, .fx.rocking { animation: rock .6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes rock { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
.fx.rolling { transition: left 1s ease-out !important; animation: roll 1s linear; }
@keyframes roll { to { rotate: 720deg; } }
.fx.spinning { animation: spin 1.3s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.fx.launch { animation: launch 2.6s ease-in-out; }
@keyframes launch { 40% { translate: 0 -260%; } 60% { translate: 0 -260%; opacity: .2; } 100% { translate: 0 0; opacity: 1; } }
.fx.hover { animation: hoverUfo 2s ease-in-out; }
@keyframes hoverUfo { 25% { translate: -30% -40%; } 50% { translate: 30% -60%; } 75% { translate: 0 -20%; } }
.fx.floaty { animation: floaty 2s ease-in-out; }
@keyframes floaty { 50% { translate: 0 -40%; rotate: 8deg; } }
.fx.hop { animation: hop .9s ease-in-out; }
@keyframes hop { 30%, 70% { translate: 0 -35%; } 50% { translate: 0 0; } }
.fx.tv-on { filter: drop-shadow(0 0 18px #7CC4FF) brightness(1.2); animation: tvFlicker .2s steps(2) infinite; }
@keyframes tvFlicker { 50% { filter: drop-shadow(0 0 26px #FFC2D4) brightness(1.35); } }
.food-in { position: absolute; transform: translateX(-50%); font-size: calc(var(--u) * 4); transition: opacity 1s, transform 1s; }
.food-in.gone { opacity: 0; transform: translateX(-50%) scale(.3); }

/* ================= чат с котиком ================= */
.t-chat .ti { background: #E4EEF8; }
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.chat-top { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 26px; padding: 12px 16px; box-shadow: var(--sh2); }
.chat-cat { width: clamp(100px, 22vw, 150px); flex: none; }
.chat-cat.m-think svg.cat .head { animation: headIdle 1.6s ease-in-out infinite; }
.chat-say { flex: 1; font-size: 19px; font-weight: 700; line-height: 1.4; }
.dots i { display: inline-block; width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: var(--plum); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-8px); opacity: .4; } }
.chat-log { max-height: 38vh; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 17px; line-height: 1.35; animation: scrIn .3s both; }
.msg.me { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.msg.cat { align-self: flex-start; background: #fff; box-shadow: var(--sh); border-bottom-left-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip-b { background: var(--plum-2); color: var(--plum); font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.chat-bar { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 8px; background: var(--bg); padding: 6px 0; }
.chat-bar input { flex: 1; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 18px; border: 3px solid var(--line); background: #fff; color: var(--ink); outline: none; min-width: 0; }
.chat-bar input:focus { border-color: var(--pink); }
.mic, .send { width: 60px; height: 60px; border-radius: 50%; font-size: 28px; flex: none; box-shadow: var(--sh); background: #fff; }
.send { background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-d); }
.mic.on { background: var(--pink); animation: glow 1s infinite; transform: scale(1.1); }
.tgl { display: flex; gap: 10px; align-items: center; font-weight: 800; margin: 8px 0; }
.tgl input { width: 24px; height: 24px; accent-color: var(--pink); }
.flags { display: grid; gap: 6px; margin: 8px 0; }
.flag { background: var(--gold-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.flag.distress { background: #FFE0E0; border: 2px solid var(--red); }
.chatlog-p { max-height: 300px; overflow-y: auto; font-size: 14px; display: grid; gap: 4px; margin-top: 8px; }

/* ================= живые подозреваемые и фото с места происшествия ================= */
.pt { position: relative; display: inline-block; width: 1.4em; height: 1.4em; font-size: 46px; line-height: 1; animation: ptIdle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pt-a { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1em; }
.pt-h { position: absolute; left: 50%; top: -.42em; transform: translateX(-50%) rotate(-8deg); font-size: .6em; }
.pt-s { position: absolute; left: 22%; right: 22%; bottom: .02em; height: .2em; border-radius: .1em; border: 2px solid #3B2A4A; }
.pt-i { position: absolute; right: -.18em; bottom: -.02em; font-size: .42em; }
.pt.big { font-size: 96px; margin: 20px 0 6px; }
.pt.talking { animation: ptTalk .28s ease-in-out 6, ptIdle 2.6s ease-in-out infinite 1.7s; }
@keyframes ptIdle { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4%) rotate(-3deg); } 70% { transform: translateY(1%) rotate(3deg); } }
@keyframes ptTalk { 50% { transform: translateY(-10%) scale(1.06, .95); } }
.sus { padding-top: 22px; }
.sus .pt { font-size: 44px; margin-bottom: 4px; }
.ask-b { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--plum-2); display: grid; place-items: center; font-size: 17px; box-shadow: var(--sh); z-index: 2; }
.sus.crossed .ask-b { display: none; }
.interro { text-align: center; position: relative; }
.interro-sheet { background: radial-gradient(circle at 50% 18%, #FFF6D8 0, #FFF1DB 30%, #E9DDF5 75%); }
.interro-lamp { position: absolute; left: 50%; top: -30px; width: 240px; height: 200px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0, rgba(255, 220, 120, .55), transparent 70%); pointer-events: none; }
.interro-say { font-size: 22px; font-weight: 800; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh); margin: 10px 0; animation: sayIn .35s; }
.witness { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.witness .pt { font-size: 52px; }
.scene { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin: 0 auto 14px; max-width: 760px; background: #1d1830; border: 8px solid #fff; box-shadow: 0 12px 30px rgba(59, 42, 74, .3); transform: rotate(-1deg); }
.scene.small { max-width: 420px; aspect-ratio: 16 / 8; }
.scene.clue { max-width: 560px; }
.sc-img { position: absolute; inset: -6%; background: var(--img) center / cover, linear-gradient(#2E2950, #4B3F7A); animation: kenburns 18s ease-in-out infinite alternate; filter: saturate(1.1); }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-3%, 2%); } }
.sc-fog { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, .25), transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(200, 180, 255, .25), transparent 55%); animation: fog 9s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes fog { to { transform: translateX(6%) scale(1.1); opacity: .6; } }
.sc-beam { position: absolute; inset: 0; background: radial-gradient(circle at var(--bx, 30%) var(--by, 60%), transparent 0, transparent 16%, rgba(10, 6, 30, .55) 34%); animation: beam 7s ease-in-out infinite; }
@keyframes beam { 0% { --bx: 25%; --by: 65%; } 33% { --bx: 70%; --by: 45%; } 66% { --bx: 50%; --by: 75%; } 100% { --bx: 25%; --by: 65%; } }
@property --bx { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --by { syntax: '<percentage>'; inherits: false; initial-value: 60%; }
.sc-dust i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFF6C8; box-shadow: 0 0 8px #FFE27A; opacity: 0; animation: dust 6s linear infinite; }
.sc-dust i:nth-child(1) { left: 2%; top: 10%; animation-delay: 0.00s; }
.sc-dust i:nth-child(2) { left: 39%; top: 63%; animation-delay: 0.43s; }
.sc-dust i:nth-child(3) { left: 76%; top: 36%; animation-delay: 0.86s; }
.sc-dust i:nth-child(4) { left: 17%; top: 89%; animation-delay: 1.29s; }
.sc-dust i:nth-child(5) { left: 54%; top: 62%; animation-delay: 1.72s; }
.sc-dust i:nth-child(6) { left: 91%; top: 35%; animation-delay: 2.15s; }
.sc-dust i:nth-child(7) { left: 32%; top: 88%; animation-delay: 2.58s; }
.sc-dust i:nth-child(8) { left: 69%; top: 61%; animation-delay: 3.01s; }
.sc-dust i:nth-child(9) { left: 10%; top: 34%; animation-delay: 3.44s; }
.sc-dust i:nth-child(10) { left: 47%; top: 87%; animation-delay: 3.87s; }
.sc-dust i:nth-child(11) { left: 84%; top: 60%; animation-delay: 4.30s; }
.sc-dust i:nth-child(12) { left: 25%; top: 33%; animation-delay: 4.73s; }
.sc-dust i:nth-child(13) { left: 62%; top: 86%; animation-delay: 5.16s; }
.sc-dust i:nth-child(14) { left: 3%; top: 59%; animation-delay: 5.59s; }

@keyframes dust { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-40px) translateX(10px); } }
.sc-tape { position: absolute; left: -10%; right: -10%; bottom: 10%; background: repeating-linear-gradient(-45deg, #FFC93C 0 22px, #2F2B3A 22px 30px); color: transparent; height: 26px; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.sc-tape::after { content: 'МЕСТО ПРОИСШЕСТВИЯ · НЕ ВХОДИТЬ · МЕСТО ПРОИСШЕСТВИЯ'; position: absolute; inset: 0; display: grid; place-items: center; color: #2F2B3A; font-weight: 900; font-size: 13px; letter-spacing: 2px; background: rgba(255, 201, 60, .85); }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 1.2s ease-out .15s; pointer-events: none; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
.sc-stamp { position: absolute; right: 10px; top: 10px; color: #fff; font-weight: 900; font-size: 12px; background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }
.mark { position: absolute; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 0 10px #FFE27A); animation: markIn .8s cubic-bezier(.3, 1.6, .5, 1) both, markPulse 1.6s ease-in-out infinite .8s; }
@keyframes markPulse { 50% { transform: translate(-50%, -50%) scale(1.2); } }
.mark::after { content: ''; position: absolute; inset: -12px; border: 3px solid #FFE27A; border-radius: 50%; }
@keyframes markIn { from { transform: translate(-50%, -50%) scale(0); } }
.arrested .pt { font-size: 50px; }

/* ================= студия звуков ================= */
.t-studio .ti { background: #FFE3EC; }
.studio { max-width: 760px; margin: 0 auto; }
.studio-head { text-align: center; }
.rec-grid { display: grid; gap: 10px; }
.rec { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: var(--sh); overflow: hidden; }
.rec.has { outline: 3px solid var(--mint); }
.rec-ic { font-size: 40px; }
.rec-t { flex: 1; display: flex; flex-direction: column; } .rec-t small { color: var(--muted); }
.rec-st { font-weight: 800; }
.rec-b { display: flex; gap: 6px; }
.rb { width: 52px; height: 52px; border-radius: 50%; font-size: 22px; background: var(--plum-2); box-shadow: var(--sh); }
.rb.rec-btn { background: var(--pink); color: #fff; }
.rec.recording .rec-btn { animation: glow .8s infinite; transform: scale(1.12); }
.meter { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--pink)); transition: width .06s; }

.quest { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; background: linear-gradient(90deg, #FFF0C9, #FFE3EC); border: 3px solid var(--gold); border-radius: 18px; }
.q-ic { font-size: 36px; } .q-t { flex: 1; display: flex; flex-direction: column; } .q-t small { color: var(--muted); font-weight: 700; }
.lvl { display: inline-block; vertical-align: middle; width: 90px; height: 10px; background: #F1E6DA; border-radius: 6px; overflow: hidden; margin-left: 8px; }
.lvl i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--pink)); transition: width .08s; }
.chibi-pt { width: 1.5em; height: 1.75em; }
.chibi-pt svg.chibi { width: 100%; height: 100%; overflow: visible; }
.sus .chibi-pt { font-size: 52px; }
.pt.big.chibi-pt { font-size: 120px; }
.witness .chibi-pt { font-size: 56px; }
.arrested .chibi-pt { font-size: 60px; }
svg.chibi .ch-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; animation-delay: var(--d, 0s); }
svg.chibi .ch-m-open { display: none; }
.pt.talking svg.chibi .ch-m-open { display: inline; animation: mOpen .28s steps(1) 6; }
.pt.talking svg.chibi .ch-m-closed { animation: mClose .28s steps(1) 6; }
@keyframes mOpen { 50% { opacity: 0; } } @keyframes mClose { 0% { opacity: 0; } 50% { opacity: 1; } }
.pt.angry { animation: ptAngry .12s linear 8, ptIdle 2.6s ease-in-out infinite 1s; }
@keyframes ptAngry { 25% { transform: translateX(-4%) rotate(-3deg); } 75% { transform: translateX(4%) rotate(3deg); } }
svg.chibi .ch-vein { animation: vein .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes vein { to { transform: translate(96px, 22px) scale(1.3); } }

/* ================= детективные игры ================= */
.t-games .ti { background: #EDE6FF; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.game-card { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; text-align: left; animation: tileIn .45s both; }
.game-card .gi { font-size: 40px; } .game-card b { font-size: 19px; } .game-card small { color: var(--muted); } .game-card .gs { font-size: 13px; font-weight: 800; color: var(--plum); margin-top: 4px; }
.game-page { max-width: 820px; margin: 0 auto; }
.g-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.g-dots { display: flex; gap: 6px; } .g-dots i { width: 16px; height: 16px; border-radius: 50%; background: #EADCCB; } .g-dots i.ok { background: var(--mint); } .g-dots i.bad { background: var(--red); }
.scales { position: relative; height: 220px; margin: 10px auto; max-width: 560px; }
.scales .beam { position: absolute; left: 6%; right: 6%; top: 70px; height: 10px; background: #8A5A33; border-radius: 6px; transform: rotate(var(--tilt, 0deg)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.scales .pan { position: absolute; top: 10px; width: 40%; }
.scales .pan.l { left: -4%; } .scales .pan.r { right: -4%; }
.pan-in { position: absolute; top: 0; left: 0; right: 0; min-height: 90px; border-bottom: 10px solid #C9A27A; border-radius: 0 0 50% 50%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px; padding: 4px; transform: translateY(-100%); }
.box3 { font-size: 34px; animation: pop .4s; } .wt { display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 6px; background: #5E5B70; color: #fff; font-weight: 900; border-radius: 10px 10px 6px 6px; font-size: 18px; } .wt.big { min-width: 64px; height: 50px; font-size: 22px; background: #3B2A4A; }
.pivot { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); font-size: 70px; line-height: 1; color: #8A5A33; }
.eqline { text-align: center; font-size: 26px; font-weight: 900; margin: 6px 0 10px; }
.wit-list { display: grid; gap: 10px; }
.wit { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: var(--sh); }
.wit .chibi-pt { font-size: 46px; flex: none; }
.wit-t { flex: 1; font-size: 17px; } .wit-c { margin-top: 6px; font-weight: 800; color: var(--mint-d); }
.wit.liar { outline: 3px solid var(--red); } .wit.liar .wit-c { color: var(--red); } .wit.truth { opacity: .8; }
.safe { width: 240px; height: 200px; margin: 10px auto; background: linear-gradient(#9AA3AE, #6E7782); border-radius: 18px; border: 6px solid #4A5059; position: relative; perspective: 600px; box-shadow: var(--sh2); }
.safe-door { position: absolute; inset: 10px; background: linear-gradient(135deg, #B9C1CB, #8D96A1); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transform-origin: left center; transition: transform 1s ease; }
.safe.open .safe-door { transform: rotateY(-100deg); } .safe.open::before { content: '🍬🍫🍭'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
.dial { display: flex; gap: 6px; } .dg { width: 38px; height: 46px; background: #2F2B3A; color: #FFC93C; border-radius: 8px; display: grid; place-items: center; font-size: 26px; font-weight: 900; } .dg.on { animation: pop .4s; color: #7FE0C1; }
.safe-wheel { font-size: 40px; animation: spin 6s linear infinite; }
.memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.mc { aspect-ratio: 1; border-radius: 16px; background: var(--plum); color: #fff; font-size: 22px; font-weight: 900; position: relative; transition: transform .3s; box-shadow: var(--sh); }
.mc .mb { display: none; } .mc.flip { background: #fff; color: var(--ink); transform: rotateY(180deg) scaleX(-1); } .mc.flip .mf { display: none; } .mc.flip .mb { display: inline; } .mc.done { background: var(--mint-2); color: var(--mint-d); }
.mf { font-size: 30px; }
.track { position: relative; height: 70px; background: repeating-linear-gradient(90deg, #E8F7EF 0 40px, #D3F5EA 40px 80px); border-radius: 16px; margin: 10px 0 14px; overflow: hidden; }
.runner { position: absolute; top: 12px; font-size: 40px; transform: translateX(-50%); transition: left .4s; } .runner.c { z-index: 2; } .finish { position: absolute; right: 6px; top: 14px; font-size: 34px; }
.lgrid { display: grid; grid-template-columns: 110px repeat(var(--n), 1fr); gap: 6px; max-width: 520px; margin: 10px auto; align-items: center; }
.lh { text-align: center; font-size: 30px; } .lw { display: flex; align-items: center; gap: 4px; } .lw .chibi-pt { font-size: 30px; } .lw small { font-weight: 800; }
.lc { aspect-ratio: 1; border-radius: 12px; background: #fff; box-shadow: var(--sh); font-size: 26px; font-weight: 900; } .lc.s1 { background: var(--mint-2); color: var(--mint-d); } .lc.s2 { background: #FFE0E0; color: var(--red); }
.seq { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0; } .seq span { min-width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: var(--sh); font-size: 24px; font-weight: 900; padding: 0 8px; } .seq .q { background: var(--gold-2); animation: tapme 1.2s infinite; }
.g-result .big-emoji { animation: pop .6s; }

.enot-pic { display: flex; align-items: center; gap: 10px; background: #F3F8FF; border: 3px dashed #C9D9EA; border-radius: 18px; padding: 8px 12px; margin-bottom: 10px; }
.enot-pic .chibi-pt { font-size: 50px; } .enot-pic small { color: var(--muted); font-style: italic; }
.runner .chibi-pt { font-size: 34px; }

/* ================= аниме-картинки ================= */
.sc-img { background: none; background-image: var(--img), linear-gradient(#2E2950, #4B3F7A); background-size: cover, cover; background-position: center, center; }
.room.hasbg { background-size: cover; background-position: center bottom; }
.room.hasbg .wall, .room.hasbg .floor { display: none; }
.room.big .fx img.ic-img { width: calc(var(--u) * var(--s) * 1.15); height: auto; display: block; pointer-events: none; -webkit-user-drag: none; }
.room.big .ghost img.ic-img { width: calc(var(--u) * var(--s) * 1.15); }
.item .ii img.ic-img { width: 60px; height: 60px; object-fit: contain; display: block; margin: 0 auto; }
.big-emoji img.ic-img.big { width: 120px; height: 120px; object-fit: contain; }
.food-in img.ic-img { width: calc(var(--u) * 5); }

.pill.gem { background: #EDE6FF; color: #6B4FD0; }
.item.gemitem { background: linear-gradient(160deg, #F4F0FF, #E7F7FF); outline: 2px dashed #B9A6FF; }
.item.gemitem .ip { color: #6B4FD0; }

/* ================= математическая раскраска ================= */
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.pc { display: flex; align-items: center; gap: 6px; background: #fff; padding: 6px 10px 6px 6px; border-radius: 14px; box-shadow: var(--sh); border: 3px solid transparent; }
.pc i { width: 28px; height: 28px; border-radius: 8px; background: var(--c); border: 2px solid var(--ink); display: inline-block; }
.pc b { font-size: 20px; } .pc small { font-size: 12px; color: var(--muted); }
.pc.on { border-color: var(--pink); transform: scale(1.06); } .pc.fin { opacity: .55; }
.cgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-width: 620px; margin: 0 auto; background: #fff; padding: 6px; border-radius: 16px; box-shadow: var(--sh2); }
.ccell { aspect-ratio: 1; border-radius: 6px; background: #F6F1EA; font-size: clamp(9px, 1.9vw, 15px); font-weight: 800; line-height: 1.1; padding: 1px; color: var(--ink); }
.ccell.f { color: transparent; }
.cgrid.reveal { gap: 0; padding: 0; overflow: hidden; } .cgrid.reveal .ccell { border-radius: 0; }

.fx.falling, .room-cat.falling { transition: bottom .38s cubic-bezier(.55, 0, 1, .45) !important; }
.fx.landed { animation: land .4s ease-out; } .room-cat.landed svg.cat { animation: landc .4s ease-out; }
@keyframes landc { 30% { transform: scale(1.12, .85); } }
@keyframes land { 30% { transform: translateX(-50%) scale(1.12, .85); } 100% { transform: translateX(-50%) scale(1, 1); } }
.ccode { font-size: 34px; font-weight: 900; letter-spacing: 6px; text-align: center; background: var(--gold-2); border-radius: 14px; padding: 10px; margin: 8px 0; font-family: ui-monospace, Menlo, monospace; }

.interro-say.angry { background: #FFE0E0; color: #B3261E; border: 2px solid #F4A6A6; }
.mood-bar { font-size: 15px; font-weight: 800; margin: 4px 0 8px; }

.msg.cat { position: relative; padding-right: 44px; }
.replay { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; background: var(--plum-2); font-size: 16px; }
.replay.nudge { animation: glow 1s infinite; background: var(--pink); }
.ghost-t { opacity: .35; }

/* ================= телефоны (iPhone и др.) ================= */
.cheer { white-space: normal; max-width: min(260px, 70vw); text-align: center; }
@media (max-width: 700px) {
  .room.big { min-height: 0; aspect-ratio: 4 / 3; max-height: none; }
  .scales { height: 250px; margin-top: 40px; }
  .scales .pan { width: 46%; } .box3 { font-size: 24px; } .pan-in { min-height: 70px; }
  .wt { min-width: 38px; height: 34px; font-size: 16px; } .wt.big { min-width: 52px; height: 42px; font-size: 19px; }
  .task-head { gap: 6px; } .clue-dot { width: 32px; height: 32px; font-size: 17px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .game-card { padding: 12px; } .game-card .gi { font-size: 32px; } .game-card b { font-size: 16px; }
  .opts.six { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 16px; border-radius: 22px; }
  .pt.big.chibi-pt { font-size: 96px; }
  .care-bars { grid-template-columns: repeat(5, 1fr); }
  .rec { flex-wrap: wrap; } .rec-b { width: 100%; justify-content: flex-end; }
  .lgrid { grid-template-columns: 84px repeat(var(--n), 1fr); }
  .chat-say { font-size: 17px; }
}
@supports (padding: max(0px)) { body { padding-bottom: env(safe-area-inset-bottom); } .top { padding-top: max(14px, env(safe-area-inset-top)); } }

.set-list { display: grid; gap: 8px; margin: 10px 0; text-align: left; }
.set-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); font-size: 18px; }
.set-row span { font-size: 26px; } .set-row b { flex: 1; } .set-row small { color: var(--muted); }
.sw { width: 50px; height: 30px; border-radius: 15px; background: #E3D6C8; position: relative; transition: background .2s; flex: none; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.sw.on { background: var(--mint); } .sw.on::after { left: 23px; }
.home-top { flex-wrap: wrap; } .home-top .pill { padding: 7px 11px; }
.xpn { display: inline-block; font-size: 13px; color: var(--muted); font-weight: 700; }
@media (max-width: 360px) { .home-top .pill { font-size: 14px; padding: 6px 9px; } }

.fx.nudge { transition: left .3s ease-out !important; }
.room-cat.hopping svg.cat { animation: hopOver .75s ease-in-out; }
@keyframes hopOver { 0% { transform: translateY(0); } 45% { transform: translateY(-38%) rotate(-6deg); } 70% { transform: translateY(-20%); } 100% { transform: translateY(0); } }

.mic.talk { background: var(--mint-2); } .mic.talk.on { background: var(--red); color: #fff; animation: glow 1s infinite; }
.sndres { margin-top: 8px; display: grid; gap: 4px; font-size: 15px; }
@media (max-width: 420px) { .mic, .send { width: 50px; height: 50px; font-size: 24px; } .chat-bar { gap: 6px; } .chat-bar input { font-size: 16px; padding: 12px; } }

/* ================= v18: Академия, тренер, салон, фотостудия ================= */
.t-acad .ti { background: #DDE3FF; } .t-photo .ti { background: #FFE9C7; }
.acad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.acad-card { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-top: 6px solid var(--c, var(--pink)); min-width: 0; }
.acad-card .ai { font-size: 40px; } .acad-card b { font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; } .acad-card small { color: var(--muted); font-size: 12px; }
.acad-card .bar, .unit .bar, .shade .bar, .cm .bar { display: block; width: 100%; height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.acad-card .bar i, .unit .bar i, .shade .bar i, .cm .bar i { display: block; height: 100%; background: var(--c, var(--mint)); border-radius: 6px; }
.acad-card .ap { font-size: 13px; font-weight: 800; color: var(--muted); }
.acad-card.soon { opacity: .55; }
.subj-intro { background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--sh); border-left: 6px solid var(--c); margin-bottom: 10px; }
.subj .row-btns { flex-wrap: wrap; }
.units { display: grid; gap: 10px; margin-top: 10px; }
.unit { display: grid; grid-template-columns: 46px 1fr; gap: 8px 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--sh); }
.unit.read { background: #F7FFFB; }
.unit .ui { font-size: 32px; text-align: center; } .unit .ut { display: flex; flex-direction: column; min-width: 0; } .unit .ut small { color: var(--muted); }
.unit .stars { color: var(--gold); letter-spacing: 2px; } .unit .ub { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 8px 12px; font-size: 15px; }
.acad-lesson .card-pic { font-size: 56px; text-align: center; margin: 6px 0; }
.acad-lesson .slide-head { flex-wrap: wrap; }
.q-unit { font-size: 13px; color: var(--muted); font-weight: 800; margin: 6px 0; }
.q-text { font-size: 19px; font-weight: 800; margin: 8px 0; } .q-text.small { font-size: 14px; color: var(--muted); }
.q-case { background: #FFF8E6; border-radius: 16px; padding: 12px 14px; border-left: 5px solid var(--gold); }
.opt.case-opt { font-size: 17px; text-align: left; padding: 12px 14px; }
.opt.mid { background: #FFE9A8; }
.ord-ans { min-height: 48px; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--sh); margin-bottom: 8px; }
.ord-in { background: var(--plum-2); border-radius: 10px; padding: 6px 10px; font-weight: 700; } .ord-in.ok { background: #C9F2DE; } .ord-in.no { background: #FFC9C9; }
.ord-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ord { background: #fff; border: 2px solid var(--plum-2); border-radius: 12px; padding: 8px 12px; font-weight: 700; } .ord:disabled { opacity: .3; }
.sort-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .sg { padding: 4px 10px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.sg.g0, .sort-it.g0 i { background: #C9F2DE; } .sg.g1, .sort-it.g1 i { background: #FFD0D0; } .sg.g2, .sort-it.g2 i { background: #FFEDB0; }
.sort-list { display: grid; gap: 6px; margin-bottom: 10px; }
.sort-it { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh); text-align: left; font-weight: 700; }
.sort-it i { font-style: normal; font-size: 13px; padding: 4px 8px; border-radius: 10px; background: var(--line); white-space: nowrap; flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.sort-it.ok { outline: 3px solid var(--mint); } .sort-it.no { outline: 3px solid var(--red); }
.sres { display: grid; gap: 8px; margin-top: 12px; } .sres-it { text-align: left; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh); display: flex; flex-direction: column; } .sres-it small { color: var(--muted); }
.cp h2 { margin: 0; text-align: center; } .cp-why { margin: 8px 0; } .cp .opts { grid-template-columns: 1fr; } .cp .opt.wide { font-size: 17px; }
.coach { background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--sh2); margin: 10px 0; display: grid; gap: 8px; }
.coach-h { font-weight: 900; color: var(--plum); }
.cm { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; border-radius: 16px; padding: 10px; background: #F4FFF9; border: 2px solid #C9F2DE; }
.cm.master { background: #FFF8E6; border-color: #FFE29A; } .cm.done { opacity: .7; }
.cmi { font-size: 30px; text-align: center; } .cmb { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .cmb b { font-size: 15px; overflow-wrap: anywhere; } .cmb small { color: var(--muted); font-size: 13px; }
.cmr { font-weight: 900; font-size: 14px; text-align: right; white-space: nowrap; } .cmr small { color: var(--muted); font-weight: 700; }
.talent { font-size: 14px; background: #FFF4CC; border-radius: 12px; padding: 6px 10px; }
.rec { position: relative; outline: 3px solid var(--gold); } .recb { position: absolute; top: -10px; right: 6px; background: var(--gold); color: #5A3B00; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.up { color: #1E9E62; } .down { color: #D9534F; } .kpis small.up, .kpis small.down { font-size: 11px; }
.act.wk .ab em, .act.wpm .ab em { font-style: normal; font-size: 11px; font-weight: 800; }
.srow { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; } .srow small { color: var(--muted); } .srow .tip { margin: 4px 0 0; font-size: 14px; }
.pbar { display: inline-block; width: 90px; max-width: 40vw; height: 9px; background: var(--line); border-radius: 6px; overflow: hidden; vertical-align: middle; }
.pbar i { display: block; height: 100%; background: var(--mint); } .pbar.hard i { background: #FF8A8A; } .pbar.star i { background: var(--gold); } .pbar.grow i { background: #8FC8FF; }
.arow { display: grid; grid-template-columns: 1fr 100px 56px; gap: 8px; align-items: center; font-size: 14px; } .arow .pbar { width: 100%; }
.tbl.skills td { font-size: 14px; }
.salon { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shade { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.shade .sw { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; font-size: 18px; }
.shade b { font-size: 15px; } .shade small { font-size: 12px; color: var(--muted); line-height: 1.2; } .shade .sp { font-weight: 900; font-size: 13px; }
.shade.locked .sw { filter: grayscale(.6) opacity(.7); } .shade.open { outline: 3px solid var(--gold); } .shade.on { outline: 3px solid var(--pink); }
.photo .stage { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 24px; overflow: hidden; box-shadow: var(--sh2); border: 6px solid #fff; touch-action: none; }
.st-cat { position: absolute; left: 50%; bottom: 11%; width: 57%; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(40, 20, 60, .3)); } .st-cat svg { width: 100%; height: auto; display: block; }
.st-badge { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .9); color: var(--plum); font-weight: 900; border-radius: 20px; padding: 4px 12px; font-size: 14px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.st-cap { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); background: rgba(255, 111, 156, .95); color: #fff; font-weight: 900; border-radius: 20px; padding: 5px 14px; font-size: 15px; width: max-content; max-width: 94%; text-align: center; line-height: 1.25; }
.st-stk { position: absolute; font-size: clamp(30px, 10vw, 46px); cursor: grab; user-select: none; touch-action: none; line-height: 1; }
.flash { position: absolute; inset: 0; background: #fff; animation: flashA .5s ease-out forwards; } @keyframes flashA { from { opacity: .95; } to { opacity: 0; } }
.ph-row { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; } .ph-row.seg-wrap .seg { width: 100%; }
.ph-bgs, .ph-st { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 6px; }
.ph-bg { flex: 0 0 52px; height: 52px; border-radius: 12px; border: 3px solid #fff; box-shadow: var(--sh); } .ph-bg.on { border-color: var(--pink); }
.ph-s { flex: 0 0 auto; font-size: 26px; background: #fff; border-radius: 12px; padding: 4px 8px; box-shadow: var(--sh); }
.ph-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; } .ph-th { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--sh); } .ph-th img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.ph-big { width: 100%; border-radius: 18px; display: block; margin-bottom: 8px; }
.btn.vk { background: #0077FF; color: #fff; }
.photo-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--sh2); font-size: 28px; z-index: 60; }
.schulte { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; max-width: 420px; margin: 12px auto; aspect-ratio: 1; }
.sc { background: #fff; border-radius: 12px; box-shadow: var(--sh); font-size: clamp(18px, 6vw, 30px); font-weight: 900; } .sc.done { background: #C9F2DE; color: #1E9E62; }
.sc-dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--red); pointer-events: none; opacity: .7; }
.big-n { font-size: 26px; color: var(--pink-d); }
.flashbox { height: 120px; display: grid; place-items: center; background: #fff; border-radius: 20px; box-shadow: var(--sh); margin: 12px 0; }
.fw { font-size: clamp(28px, 9vw, 44px); font-weight: 900; } .fmask { font-size: 32px; color: var(--line); letter-spacing: 3px; } .fdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.rtext { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--sh); font-size: 19px; line-height: 1.6; margin: 10px 0; } .rtext h3 { margin-top: 0; } .rhide { color: var(--muted); }
.rtext span.pt { background: #FFE29A; border-radius: 4px; }
.act.wpm .ab i.weak { opacity: .4; }
@media (max-width: 420px) { .cm { grid-template-columns: 36px 1fr; } .cmr { grid-column: 2; text-align: left; } .arow { grid-template-columns: 1fr 70px 50px; } .acad-grid { grid-template-columns: 1fr 1fr; } .salon { grid-template-columns: 1fr 1fr; } }

.acad-lesson .slide-head h2 { min-width: 0; overflow-wrap: anywhere; }

/* ================= примерочная ================= */
.t-fit .ti { background: #FFD9EC; }
.boutique { position: relative; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; border-radius: 26px; overflow: hidden; box-shadow: var(--sh2); margin-bottom: 10px;
  background: radial-gradient(ellipse at 50% 108%, #F3B6CF 0 26%, transparent 27%), repeating-linear-gradient(90deg, #FFE8F1 0 26px, #FFF4F8 26px 52px); }
.boutique::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(#E9C6A5, #D9AE86); border-top: 5px solid #C9956A; z-index: 0; }
.mirror { position: absolute; right: 7%; top: 6%; width: 40%; height: 82%; border-radius: 50% / 42%; padding: 3.2%; z-index: 1; cursor: pointer;
  background: linear-gradient(135deg, #FFE9A3, #E7B53C 40%, #FFF2C2 55%, #D49B23); box-shadow: 0 10px 22px rgba(90, 50, 20, .3), inset 0 0 0 3px #FFF6D8; }
.mirror::before { content: '✦'; position: absolute; top: -2%; left: 50%; transform: translateX(-50%); color: #FFF6D8; font-size: 22px; text-shadow: 0 0 6px #fff; }
.glass { position: relative; width: 100%; height: 100%; border-radius: 50% / 42%; overflow: hidden; background: linear-gradient(160deg, #EAF6FF, #CFE6FA 60%, #E8DDFF); }
.refl { position: absolute; left: 50%; bottom: 4%; width: 92%; transform: translateX(-50%) scaleX(-1); opacity: .9; filter: saturate(.95) brightness(1.04); }
.refl svg, .fit-cat svg { width: 100%; height: auto; display: block; }
.refl.tilt svg { transform: rotate(-6deg); }
.shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 40%, transparent 50%); animation: shineA 4s ease-in-out infinite; pointer-events: none; }
@keyframes shineA { 0%, 60% { transform: translateX(-80%); } 100% { transform: translateX(90%); } }
.fit-cat { position: absolute; left: 10%; bottom: 6%; width: 38%; z-index: 2; cursor: pointer; filter: drop-shadow(0 10px 10px rgba(60, 30, 50, .25)); transform-origin: 50% 100%; }
.fit-cat.tilt svg { transform: rotate(-6deg); transform-origin: 50% 100%; }
.fit-cat.pop { animation: poseA .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes poseA { 0% { transform: scale(.92) translateY(4%); } 60% { transform: scale(1.06) translateY(-3%); } 100% { transform: none; } }
.fit-cat.admire { animation: admireA 1.4s ease-in-out; }
@keyframes admireA { 0%, 100% { transform: none; } 25% { transform: rotate(6deg) translateX(4%); } 50% { transform: rotate(-3deg) translateY(-4%) scale(1.04); } 75% { transform: rotate(4deg); } }
.wave-paw { transform-origin: 46px 156px; animation: waveA 1.2s ease-in-out infinite; }
@keyframes waveA { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
.fit-say { position: absolute; left: 4%; top: 6%; max-width: 50%; z-index: 3; background: #fff; border-radius: 18px; padding: 8px 12px; font-weight: 800; font-size: 15px; box-shadow: var(--sh2); }
.fit-say.pop { animation: bpop .3s; }
.poses { margin-bottom: 8px; } .poses button { padding: 8px 10px; font-size: 14px; }
.fit-act { flex-wrap: wrap; justify-content: center; }
.tried { background: #FFF4CC; border-radius: 16px; padding: 10px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 800; }
.item.try { opacity: .85; border: 2px dashed #E6C7DA; } .item.try .ip { color: var(--pink-d); }
.fur.lock { opacity: .75; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.look { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 6px; display: flex; flex-direction: column; align-items: center; } .look svg { width: 70%; height: auto; }
.look.empty span { font-size: 34px; color: var(--muted); line-height: 1.6; } .look small { font-size: 12px; color: var(--muted); }
.fit-link { width: 100%; margin-bottom: 10px; }
.st-cat.tilt svg { transform: rotate(-6deg); transform-origin: 50% 100%; }
@media (max-width: 420px) { .fit-say { font-size: 13px; max-width: 56%; } .poses button { font-size: 13px; padding: 7px 8px; } }

/* ================= v19: друзья, гости, тренажёр разговора, профили, игры Академии ================= */
.t-friends .ti { background: #D8F5E6; } .tile { position: relative; }
.tbadge { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-weight: 900; font-size: 13px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.badge { background: var(--red); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 13px; }
.fr-me .ccode { letter-spacing: 6px; }
.fr-add { display: flex; gap: 8px; } .fr-add input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 3px; text-align: center; font-weight: 900; }
.fr-req { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fr-inbox { display: grid; gap: 6px; } .fr-msg { font-size: 15px; padding: 6px 8px; border-radius: 10px; } .fr-msg.new { background: #FFF4CC; }
.fr-list { display: grid; gap: 10px; margin-bottom: 10px; }
.fr-card { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 34px 10px 10px; box-shadow: var(--sh); }
.fr-cat svg { width: 100%; height: auto; display: block; } .fr-cat.sm { width: 56px; flex: 0 0 56px; }
.fr-info { display: flex; flex-direction: column; min-width: 0; } .fr-info small { color: var(--muted); font-size: 13px; }
.fr-x { position: absolute; top: 6px; right: 8px; color: var(--muted); font-size: 16px; padding: 4px; }
.visit-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .visit-head div:last-child { display: flex; flex-direction: column; } .visit-head small { color: var(--muted); }
.room.guest .fx { cursor: default; } .guest-cat svg.cat { transform: scaleX(-1); }
.visit-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; } #vlike.on { background: #FFD0DC; }
.fr-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; } .fr-phr { display: grid; gap: 6px; margin: 10px 0; }
.fx.wiggle { animation: wiggle .5s; }
/* профили */
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.prof { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; } .prof.on { outline: 3px solid var(--pink); }
.prof .pc { width: 64px; height: 70px; display: grid; place-items: center; font-size: 34px; color: var(--muted); } .prof .pc svg { width: 100%; height: auto; }
.prof b { overflow-wrap: anywhere; } .prof small { font-size: 12px; color: var(--muted); }
.prof-back { margin: 0 auto 10px; display: block; } .set-row .arr { margin-left: auto; font-style: normal; font-size: 22px; color: var(--muted); }
/* тренажёр разговора */
.rp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rp-card { background: #fff; border-radius: 18px; box-shadow: var(--sh); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.rp-card .ri { font-size: 36px; } .rp-card small { color: var(--muted); font-size: 12px; } .rp-card .stars { color: var(--gold); }
.rp-role { background: #FFF0F6; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; } .rp-role small { color: var(--muted); } .rp-role ul { margin: 4px 0 0; padding-left: 20px; }
.rp-log { min-height: 220px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; margin-bottom: 8px; }
.rp-log .msg { display: flex; gap: 6px; align-items: flex-end; } .rp-log .msg.me { justify-content: flex-end; }
.rp-log .bub { background: #fff; border-radius: 16px; padding: 8px 12px; box-shadow: var(--sh); max-width: 78%; } .rp-log .msg.me .bub { background: var(--pink); color: #fff; }
.rp-av { font-size: 26px; } .btn.pulse { animation: glow 1s infinite; }
/* игры Академии */
.orbit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; padding: 10px 4px; background: radial-gradient(circle at 0 50%, #FFE79A 0 40px, transparent 41px), linear-gradient(90deg, #1E1650, #2E2378); border-radius: 20px; min-height: 96px; }
.orbit .sun { font-size: 44px; flex: 0 0 auto; } .slot { flex: 0 0 auto; width: 54px; min-height: 72px; border: 2px dashed rgba(255,255,255,.35); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.slot.fill { border-style: solid; border-color: rgba(255,255,255,.6); animation: bpop .3s; } .slot small, .pl small { font-size: 10px; font-weight: 800; } .slot svg { max-width: 50px; height: auto; }
.pl-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.pl { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: 6px 8px; display: flex; flex-direction: column; align-items: center; min-width: 70px; } .pl.used { opacity: .25; } .pl svg { max-width: 80px; height: auto; }
.pl-opt { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 16px; } .pl-opt svg { max-height: 30px; width: auto; }
.walk-map { position: relative; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#D9F5E4, #C3EBD3); border-radius: 20px; padding: 46px 10px 12px; margin-bottom: 10px; }
.ws { font-size: 24px; background: #fff; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; box-shadow: var(--sh); flex: 0 0 auto; } .ws.now { outline: 3px solid var(--gold); } .ws.ok { background: #C9F2DE; } .ws.no { background: #FFD0D0; }
.wl { flex: 1; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 14px); margin: 0 2px; }
.walk-cat { position: absolute; top: 2px; left: 30px; width: 44px; transform: translateX(-50%); transition: left .6s ease; } .walk-cat svg { width: 100%; height: auto; }
.center-pill { display: block; width: max-content; margin: 0 auto 8px; }
.fake-card { background: #fff; border-radius: 20px; box-shadow: var(--sh2); padding: 16px; margin: 10px 0; } .fake-text { font-size: 21px; font-weight: 800; line-height: 1.35; text-align: center; }
.fake-timer { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 12px; } .fake-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--mint)); transition: width .1s linear; }
@media (max-width: 420px) { .fr-card { grid-template-columns: 52px 1fr; } .fr-card .btn { grid-column: 1 / -1; } .ws { width: 32px; height: 32px; font-size: 18px; } .walk-cat { width: 36px; } .fake-text { font-size: 18px; } }

/* ================= v19: заработать, коллекция, легенда ================= */
.earn-head { text-align: center; margin-bottom: 10px; } .earn-head h2 { margin: 4px 0; }
.earn-list { display: grid; gap: 10px; }
.earn-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--sh); }
.earn-row .ei { font-size: 28px; text-align: center; } .earn-row .eb { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .earn-row .eb small { color: var(--muted); font-size: 13px; }
.earn-row .bar { display: block; height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; } .earn-row .bar i { display: block; height: 100%; background: var(--mint); }
.edone { font-size: 22px; color: #1E9E62; font-weight: 900; }
.collect { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: #fff; border-radius: 16px; padding: 8px 10px; box-shadow: var(--sh); margin-bottom: 8px; font-size: 15px; }
.item.legend { background: linear-gradient(135deg, #FFF6D6, #F3E8FF); border: 2px solid #FFD34D; }
.earn-room { margin-top: 8px; }
.lbl { display: block; font-weight: 800; margin: 8px 0 4px; }
@media (max-width: 420px) { .earn-row { grid-template-columns: 34px 1fr; } .earn-row .btn, .earn-row .edone { grid-column: 2; justify-self: start; } }
/* дипломы */
.t-diploma .ti { background: #FFF0C2; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.dp { background: linear-gradient(160deg, #FFF9EC, #FFEFD9); border: 3px solid #E8B23A; border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; box-shadow: var(--sh); min-width: 0; }
.dp .dpi { font-size: 34px; } .dp b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; } .dp small { color: var(--muted); font-size: 12px; }
.dp-next { display: grid; gap: 8px; } .dp-n { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: var(--sh); opacity: .8; } .dp-n span { font-size: 26px; filter: grayscale(.6); } .dp-n div { display: flex; flex-direction: column; } .dp-n small { color: var(--muted); }
.xbadge { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
/* деление и сложение столбиком */
.col-page .ops button { font-size: 20px; padding: 6px 14px; }
.divbox { display: flex; justify-content: center; gap: 0; margin: 10px auto; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh); width: max-content; max-width: 100%; overflow-x: auto; }
.dgrid { display: grid; grid-template-columns: repeat(var(--n), 34px); grid-auto-rows: 38px; padding-right: 8px; }
.dc { position: relative; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--ink); } .dc.cur { color: var(--pink-d); background: #FFF0F6; border-radius: 6px; }
.dc.ul { border-bottom: 3px solid var(--ink); } .dc.rem { color: #1E9E62; } .dc .mn { position: absolute; left: -16px; font-style: normal; font-size: 22px; color: var(--muted); }
.dright { border-left: 3px solid var(--ink); display: flex; flex-direction: column; min-width: 90px; } .dvs { height: 38px; display: grid; place-items: center start; padding-left: 10px; font-size: 26px; font-weight: 800; border-bottom: 3px solid var(--ink); } .dq { padding: 4px 10px; font-size: 26px; font-weight: 900; color: var(--pink-d); letter-spacing: 6px; }
.agrid { display: grid; grid-template-columns: repeat(var(--w), 36px); grid-auto-rows: 40px; justify-content: center; }
.ac { display: grid; place-items: center; font-size: 26px; font-weight: 800; } .ac.carry { font-size: 15px; color: var(--pink-d); align-self: end; } .ac.ul { border-bottom: 3px solid var(--ink); } .ac.hl { background: #FFF6D6; } .ac.res { color: #1E9E62; } .ac.now { background: #FFF0F6; border-radius: 6px; }
.school-card.div .sc-ic, .school-card.add .sc-ic, .school-card.m4 .sc-ic { font-size: 40px; }
@media (max-width: 420px) { .dgrid { grid-template-columns: repeat(var(--n), 26px); grid-auto-rows: 32px; } .dc, .dvs, .dq, .ac { font-size: 21px; } .agrid { grid-template-columns: repeat(var(--w), 28px); } .dright { min-width: 70px; } }

/* практики ЗОЖ */
.prac-ring { position: relative; width: 240px; height: 240px; margin: 14px auto; transition: transform 4s ease-in-out; }
.prac-ring.in { transform: scale(1.12); } .prac-ring.out { transform: scale(.9); }
.prac-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .pr-bg { fill: none; stroke: var(--line); stroke-width: 6; } .pr-fg { fill: none; stroke: var(--mint); stroke-width: 6; stroke-linecap: round; }
.prac-cat { position: absolute; inset: 22%; } .prac-cat svg { width: 100%; height: auto; position: static; transform: none; }
.prac-text { text-align: center; font-size: 22px; font-weight: 800; min-height: 70px; padding: 0 10px; }

/* котики друзей: подпись и статус хозяина */
.friend-cat { cursor: pointer; } .friend-cat .cat-tag { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); background: rgba(255,255,255,.92); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: var(--sh); }
.friend-cat.visitor svg.cat { transform: scaleX(-1); } .friend-cat.wiggle { animation: wiggle .5s; }
.host-st { background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: var(--sh); font-size: 14px; margin: 6px 0 8px; }
.rtab .gst { font-style: normal; margin-left: 4px; }
/* верхняя панель на узких экранах: заголовок сжимается, а не раздвигает страницу */
.top { min-width: 0; } .top h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .top { gap: 6px; } .top .pill { padding: 6px 9px; font-size: 14px; flex-shrink: 0; } .top h1 { font-size: 19px; } }
@media (max-width: 340px) { .top h1 { font-size: 17px; } .top .pill { padding: 5px 7px; font-size: 13px; } }
.floater { max-width: calc(100vw - 24px); }
html, body { overflow-x: hidden; } /* страховка: случайный вылет анимации не даёт сдвигать страницу вбок */

/* ================= v22: креативные игры, карта звёзд, космос, школа ================= */
.idea-prompt { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--sh); text-align: center; margin-bottom: 10px; } .idea-prompt h2 { margin: 4px 0; overflow-wrap: anywhere; }
.idea-bar { display: flex; justify-content: space-between; font-weight: 800; margin: 6px 2px; }
.idea-list { display: grid; gap: 6px; margin: 10px 0; } .idea-it { background: #FFF8E6; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; overflow-wrap: anywhere; } .idea-it small { color: var(--muted); }
.dice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .die { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--sh); display: flex; flex-direction: column; text-align: center; min-width: 0; } .die small { color: var(--muted); } .die b { overflow-wrap: anywhere; }
.story-in { width: 100%; min-height: 160px; border-radius: 16px; border: 2px solid var(--line); padding: 12px; font: inherit; font-size: 17px; box-sizing: border-box; }
.story-show { background: #fff; border-radius: 14px; padding: 12px; text-align: left; white-space: pre-wrap; margin: 10px 0; }
.draw-cv { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 1; margin: 0 auto 8px; background: #fff; border-radius: 18px; box-shadow: var(--sh); touch-action: none; }
.draw-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; } .dcol { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--sh); } .dcol.on { outline: 3px solid var(--pink); }
.sky-wrap { width: 100%; max-width: 560px; margin: 0 auto; } .sky { width: 100%; height: auto; display: block; border-radius: 50%; touch-action: manipulation; }
.sky .cl { stroke: #8FB3FF; stroke-width: 2; opacity: .55; } .sky .st { fill: #fff; } .sky .cn { fill: #C9D6FF; font-size: 22px; font-weight: 700; text-anchor: middle; opacity: .8; } .sky .polar { fill: #FFE88A; font-size: 18px; }
.sky .cst { cursor: pointer; } .sky .cst.seen .cl { stroke: #FFD34D; } .sky .cst.act .cl { stroke: #FF8FB1; opacity: 1; stroke-width: 3; } .sky .cst.act .cn { fill: #fff; opacity: 1; }
.cst-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; } .cst-chips .chip { font-size: 13px; padding: 5px 10px; border-radius: 12px; background: #fff; box-shadow: var(--sh); } .cst-chips .chip.on { background: #FFF4CC; }
.cinfo h2 small { font-size: 14px; color: var(--muted); font-weight: 600; }
.trip-btn { width: 100%; margin-bottom: 10px; } .trip-btn small { display: block; font-size: 12px; }
.trip-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; background: linear-gradient(160deg, #141A44, #2E2378); border-radius: 22px; padding: 14px; }
.tp { position: relative; background: rgba(255,255,255,.06); border-radius: 16px; padding: 8px 4px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; } .tp svg { max-width: 90px; height: auto; } .tp small { color: #FFE88A; } .tp.lock { opacity: .45; } .tp.next { outline: 3px solid #FFD34D; }
.tp .rocket { position: absolute; top: -8px; right: -4px; width: 40px; } .tp .rocket svg { width: 100%; height: auto; } .tp .rocket i { position: absolute; bottom: -4px; right: -6px; font-style: normal; font-size: 20px; }
.ms-head { display: flex; gap: 12px; align-items: center; background: linear-gradient(160deg, #141A44, #2E2378); color: #fff; border-radius: 20px; padding: 12px; margin-bottom: 10px; } .ms-head .small { color: #C9D6FF; } .ms-pl svg { max-width: 110px; height: auto; }
.fuel { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; } .fuel i { flex: 1; height: 14px; background: var(--line); border-radius: 8px; overflow: hidden; } .fuel b { display: block; height: 100%; background: linear-gradient(90deg, #FF8A3D, #FFD34D); transition: width .5s; }
.school-head { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--sh2); margin-bottom: 10px; } .school-head .sc-ic { font-size: 46px; } .school-head h2 { margin: 0; } .school-head .bar { display: block; height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 2px; } .school-head .bar i { display: block; height: 100%; background: var(--mint); }
.sg-title { margin: 16px 0 6px; }
.tb-pick { max-height: 55vh; overflow-y: auto; text-align: left; } .tb-pick h4 { margin: 10px 0 4px; }
.aq-why { margin-top: 8px; }
@media (max-width: 420px) { .dice-row { grid-template-columns: 1fr 1fr; } .ms-pl svg { max-width: 80px; } }
/* точки-индикаторы уроков не наследуют анимацию «котик печатает» из чата; на узком экране сжимаются */
.slide-nav .dots { min-width: 0; overflow: hidden; } .slide-nav .dots i { margin: 0; animation: none; flex-shrink: 1; min-width: 6px; }
.slide-nav .btn { flex-shrink: 0; } @media (max-width: 360px) { .slide-nav { gap: 6px; } .slide-nav .btn { padding-left: 12px; padding-right: 12px; } }
#bq .opts { grid-template-columns: 1fr; } .opts .opt { min-width: 0; overflow-wrap: anywhere; }
.news-sheet .news-list { max-height: 55vh; overflow-y: auto; text-align: left; } .news-list li { margin-bottom: 6px; }
/* раздел для взрослых: таблицы на узком экране */
.parents .tbl { table-layout: fixed; width: 100%; } .parents .tbl td, .parents .tbl th { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 420px) { .parents .tbl td { font-size: 13px; padding: 6px 4px; } .pbar { width: 54px; } }
/* «Мысль дня» — выразительная карточка */
.thought { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 16px 16px 14px; border-radius: 24px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #7B5CD6 0%, #E0447A 55%, #F5A623 100%); box-shadow: 0 10px 26px rgba(123, 92, 214, .35); animation: thIn .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.thought::before { content: '“'; position: absolute; right: 10px; top: -28px; font: 900 130px/1 Georgia, serif; color: rgba(255, 255, 255, .18); pointer-events: none; }
.th-cat { flex: 0 0 64px; width: 64px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); animation: thFloat 3s ease-in-out infinite; } .th-cat svg { width: 100%; height: auto; display: block; }
.th-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.th-label { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.th-q { margin: 4px 0 6px; font: 800 19px/1.3 Georgia, 'Times New Roman', serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); overflow-wrap: anywhere; }
.th-who { font-size: 13px; font-style: italic; opacity: .92; }
.th-btns { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.th-read { border: 0; border-radius: 14px; padding: 7px 12px; font: 800 14px inherit; font-family: inherit; background: rgba(255, 255, 255, .95); color: #7B5CD6; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.th-more { font-size: 13px; font-weight: 800; opacity: .9; }
.th-star { position: absolute; font-style: normal; color: #FFF6C9; opacity: .8; animation: thTw 2.4s ease-in-out infinite; pointer-events: none; } .th-star.s1 { left: 72px; top: 8px; font-size: 14px; } .th-star.s2 { right: 70px; bottom: 10px; font-size: 18px; animation-delay: .8s; } .th-star.s3 { left: 46%; top: 6px; font-size: 11px; animation-delay: 1.5s; }
.thought.pulse { animation: thPulse .5s; }
@keyframes thIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes thFloat { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes thTw { 50% { opacity: .2; transform: scale(.6); } }
@keyframes thPulse { 50% { transform: scale(1.02); } }
@media (max-width: 380px) { .th-cat { flex-basis: 50px; width: 50px; } .th-q { font-size: 17px; } }
.racc-says { margin: 10px 0; padding: 8px 12px; background: #FFF3E0; border-radius: 12px; border-left: 4px solid #B07C45; }
.r-hint { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: #EAF7F0; font-weight: 800; } .r-hint.bad { background: #FFEDED; color: #B3261E; } .rs-opts .opt.pulse { animation: glow 1s infinite; outline: 3px solid var(--gold); }
/* личные кабинеты */
.acc-entry { display: grid; gap: 8px; margin: 0 0 14px; } .acc-entry .btn { width: 100%; }
.acc .card h2 { margin-top: 0; } .acc .err { color: var(--red); min-height: 18px; margin-top: 6px; } .acc .tgl a { color: var(--plum); }
.acc .card.hl { border: 3px solid var(--gold); }
.pinpick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0; } .pp { font-size: 26px; background: #fff; border-radius: 12px; box-shadow: var(--sh); padding: 6px 0; } .pp:active { transform: scale(.9); }
.kid-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .kr-cat svg { width: 100%; height: auto; } .kr-info { display: flex; flex-direction: column; min-width: 0; } .kr-info small { color: var(--muted); }
.prio { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .prio .chip { cursor: pointer; padding: 6px 10px; border-radius: 12px; background: #fff; box-shadow: var(--sh); font-size: 14px; } .prio .chip.on { background: var(--pink); color: #fff; }
.acc code { background: #F5F0FB; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.acc-nudge { background: #EAF4FF; border-radius: 16px; padding: 10px 14px; margin: 10px 0; cursor: pointer; font-size: 15px; } .acc-card { border: 2px solid #E3D7FF; }
.sv-opts { display: grid; gap: 6px; margin: 10px 0; }
.acad-card.fav { outline: 3px solid var(--gold); } .favb { position: absolute; top: 6px; right: 6px; background: var(--gold); color: #5A3B00; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 8px; }
@media (max-width: 380px) { .pinpick { grid-template-columns: repeat(4, 1fr); } }
