/* «Как пользоваться STENA.ee» (/guide): the player and its scenes. Only transform and opacity move (the compositor
   does them without repainting), only the scene on screen plays (.gs.on), .paused stops everything. Each scene's
   picture is a 380×300 box (.art) scaled by --k (guide.js). The base styles are the end of every animation, so with
   reduced motion the pictures stand finished. */

.gd { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.gd-head h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; }
.gd-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- the stage ---------- */
.gp { --k: 1; }
/* max-width 100%: through the 16:9 ratio the 420 px minimum height made a 747 px minimum width (681–768 px screens,
   tablets in portrait, scrolled sideways) */
.gp-stage { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; min-height: 420px; max-width: 100%;
  max-height: calc(100vh - 140px); border-radius: 24px; background: #0c1120; color: #fff; outline: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.gp-stage:focus-visible { box-shadow: 0 0 0 3px #ff7500; }
/* a faint brick wall behind everything */
.gp-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 1h64M0 33h64M1 0v32M33 32v32' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.gp-stage::after { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%); }

.gp-scenes { position: absolute; inset: 0; }
.gs { position: absolute; inset: 0; display: none; grid-template-columns: 41% 59%; }
.gs.on, .gs.out { display: grid; }
.gs.on { z-index: 2; animation: gs-in .55s ease both; }
.gs.out { z-index: 1; pointer-events: none; animation: gs-out .45s ease both; }
@keyframes gs-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes gs-out { to { opacity: 0; } }
/* coloured light of the scene */
.gs::before, .gs::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--a), transparent); }
.gs::before { width: 62%; aspect-ratio: 1; right: -12%; top: -28%; opacity: .5; animation: blob 10s ease-in-out infinite alternate; }
.gs::after { width: 46%; aspect-ratio: 1; left: -14%; bottom: -30%; opacity: .3; animation: blob 13s ease-in-out infinite alternate-reverse; }
@keyframes blob { to { transform: translate(-8%, 10%) scale(1.15); } }

