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

body[data-ui="feed"] {
  --f-d: "TikTok Sans", system-ui, -apple-system, sans-serif;
  --f-t: "TikTok Sans", system-ui, -apple-system, sans-serif;
  --red: #FE2C55; --cyan: #25F4EE; --grey: #8A8B91; --card: #1E1E23;
  --nav-h: calc(52px + var(--safe-b));
  background: #000; color: #fff; font-family: var(--f-t); font-weight: 500;
}
body[data-ui="feed"]::before { display: none; }
html:has(body[data-ui="feed"]) { background: #000; }
body[data-ui="feed"] .fi { display: block; }

/* ——— взрослый: главная ——— */
.hm { padding: calc(var(--safe-t) + 6px) 0 40px; }
.hm-top { height: 44px; display: grid; place-items: center; font: 700 17px var(--f-t); }
.hm-prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 20px 18px; }
.hm-ava { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
.hm-ava svg { width: 100%; height: 100%; }
.hm-prof h1 { font: 700 19px/1.2 var(--f-t); margin: 12px 0 0; display: flex; align-items: center; gap: 5px; }
.hm-prof h1 .fv { width: 17px; height: 17px; flex: none; }
.hm-stats { display: flex; justify-content: center; gap: 0; margin: 16px 0 12px; }
.hm-stats div { display: flex; flex-direction: column; align-items: center; padding: 0 18px; position: relative; }
.hm-stats div + div::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: #333; }
.hm-stats b { font: 700 18px var(--f-t); }
.hm-stats span { font-size: 13px; color: var(--grey); }
.hm-bio { font-size: 14.5px; line-height: 1.4; max-width: 330px; color: #E6E6EA; }
.hm-resume { margin-top: 14px; }
.hm-tabs { display: flex; border-bottom: 1px solid #222; position: sticky; top: 0; background: #000; z-index: 3; }
.hm-tabs button { flex: 1; height: 44px; font: 600 15px var(--f-t); color: var(--grey); position: relative; }
.hm-tabs button.on { color: #fff; }
.hm-tabs button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; background: #fff; }
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 6px; padding: 6px 6px 0; }
.hm-card { min-width: 0; }
.hm-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.hm-thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.hm-art { position: absolute; left: -6%; right: -6%; bottom: -8%; }
.hm-art svg { width: 100%; height: auto; }
.hm-thumb .stk-wrap { position: absolute; left: 8px; right: 8px; top: 10px; text-align: left; }
.hm-pin { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font: 700 11px var(--f-t); padding: 3px 6px; border-radius: 3px; font-style: normal; z-index: 2; }
.hm-views { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 3px; font: 600 12.5px var(--f-t); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); z-index: 2; }
.hm-views .fi { width: 13px; height: 13px; }
.hm-cap { font: 500 14px/1.3 var(--f-t); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; }
.hm-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--grey); padding: 0 2px; }
.hm-meta .f-mini { width: 18px; height: 18px; }
.hm-meta span:not(.f-mini) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.hm-meta i { display: flex; align-items: center; gap: 2px; font-style: normal; white-space: nowrap; }
.hm-meta i .fi { width: 13px; height: 13px; }
.hm-how { padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.hm-how-r { display: flex; gap: 14px; }
.hm-how-r > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: 700 15px var(--f-t); }
.hm-how-r b { font: 700 16px var(--f-t); }
.hm-how-r p { font-size: 14.5px; color: #CFCFD4; margin-top: 3px; line-height: 1.4; }

/* ——— взрослый: подготовка ——— */
body[data-mode="adult"] .screen.setup { padding-top: var(--safe-t); }
.s-head { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 48px; margin: 0 -20px 10px; padding: 0 8px; background: #000; }
.s-head b { text-align: center; font: 700 17px var(--f-t); }
.s-head span { text-align: right; padding-right: 8px; color: var(--grey); font-size: 14px; }
.s-back { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.s-back .fi { width: 24px; height: 24px; }
body[data-mode="adult"] .s-title { font: 800 26px/1.15 var(--f-t); }
body[data-mode="adult"] .s-lead, body[data-mode="adult"] .hint-line, body[data-mode="adult"] .tip { color: #BDBDC4; font-size: 15px; }
body[data-mode="adult"] .s-sub { font: 700 17px var(--f-t); }
body[data-mode="adult"] .field span, body[data-mode="adult"] .field-label { color: var(--grey); font: 600 14px var(--f-t); margin-bottom: 8px; }
body[data-mode="adult"] .field-label { margin-top: 6px; }
body[data-mode="adult"] .field input { background: var(--card); color: #fff; border-radius: 8px; font: 600 20px var(--f-t); padding: 16px; }
body[data-mode="adult"] .field input::placeholder { color: #6B6B72; }
body[data-mode="adult"] .field input:focus { box-shadow: 0 0 0 2px var(--red); }
body[data-mode="adult"] .age { border-radius: 8px; background: var(--card); font: 700 17px var(--f-t); aspect-ratio: auto; height: 46px; }
body[data-mode="adult"] .age.on { background: var(--red); color: #fff; transform: none; }
body[data-mode="adult"] .hint-line { min-height: 0; margin: 10px 0 18px; }
.styles { display: grid; gap: 10px; margin-bottom: 8px; }
.style-o { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; text-align: left; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.style-o.on { box-shadow: inset 0 0 0 2px var(--red); }
.style-o b { display: block; font: 700 17px var(--f-t); }
.style-o small { display: block; font-size: 13.5px; color: #BDBDC4; margin-top: 2px; line-height: 1.3; }
.style-pv { position: relative; flex: none; width: 50px; height: 70px; border-radius: 7px; overflow: hidden; }
.pv-feed { background: linear-gradient(160deg, #2438B8, #D7262E); }
.pv-feed i { position: absolute; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pv-feed i:nth-child(1) { top: 26px; } .pv-feed i:nth-child(2) { top: 38px; } .pv-feed i:nth-child(3) { top: 50px; background: var(--red); }
.pv-feed b { position: absolute; left: 5px; bottom: 6px; width: 26px; height: 5px; border-radius: 2px; background: #fff; }
.pv-book svg { width: 100%; height: 100%; }
body[data-mode="adult"] .place { background: var(--card); color: #fff; border-radius: 10px; --ic2: var(--card); min-height: 88px; }
body[data-mode="adult"] .place .pl-n { font: 600 15.5px/1.2 var(--f-t); }
body[data-mode="adult"] .place.on { background: #2A2A31; color: #fff; --ic2: #2A2A31; box-shadow: inset 0 0 0 2px var(--red); }
body[data-mode="adult"] .place .pl-tick { background: var(--red); color: #fff; }
body[data-mode="adult"] .r-n { background: var(--red); color: #fff; font: 700 16px var(--f-t); }
body[data-mode="adult"] .r-h { font: 700 17px var(--f-t); }
body[data-mode="adult"] .r-step p { color: #D5D5DA; font-size: 15px; }
body[data-mode="adult"] .route span { background: var(--card); color: #fff; border-radius: 4px; font-size: 14px; }
body[data-mode="adult"] .route span:last-child { background: var(--red); color: #fff; }
body[data-mode="adult"] .actions.sticky { background: linear-gradient(to bottom, transparent, #000 26%); }

body[data-ui="feed"] .btn { background: var(--red); color: #fff; border-radius: 6px; font: 700 17px var(--f-t); min-height: 50px; box-shadow: none; }
body[data-ui="feed"] .btn:active:not([disabled]) { transform: scale(.98); box-shadow: none; }
body[data-ui="feed"] .btn[disabled] { background: #2A2A31; color: #77777E; opacity: 1; }
body[data-ui="feed"] .btn-sec { background: #2A2A31; color: #fff; }
body[data-ui="feed"] .link-btn { font: 600 15px var(--f-t); color: #fff; }

/* ——— карточка ленты ——— */
.screen.feed { position: relative; height: 100dvh; min-height: 0; padding: 0; overflow: hidden; background: #000; color: #fff; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
body[data-mode] .screen.feed { overflow: hidden; }
.screen.feed.enter .vid { animation: cardIn .34s cubic-bezier(.2, .8, .3, 1) both; }
.vid { position: absolute; left: 0; right: 0; top: 0; bottom: var(--nav-h); overflow: hidden; display: flex; flex-direction: column; }
.card-quest .vid, .card-intro .vid { bottom: 0; }
.vid-bg { position: absolute; inset: 0; background: radial-gradient(130% 85% at 50% 32%, var(--qbg) 0%, var(--qdeep) 62%, #000 100%); }
.vid-bg::after { content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.f-body { position: relative; flex: 1 1 auto; min-height: 0; padding: calc(var(--safe-t) + 54px) 72px 10px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }

.f-top { position: absolute; z-index: 7; top: calc(var(--safe-t) + 4px); left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; pointer-events: none; }
.f-top > * { pointer-events: auto; }
.f-tabs { display: flex; gap: 18px; font: 700 17px var(--f-t); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.f-tabs span { opacity: .62; position: relative; }
.f-tabs span.on { opacity: 1; }
.f-tabs span.on::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 26px; height: 3px; border-radius: 2px; background: #fff; translate: -50% 0; }
.f-tl, .f-tr { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.f-tl .ic, .f-tr .ic, .f-tl .fi { width: 24px; height: 24px; }
.f-tl.lock { opacity: .85; }
.f-tl.lock .ring { inset: -1px; width: 44px; height: 44px; }
.f-tl.lock .ring circle { stroke: var(--red); }

.f-rail { position: absolute; z-index: 5; right: 4px; bottom: 12px; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.f-ava { position: relative; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; margin-bottom: 8px; }
.f-ava .f-mini { width: 100%; height: 100%; }
.f-ava i { position: absolute; bottom: -10px; left: 50%; translate: -50% 0; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font: 700 17px/19px var(--f-t); text-align: center; font-style: normal; }
.f-r { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); transition: transform .12s; }
.f-r:active { transform: scale(.88); }
.f-r .fi { width: 36px; height: 36px; }
.f-r b { font: 600 12.5px var(--f-t); white-space: nowrap; }
.f-like.liked .fi { color: var(--red); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.f-com.glow .fi, .f-com.pulse .fi { color: var(--cyan); }
.f-com.pulse { animation: pulse 1.1s ease-in-out infinite; }
.f-disc { width: 46px; height: 46px; border-radius: 50%; padding: 9px; background: radial-gradient(circle, #333 0 40%, #111 41% 100%); animation: spin 5s linear infinite; margin-top: 4px; }
.f-disc .f-mini { width: 100%; height: 100%; }
.f-mini { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.f-mini svg { width: 100%; height: 100%; transform: scale(1.55) translateY(15%); }

.f-cap { position: relative; z-index: 4; padding: 0 78px 12px 12px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.f-handle { display: flex; align-items: center; gap: 4px; font: 700 16px var(--f-t); }
.f-handle .fv { width: 14px; height: 14px; }
.f-meta { font-weight: 500; opacity: .82; font-size: 14px; }
.f-text { font: 400 15px/1.35 var(--f-t); margin-top: 4px; }
.f-tag { font-weight: 700; }
.f-music { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 14px; overflow: hidden; white-space: nowrap; }
.f-music .fi { width: 14px; height: 14px; flex: none; }
.f-marq { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.f-marq span { display: inline-block; animation: marq 9s linear infinite; }
.f-cta { margin-top: 10px; width: 100%; min-height: 46px; border-radius: 6px; background: var(--red); color: #fff; font: 700 16px var(--f-t); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; text-shadow: none; transition: transform .1s, background .2s; }
.f-cta span { font-size: 26px; line-height: 1; margin-top: -3px; }
.f-cta:active:not([disabled]) { transform: scale(.98); }
.f-cta[disabled] { background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .55); }
.f-cta.ghost { background: rgba(255, 255, 255, .2); }

.f-prog { position: absolute; z-index: 6; left: 0; right: 0; bottom: var(--nav-h); height: 2px; background: rgba(255, 255, 255, .22); }
.f-prog i { display: block; height: 100%; background: #fff; }
.f-nav { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: var(--nav-h); padding-bottom: var(--safe-b); background: #000; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.f-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255, 255, 255, .62); font: 500 10.5px var(--f-t); }
.f-nav button.on { color: #fff; }
.f-nav .fi { width: 25px; height: 25px; }
.f-nav em { position: absolute; top: -5px; left: 54%; background: var(--red); color: #fff; font: 700 10px/14px var(--f-t); border-radius: 8px; padding: 0 5px; font-style: normal; }
.f-plus { justify-self: center; width: 46px; height: 31px; }
.f-plus i { position: absolute; inset: 0; border-radius: 8px; background: #fff; box-shadow: -3.5px 0 0 var(--cyan), 3.5px 0 0 var(--red); }
.f-plus b { position: relative; color: #000; font: 800 21px/31px var(--f-t); }
.f-plus.pulse i { animation: pulse 1.1s ease-in-out infinite; }

.stk-wrap { position: relative; z-index: 3; margin: 0; max-width: 100%; text-align: center; line-height: 1.52; text-wrap: pretty; }
.stk { background: #fff; color: #000; font: 700 17px/1.52 var(--f-t); padding: 3px 9px; border-radius: 7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.stk.dark { background: rgba(0, 0, 0, .7); color: #fff; }
.stk-wrap.big .stk { font-size: 25px; font-weight: 800; }
.stk-wrap.title .stk { font-size: 19px; font-weight: 800; }
.stk-wrap.riddle .stk { font-size: 20px; font-weight: 700; }
.stk-wrap.gold .stk { background: #FFD447; }
.stk-wrap.small .stk { font-size: 12.5px; padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.stk-wrap.intro .stk { font-size: 15px; font-weight: 600; }

.fd-art { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 40px); bottom: 0; display: grid; place-items: center; pointer-events: none; }
.fd-art > svg { width: min(96%, 420px); height: auto; max-height: 100%; }
.kb > svg { animation: kb 9s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.fd-art.small { position: relative; inset: auto; flex: 0 1 auto; min-height: 0; }
.fd-art.small > svg { width: min(44vw, 22vh, 190px); }
.fd-place { position: absolute; z-index: 3; left: 12px; top: calc(var(--safe-t) + 58px); display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); padding: 5px 12px 5px 5px; border-radius: 999px; font: 700 14px var(--f-t); --ic2: #fff; }
.fd-place .ic { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #fff; color: #000; }
.fd-place.big { position: relative; top: auto; left: auto; flex-direction: column; background: none; gap: 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.fd-place.big .ic { width: min(30vw, 15vh, 120px); height: auto; aspect-ratio: 1; padding: 14%; }

.card-story .f-body, .card-quest .f-body { justify-content: flex-end; padding-bottom: 16px; }
.card-quest .stk-wrap.big .stk { font-size: 30px; text-transform: uppercase; }
.f-swipehint { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(var(--safe-b) + 6px); display: flex; justify-content: center; align-items: center; gap: 4px; font: 600 12px var(--f-t); color: rgba(255, 255, 255, .7); }
.f-swipehint .fi { width: 14px; height: 14px; animation: nudge 1.4s ease-in-out infinite; }
.card-quest .f-cap { padding-bottom: calc(var(--safe-b) + 30px); }
.card-quest .f-rail { bottom: calc(var(--safe-b) + 30px); }

.card-task .f-body { justify-content: flex-start; padding-top: calc(var(--safe-t) + 54px); gap: 10px; }
.card-task .t-game { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; flex-direction: column; }
.card-task .f-cap { padding-top: 4px; }
.card-task.t-flashlight .f-body, .card-task.t-scratch .f-body { touch-action: none; }

/* игры внутри ленты */
.feed .g { gap: 12px; }
.feed .g-q { font: 700 16px/1.3 var(--f-t); }
.feed .g-q-big { font-size: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.feed .opt { border-radius: 10px; background: #fff; color: #000; box-shadow: none; font-family: var(--f-t); min-height: 58px; }
.feed .opt-num { font: 800 26px var(--f-t); }
.feed .opt-pic { min-height: 100px; }
.feed .opt-e { font-size: 42px; }
.feed .opt-t { font: 700 15px/1.15 var(--f-t); }
.feed .opt.yes { background: var(--red); color: #fff; }
.feed .opt.no { background: rgba(255, 255, 255, .15); color: #fff; }
.feed .m-expr { font: 800 min(11vw, 46px) var(--f-t); }
.feed .m-q { color: #FFD447; }
.feed .m-group, .feed .m-count { background: rgba(0, 0, 0, .28); }
.feed .c-cell { border-radius: 10px; width: 36px; height: 70px; }
.feed .c-msg { gap: 5px; }
.feed .c-sym { width: 28px; height: 28px; }
.feed .c-let { font: 800 22px var(--f-t); }
.feed .c-cell.on { box-shadow: 0 0 0 3px var(--cyan); }
.feed .c-cell.ok { background: var(--red); color: #fff; }
.feed .c-keys { gap: 8px; }
.feed .c-key { border-radius: 10px; min-height: 60px; box-shadow: none; }
.feed .c-key b { font: 800 22px var(--f-t); }
.feed .s-status { font: 800 17px var(--f-t); background: rgba(0, 0, 0, .45); border-radius: 6px; }
.feed .s-status.go { background: var(--red); color: #fff; }
.feed .s-pads { width: min(100%, 42vh, 300px); gap: 10px; }
.feed .s-pad { border-radius: 18px; background: rgba(0, 0, 0, .3); }
.feed .s-pad span { font: 700 13px var(--f-t); color: #fff; }
.feed .s-pad.lit { background: #fff; }
.feed .s-pad.lit span { color: #000; }
.feed .s-dots i.on { background: var(--cyan); }
.feed .s-roof { width: min(100%, 42vh, 300px); }
.feed .sc-box { width: min(100%, 42vh, 300px); border-radius: 14px; }
.feed .sc-bar i { background: var(--cyan); }
.feed .fl-area { border-radius: 14px; }
.feed .fl-count { background: var(--red); color: #fff; border-radius: 6px; }
.feed .pz-grid { width: min(100%, 40vh, 300px); }
.feed .pz-t.sel { box-shadow: 0 0 0 4px var(--cyan); }
.feed .pp-grid { width: 100%; grid-template-columns: 34px repeat(var(--cols), 1fr) 34px; gap: 5px; }
.feed .pp-bat, .feed .pp-eng { width: 32px; height: 32px; }
.feed .pp-tile { background: rgba(0, 0, 0, .35); border-radius: 10px; }
.feed .pp-grid.powered .pp-tile path { stroke: var(--cyan); }
.feed .or-slot { border-radius: 8px; background: rgba(0, 0, 0, .3); }
.feed .or-slot.on { background: #fff; color: #000; }
.feed .or-syllable .or-it { border-radius: 10px; box-shadow: none; }
.feed .or-syllable .or-it b, .feed .or-slot b { font-family: var(--f-t); font-weight: 800; }
.feed .pt-lamp { background: rgba(0, 0, 0, .3); }
.feed .pt-lamp b { font-family: var(--f-t); font-weight: 800; }
.feed .pt-q { background: #fff; }
.feed .cd-safe { max-width: 100%; border-radius: 14px; padding: 12px; }
.feed .cd-slots { gap: 6px; }
.feed .cd-slots span { width: 42px; height: 52px; font: 800 26px var(--f-t); border-radius: 8px; }
.feed .cd-pad { gap: 7px; }
.feed .cd-k { border-radius: 10px; min-height: 48px; box-shadow: none; font: 800 22px var(--f-t); }
.feed .ct-btn { width: min(54vw, 26vh, 200px); background: var(--red); color: #fff; box-shadow: 0 0 0 8px rgba(254, 44, 85, .25); }
.feed .ct-btn b { font-family: var(--f-t); font-weight: 800; }
.feed .ct-num b { font-family: var(--f-t); color: #FFD447; }
.feed .ct-dots i.on { background: var(--cyan); }
.feed .sus-b { border-radius: 12px; box-shadow: none; }
.feed .sus-b span { font-family: var(--f-t); font-weight: 700; }
.feed .sus-b.yes { background: var(--red); color: #fff; }
.feed .sus-n4 .sus-b svg { max-width: 92px; }

/* награда */
.gift { position: absolute; z-index: 4; top: calc(var(--safe-t) + 56px); left: 8px; display: flex; align-items: center; gap: 8px; padding: 4px 34px 4px 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(254, 44, 85, .95) 40%, rgba(254, 44, 85, 0)); animation: giftIn .7s cubic-bezier(.2, .9, .3, 1) .15s both; }
.gift .f-mini { width: 36px; height: 36px; }
.gift-t { display: flex; flex-direction: column; line-height: 1.15; }
.gift-t b { font: 700 13.5px var(--f-t); }
.gift-t span { font-size: 12.5px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-v { width: 40px; height: 40px; display: grid; place-items: center; }
.gift-mini { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; color: #000; }
.gift-mini.rw-digits b, .gift-mini.rw-syllables b { font: 800 18px var(--f-t); }
.gift-mini.rw-systems, .gift-mini.rw-clues { background: var(--qpop); color: var(--qdeep); padding: 6px; }
.gift-mini svg { width: 100%; height: 100%; }
.gift em { font: 800 italic 22px var(--f-t); color: #FFD447; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.rays { position: absolute; left: 50%; top: 46%; width: 150vmax; height: 150vmax; translate: -50% -50%; background: repeating-conic-gradient(rgba(255, 255, 255, .1) 0 9deg, transparent 9deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 45%); mask-image: radial-gradient(circle, #000 0, transparent 45%); animation: spin 18s linear infinite; pointer-events: none; }
.card-reward .rw-item { position: relative; margin: 0; width: min(46vw, 24vh, 180px); height: min(46vw, 24vh, 180px); }
.card-reward .rw-digits { font: 800 min(30vw, 15vh, 120px) var(--f-t); border-radius: 22px; }
.card-reward .rw-syllables { font: 800 54px var(--f-t); border-radius: 22px; width: auto; }

/* загадка */
.card-riddle .f-body { justify-content: center; gap: 10px; }
.card-riddle .stk-wrap.riddle { max-width: 100%; }

/* где ты */
.card-where .f-body { justify-content: center; }
.wh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.wh-t { position: relative; aspect-ratio: 4 / 5; max-height: 26vh; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 30%)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .1s, opacity .2s; }
.wh-t:active { transform: scale(.97); }
.wh-ic { width: 44%; aspect-ratio: 1; color: #fff; --ic2: hsl(var(--h) 70% 45%); }
.wh-ic .ic { width: 100%; height: 100%; }
.wh-t b { font: 700 14px/1.15 var(--f-t); text-align: center; padding: 0 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.wh-t.no { opacity: .25; }

/* задание в комнате: опрос */
.card-pre .f-body { justify-content: safe center; }
.poll { width: 100%; max-width: 310px; background: #fff; color: #000; border-radius: 14px; padding: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.poll-q { font: 800 17px/1.3 var(--f-t); text-align: center; margin-bottom: 4px; }
.poll-o { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border-radius: 22px; background: #F1F1F2; margin-top: 8px; padding: 0 16px; font: 700 15px var(--f-t); overflow: hidden; color: #000; }
.poll-o::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(254, 44, 85, .2); transition: width .7s cubic-bezier(.2, .8, .3, 1); }
.poll-o.on::before { background: rgba(254, 44, 85, .5); }
.poll-o span, .poll-o b { position: relative; }
.toast-c { display: flex; gap: 8px; align-items: flex-start; background: rgba(0, 0, 0, .62); border-radius: 12px; padding: 10px 12px; max-width: 310px; font-size: 14.5px; line-height: 1.35; }
.toast-c b { display: block; font-size: 13px; color: #D5D5DA; }

/* финал */
.card-finale .f-body { justify-content: center; }
.card-finale .fx { flex: 1 1 auto; width: 100%; }
.hearts { position: absolute; z-index: 2; right: 6px; bottom: 0; width: 60px; height: 70%; pointer-events: none; }
.hearts i { position: absolute; bottom: 0; right: var(--x); width: 28px; color: var(--c); animation: floatUp 3.2s ease-out var(--d) infinite; opacity: 0; }
.hearts .fi { width: 100%; height: auto; }

/* вход в эфир */
.card-intro .push { position: absolute; z-index: 4; top: calc(var(--safe-t) + 58px); left: 10px; right: 10px; display: flex; gap: 10px; padding: 12px; border-radius: 20px; background: rgba(36, 36, 42, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: pushIn .7s cubic-bezier(.2, .9, .3, 1) .2s both; }
.push-ic { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex: none; }
.push-ic svg { width: 100%; height: 100%; }
.push-b p { font-size: 14px; line-height: 1.3; }
.push-b p:first-child { display: flex; justify-content: space-between; color: #BDBDC4; font-size: 12.5px; }
.push-b p:first-child b { font-weight: 600; }
.live { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 0 20px; }
.live-ring { width: 150px; height: 150px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--red), var(--cyan), #FFD447, var(--red)); animation: spin 3s linear infinite; }
.live-ring .f-mini { width: 100%; height: 100%; box-shadow: 0 0 0 4px #000; animation: spin 3s linear infinite reverse; }
.live em { position: relative; margin-top: -20px; background: var(--red); color: #fff; font: 800 12px var(--f-t); padding: 3px 9px; border-radius: 4px; font-style: normal; letter-spacing: .04em; }
.live h1 { font: 800 21px var(--f-t); margin-top: 6px; }
.live p { font-size: 15px; color: #D5D5DA; }
.intro-cta { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 26px); }
.intro-cta .f-cta { min-height: 52px; font-size: 17px; }

/* профиль в конце */
.screen.feed-prof { position: relative; min-height: 100dvh; height: auto !important; overflow-y: auto !important; padding: calc(var(--safe-t) + 6px) 0 30px; background: #000; color: #fff; text-align: center; }
.pf-top { height: 44px; display: grid; place-items: center; font: 700 17px var(--f-t); }
.pf-ava { position: relative; width: 104px; height: 104px; border-radius: 50%; margin: 14px auto 10px; background: var(--qbg); display: grid; place-items: center; font: 800 46px var(--f-t); box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--red); }
.pf-ava .fv { position: absolute; right: 0; bottom: 2px; width: 28px; height: 28px; }
.pf-ava.small { width: 76px; height: 76px; font-size: 32px; margin-top: 6px; background: var(--red); }
.pf-name { font: 700 18px var(--f-t); margin: 0; }
.pf-badge { display: inline-block; margin: 2px auto 0; font: 800 16px var(--f-t); color: #FFD447; }
.pf-badge::before { content: "★ "; }
.pf-bio { font-size: 14px; color: #CFCFD4; margin: 8px 20px 14px; line-height: 1.45; }
.pf-bio .fv { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.pf-btns { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.pf-btns .btn { min-width: 190px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; }
.pf-post { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.pf-post > span:first-child { width: 58%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #fff; color: #000; overflow: hidden; }
.pf-post .rw-digits b, .pf-post .rw-syllables b { font: 800 30px var(--f-t); }
.pf-post .rw-systems, .pf-post .rw-clues { background: var(--qpop, #25F4EE) !important; padding: 12px; }
.pf-post svg { width: 100%; height: 100%; }
.pf-post > .fi { width: 52%; height: auto; }
.screen.feed-prof .confetti i { border-radius: 2px; }

/* шторки */
.f-sheet .sheet-card.f-card { background: #fff; color: #000; border-radius: 14px 14px 0 0; padding: 0 0 calc(var(--safe-b) + 14px); max-height: 74dvh; overflow-y: auto; font-family: "TikTok Sans", system-ui, sans-serif; }
.f-sh-h { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; justify-content: center; align-items: center; height: 50px; font: 700 14.5px var(--f-t); }
.f-sh-x { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: #000; }
.f-sh-x .fi { width: 20px; height: 20px; }
.f-c { display: flex; gap: 10px; padding: 10px 14px; text-align: left; }
.f-c-ava .f-mini { width: 36px; height: 36px; }
.f-c-b { flex: 1; min-width: 0; }
.f-c-n { font: 600 13px var(--f-t); color: #8A8B91; }
.f-c-n em { font-style: normal; color: var(--red, #FE2C55); font-weight: 700; margin-left: 4px; }
.f-c-t { font: 500 16px/1.35 var(--f-t); margin-top: 2px; color: #161823; }
.f-c-m { display: flex; gap: 16px; margin-top: 5px; font-size: 12.5px; color: #8A8B91; }
.f-c-m button { font: 600 12.5px var(--f-t); color: #8A8B91; }
.f-c-m .say { color: #FE2C55; }
.f-c-l { display: flex; flex-direction: column; align-items: center; color: #8A8B91; width: 46px; flex: none; text-align: center; }
.f-c-l .fi { width: 18px; height: 18px; }
.f-c-l b { font: 500 11.5px var(--f-t); }
.f-more { margin-top: 10px; font: 700 13.5px var(--f-t); color: #8A8B91; display: flex; align-items: center; gap: 6px; }
.f-more::before { content: ""; width: 24px; height: 1px; background: #C9C9CE; }
.f-replies .f-c { padding: 10px 0 2px; }
.f-replies .f-c-ava .f-mini { width: 28px; height: 28px; }
.c-place { display: block; width: 72px; height: 72px; margin-top: 8px; padding: 10px; border-radius: 12px; background: #F1F1F2; color: #000; --ic2: #F1F1F2; }
.c-place .ic { width: 100%; height: 100%; }
.f-inv { display: flex; justify-content: center; gap: 6px; padding: 10px 14px 4px; }
.f-inv-s { width: 58px; height: 70px; border-radius: 10px; background: #F1F1F2; display: grid; place-items: center; font: 800 22px var(--f-t); color: #B8B8BE; overflow: hidden; }
.f-inv-s.on { background: #161823; color: #fff; }
.f-inv-s.on b { font: 800 26px var(--f-t); }
.inv-syllables .f-inv-s.on b { font-size: 17px; }
.inv-systems .f-inv-s.on, .inv-clues .f-inv-s.on { background: #FE2C55; color: #fff; padding: 12px; --ic2: #FE2C55; }
.f-inv-s svg { width: 100%; height: 100%; }
.f-inv-t { text-align: center; color: #8A8B91; font-size: 14px; padding: 6px 0 4px; }
.f-inbox { padding: 4px 14px; }
.f-msg { display: flex; gap: 10px; padding: 10px 0; text-align: left; }
.f-msg + .f-msg { border-top: 1px solid #EFEFF1; }
.f-msg .f-mini { width: 40px; height: 40px; }
.f-msg p { font: 500 15px/1.4 var(--f-t); color: #161823; }
.f-msg.new p { font-weight: 700; }
.f-me { text-align: center; padding: 4px 16px 10px; }
.f-me-n { font: 700 18px var(--f-t); margin-top: 8px; }
.f-me .hm-stats div + div::before { background: #E3E3E6; }
.f-me .hm-stats b { color: #161823; }
.f-me-t { font-size: 14px; color: #8A8B91; }
.f-toast { position: fixed; z-index: 70; left: 50%; top: 42%; translate: -50% 0; background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 16px; border-radius: 8px; font: 600 14px var(--f-t); white-space: nowrap; animation: pop .3s both; }

/* реакции */
body[data-ui="feed"] .stamp { font: 800 min(9vw, 34px)/1.1 var(--f-t); text-transform: none; border-radius: 8px; padding: 10px 18px 12px; }
body[data-ui="feed"] .stamp.good { background: #fff; color: #000; box-shadow: -4px 0 0 var(--cyan), 4px 0 0 var(--red); }
body[data-ui="feed"] .stamp.bad { background: rgba(0, 0, 0, .8); color: #fff; }
.aura-pop { position: fixed; z-index: 60; translate: 0 -100%; pointer-events: none; font: 800 15px var(--f-t); color: #fff; background: var(--red); padding: 3px 8px; border-radius: 6px; white-space: nowrap; animation: auraUp 1.4s ease-out both; }
.burst { position: fixed; z-index: 60; width: 96px; height: 96px; translate: -50% -50%; color: var(--red); pointer-events: none; animation: burst .9s ease-out both; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.burst .fi { width: 100%; height: 100%; }

@keyframes cardIn { 0% { transform: translateY(14%); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes kb { 0% { transform: scale(1); } 100% { transform: scale(1.07) translateY(-1.5%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes giftIn { 0% { transform: translateX(-110%); } 100% { transform: none; } }
@keyframes pushIn { 0% { transform: translateY(-140%); } 100% { transform: none; } }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) translateX(-14px) scale(1.1); opacity: 0; } }
@keyframes auraUp { 0% { transform: translateY(0) scale(.7); opacity: 0; } 15% { transform: translateY(-10px) scale(1.05); opacity: 1; } 100% { transform: translateY(-90px) scale(1); opacity: 0; } }
@keyframes burst { 0% { transform: scale(.2) rotate(var(--rot)); opacity: 0; } 25% { transform: scale(1.15) rotate(var(--rot)); opacity: 1; } 60% { transform: scale(1) rotate(var(--rot)); opacity: 1; } 100% { transform: scale(1.4) translateY(-50px) rotate(var(--rot)); opacity: 0; } }

@media (max-height: 680px) {
  .f-rail { gap: 8px; }
  .f-r .fi { width: 30px; height: 30px; }
  .f-ava { width: 40px; height: 40px; }
  .f-disc { display: none; }
  .f-cta { min-height: 42px; margin-top: 8px; }
  .f-music { display: none; }
  .stk { font-size: 15.5px; }
  .stk-wrap.big .stk { font-size: 21px; }
  .stk-wrap.riddle .stk { font-size: 17px; }
  .stk-wrap.title .stk { font-size: 17px; }
  .f-text { font-size: 14px; }
  .feed .opt { min-height: 48px; }
  .feed .opt-pic { min-height: 84px; }
  .live-ring { width: 112px; height: 112px; }
  .card-pre .f-body { gap: 8px; padding-top: calc(var(--safe-t) + 48px); }
  .card-pre .fd-place.big { flex-direction: row; gap: 6px; }
  .card-pre .fd-place.big .ic { width: 40px; padding: 7px; }
  .card-pre .fd-art.small { display: none; }
  .card-pre .f-text { display: none; }
  .poll { padding: 10px 12px; }
  .poll-q { font-size: 15.5px; }
  .poll-o { min-height: 36px; margin-top: 6px; font-size: 14px; }
  .toast-c { padding: 7px 10px; font-size: 13.5px; }
}
.feed .opt-num .opt-t { font: 700 16px/1.2 var(--f-t); }
.feed .pt-row { gap: 5px; }
.feed .pt-lamp { width: 44px; height: 44px; }
.feed .pt-lamp b { font-size: 16px; }

.feed .c-msg .c-cell { width: 36px; }
