/* Нейрополис v8.8.6 — «реклама за энергию»: the 15-second spots of js/ui/adspots.js (Prisma Music, the helpers, the
   Деловой центр). One stage, three scenes and an end card; all motion is CSS and starts when a scene gets .is-on. */
.ad-v-modal .modal__head { margin-bottom: 12px; }
.as-stage { position: relative; height: 320px; border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff; background: #12181d;
  font-family: var(--font); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); user-select: none; -webkit-user-select: none; }
.as-bg { position: absolute; inset: 0; z-index: -1; background: var(--pc);
  background: radial-gradient(120% 90% at 18% 8%, color-mix(in srgb, var(--pc) 70%, #fff 30%) 0%, transparent 58%), radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--pc) 40%, #000 60%) 0%, transparent 70%), linear-gradient(160deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #000 45%)); }
.as-bg::after { content: ''; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.05) 0deg 8deg, transparent 8deg 24deg); animation: asSpin 60s linear infinite; opacity: 0.6; }
.as-stage.is-prisma { background: #07060d; }
.as-stage.is-prisma .as-bg { background: radial-gradient(70% 70% at 18% 20%, rgba(124, 92, 255, 0.42), transparent 62%), radial-gradient(60% 60% at 92% 92%, rgba(34, 195, 238, 0.24), transparent 66%), radial-gradient(50% 50% at 80% 10%, rgba(255, 77, 109, 0.16), transparent 70%), #07060d; }
.as-stage.is-prisma .as-bg::after { background: conic-gradient(from 210deg at 0% 100%, transparent 0deg, rgba(255, 77, 109, 0.10) 6deg, rgba(255, 216, 77, 0.10) 12deg, rgba(77, 255, 160, 0.09) 18deg, rgba(61, 226, 255, 0.10) 24deg, rgba(77, 125, 255, 0.10) 30deg, rgba(168, 107, 255, 0.10) 36deg, transparent 42deg); animation: asSway 9s ease-in-out infinite alternate; inset: 0; opacity: 1; }

/* the chrome: progress segments, the sponsor chip, «Реклама» */
.as-segs { position: absolute; z-index: 3; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; }
.as-segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.as-segs b { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.as-tag { position: absolute; z-index: 3; top: 21px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.01em; }
.as-tagic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.as-tagic .ico { width: 14px; height: 14px; }
.as-stage .as-label { position: absolute; z-index: 3; top: 23px; right: 12px; left: auto; background: rgba(0, 0, 0, 0.32); }

/* scenes */
.as-scene { position: absolute; inset: 0; padding: 54px 20px 18px; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.985); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.45s; }
.as-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.as-scene.is-past { transform: translateY(-10px) scale(0.985); }
.as-vis { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.as-v { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; }
.as-copy { padding-top: 8px; max-width: 30em; }
.as-t { font-weight: 800; font-size: 1.4rem; line-height: 1.16; letter-spacing: -0.012em; text-wrap: balance; }
.as-s { margin-top: 5px; font-weight: 600; font-size: 0.93rem; line-height: 1.35; opacity: 0.84; text-wrap: balance; }
.is-prisma .as-s { color: #cfc8ff; opacity: 1; }
.as-scene.is-on .as-t { animation: asUp 0.55s 0.12s both; }
.as-scene.is-on .as-s { animation: asUp 0.55s 0.24s both; }

/* the prism mark of Prisma Music */
.as-prism { display: inline-grid; place-items: center; width: 52px; height: 52px; }
.as-prism svg { width: 100%; height: 100%; overflow: visible; }
.as-prism--tag { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); padding: 3px; }
.as-prism--big { width: 96px; height: 96px; filter: drop-shadow(0 0 22px rgba(124, 92, 255, 0.6)); }
.as-prism--float { position: absolute; top: -4px; animation: asFloat 3.2s ease-in-out infinite; }

/* avatars (EAI.portraits) */
.as-ava { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.as-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-ava--xs { width: 24px; height: 24px; }
.as-ava--lg { width: 104px; height: 104px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 10px 30px rgba(0, 0, 0, 0.35); }
.as-ava.is-icon .ico { width: 55%; height: 55%; }

/* equalizer */
.as-v-eq { position: relative; padding-top: 52px; }
.as-eq { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.as-eq i { width: 9px; height: 30%; border-radius: 5px; background: var(--c, #fff); box-shadow: 0 0 14px color-mix(in srgb, var(--c, #fff) 55%, transparent); animation: asEq 1.1s ease-in-out calc(var(--i) * -0.13s) infinite alternate; }
.is-helper .as-eq i, .is-business .as-eq i { background: rgba(255, 255, 255, 0.88); box-shadow: none; }
.as-eq--mini { height: 18px; gap: 2px; }
.as-eq--mini i { width: 3px; border-radius: 2px; box-shadow: none; }

/* 0 ₽ */
.as-v-zero { flex-direction: column; gap: 0; }
.as-zero { display: flex; align-items: flex-start; font-weight: 800; line-height: 0.9; }
.as-zero b { font-size: 6.4rem; letter-spacing: -0.04em; background: linear-gradient(100deg, #ff4d6d, #ff9a3d 20%, #ffd84d 36%, #4dffa0 52%, #3de2ff 68%, #4d7dff 84%, #a86bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.as-zero span { font-size: 2.4rem; margin: 10px 0 0 6px; color: #fff; }
.as-zero-s { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.as-scene.is-on .as-zero b { animation: asPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* a player card */
.as-v-player { flex-direction: column; gap: 10px; }
.as-player { width: min(310px, 90%); display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 12px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.as-cover { width: 58px; height: 58px; border-radius: 11px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); }
.as-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 45%), repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.12) 0 6px, transparent 6px 14px); }
.as-player__t { display: grid; min-width: 0; }
.as-player__t b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-player__t span { font-size: 0.82rem; opacity: 0.72; }
.as-player__bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.as-player__bar i { display: block; height: 100%; width: 8%; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #4d7dff, #22c3ee); }
.as-scene.is-on .as-player__bar i { animation: asGrow 4s linear both; }
.as-player__ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 26px; }
.as-player__ctl .ico { width: 20px; height: 20px; opacity: 0.85; }
.as-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; }
.as-play .ico { opacity: 1; }
.as-scene.is-on .as-player { animation: asUp 0.6s both; }
.as-found { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #1fbf75; color: #fff; font-weight: 800; font-size: 0.86rem; box-shadow: 0 6px 18px rgba(31, 191, 117, 0.4); }
.as-found .ico { width: 16px; height: 16px; }
.as-scene.is-on .as-found { animation: asPop 0.6s 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* a playlist with the ad break crossed out */
.as-v-list { flex-direction: column; gap: 5px; }
.as-row, .as-cut { width: min(320px, 92%); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); text-align: left; }
.as-row .as-cover { width: 32px; height: 32px; border-radius: 7px; }
.as-row__t { display: grid; min-width: 0; } .as-row__t b { font-size: 0.9rem; } .as-row__t span { font-size: 0.76rem; opacity: 0.7; }
.as-row__d { font-size: 0.76rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.as-cut { grid-template-columns: 1fr auto; background: transparent; border: 1px dashed rgba(255, 77, 109, 0.55); padding: 5px 12px; }
.as-cut s { font-weight: 700; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); text-decoration-color: #ff4d6d; text-decoration-thickness: 2px; }
.as-cut span { font-weight: 800; font-size: 0.8rem; color: #4dffa0; }
.as-scene.is-on .as-row, .as-scene.is-on .as-cut { animation: asUp 0.5s calc(0.1s + var(--n) * 0.18s) both; }

/* «Для вас» mixes */
.as-v-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 10px; justify-content: center; }
.as-mix { height: 70px; border-radius: 14px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; background: linear-gradient(135deg, var(--a), var(--b)); color: #0b0a12; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.as-mix span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.as-mix b { font-size: 1.05rem; }
.as-scene.is-on .as-mix { animation: asPop 0.55s calc(var(--n) * 0.14s) cubic-bezier(0.2, 1.3, 0.4, 1) both; }

/* no VPN */
.as-v-vpn { flex-direction: column; gap: 14px; }
.as-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 800; }
.as-toggle em { font-style: normal; font-weight: 700; font-size: 0.84rem; opacity: 0.7; }
.as-sw { position: relative; width: 50px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, 0.22); }
.as-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.as-scene.is-on .as-sw { animation: asSwBg 0.9s 0.5s both; }
.as-scene.is-on .as-sw::after { animation: asSwKnob 0.9s 0.5s both; }
.as-ok { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(77, 255, 160, 0.14); color: #b9ffd9; font-weight: 800; font-size: 0.9rem; }
.as-scene.is-on .as-ok { animation: asUp 0.5s 1.1s both; }

/* devices */
.as-v-dev { align-items: flex-end; gap: 18px; }
.as-laptop { width: 170px; padding: 7px 7px 0; border-radius: 10px 10px 0 0; background: #1b1a24; border: 1px solid rgba(255, 255, 255, 0.16); position: relative; }
.as-laptop::after { content: ''; position: absolute; left: -16px; right: -16px; bottom: -8px; height: 8px; border-radius: 0 0 8px 8px; background: #2a2935; }
.as-phone { width: 62px; padding: 6px; border-radius: 14px; background: #1b1a24; border: 1px solid rgba(255, 255, 255, 0.16); }
.as-scr { height: 98px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.5), transparent 60%), #0b0a12; }
.as-laptop .as-scr { height: 100px; }
.as-scr .as-prism { width: 30px; height: 30px; }
.as-scene.is-on .as-laptop { animation: asUp 0.55s both; } .as-scene.is-on .as-phone { animation: asUp 0.55s 0.18s both; }

/* listening: a wave and ripples */
.as-v-listen { flex-direction: column; gap: 16px; }
.as-wave { display: flex; align-items: center; gap: 3px; height: 50px; }
.as-wave i { width: 4px; height: 20%; border-radius: 2px; background: rgba(255, 255, 255, 0.85); animation: asEq 0.8s ease-in-out calc(var(--i) * -0.09s) infinite alternate; }
.as-ripple { position: relative; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #4d7dff 55%, #22c3ee); box-shadow: 0 0 30px rgba(124, 92, 255, 0.55); }
.as-ripple i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(124, 92, 255, 0.7); animation: asRip 2.1s ease-out infinite; }
.as-ripple i:nth-child(2) { animation-delay: 0.7s; } .as-ripple i:nth-child(3) { animation-delay: 1.4s; }
.as-ripple .as-prism { width: 40px; height: 40px; }

/* the library: covers rolling up */
.as-v-lib { height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.as-grid { display: grid; grid-template-columns: repeat(6, 46px); gap: 8px; animation: asRoll 6s linear infinite; }
.as-grid .as-cover { width: 46px; height: 46px; border-radius: 9px; }
.as-v-count { flex-direction: column; gap: 6px; }
.as-big { font-weight: 800; font-size: 5rem; line-height: 0.95; background: linear-gradient(100deg, #ff4d6d, #ffd84d 30%, #4dffa0 50%, #3de2ff 70%, #a86bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-helper .as-big { background: none; color: #ffe2a6; }
.as-v-count .as-eq { height: 34px; } .as-v-count .as-eq i { width: 6px; }
.as-scene.is-on .as-big { animation: asPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* the city at night with the island player */
.as-v-city { position: relative; height: 100%; align-items: flex-end; }
.as-sky { position: absolute; left: 4%; right: 4%; bottom: 0; height: 86%; display: flex; align-items: flex-end; gap: 4px; }
.as-sky i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 216, 140, 0.32) 9px 12px), linear-gradient(#1d1b2b, #121019); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.as-pill { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.as-pill .as-prism { width: 28px; height: 28px; border-radius: 50%; background: #17151f; padding: 4px; }
.as-scene.is-on .as-pill { animation: asDrop 0.7s 0.2s cubic-bezier(0.2, 1.2, 0.4, 1) both; }

/* the lock screen */
.as-phone.is-lock { width: 176px; height: 168px; padding: 12px 10px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.55), transparent 70%), #0c0b14; }
.as-time { font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; }
.as-notif { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 7px; padding: 7px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); text-align: left; }
.as-notif .as-cover { width: 30px; height: 30px; border-radius: 7px; }
.as-notif b { display: block; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .as-notif span { font-size: 0.66rem; opacity: 0.7; }
.as-notif .ico { width: 16px; height: 16px; }
.as-scene.is-on .as-notif { animation: asDrop 0.6s 0.3s both; }

/* chat */
.as-v-chat { flex-direction: column; gap: 10px; width: min(360px, 94%); }
.as-bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-weight: 700; font-size: 1.08rem; line-height: 1.3; text-align: left; }
.as-bubble.is-me { align-self: flex-end; background: #fff; color: #17202b; border-bottom-right-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.as-bubble.is-them { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, 0.16); border-bottom-left-radius: 6px; font-size: 0.98rem; }
.as-typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); }
.as-typing span { display: inline-flex; gap: 4px; } .as-typing span i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: asDot 1s ease-in-out infinite; }
.as-typing span i:nth-child(2) { animation-delay: 0.15s; } .as-typing span i:nth-child(3) { animation-delay: 0.3s; }
.as-scene.is-on .as-bubble.is-me { animation: asBubble 0.5s 0.15s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.as-scene.is-on .as-bubble.is-them, .as-scene.is-on .as-typing { animation: asUp 0.5s 1.1s both; }

/* a result card */
.as-card { width: min(340px, 94%); padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); color: #17202b; text-align: left; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3); }
.as-card__h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 1rem; }
.as-card__h .ico { width: 20px; height: 20px; }
.as-card__r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(23, 32, 43, 0.08); font-size: 0.9rem; }
.as-card__k { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; background: color-mix(in srgb, var(--pc) 16%, #fff); color: var(--pc); }
.as-card__v { font-weight: 700; } .as-card__m { font-weight: 700; font-size: 0.8rem; color: rgba(23, 32, 43, 0.6); font-variant-numeric: tabular-nums; }
.as-scene.is-on .as-card { animation: asUp 0.5s both; }
.as-scene.is-on .as-card__r { animation: asUp 0.45s calc(0.3s + var(--n) * 0.22s) both; }

/* a rest timer */
.as-v-timer { flex-direction: column; gap: 12px; }
.as-ring { position: relative; width: 112px; height: 112px; }
.as-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.as-ring circle { fill: none; stroke-width: 7; } .as-ring .bg { stroke: rgba(255, 255, 255, 0.18); }
.as-ring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; }
.as-scene.is-on .as-ring .fg { animation: asDash 4s linear both; }
.as-ring__t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.as-ring__t b { font-size: 1.7rem; font-variant-numeric: tabular-nums; line-height: 1; } .as-ring__t span { font-size: 0.74rem; font-weight: 700; opacity: 0.75; }
.as-sets { display: flex; gap: 6px; }
.as-sets span { padding: 4px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; background: rgba(255, 255, 255, 0.14); }
.as-sets span:first-child { background: #fff; color: var(--pc); }
.as-scene.is-on .as-sets span { animation: asUp 0.4s calc(0.2s + var(--n) * 0.12s) both; }

/* slides and files */
.as-v-slides { position: relative; height: 100%; }
.as-slide { position: absolute; top: 50%; left: 50%; width: 132px; height: 84px; margin: -42px 0 0 -66px; padding: 9px 10px; border-radius: 9px; background: #fff; color: #17202b; text-align: left; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateX(calc((var(--n) - 1) * 112px)) rotate(calc((var(--n) - 1) * 7deg)); }
.as-slide i { display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--pc); margin-bottom: 7px; }
.as-slide b { display: block; font-size: 0.86rem; margin-bottom: 7px; }
.as-slide span { display: block; height: 5px; border-radius: 3px; background: rgba(23, 32, 43, 0.12); margin-top: 5px; } .as-slide span + span { width: 68%; }
.as-scene.is-on .as-slide { animation: asFan 0.7s calc(var(--n) * 0.16s) cubic-bezier(0.2, 1.1, 0.4, 1) both; }
.as-v-files { gap: 14px; }
.as-file { width: 76px; height: 92px; border-radius: 10px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-bottom: 10px; background: #fff; color: var(--c); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.as-file::before { content: ''; position: absolute; top: 0; right: 0; width: 28%; height: 22%; background: color-mix(in srgb, var(--c) 35%, #fff); }
.as-file b { font-size: 0.82rem; letter-spacing: 0.04em; } .as-file .ico { width: 18px; height: 18px; }
.as-scene.is-on .as-file { animation: asDrop 0.55s calc(var(--n) * 0.18s) cubic-bezier(0.2, 1.2, 0.4, 1) both; }

/* a route */
.as-v-route { position: relative; height: 100%; max-width: 380px; }
.as-city { position: absolute; bottom: 18%; display: grid; justify-items: center; gap: 4px; font-size: 0.95rem; }
.as-city::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22); }
.as-city.is-a { left: 6%; } .as-city.is-b { right: 6%; }
.as-arc { position: absolute; left: 10%; right: 10%; bottom: calc(18% + 26px); height: 58%; }
.as-arc svg { width: 100%; height: 100%; overflow: visible; }
.as-arc path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2.5; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.as-plane { position: absolute; left: 0; bottom: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--pc); }
.as-plane .ico { width: 18px; height: 18px; }
.as-scene.is-on .as-plane { animation: asFly 3.2s 0.3s ease-in-out both; }

/* the homework */
.as-v-photo { position: relative; height: 100%; }
.as-paper { padding: 14px 18px; border-radius: 6px; background: #fbf9f3; color: #20242c; text-align: left; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); background-image: repeating-linear-gradient(transparent 0 23px, rgba(70, 110, 190, 0.18) 23px 24px); }
.as-v-photo .as-paper { width: 170px; transform: rotate(-4deg); }
.as-paper b { display: block; font-family: Georgia, 'Times New Roman', serif; margin-bottom: 8px; }
.as-paper i { display: block; height: 6px; border-radius: 3px; background: rgba(32, 36, 44, 0.28); margin: 12px 0; } .as-paper i.is-s { width: 60%; }
.as-shot { position: absolute; right: calc(50% - 130px); bottom: 10%; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--pc); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.as-shot .ico { width: 24px; height: 24px; }
.as-scene.is-on .as-v-photo::after { content: ''; position: absolute; inset: -60px -40px; background: #fff; animation: asFlash 0.7s 1.4s ease-out both; pointer-events: none; }
.as-paper.is-math { min-width: 230px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.15rem; line-height: 24px; }
.as-paper.is-math div { padding: 0 2px; }
.as-ans { font-style: normal; font-family: var(--font); font-weight: 700; } .as-paper .as-ans b { display: inline; margin: 0 4px 0 0; font-family: var(--font); color: #2f6b3f; }
.as-check { display: flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--font); font-weight: 700; font-size: 0.8rem; color: #2f6b3f; }
.as-check .ico { width: 15px; height: 15px; }
.as-scene.is-on .as-paper.is-math div { animation: asUp 0.45s calc(var(--k, 0) * 1s) both; }
.as-scene.is-on .as-paper.is-math div:nth-child(1) { animation-delay: 0.2s; } .as-scene.is-on .as-paper.is-math div:nth-child(2) { animation-delay: 0.9s; } .as-scene.is-on .as-paper.is-math div:nth-child(3) { animation-delay: 1.6s; }

/* chips, clips, agents, games */
.as-v-chips { flex-wrap: wrap; gap: 8px; max-width: 340px; }
.as-chip { padding: 8px 14px; border-radius: 999px; background: #fff; color: #17202b; font-weight: 800; font-size: 0.95rem; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); }
.as-scene.is-on .as-chip { animation: asPop 0.5s calc(var(--n) * 0.14s) cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.as-v-clips { flex-direction: column; gap: 14px; }
.as-tl { display: flex; align-items: center; gap: 3px; height: 36px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.as-tl i { width: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.5); }
.as-tl i:nth-child(n+3):nth-child(-n+6), .as-tl i:nth-child(n+9):nth-child(-n+11), .as-tl i:nth-child(n+13):nth-child(-n+15) { background: #ffd84d; }
.as-clipsrow { display: flex; gap: 12px; }
.as-clip { width: 50px; height: 86px; border-radius: 9px; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, #3a5068, #1a2633); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #ffd84d; }
.as-clip span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #1a2633; } .as-clip .ico { width: 13px; height: 13px; }
.as-clip b { position: absolute; bottom: 5px; font-size: 0.66rem; }
.as-scene.is-on .as-clip { animation: asDrop 0.55s calc(0.4s + var(--n) * 0.2s) cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.as-v-agents { gap: 10px; }
.as-agent { width: 98px; padding: 12px 8px; border-radius: 14px; display: grid; justify-items: center; gap: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); }
.as-agent span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--pc); } .as-agent .ico { width: 20px; height: 20px; }
.as-agent b { font-size: 0.9rem; }
.as-agent em { font-style: normal; font-size: 0.7rem; font-weight: 700; color: #9ff0c3; display: inline-flex; align-items: center; gap: 5px; }
.as-agent em::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4dffa0; animation: asBlink 1.2s ease-in-out infinite; }
.as-scene.is-on .as-agent { animation: asUp 0.5s calc(var(--n) * 0.18s) both; }
.as-v-games { display: grid; grid-template-columns: repeat(2, 120px); gap: 10px; justify-content: center; }
.as-game { height: 58px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 75%, #000); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.as-game b { font-size: 0.95rem; }
.as-scene.is-on .as-game { animation: asPop 0.5s calc(var(--n) * 0.12s) cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* the end card */
.as-end { grid-template-rows: auto auto auto; align-content: center; gap: 10px; }
.as-endlogo { display: grid; place-items: center; }
.as-endlogo.is-icon { width: 84px; height: 84px; border-radius: 24px; background: #fff; color: var(--pc); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.as-endlogo.is-icon .ico { width: 40px; height: 40px; }
.as-end .as-t { font-size: 1.6rem; }
.is-prisma .as-end .as-t { font-size: 2rem; letter-spacing: -0.02em; }
.as-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; color: #17202b; font-weight: 800; font-size: 0.95rem; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); }
.as-cta .ico { width: 16px; height: 16px; }
.is-prisma .as-cta { background: linear-gradient(105deg, #7c5cff 0%, #4d7dff 55%, #22c3ee 100%); color: #fff; box-shadow: 0 10px 30px rgba(77, 125, 255, 0.45); }
.as-scene.as-end.is-on .as-endlogo { animation: asPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.as-scene.as-end.is-on .as-cta { animation: asUp 0.5s 0.4s both, asPulse 2.2s 1.2s ease-in-out infinite; }

/* the modal around it: «забрать и открыть», the line for advertisers */
.ad-v-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ad-v-acts .btn { flex: 1 1 200px; }
.ad-v-acts[hidden] { display: none; }
.ad-v-house { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 4px; border: 0; background: none; color: var(--ink3, var(--ink2)); font: 600 0.8rem/1.3 var(--font); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.ad-v-house:hover { color: var(--ink); }
.ad-v-house .ico { width: 14px; height: 14px; }
/* «Реклама в Нейрополисе» (EAI.ads.advertise) */
.adv-pitch { display: grid; gap: 10px; }
.adv-pitch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.adv-pitch li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.adv-pitch li > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); color: var(--accent, #14505c); }
.adv-pitch li .ico { width: 18px; height: 18px; }
.adv-pitch li b { display: block; } .adv-pitch li em { font-style: normal; color: var(--ink2); font-size: 0.92rem; }

@media (max-width: 520px) {
  .as-stage { height: 352px; border-radius: 16px; }
  .as-scene { padding: 54px 14px 16px; }
  .as-t { font-size: 1.24rem; } .is-prisma .as-end .as-t { font-size: 1.7rem; }
  .as-slide { width: 112px; height: 74px; margin: -37px 0 0 -56px; transform: translateX(calc((var(--n) - 1) * 88px)) rotate(calc((var(--n) - 1) * 7deg)); }
  .as-agent { width: 92px; }
  .as-grid { grid-template-columns: repeat(5, 46px); }
}
@media (prefers-reduced-motion: reduce) {
  .as-stage *, .as-stage *::before, .as-stage *::after { animation: none !important; }
  .as-scene { transition: opacity 0.2s linear, visibility 0s; transform: none !important; }
}

@keyframes asUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes asPop { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: none; } }
@keyframes asDrop { from { opacity: 0; transform: translateY(-16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes asBubble { from { opacity: 0; transform: translateY(14px) scale(0.9); transform-origin: right bottom; } to { opacity: 1; transform: none; } }
@keyframes asEq { 0% { height: 16%; } 45% { height: 92%; } 100% { height: 34%; } }
@keyframes asGrow { from { width: 8%; } to { width: 64%; } }
@keyframes asFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes asSpin { to { transform: rotate(360deg); } }
@keyframes asSway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes asRip { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.3); opacity: 0; } }
@keyframes asRoll { from { transform: translateY(0); } to { transform: translateY(-108px); } }
@keyframes asDot { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes asDash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 276.5; } }
@keyframes asFan { from { opacity: 0; transform: translateX(0) rotate(0deg) scale(0.9); } }
@keyframes asFly { 0% { left: 0%; bottom: 0%; } 25% { left: 22%; bottom: 72%; } 50% { left: 50%; bottom: 100%; } 75% { left: 78%; bottom: 72%; } 100% { left: 100%; bottom: 0%; } }
@keyframes asFlash { 0% { opacity: 0; } 15% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes asSwBg { from { background: #7c5cff; } to { background: rgba(255, 255, 255, 0.22); } }
@keyframes asSwKnob { from { transform: translateX(22px); } to { transform: none; } }
@keyframes asBlink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes asPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