.gs-cap { position: relative; z-index: 2; padding: clamp(20px, 4.2%, 44px) 6px 0 clamp(20px, 4.2%, 44px); }
.gs-cap small { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.gs-cap h2 { margin: 14px 0 12px; color: #fff; font-size: clamp(24px, 3.3vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.gs-cap h2::after { content: ""; display: block; width: 52px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--a); transform-origin: left; }
.gs-cap p { margin: 0; max-width: 30em; font-size: clamp(15px, 1.55vw, 18px); line-height: 1.45; color: rgba(255, 255, 255, .88); }
.gs.on .gs-cap > * { animation: cap-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.gs.on .gs-cap h2 { animation-delay: .1s; }
.gs.on .gs-cap h2::after { animation: grow .6s .5s cubic-bezier(.2, .8, .2, 1) both; }
.gs.on .gs-cap p { animation-delay: .22s; }
@keyframes cap-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes grow { from { transform: scaleX(0); } }

.gs-art { position: relative; z-index: 1; min-width: 0; min-height: 0; }
.art { position: absolute; left: 50%; top: 50%; width: 380px; height: 300px; margin: -150px 0 0 -190px;
  transform: scale(var(--k)); font-size: 13px; line-height: 1.3; color: #fff; }
.art *, .art *::before, .art *::after { box-sizing: border-box; }
.art > * { position: absolute; }
.art b { font-weight: 700; }

/* ---------- the mascot ---------- */
.gm { position: absolute; z-index: 3; left: 3.2%; bottom: 1%; width: min(18%, 205px); pointer-events: none; }
.gm > svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%;
  animation: gm-bob 2.6s ease-in-out infinite; }
.gm-shadow { position: absolute; z-index: -1; left: 24%; width: 48%; bottom: 3%; height: 5%; border-radius: 50%;
  background: rgba(0, 0, 0, .45); animation: gm-sh 2.6s ease-in-out infinite; }
@keyframes gm-bob { 50% { transform: translateY(-3%) scale(.99, 1.01); } 90% { transform: scale(1.015, .985); } }
@keyframes gm-sh { 50% { transform: scale(.85); opacity: .6; } }
.gm.joy > svg { animation: gm-jump .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes gm-jump { 0% { transform: scale(1.05, .93); } 40% { transform: translateY(-14%) rotate(-5deg); } 70% { transform: translateY(-14%) rotate(5deg); } }

.gm .eyeL { transform-origin: 166px 198px; } .gm .eyeR { transform-origin: 220px 196px; }
.gm .eyeL, .gm .eyeR { animation: gm-blink 4.2s infinite; }
@keyframes gm-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.gm .pupil, .gm .armL, .gm .hat, .gm .brows { transition: transform .4s; }
.gm .armR { transform-origin: 252px 262px; animation: gm-wave 1.3s ease-in-out infinite; transition: transform .4s; }
@keyframes gm-wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(16deg); } }
.gm .armL { transform-origin: 124px 262px; }
.gm .hat { transform-origin: 206px 130px; }
.gm .flash { opacity: 0; transform-origin: 236px 333px; }
.gm .eyeLc, .gm .eyeRc, .gm .m, .gm .tear, .gm .mag, .gm .brow-sad, .gm .hat > g, .gm .acc { display: none; }
.gm .m-smile, .gm .brow-n, .gm .acc-cam, .gm .acc-note { display: inline; }
.gm[data-hat="press"] .hat-press, .gm[data-hat="knit"] .hat-knit, .gm[data-hat="knit"] .acc-scarf { display: inline; }
.gm[data-hat="knit"] .acc-cam { display: none; }
/* poses (as on /static/mascot/press.html) */
.gm[data-s="photo"] .armR { animation: none; transform: rotate(56deg); }
.gm[data-s="photo"] .flash { animation: gm-flash 2.4s infinite; }
@keyframes gm-flash { 0%, 70% { opacity: 0; transform: scale(.3); } 74% { opacity: 1; transform: scale(1.2); } 90%, 100% { opacity: 0; transform: scale(1.6); } }
.gm[data-s="photo"] .eyeR { animation: none; display: none; }
.gm[data-s="photo"] .eyeRc { display: inline; }
.gm[data-s="photo"] .pupil { transform: translate(2px, -1px); }
.gm[data-s="write"] .armR { animation: none; transform: rotate(104deg); }
.gm[data-s="write"] .armL { transform: rotate(-14deg); }
.gm[data-s="write"] .pupil { transform: translate(-6px, 5px); }
.gm[data-s="write"] .m-smile { display: none; } .gm[data-s="write"] .m-flat { display: inline; }
.gm[data-s="write"] .pencil { animation: gm-scrib .5s ease-in-out infinite; }
@keyframes gm-scrib { 25% { transform: translate(-5px, 2px); } 50% { transform: translate(-9px, -1px); } 75% { transform: translate(-3px, 3px); } }
.gm[data-s="news"] > svg { animation: gm-hop .6s ease-in-out 3, gm-bob 2.6s 1.8s ease-in-out infinite; }
@keyframes gm-hop { 50% { transform: translateY(-5%) scale(.98, 1.02); } 0%, 100% { transform: scale(1.03, .97); } }
.gm[data-s="news"] .armR { animation-duration: .5s; }
.gm[data-s="news"] .m-smile { display: none; } .gm[data-s="news"] .m-o { display: inline; }
.gm[data-s="news"] .brows { transform: translateY(-6px); }
.gm[data-s="search"] .armR { animation: gm-seek 3s ease-in-out infinite; }
@keyframes gm-seek { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(4deg); } }
.gm[data-s="search"] .mag { display: inline; } .gm[data-s="search"] .fingers { display: none; }
.gm[data-s="search"] .pupil { animation: gm-look 3s ease-in-out infinite; }
@keyframes gm-look { 0%, 100% { transform: translate(6px, -4px); } 50% { transform: translate(-5px, 2px); } }

/* ---------- big button, states ---------- */
.gp-big { position: absolute; z-index: 6; left: 70.5%; top: 50%; display: none; flex-direction: column; align-items: center; gap: 12px;
  transform: translate(-50%, -50%); padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 17px;
  font-weight: 700; white-space: nowrap; cursor: pointer; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.gp-big-ic { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #ff7500; box-shadow: 0 10px 30px rgba(255, 117, 0, .45); }
.gp-big-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #ff7500; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.gp-big svg { width: 40px; height: 40px; margin-left: 6px; fill: #fff; }
.gp.poster .gp-big, .gp.held .gp-big { display: flex; }
.gp.poster .gs-art, .gp.held .gs-art { opacity: .3; transition: opacity .3s; }
.gp.poster .gs *, .gp.poster .gs::before, .gp.poster .gs::after, .gp.poster .gs, .gp.poster .gp-seg b { animation: none !important; }
.gp.paused *, .gp.paused *::before, .gp.paused *::after { animation-play-state: paused !important; }
.gp.paused .gp-big-ic::before { animation-play-state: running !important; }

/* ---------- bar under the stage ---------- */
.gp-bar { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gp-segs { display: flex; gap: 4px; }
.gp-seg { flex: 1 1 0; min-width: 0; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.gp-seg i { display: block; position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: var(--line); }
.gp-seg b { position: absolute; inset: 0; border-radius: inherit; background: #ff7500; transform: scaleX(0); transform-origin: left; }
.gp-seg.done b { transform: none; }
.gp-seg.on b { animation: gp-fill var(--d) linear forwards; }
@keyframes gp-fill { to { transform: none; } }
.gp-ctl { display: flex; align-items: center; gap: 8px; }
.gp-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: var(--chip); color: var(--strong); cursor: pointer; }
.gp-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gp-toggle { width: 48px; height: 48px; background: #ff7500; color: #fff; }
.gp-toggle svg { width: 22px; height: 22px; }
.gp-toggle .i-pause, .gp-toggle .i-again, .gp.playing .gp-toggle .i-play, .gp.ended .gp-toggle .i-play { display: none; }
.gp.playing .gp-toggle .i-pause, .gp.ended .gp-toggle .i-again { display: block; }
.gp-toggle .i-again { fill: none; }
.gp-sound .i-off, .gp-sound[aria-pressed="false"] .i-on { display: none; }
.gp-sound[aria-pressed="false"] .i-off { display: block; }
.gp-sound[aria-pressed="false"] { color: var(--muted); }
.gp-now { min-width: 0; margin-left: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 15px; }
.gp-now b { color: var(--strong); margin-right: 6px; }

/* ---------- chapters ---------- */
.gd-ch h2 { margin: 10px 0 12px; font-size: 22px; }
.gd-ch ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gd-ch li { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line);
  border-top: 3px solid var(--a); border-radius: 16px; background: var(--card); }
.gd-ch li.on { box-shadow: 0 0 0 2px var(--a); }
.gd-ch button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit;
  font-size: 17px; color: var(--strong); text-align: left; cursor: pointer; }
.gd-em { font-size: 20px; }
.gd-ch p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.gd-ch p a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.gd-ch li > a { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--link); }

/* ---------- shared pieces of the pictures ---------- */
.mini-logo { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #1f2328; }
.mini-logo i { font-style: normal; color: #ff7500; }
.ph { width: 200px; height: 290px; overflow: hidden; border: 6px solid #1b2235; border-radius: 30px; background: #fff;
  color: #1f2328; box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.ph-top { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; border-bottom: 1px solid #eceef2; }
.ph-dots { width: 15px; height: 2px; border-radius: 2px; background: #b9c0cb; box-shadow: 0 5px 0 #b9c0cb, 0 -5px 0 #b9c0cb; }
.ln { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: #e3e7ee; }
.ln.s { width: 60%; }
.pic { display: block; position: relative; overflow: hidden; border-radius: 10px; }
.pic i { position: absolute; }
.p-castle { background: linear-gradient(#7cc4ff, #d2ecff 62%, #3b82c4 62%, #2f6fb0); }
.p-castle i { left: 26%; bottom: 38%; width: 17%; height: 50%; border-radius: 2px 2px 0 0; background: #858a94; }
.p-castle i::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px;
  background: repeating-linear-gradient(90deg, #858a94 0 4px, transparent 4px 7px); }
.p-castle i::after { content: ""; position: absolute; left: 100%; bottom: 0; width: 190%; height: 42%; background: #979ca5; }
.p-sun { background: linear-gradient(#ff9f43, #ffd98a); }
.p-sun i { right: 16%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 0 7px rgba(255, 246, 200, .35); }
.p-sun::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%; border-radius: 50%; background: #5fb26a; }
.p-bus { background: linear-gradient(#5aa9ff, #bfe0ff); }
.p-bus i { left: 22%; bottom: 18%; width: 52%; height: 34%; border-radius: 8px 8px 4px 4px; background: #ffb020;
  box-shadow: inset 0 9px 0 -2px #fff, 0 6px 0 -2px #333; }
.p-fest { background: radial-gradient(circle at 20% 30%, #ffd166 0 6%, transparent 7%), radial-gradient(circle at 70% 25%, #06d6a0 0 5%, transparent 6%),
  radial-gradient(circle at 45% 70%, #ef476f 0 7%, transparent 8%), radial-gradient(circle at 85% 70%, #fff 0 4%, transparent 5%), linear-gradient(#7b2ff7, #f107a3); }
.ava { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  color: #fff; font-size: 14px; font-weight: 800; }
.odo { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; font-style: normal; line-height: 1.25em; }
.odo > b { display: block; font-weight: inherit; }
.odo span { display: block; }
@keyframes odo2 { to { transform: translateY(-50%); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.08); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes press { 50% { transform: scale(.92); } }
/* the finger: hidden until a scene moves it */
.tap { left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #fff; border-radius: 50%;
  background: rgba(255, 255, 255, .35); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); opacity: 0; z-index: 9; pointer-events: none; }

/* ---------- 1. hello: the wall builds itself ---------- */
.hl-glow { left: 60px; top: 0; width: 260px; height: 170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 117, 0, .5), transparent); }
.brick { width: 58px; height: 26px; border-radius: 5px; background: linear-gradient(#e2694c, #b93a22);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .2); }
.gs.on .brick { animation: brick-fall .55s cubic-bezier(.3, 1.45, .6, 1) both; }
@keyframes brick-fall { from { opacity: 0; transform: translateY(-330px) rotate(-10deg); } 50% { opacity: 1; } }
.hl-logo { left: 0; right: 0; top: 42px; text-align: center; font-size: 66px; font-weight: 800; line-height: 1; color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.hl-logo b { display: inline-block; color: #ff7500; font-weight: 800; }
.gs.on .hl-logo { animation: pop-in .7s 1.75s cubic-bezier(.3, 1.5, .5, 1) both; }
.gs.on .hl-logo b { animation: a-swing 1s 2.5s ease-in-out both; }
@keyframes a-swing { 30% { transform: rotate(-14deg) scale(1.2); } 60% { transform: rotate(9deg); } }
.hl-sub { left: 0; right: 0; top: 118px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .32em; color: rgba(255, 255, 255, .7); }
.gs.on .hl-sub { animation: fade-up .5s 2.3s both; }
.spark { font-size: 18px; color: #ffd166; }
.gs.on .spark { animation: twinkle 2s ease-in-out infinite both; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } }

/* ---------- 2. feed ---------- */
.fd-ph { left: 90px; top: 5px; }
.fd-tabs { display: flex; justify-content: space-around; height: 30px; border-bottom: 1px solid #eceef2; font-size: 10.5px; letter-spacing: -.01em; font-weight: 700; color: #8a93a0; }
.fd-tabs span { position: relative; display: flex; align-items: center; }
.fd-tabs span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: #ff7500; opacity: 0; }
.fd-tabs span:first-child::after { opacity: 1; }
.gs.on .fd-tabs span::after { animation: fd-tab var(--d) both; }
.gs.on .fd-tabs span:nth-child(2)::after { animation-name: fd-tab2; }
.gs.on .fd-tabs span:nth-child(3)::after { animation-name: fd-tab3; }
@keyframes fd-tab { 0%, 44% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes fd-tab2 { 0%, 44% { opacity: 0; } 46%, 72% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes fd-tab3 { 0%, 72% { opacity: 0; } 74%, 100% { opacity: 1; } }
.ph-view { height: 214px; overflow: hidden; }
.gs.on .fd-feed { animation: fd-scroll var(--d) ease-in-out both; }
@keyframes fd-scroll { 0%, 44% { transform: none; } 52%, 72% { transform: translateY(-206px); } 80%, 100% { transform: translateY(-330px); } }
.fd-card { padding: 9px 10px 10px; border-bottom: 6px solid #f2f3f5; }
.fd-card .pic { height: 66px; margin-bottom: 6px; }
.fd-card > b { display: block; font-size: 11.5px; line-height: 1.25; }
.gs.on .fd-card { animation: fade-up .5s both; }
.gs.on .fd-card.c2 { animation-delay: .15s; } .gs.on .fd-card.c3 { animation-delay: .3s; }
.fd-more-txt { overflow: hidden; }
.pill { display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 99px; background: #ffedd5; color: #c2410c; font-size: 10.5px; font-weight: 700; }
.gs.on .fd-more-txt { animation: fd-open var(--d) both; }
.gs.on .fd-card .pill { animation: fd-pill var(--d) both; }
@keyframes fd-open { 0%, 21% { height: 0; } 26%, 100% { height: 36px; } }
@keyframes fd-pill { 0%, 17% { transform: none; } 19% { transform: scale(.9); } 21% { transform: none; opacity: 1; } 24%, 100% { opacity: .35; } }
.gs.on .fd-tap { animation: fd-tap var(--d) both; }
@keyframes fd-tap {
  0% { opacity: 0; transform: translate(230px, 290px); }
  10% { opacity: 1; transform: translate(150px, 222px); }
  17% { transform: translate(150px, 222px); } 19% { transform: translate(150px, 222px) scale(.75); } 21% { transform: translate(150px, 222px); }
  36% { opacity: 1; transform: translate(190px, 60px); } 42% { transform: translate(190px, 60px); } 44% { transform: translate(190px, 60px) scale(.75); }
  47% { transform: translate(190px, 60px); }
  66% { transform: translate(253px, 60px); } 71% { transform: translate(253px, 60px) scale(.75); } 74% { opacity: 1; transform: translate(253px, 60px); }
  80%, 100% { opacity: 0; transform: translate(260px, 120px); } }

/* ---------- 3. reactions ---------- */
.rx-post { left: 40px; top: 10px; width: 290px; height: 262px; padding: 12px; border-radius: 18px; background: #fff; color: #1f2328;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .4); }
.rx-post .pic { height: 92px; margin-bottom: 8px; }
.rx-post > b { display: block; font-size: 14px; line-height: 1.25; }
.rx-row { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; }
.rx-plus { display: grid; place-items: center; width: 30px; height: 30px; border: 2px dashed #ff7500; border-radius: 50%; color: #ff7500; font-size: 18px; font-weight: 700; }
.rx-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 99px; background: #f1f3f6; font-size: 13px; font-weight: 700; }
.rx-share { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: #f1f3f6; color: #59636e; }
.rx-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gs.on .rx-heart { animation: rx-bump var(--d) both; }
@keyframes rx-bump { 0%, 25% { transform: none; background: #f1f3f6; } 28% { transform: scale(1.18); background: #ffe4ec; } 33%, 100% { transform: none; background: #ffe4ec; } }
.gs.on .rx-heart .odo b { animation: odo2 .35s 2.45s both; }
.rx-pick { position: absolute; left: 10px; top: 172px; display: flex; gap: 1px; padding: 4px 6px; border-radius: 22px; background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28); transform-origin: 20px 100%; opacity: 0; }
.rx-pick i { width: 30px; font-size: 19px; font-style: normal; line-height: 30px; text-align: center; }
.gs.on .rx-pick { animation: rx-pick var(--d) both; }
@keyframes rx-pick { 0%, 9% { opacity: 0; transform: scale(.3); } 12%, 23% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: scale(.6); } }
.gs.on .rx-pick i:nth-child(2) { animation: rx-pick2 var(--d) both; }
@keyframes rx-pick2 { 0%, 19% { transform: none; } 21% { transform: scale(1.45) translateY(-4px); } 24% { transform: none; } }
.rx-toast { position: absolute; left: 50%; top: 58px; padding: 7px 14px; border-radius: 99px; background: #1f2328; color: #fff; font-size: 12px; font-weight: 700;
  white-space: nowrap; transform: translateX(-50%); opacity: 0; }
.gs.on .rx-toast { animation: rx-toast var(--d) both; }
@keyframes rx-toast { 0%, 60% { opacity: 0; transform: translate(-50%, 8px); } 64%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.gs.on .rx-share { animation: rx-green var(--d) both; }
@keyframes rx-green { 0%, 59% { background: #f1f3f6; color: #59636e; } 61%, 100% { background: #22c55e; color: #fff; } }
.rx-float { left: 334px; top: 30px; width: 44px; height: 230px; }
.rx-float i { position: absolute; bottom: 0; left: 6px; font-size: 22px; font-style: normal; opacity: 0; }
.gs.on .rx-float i { animation: rx-rise 2.8s ease-out infinite both; }
.rx-float i:nth-child(1) { animation-delay: 2.5s !important; } .rx-float i:nth-child(2) { animation-delay: 2.9s !important; left: 16px; }
.rx-float i:nth-child(3) { animation-delay: 3.3s !important; left: 0; } .rx-float i:nth-child(4) { animation-delay: 3.7s !important; left: 14px; }
.rx-float i:nth-child(5) { animation-delay: 4.1s !important; } .rx-float i:nth-child(6) { animation-delay: 4.5s !important; left: 18px; }
.rx-float i:nth-child(7) { animation-delay: 4.9s !important; left: 2px; }
@keyframes rx-rise { from { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-210px) translateX(-10px) scale(1.15); } }
.gs.on .rx-tap { animation: rx-tap var(--d) both; }
@keyframes rx-tap {
  0% { opacity: 0; transform: translate(200px, 300px); }
  6% { opacity: 1; transform: translate(67px, 245px); } 8% { transform: translate(67px, 245px) scale(.75); } 10% { transform: translate(67px, 245px); }
  18% { transform: translate(101px, 201px); } 20% { transform: translate(101px, 201px) scale(.75); } 22% { transform: translate(101px, 201px); }
  50% { transform: translate(303px, 245px); } 56% { transform: translate(303px, 245px); } 58% { transform: translate(303px, 245px) scale(.75); }
  61% { opacity: 1; transform: translate(303px, 245px); } 70%, 100% { opacity: 0; transform: translate(330px, 300px); } }

/* ---------- 4. search and schemes ---------- */
.lk-search { left: 20px; top: 8px; width: 340px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: 99px; background: #fff; color: #1f2328; font-size: 17px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.lk-search svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: #ff7500; stroke-width: 2.6; stroke-linecap: round; }
.lk-q { position: relative; overflow: hidden; }
.lk-cover { position: absolute; inset: 0 -2px; background: #fff; transform: scaleX(0); transform-origin: right; }
.gs.on .lk-cover { animation: lk-type 1s .5s steps(7) both; }
@keyframes lk-type { from { transform: scaleX(1); } }
.lk-caret { width: 2px; height: 20px; margin-left: -8px; background: #ff7500; }
.gs.on .lk-caret { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lk-search small { margin-left: auto; font-size: 11.5px; color: #59636e; font-weight: 600; }
.gs.on .lk-search small { animation: fade-up .4s 1.6s both; }
.lk-res { left: 20px; top: 62px; width: 266px; }
.lk-res p { margin: 0 0 6px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs.on .lk-res p { animation: fade-up .45s 1.7s both; }
.gs.on .lk-res p:nth-child(2) { animation-delay: 1.85s; } .gs.on .lk-res p:nth-child(3) { animation-delay: 2s; }
.lk-aa { left: 300px; top: 66px; width: 62px; height: 84px; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); font-size: 22px; font-weight: 800; }
.lk-aa b { font-size: 30px; }
.gs.on .lk-aa { animation: fade-up .45s 2.2s both; }
.gs.on .lk-aa b { animation: lk-aa 3s 7s ease-in-out both; display: inline-block; }
@keyframes lk-aa { 40%, 70% { transform: scale(1.5); } }
.lk-page { left: 20px; top: 160px; width: 214px; height: 132px; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.gs.on .lk-page, .gs.on .lk-sw { animation: fade-up .5s 3.6s both; }
.lk-th { position: absolute; inset: 0; padding: 26px 12px 0; background: var(--bg); }
.lk-th .bar { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--bar); }
.lk-th .bar::before { content: ""; position: absolute; left: 10px; top: 6px; width: 40px; height: 6px; border-radius: 3px; background: #ff7500; }
.lk-th .ln { background: var(--ln); }
.lk-th .blk { display: block; height: 36px; margin-top: 10px; border-radius: 8px; background: var(--card); }
.th1 { --bg: #121212; --bar: #1e1e1e; --ln: #3a3a3e; --card: #2b1d10; }
.th2 { --bg: #f2f3f5; --bar: #fff; --ln: #d8dce2; --card: #ffedd5; }
.th3 { --bg: #f4ecd8; --bar: #fbf6ea; --ln: #e0d1b2; --card: #f1dfc2; }
.th4 { --bg: #111827; --bar: #1f2937; --ln: #374151; --card: #2a1a0c; }
.th2, .th3, .th4 { opacity: 0; }
.gs.on .th2, .gs.on .th3, .gs.on .th4 { animation: lk-cyc 4.8s 5.2s infinite both; }
.gs.on .th3 { animation-delay: 6.4s; } .gs.on .th4 { animation-delay: 7.6s; }
@keyframes lk-cyc { 0% { opacity: 0; } 6%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
.lk-sw { left: 248px; top: 164px; width: 116px; }
.lk-sw span { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.lk-sw span i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.sw1 i { background: #121212; } .sw2 i { background: #f2f3f5; } .sw3 i { background: #f4ecd8; } .sw4 i { background: #111827; }
.lk-sw u { position: absolute; left: 0; top: 0; width: 100%; height: 28px; border-radius: 9px; background: rgba(255, 117, 0, .35); border: 1.5px solid #ff7500; }
.gs.on .lk-sw u { animation: lk-ring 4.8s 4s infinite both; }
@keyframes lk-ring { 0%, 24% { transform: none; } 26%, 49% { transform: translateY(28px); } 51%, 74% { transform: translateY(56px); } 76%, 98% { transform: translateY(84px); } 100% { transform: none; } }

/* ---------- 5. sign-in ---------- */
.lg-card { left: 80px; top: 46px; width: 220px; height: 208px; border-radius: 20px; background: #fff; color: #1f2328; box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.lg-form { position: absolute; inset: 18px; display: flex; flex-direction: column; gap: 10px; }
.lg-h { font-size: 20px; line-height: 24px; text-align: center; }
.lg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.lg-g { border: 1.5px solid #dfe3e8; }
.lg-t { background: #2aabee; color: #fff; }
.g-ic svg, .t-ic svg { display: block; width: 18px; height: 18px; }
.t-ic svg { fill: currentColor; }
.gs.on .lg-t { animation: press .3s 1.85s both; }
.gs.on .lg-form { animation: lg-out .35s 2.3s both; }
@keyframes lg-out { to { opacity: 0; transform: scale(.9); } }
.lg-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; }
.gs.on .lg-done { animation: lg-in .5s 2.5s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes lg-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.lg-ava { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #ffb347, #ff6a00);
  color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 0 0 5px #ffedd5; }
.lg-done > b { font-size: 17px; }
.lg-chips { display: flex; gap: 6px; }
.lg-chips span { padding: 4px 9px; border-radius: 99px; background: #f1f3f6; font-size: 11.5px; font-weight: 700; }
.gs.on .lg-chips span { animation: pop-in .4s 3s both; }
.gs.on .lg-chips span:nth-child(2) { animation-delay: 3.2s; } .gs.on .lg-chips span:nth-child(3) { animation-delay: 3.4s; }
.gs.on .lg-tap { animation: lg-tap var(--d) both; }
@keyframes lg-tap { 0% { opacity: 0; transform: translate(300px, 300px); } 12% { opacity: 1; transform: translate(190px, 177px); }
  18% { transform: translate(190px, 177px); } 21% { transform: translate(190px, 177px) scale(.75); } 24% { opacity: 1; transform: translate(190px, 177px); }
  32%, 100% { opacity: 0; transform: translate(260px, 260px); } }

/* ---------- 6. comments ---------- */
.cm-thread { left: 20px; top: 4px; width: 340px; display: flex; flex-direction: column; gap: 8px; }
.cm { position: relative; display: flex; gap: 9px; padding: 9px 11px; border-radius: 14px; background: #fff; color: #1f2328; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.cm > div { min-width: 0; flex: 1; }
.cm b { font-size: 12px; }
.cm p { margin: 1px 0 0; font-size: 13px; line-height: 1.3; }
.cm-pic { width: 132px; height: 66px; margin-top: 6px; }
.cm-vote { align-self: flex-start; padding: 3px 8px; border-radius: 99px; background: #e9f9ef; color: #15803d; font-size: 12px; font-weight: 800; }
.cm-plus { right: 14px; top: -4px; font-size: 13px; font-weight: 800; color: #22c55e; opacity: 0; position: absolute; }
.gs.on .cm { animation: rise-in .5s .3s cubic-bezier(.2, .8, .2, 1) both; }
.gs.on .cm.c2 { animation-delay: 1.6s; } .gs.on .cm.c3 { animation-delay: 3.6s; }
.gs.on .cm-pic { animation: pop-in .5s 2.3s both; }
.gs.on .cm-vote { animation: cm-vote var(--d) both; }
@keyframes cm-vote { 0%, 67% { transform: none; } 69% { transform: scale(1.25); } 72%, 100% { transform: none; } }
.gs.on .cm-vote .odo b { animation: odo2 .35s 6.8s both; }
.gs.on .cm-plus { animation: cm-plus 1.2s 6.8s both; }
@keyframes cm-plus { from { opacity: 0; transform: none; } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-26px); } }
.cm-typing { display: flex; align-items: center; gap: 4px; padding-left: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.cm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.gs.on .cm-typing { animation: fade-up .4s 5s both; }
.gs.on .cm-typing i { animation: dot 1s infinite both; }
.gs.on .cm-typing i:nth-child(2) { animation-delay: .15s; } .gs.on .cm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.gs.on .cm-tap { animation: cm-tap var(--d) both; }
@keyframes cm-tap { 0%, 52% { opacity: 0; transform: translate(300px, 160px); } 62% { opacity: 1; transform: translate(332px, 24px); }
  66% { transform: translate(332px, 24px); } 68% { transform: translate(332px, 24px) scale(.75); } 71% { opacity: 1; transform: translate(332px, 24px); }
  80%, 100% { opacity: 0; transform: translate(360px, 90px); } }

/* ---------- 7. replies: bell and Telegram ---------- */
.bl-head { left: 20px; top: 6px; width: 340px; height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.bl-bell { position: relative; color: #1f2328; transform-origin: 50% 2px; }
.bl-bell svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bl-bell em { position: absolute; right: -7px; top: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #ef4444;
  color: #fff; font-size: 11px; font-weight: 800; font-style: normal; line-height: 17px; text-align: center; }
.gs.on .bl-bell { animation: bl-ring 1.1s .6s ease-in-out both; }
@keyframes bl-ring { 10%, 50% { transform: rotate(-18deg); } 30%, 70% { transform: rotate(18deg); } 90% { transform: rotate(-6deg); } }
.gs.on .bl-bell em { animation: pop-in .4s .9s both; }
.bl-drop { left: 150px; top: 54px; width: 210px; display: flex; gap: 9px; padding: 10px; border-radius: 14px; background: #fff; color: #1f2328;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35); transform-origin: 90% 0; }
.bl-drop b { display: block; font-size: 12px; }
.bl-drop small { font-size: 11.5px; color: #59636e; }
.gs.on .bl-drop { animation: pop-in .45s 1.5s both; }
.bl-tg { left: 20px; top: 118px; width: 240px; height: 178px; overflow: hidden; border-radius: 16px; background: #cfe3ee;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.5px, transparent 1.5px); background-size: 14px 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); color: #1f2328; }
.gs.on .bl-tg { animation: fade-up .5s 2.6s both; }
.bl-tg-h { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; background: #fff; font-size: 12px; font-weight: 700; }
.bl-tg-h .t-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2aabee; color: #fff; }
.bl-tg-h .t-ic svg { width: 13px; height: 13px; }
.bl-msg { margin: 8px 40px 0 8px; padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: #fff; font-size: 11.5px; line-height: 1.35; }
.bl-msg span { font-weight: 600; }
.gs.on .bl-msg { animation: pop-in .4s 3.3s both; }
.bl-btns { display: flex; gap: 4px; margin: 4px 40px 0 8px; }
.bl-btns span { flex: 1; padding: 5px 0; border-radius: 8px; background: rgba(255, 255, 255, .7); color: #1677b8; font-size: 11px; font-weight: 700; text-align: center; }
.bl-btns span:last-child { flex: 0 0 34px; }
.gs.on .bl-btns { animation: pop-in .4s 3.7s both; }
.gs.on .bl-reply { animation: press .3s 5.4s both; }
.bl-mine { margin: 8px 8px 0 70px; padding: 7px 10px; border-radius: 12px 12px 4px 12px; background: #dcf8c6; font-size: 12px; font-weight: 600; text-align: right; }
.gs.on .bl-mine { animation: pop-in .4s 6s both; }
.bl-moon { left: 244px; top: 250px; padding: 8px 12px; border-radius: 14px; background: #1e2440; border: 1px solid rgba(255, 255, 255, .15); font-size: 12px; font-weight: 700; white-space: nowrap; }
.gs.on .bl-moon { animation: pop-in .5s 7.4s both; }
.gs.on .bl-tap { animation: bl-tap var(--d) both; }
@keyframes bl-tap { 0%, 40% { opacity: 0; transform: translate(200px, 300px); } 48% { opacity: 1; transform: translate(80px, 211px); }
  53% { transform: translate(80px, 211px); } 55% { transform: translate(80px, 211px) scale(.75); } 58% { opacity: 1; transform: translate(80px, 211px); }
  66%, 100% { opacity: 0; transform: translate(120px, 300px); } }

/* ---------- 8. karma ---------- */
.km-count { left: 24px; top: 8px; }
.km-count small { display: block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.km-odo { height: 1.1em; font-size: 54px; font-weight: 800; line-height: 1.1em; color: #ffd166; }
.gs.on .km-odo > b { animation: km-odo 3s 1.2s both; }
@keyframes km-odo { 0%, 8% { transform: none; } 16%, 42% { transform: translateY(-25%); } 50%, 76% { transform: translateY(-50%); } 84%, 100% { transform: translateY(-75%); } }
.km-podium { left: 246px; top: 8px; width: 116px; height: 96px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.km-podium i { position: relative; width: 32px; border-radius: 6px 6px 0 0; transform-origin: bottom; }
.km-podium b { position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 13px; }
.km-podium .p1 { height: 64px; background: linear-gradient(#ffd166, #e0a800); }
.km-podium .p2 { height: 46px; background: linear-gradient(#e5e7eb, #9ca3af); }
.km-podium .p3 { height: 32px; background: linear-gradient(#f4a261, #b5651d); }
.km-podium small { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.gs.on .km-podium i { animation: km-up .6s .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.gs.on .km-podium .p1 { animation-delay: .6s; } .gs.on .km-podium .p3 { animation-delay: .8s; }
@keyframes km-up { from { transform: scaleY(0); } }
.km-track { left: 40px; top: 140px; width: 300px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.km-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffd166, #ff7500);
  transform: scaleX(.6); transform-origin: left; }
.gs.on .km-fill { animation: km-fill 3s 1.2s ease-in-out both; }
@keyframes km-fill { from { transform: scaleX(0); } }
.km-star { left: 0; top: -14px; margin-left: -14px; font-size: 22px; transform: translateX(180px); position: absolute; }
.gs.on .km-star { animation: km-star 3s 1.2s ease-in-out both; }
@keyframes km-star { from { transform: none; } }
.km-stop { position: absolute; top: -5px; display: flex; flex-direction: column; align-items: center; width: 70px; margin-left: -35px; font-size: 11.5px; font-weight: 700; }
.km-stop i { width: 18px; height: 18px; margin-bottom: 8px; border-radius: 50%; background: #ff7500; border: 3px solid #0c1120; }
.km-stop:last-child i { background: #3a4155; }
.km-stop small { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.gs.on .km-stop:nth-of-type(2) i { animation: km-lit 3s 1.2s both; }
.gs.on .km-stop:nth-of-type(3) i { animation: km-lit2 3s 1.2s both; }
@keyframes km-lit { 0%, 30% { background: #3a4155; } 34%, 100% { background: #ff7500; } }
@keyframes km-lit2 { 0%, 80% { background: #3a4155; } 84%, 100% { background: #ff7500; } }
.km-badges { left: 14px; top: 206px; width: 352px; display: flex; justify-content: space-between; }
.km-badges span { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 88px; font-size: 10px; hyphens: auto; font-weight: 700; line-height: 1.2; text-align: center; }
.km-badges i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 3px var(--c); font-size: 22px; font-style: normal; }
.gs.on .km-badges span { animation: pop-in .45s 4.6s cubic-bezier(.3, 1.5, .5, 1) both; }
.gs.on .km-badges span:nth-child(2) { animation-delay: 4.9s; } .gs.on .km-badges span:nth-child(3) { animation-delay: 5.2s; }
.gs.on .km-badges span:nth-child(4) { animation-delay: 5.5s; }

/* ---------- 9. Предложка ---------- */
.sg-ph { left: 20px; top: 5px; }
.sg-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.sg-field { display: block; padding: 5px 9px; border: 1.5px solid #e1e4e8; border-radius: 10px; }
.sg-field small { display: block; font-size: 9.5px; color: #8a93a0; font-weight: 700; }
.sg-typed { position: relative; display: inline-block; font-size: 12px; font-weight: 700; }
.sg-cover { position: absolute; inset: 0 -2px; background: #fff; transform: scaleX(0); transform-origin: right; }
.gs.on .sg-cover { animation: lk-type 1.2s .6s steps(10) both; }
.sg-area { display: block; height: 42px; padding: 0 9px; border: 1.5px solid #e1e4e8; border-radius: 10px; }
.sg-photo { position: relative; display: block; height: 74px; overflow: hidden; border: 1.5px dashed #c9cfd8; border-radius: 10px; }
.sg-photo .pic { position: absolute; inset: 0; border-radius: 0; }
.gs.on .sg-photo .pic { animation: sg-drop .5s 2s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes sg-drop { from { opacity: 0; transform: translateY(-50px) scale(.8); } }
.sg-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.gs.on .sg-flash { animation: sg-flash .6s 2.05s both; }
@keyframes sg-flash { 10% { opacity: .95; } to { opacity: 0; } }
.sg-send { display: block; padding: 8px 0; border-radius: 10px; background: #ff7500; color: #fff; font-size: 12.5px; font-weight: 800; text-align: center; }
.gs.on .sg-send { animation: press .3s 4.1s both; }
.sg-plane { left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: #fff; opacity: 0; }
.sg-plane svg { width: 30px; height: 30px; fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.gs.on .sg-plane { animation: sg-fly 1.1s 4.3s ease-in both; }
@keyframes sg-fly { 0% { opacity: 1; transform: translate(120px, 260px) scale(.6); } 50% { transform: translate(230px, 150px) rotate(-10deg) scale(1.1); }
  92% { opacity: 1; transform: translate(306px, 66px) scale(.7); } 100% { opacity: 0; transform: translate(312px, 60px) scale(.4); } }
.sg-desk { left: 262px; top: 22px; width: 102px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; }
.sg-desk span { font-size: 32px; line-height: 1; }
.sg-desk em { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #22c55e; font-style: normal; font-weight: 800; }
.gs.on .sg-desk { animation: sg-bump .4s 5.3s both; }
@keyframes sg-bump { 50% { transform: scale(1.12); } }
.gs.on .sg-desk em { animation: pop-in .4s 5.5s both; }
.sg-pub { left: 236px; top: 134px; width: 132px; padding: 8px; border-radius: 14px; background: #fff; color: #1f2328; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.sg-pub .pic { height: 52px; margin-bottom: 6px; }
.sg-pub b { display: block; font-size: 10.5px; line-height: 1.25; }
.gs.on .sg-pub { animation: rise-in .55s 6.3s cubic-bezier(.2, .8, .2, 1) both; }
.sg-karma { left: 246px; top: 262px; padding: 6px 12px; border-radius: 99px; background: #ffd166; color: #3b2a00; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.gs.on .sg-karma { animation: pop-in .45s 7.1s cubic-bezier(.3, 1.5, .5, 1) both; }
.gs.on .sg-tap { animation: sg-tap var(--d) both; }
@keyframes sg-tap { 0%, 30% { opacity: 0; transform: translate(200px, 300px); } 37% { opacity: 1; transform: translate(120px, 260px); }
  40% { transform: translate(120px, 260px); } 42% { transform: translate(120px, 260px) scale(.75); } 44% { opacity: 1; transform: translate(120px, 260px); }
  50%, 100% { opacity: 0; transform: translate(150px, 300px); } }

/* ---------- 10. afisha ---------- */
.gaf-chips { left: 0; right: 0; top: 4px; display: flex; justify-content: center; gap: 6px; }
.gaf-chips span { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; }
.gs.on .gaf-chips span:nth-child(1) { animation: gaf-c1 var(--d) both; }
.gs.on .gaf-chips span:nth-child(2) { animation: gaf-c2 var(--d) both; }
.gs.on .gaf-chips span:nth-child(3) { animation: gaf-c3 var(--d) both; }
@keyframes gaf-c1 { 0%, 30% { background: #ef4444; } 32%, 100% { background: rgba(255, 255, 255, .12); } }
@keyframes gaf-c2 { 0%, 30% { background: rgba(255, 255, 255, .12); } 32%, 60% { background: #ef4444; } 62%, 100% { background: rgba(255, 255, 255, .12); } }
@keyframes gaf-c3 { 0%, 60% { background: rgba(255, 255, 255, .12); } 62%, 100% { background: #ef4444; } }
.gaf-fan { left: 0; top: 46px; width: 380px; height: 160px; }
.gaf-card { position: absolute; top: 0; left: 138px; width: 104px; height: 140px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.gaf-card i { font-size: 40px; font-style: normal; line-height: 1.1; }
.gaf-card b { font-size: 14px; }
.gaf-card small { font-size: 11px; font-weight: 700; opacity: .85; }
.gaf-card.k1 { background: linear-gradient(150deg, #ff6b6b, #c2185b); transform: translate(-96px, 12px) rotate(-11deg); }
.gaf-card.k2 { background: linear-gradient(150deg, #7c3aed, #2563eb); z-index: 1; }
.gaf-card.k3 { background: linear-gradient(150deg, #fbbf24, #f97316); transform: translate(96px, 12px) rotate(11deg); }
.gs.on .gaf-card { animation: gaf-deal .6s .3s cubic-bezier(.3, 1.3, .5, 1) both; }
.gs.on .gaf-card.k2 { animation-delay: .5s; } .gs.on .gaf-card.k3 { animation-delay: .7s; }
@keyframes gaf-deal { from { opacity: 0; transform: translateY(220px) rotate(0); } }
.gaf-ev { left: 20px; top: 216px; width: 340px; height: 74px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px;
  background: #fff; color: #1f2328; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.gs.on .gaf-ev { animation: rise-in .5s 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.gaf-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 54px; border-radius: 12px;
  background: #ef4444; color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.gaf-date small { font-size: 10px; letter-spacing: .1em; margin-bottom: 3px; }
.gaf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gaf-info b { font-size: 14px; }
.gaf-info small { font-size: 11px; color: #59636e; white-space: nowrap; }
.gaf-go { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 82px; }
.gaf-go > span { display: block; width: 100%; padding: 6px 0; border-radius: 10px; font-size: 12px; font-weight: 800; text-align: center; }
.go-a { background: #ffedd5; color: #c2410c; }
.go-b { position: absolute; left: 0; top: 0; background: #22c55e; color: #fff; opacity: 0; }
.gaf-go small { font-size: 11px; font-weight: 700; color: #59636e; }
.gs.on .go-b { animation: gaf-go var(--d) both; }
@keyframes gaf-go { 0%, 55% { opacity: 0; transform: scale(.8); } 58%, 100% { opacity: 1; transform: none; } }
.gs.on .gaf-go .odo b { animation: odo2 .35s 5.8s both; }
.gaf-ticket { left: 300px; top: 210px; font-size: 26px; opacity: 0; }
.gs.on .gaf-ticket { animation: gaf-ticket 1.4s 5.9s ease-out both; }
@keyframes gaf-ticket { from { opacity: 0; transform: none; } 20% { opacity: 1; } to { opacity: 0; transform: translate(30px, -150px) rotate(30deg) scale(1.3); } }
.gs.on .gaf-tap { animation: gaf-tap var(--d) both; }
@keyframes gaf-tap { 0%, 40% { opacity: 0; transform: translate(260px, 300px); } 48% { opacity: 1; transform: translate(318px, 243px); }
  52% { transform: translate(318px, 243px); } 54% { transform: translate(318px, 243px) scale(.75); } 57% { opacity: 1; transform: translate(318px, 243px); }
  64%, 100% { opacity: 0; transform: translate(340px, 300px); } }

/* ---------- 11. Estonian ---------- */
.kl-card { left: 20px; top: 10px; width: 340px; height: 156px; padding: 14px 16px; border-radius: 18px; background: #fff; color: #1f2328; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.kl-flag { display: flex; align-items: center; gap: 0; font-size: 11px; font-weight: 800; color: #2563eb; }
.kl-flag i { width: 8px; height: 12px; } .kl-flag i:nth-child(1) { background: #0072ce; } .kl-flag i:nth-child(2) { background: #1b1d22; }
.kl-flag i:nth-child(3) { background: #f4f4f2; box-shadow: inset 0 0 0 1px #d9dce1; margin-right: 6px; }
.kl-words { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 12px 0 8px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.kl-w { position: relative; padding: 0 4px; margin: 0 -4px; border-radius: 6px; }
.gs.on .kl-w { animation: kl-hi var(--d) both; }
@keyframes kl-hi { 0%, 16% { background: transparent; color: inherit; } 18%, 100% { background: #dbeafe; color: #1d4ed8; } }
.kl-tip { position: absolute; left: 50%; top: 100%; margin-top: 8px; padding: 5px 10px; border-radius: 9px; background: #1f2328; color: #fff;
  font-size: 13px; font-style: normal; font-weight: 700; white-space: nowrap; transform: translateX(-50%); opacity: 0; }
.kl-tip::before { content: ""; position: absolute; left: 50%; top: -5px; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: #1f2328; }
.gs.on .kl-tip { animation: kl-tip var(--d) both; }
@keyframes kl-tip { 0%, 18% { opacity: 0; transform: translate(-50%, 6px); } 21%, 52% { opacity: 1; transform: translate(-50%, 0); } 56%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.kl-card .ln { margin-top: 44px; } .kl-card .ln + .ln { margin-top: 6px; }
.kl-fly { left: 0; top: 0; padding: 2px 6px; border-radius: 6px; background: #dbeafe; color: #1d4ed8; font-size: 18px; font-weight: 800; opacity: 0; }
.gs.on .kl-fly { animation: kl-fly 1s 3.2s ease-in both; }
@keyframes kl-fly { from { opacity: 1; transform: translate(124px, 58px); } 85% { opacity: 1; } to { opacity: 0; transform: translate(300px, 222px) scale(.5); } }
.kl-tasks { left: 20px; top: 190px; width: 226px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.kl-tasks small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.kl-tasks > span { display: flex; gap: 8px; }
.kl-tasks > span i { width: 26px; height: 26px; border-radius: 50%; background: #2563eb; box-shadow: inset 0 0 0 3px #93c5fd; }
.gs.on .kl-tasks > span i { animation: pop-in .4s 4.8s cubic-bezier(.3, 1.5, .5, 1) both; }
.gs.on .kl-tasks > span i:nth-child(2) { animation-delay: 5.1s; } .gs.on .kl-tasks > span i:nth-child(3) { animation-delay: 5.4s; }
.gs.on .kl-tasks > span i:nth-child(4) { animation-delay: 5.7s; } .gs.on .kl-tasks > span i:nth-child(5) { animation-delay: 6s; }
.kl-tasks > b { position: absolute; right: 14px; top: 10px; font-size: 16px; }
.gs.on .kl-tasks > b .odo b { animation: odo2 .35s 6.6s both; }
.kl-dict { left: 262px; top: 190px; width: 98px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 16px; background: #fff; color: #1f2328; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.kl-dict > span { font-size: 30px; line-height: 1; }
.kl-dict small { font-size: 11px; font-weight: 700; color: #59636e; }
.kl-dict .odo { font-size: 18px; font-weight: 800; color: #2563eb; }
.gs.on .kl-dict { animation: sg-bump .4s 4.2s both; }
.gs.on .kl-dict .odo b { animation: odo2 .35s 4.2s both; }
.gs.on .kl-tap { animation: kl-tap var(--d) both; }
@keyframes kl-tap { 0% { opacity: 0; transform: translate(220px, 300px); } 10% { opacity: 1; transform: translate(158px, 78px); }
  14% { transform: translate(158px, 78px); } 16% { transform: translate(158px, 78px) scale(.75); } 19% { opacity: 1; transform: translate(158px, 78px); }
  27%, 100% { opacity: 0; transform: translate(200px, 160px); } }

/* ---------- 12. services ---------- */
.sv-ticker { left: 0; right: 0; border-radius: 10px; top: 6px; height: 38px; overflow: hidden; display: flex; align-items: center;
  background: rgba(0, 0, 0, .35); border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sv-run { display: flex; flex: 0 0 auto; gap: 26px; padding-left: 26px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.gs.on .sv-run { animation: sv-run 14s linear infinite; }
@keyframes sv-run { to { transform: translateX(-50%); } }
.sv-tiles { left: 20px; top: 64px; width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sv-t { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 3px 0 var(--c); }
.sv-t > span { position: relative; height: 56px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sv-t b { font-size: 14px; }
.gs.on .sv-t { animation: pop-in .45s .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.gs.on .sv-t.v2 { animation-delay: .6s; } .gs.on .sv-t.v3 { animation-delay: .8s; } .gs.on .sv-t.v4 { animation-delay: 1s; }
.sv-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; border-top: 2px dashed rgba(255, 255, 255, .4); }
.sv-bus { position: absolute; left: 0; bottom: 12px; font-size: 26px; font-style: normal; line-height: 1; }
.gs.on .sv-bus { animation: sv-bus 4s linear infinite; }
@keyframes sv-bus { from { transform: translateX(160px); } to { transform: translateX(-40px); } }
.sv-eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding-bottom: 8px; }
.sv-eq i { width: 9px; height: 38px; border-radius: 3px; background: var(--c); transform-origin: bottom; transform: scaleY(.5); }
.gs.on .sv-eq i { animation: sv-eq .9s ease-in-out infinite alternate; }
.gs.on .sv-eq i:nth-child(2) { animation-duration: .6s; } .gs.on .sv-eq i:nth-child(3) { animation-duration: 1.1s; }
.gs.on .sv-eq i:nth-child(4) { animation-duration: .75s; } .gs.on .sv-eq i:nth-child(5) { animation-duration: .95s; }
@keyframes sv-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.sv-sun, .sv-tag { display: grid; place-items: center; font-size: 34px; }
.sv-sun i, .sv-tag i { font-style: normal; line-height: 1; }
.gs.on .sv-sun i { animation: sv-sun 6s linear infinite; }
@keyframes sv-sun { to { transform: rotate(360deg); } }
.gs.on .sv-tag i { animation: sv-tag 1.6s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes sv-tag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

/* ---------- 13. as an app ---------- */
.ap-ph { left: 110px; top: 2px; width: 160px; height: 296px; overflow: hidden; border: 6px solid #1b2235; border-radius: 28px;
  background: linear-gradient(160deg, #6366f1, #a855f7 50%, #f59e0b); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.gs.on .ap-ph { animation: ap-buzz .5s 3.9s both; }
@keyframes ap-buzz { 20%, 60% { transform: rotate(-2.5deg); } 40%, 80% { transform: rotate(2.5deg); } }
.ap-grid { position: absolute; left: 14px; right: 14px; top: 58px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.ap-i, .ap-stena { display: block; aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, .3); }
.ap-i.i1 { background: #22c55e; } .ap-i.i2 { background: #3b82f6; } .ap-i.i3 { background: #f43f5e; } .ap-i.i4 { background: #facc15; }
.ap-i.i6 { background: #0ea5e9; } .ap-i.i7 { background: #fb923c; } .ap-i.i9 { background: #14b8a6; } .ap-i.i10 { background: #e11d48; }
.ap-stena { display: grid; place-items: center; background: #121212; box-shadow: 0 0 0 2px #fff; }
.ap-stena b, .ap-pi b { color: #ff7500; font-size: 18px; font-weight: 800; line-height: 1; }
.gs.on .ap-stena { animation: ap-drop .7s 1.6s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes ap-drop { from { opacity: 0; transform: translateY(-120px) scale(1.6); } }
.ap-push { left: 6px; right: 6px; top: 8px; display: flex; gap: 7px; padding: 7px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: #1f2328;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3); position: absolute; }
.ap-pi { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: #121212; }
.ap-pi b { font-size: 14px; }
.ap-push b { display: block; font-size: 10.5px; }
.ap-push small { display: block; font-size: 9.5px; line-height: 1.25; color: #3b4250; }
.gs.on .ap-push { animation: ap-push .5s 3.8s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes ap-push { from { opacity: 0; transform: translateY(-110%); } }
.ap-install { left: 0; top: 128px; padding: 9px 14px; border-radius: 99px; background: #ff7500; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(255, 117, 0, .4); }
.gs.on .ap-install { animation: ap-inst var(--d) both; }
@keyframes ap-inst { 0% { opacity: 0; transform: translateX(-20px); } 5%, 12% { opacity: 1; transform: none; } 14% { transform: scale(.9); }
  17% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateX(80px) scale(.6); } }
.gs.on .ap-tap { animation: ap-tap var(--d) both; }
@keyframes ap-tap { 0% { opacity: 0; transform: translate(20px, 260px); } 8% { opacity: 1; transform: translate(60px, 145px); }
  12% { transform: translate(60px, 145px); } 14% { transform: translate(60px, 145px) scale(.75); } 17% { opacity: 1; transform: translate(60px, 145px); }
  24%, 100% { opacity: 0; transform: translate(40px, 220px); } }

/* ---------- 14. finish ---------- */
.fn-burst { left: 190px; top: 120px; width: 0; height: 0; }
.fn-burst i { position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * 1.6); border-radius: 2px; background: var(--c);
  transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
.gs.on .fn-burst i { animation: fn-burst 1.8s cubic-bezier(.15, .7, .3, 1) 2 both; }
@keyframes fn-burst { from { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 75% { opacity: 1; } to { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)); } }
.fn-box { left: 0; right: 0; top: 46px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.fn-logo { position: static; font-size: 56px; }
.gs.on .fn-logo { animation: pop-in .7s .2s cubic-bezier(.3, 1.5, .5, 1) both; }
.fn-wall { margin: 0; font-size: 19px; font-weight: 700; color: #ffd8b5; }
.gs.on .fn-wall { animation: fade-up .5s .7s both; }
.fn-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.fn-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .14);
  color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fn-btn.main { background: #ff7500; }
.fn-btn:hover { background: rgba(255, 255, 255, .24); } .fn-btn.main:hover { background: #ff8a26; }
.gs.on .fn-btns { animation: fade-up .5s 1.1s both; }

/* ---------- phones: the picture on top, the words below with the brick beside the title ---------- */
@media (max-width: 680px) {
  .gd-head h1 { font-size: 24px; }
  .gd-head p { font-size: 15px; }
  /* As tall as the picture (380×300 at the stage's width, guide.js) and the 222 px caption, with no empty band between */
  .gp-stage { aspect-ratio: auto; height: clamp(440px, calc((100vw - 20px) * .76 + 236px), 700px); max-height: none; min-height: 0; margin: 0 -6px; border-radius: 20px; }
  .gs { grid-template-columns: 100%; grid-template-rows: minmax(0, 1fr) 222px; }
  .gs-art { grid-row: 1; }
  .gs-cap { grid-row: 2; padding: 2px 16px 16px; }
  .gs-cap small, .gs-cap h2 { margin-left: 86px; }
  .gs-cap small { font-size: 12px; padding: 4px 10px; }
  .gs-cap h2 { min-height: 54px; margin-top: 8px; margin-bottom: 10px; font-size: 22px; }
  .gs-cap h2::after { display: none; }
  .gs-cap p { font-size: 15px; line-height: 1.4; }
  .gm { left: 6px; bottom: 126px; width: 74px; }  /* above the caption's text, beside the title */
  .gp-big { left: 50%; top: calc((100% - 222px) / 2); }
  .gp-big-ic { width: 78px; height: 78px; }
  .gp-now { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .gs, .gs *, .gs::before, .gs::after, .gm *, .gm > svg, .gp-big-ic::before { animation: none !important; transition: none !important; }
  .tap, .sg-plane, .kl-fly, .gaf-ticket, .fn-burst { display: none; }
}
