/* MyVibi concept page: full-screen 3D city, story cards on top. Evening palette ("Godzina Vibio"), no pink. */
:root {
  --p: #6E3BFF; --s: #3D9BFF; --t: #FFB547; --teal: #14C8B4;
  --bg: #120d33; --ink: #f6f4ff; --mute: #b9b4dc; --glass: rgba(18, 13, 51, .62); --line: rgba(255,255,255,.14);
  --grad: linear-gradient(100deg, var(--p), var(--s));
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--s); outline-offset: 3px; border-radius: 8px; }

#scene { position: fixed; inset: 0; z-index: 0; }
#scene canvas { width: 100% !important; height: 100% !important; display: block; }
.track { height: 1350vh; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
.loader p { color: var(--mute); font-weight: 600; letter-spacing: .02em; }
.ld-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--s); border-right-color: var(--p); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.ready .loader, body.no-3d .loader { opacity: 0; visibility: hidden; }

/* top bar + progress */
.bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; }
.bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--s); }
.top { position: fixed; z-index: 30; top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px; border-radius: 999px; background: rgba(14, 10, 40, .55); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px var(--display); letter-spacing: -.02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; }
.mark svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2.4; }
.tag { flex: 1; color: var(--mute); font-size: 14px; }
.back { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 14px; transition: background .2s; }
.back:hover { background: rgba(255,255,255,.18); }

/* chapter dots */
.dots { position: fixed; z-index: 30; right: max(22px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; display: grid; gap: 12px; }
.dots button { position: relative; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.28); transition: .35s var(--ease); }
.dots button.on { height: 34px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 16px var(--s); }
.dots span { position: absolute; right: 24px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(14,10,40,.75); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots button:hover span, .dots button.on span { opacity: 1; }

/* story cards */
.stories { position: fixed; z-index: 20; left: max(28px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; width: min(440px, calc(100% - 56px)); height: 0; }
.chap { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 100%; padding: 28px; border-radius: 30px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(30px) scale(.97); pointer-events: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.chap.on { opacity: 1; transform: none; pointer-events: auto; }
.kick { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s); }
.kick span { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; letter-spacing: .04em; }
.chap h1, .chap h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 12px; font-size: clamp(32px, 3.6vw, 48px); text-wrap: balance; }
.chap em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chap > p:not(.kick):not(.hint) { color: var(--mute); }
.notif { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.chap.on .notif { animation: notif .7s .35s var(--ease) both; }
@keyframes notif { from { opacity: 0; transform: translateY(14px) scale(.95); } }
.n-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--grad); flex: none; }
.notif b { display: block; font-size: 15px; } .notif small { color: var(--mute); font-size: 13px; }
.hint { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--mute); }
.mouse { width: 18px; height: 28px; border: 2px solid var(--mute); border-radius: 10px; position: relative; flex: none; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(9px); opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--grad); font-weight: 700; box-shadow: 0 12px 30px rgba(110,59,255,.45); transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.1); box-shadow: none; }

/* no WebGL: plain readable story */
body.no-3d .track, body.no-3d .dots, body.no-3d .bar { display: none; }
body.no-3d .stories { position: static; translate: none; width: auto; height: auto; max-width: 640px; margin: 110px auto 60px; padding: 0 16px; display: grid; gap: 16px; }
body.no-3d .chap { position: static; translate: none; opacity: 1; transform: none; }
body.no-3d #scene { background: radial-gradient(circle at 30% 20%, #3a2a8a, var(--bg) 60%); }


/* feature tag + mini phone + story steps (one app feature per scene) */
.kick { flex-wrap: wrap; }
.feat { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.chap { transition: opacity .5s var(--ease), transform .7s var(--ease), border-color .6s; }
.show { display: grid; grid-template-columns: 136px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: st; }
.steps li { position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.4; color: var(--mute); opacity: .42; transition: opacity .45s, color .45s; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); border: 1.5px solid rgba(255,255,255,.3); transition: .45s var(--ease); }
.steps b { color: var(--ink); font-weight: 700; }
.chap.s1 .steps li:nth-child(1), .chap.s2 .steps li:nth-child(2), .chap.s3 .steps li:nth-child(3) { opacity: 1; color: #e4e1fb; }
.chap.s1 .steps li:nth-child(1)::before, .chap.s2 .steps li:nth-child(2)::before, .chap.s3 .steps li:nth-child(3)::before { content: "✓"; background: var(--grad); border-color: transparent; box-shadow: 0 0 14px color-mix(in srgb, var(--s) 60%, transparent); }

.ph { position: relative; width: 136px; height: 262px; border-radius: 26px; padding: 26px 9px 10px; overflow: hidden; font-size: 10px; line-height: 1.3; color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--p) 45%, #0c0a24), #0c0a24 70%); border: 3px solid rgba(255,255,255,.16); box-shadow: 0 20px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 7px; }
.ph::before { content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 40px; height: 10px; border-radius: 8px; background: #000; }
.ph small { display: block; opacity: .72; font-size: 9px; }
.ph b { font-weight: 700; }
.o1, .o2, .o3 { opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .45s var(--ease), transform .5s var(--ease); }
.chap.s1 .o1, .chap.s2 .o2, .chap.s3 .o3 { opacity: 1; transform: none; }
.chap .d { transition-delay: .45s; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--grad); font-weight: 800; font-size: 12px; }
.ph-head { display: flex; gap: 7px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.toast { margin-top: auto; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 600; }
.now { font-style: normal; font-weight: 800; color: #fff; background: var(--t); color: #1b1446; padding: 1px 6px; border-radius: 6px; font-size: 8.5px; }

/* radar */
.ph-top { display: flex; align-items: center; gap: 5px; padding: 6px 7px; border-radius: 12px; background: rgba(255,255,255,.08); white-space: nowrap; }
.tg { width: 20px; height: 11px; border-radius: 6px; background: rgba(255,255,255,.25); position: relative; flex: none; transition: background .4s; }
.tg::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: translate .4s var(--ease); }
.chap.s1 .tg { background: var(--teal); } .chap.s1 .tg::after { translate: 9px 0; }
.radar { position: relative; aspect-ratio: 1; margin: 2px 4px; border-radius: 50%; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--s) 45%, transparent); }
.radar i:nth-child(2) { inset: 18%; } .radar i:nth-child(3) { inset: 36%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--s) 55%, transparent), transparent 22%); animation: spin 3s linear infinite; opacity: 0; transition: opacity .5s; }
.chap.s1 .sweep { opacity: 1; }
.me { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); font-weight: 800; box-shadow: 0 0 0 4px rgba(20,200,180,.25); }
.blip { position: absolute; left: 74%; top: 22%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--p); font-weight: 800; box-shadow: 0 0 14px var(--p); }
.blip.b2 { left: 72%; top: 6%; width: 16px; height: 16px; font-size: 9px; background: #fff; box-shadow: none; }
.venn { position: relative; height: 34px; display: flex; align-items: center; justify-content: center; }
.venn span { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 70%, transparent); mix-blend-mode: screen; }
.venn span + span { margin-left: -12px; background: color-mix(in srgb, var(--p) 80%, transparent); }
.venn b { margin-left: 7px; font-size: 10px; }
.venn.big { height: 78px; } .venn.big span { width: 64px; height: 64px; } .venn.big span + span { margin-left: -26px; }
.venn.big b { position: absolute; left: 50%; translate: -50% 0; margin: 0; font-size: 13px; }

/* chat */
.msgs { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.msgs p { max-width: 80%; padding: 5px 8px; border-radius: 12px; font-size: 10px; }
.msgs .me { position: static; translate: none; width: auto; height: auto; display: block; box-shadow: none; align-self: flex-end; background: var(--grad); border-bottom-right-radius: 4px; }
.msgs .you { align-self: flex-start; background: rgba(255,255,255,.14); border-bottom-left-radius: 4px; }
.msgs p.o1:first-child { font-size: 18px; padding: 2px 8px; }
.meet { margin-top: auto; padding: 7px 8px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid color-mix(in srgb, var(--teal) 60%, transparent); }
.meet small { color: #7ff0e2; opacity: 1; }

/* map */
.scr-map { padding: 0; }
.map { position: absolute; inset: 0; background-color: #1a2346; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 16px 16px; }
.road { position: absolute; background: rgba(255,255,255,.16); }
.r1 { left: 0; right: 0; top: 58%; height: 7px; } .r2 { top: 0; bottom: 0; left: 56%; width: 7px; }
.park { position: absolute; left: 14%; top: 30%; width: 38%; height: 24%; border-radius: 10px; background: rgba(34,197,94,.35); }
.pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -100%; display: grid; justify-items: center; font-size: 18px; }
.pin small { font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: var(--t); color: #1b1446; opacity: 1; white-space: nowrap; }
.pin.me { width: 12px; height: 12px; border-radius: 50%; background: var(--s); border: 2px solid #fff; translate: -50% -50%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--s) 30%, transparent); }
.scr-map .chip { position: absolute; top: 24px; left: 8px; right: 8px; padding: 5px 7px; border-radius: 10px; background: var(--grad); font-weight: 700; text-align: center; }
.scr-map .toast { position: absolute; left: 8px; right: 8px; bottom: 10px; background: rgba(12,10,36,.85); }

/* nearby profile */
.card { display: flex; gap: 7px; align-items: center; padding: 7px; border-radius: 12px; background: rgba(255,255,255,.09); }
.cta-ph { position: relative; margin-top: auto; height: 30px; }
.cta-ph span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; font-weight: 700; transition: opacity .4s .5s; }
.cta-ph .a { background: var(--grad); } .cta-ph .b { background: var(--teal); opacity: 0; }
.chap.s3 .cta-ph .b { opacity: 1; transition-delay: .9s; }

/* vibe room */
.ann { padding: 7px 8px; border-radius: 10px; background: color-mix(in srgb, var(--t) 22%, transparent); border: 1px solid color-mix(in srgb, var(--t) 60%, transparent); }
.sys { text-align: center; opacity: .8; font-size: 9.5px; }
.count { margin-top: auto; display: grid; gap: 5px; }
.bar6 { height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar6 i { display: block; height: 100%; width: 66%; background: var(--grad); transition: width .8s var(--ease); }
.chap.s3 .bar6 i { width: 100%; }
.count b { position: relative; height: 16px; font-size: 13px; text-align: center; }
.count b span { position: absolute; inset: 0; transition: opacity .4s; } .n6 { opacity: 0; color: #7ff0e2; }
.chap.s3 .n4 { opacity: 0; } .chap.s3 .n6 { opacity: 1; }

/* event */
.ticket { display: grid; gap: 3px; padding: 9px 8px; border-radius: 12px; background: var(--grad); }
.ticket .now { justify-self: start; }
.ticket b { font-size: 11px; }
.who { display: flex; align-items: center; }
.who span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--s); border: 2px solid #0c0a24; margin-right: -6px; }
.who span:nth-child(2) { background: var(--t); color: #1b1446; } .who span:nth-child(3) { background: var(--teal); } .who span:nth-child(4) { background: var(--p); }
.who b { margin-left: 12px; }
.go { padding: 7px; border-radius: 10px; text-align: center; font-weight: 800; background: rgba(20,200,180,.25); border: 1px solid var(--teal); }

/* final */
.pals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pals span { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); animation: palpulse 4s infinite; }
.pals span:nth-child(2) { animation-delay: 1s; } .pals span:nth-child(3) { animation-delay: 2s; } .pals span:nth-child(4) { animation-delay: 3s; }
@keyframes palpulse { 0%, 30%, 100% { transform: scale(.9); opacity: .55; } 12% { transform: scale(1.04); opacity: 1; } }
.row { padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.09); }

@media (max-height: 820px) and (min-width: 761px) { .lead { display: none; } .chap .hint { display: none; } }

@media (max-width: 760px) {
  .tag { display: none; } .brand { flex: 1; font-size: 18px; } .mark { width: 28px; height: 28px; }
  .top { padding: 7px 8px 7px 12px; } .back { padding: 7px 12px; font-size: 13px; }
  .stories { left: 10px; right: 10px; width: auto; top: auto; bottom: max(10px, env(safe-area-inset-bottom, 0px)); translate: none; height: auto; }
  /* compact strip: tag, title, and only the step that is happening right now */
  .chap { top: auto; bottom: 0; translate: none; padding: 12px 14px 13px; border-radius: 20px; background: rgba(14, 10, 40, .8); }
  .kick { font-size: 11px; gap: 8px; } .kick span { padding: 2px 7px; } .when { display: none; }
  .feat { margin-left: 0; font-size: 11.5px; padding: 2px 8px; }
  .chap h1, .chap h2 { font-size: 20px; line-height: 1.1; margin: 7px 0 0; }
  .lead, .ph, .hint, .notif { display: none; }
  .show { display: block; margin-top: 8px; }
  .steps li { display: none; font-size: 13px; line-height: 1.35; padding-left: 28px; opacity: 1; color: #e4e1fb; }
  .steps li::before { width: 20px; height: 20px; font-size: 10.5px; top: -2px; }
  .chap:not(.s1) .steps li:nth-child(1), .chap.s1:not(.s2) .steps li:nth-child(1), .chap.s2:not(.s3) .steps li:nth-child(2), .chap.s3 .steps li:nth-child(3) { display: block; animation: notif .45s var(--ease) both; }
  .chap:not(.s1) .steps li:nth-child(1) { opacity: .6; }
  .cta { margin-top: 10px; gap: 8px; } .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .dots { right: 6px; top: 34%; gap: 7px; } .dots button { width: 7px; height: 7px; } .dots button.on { height: 20px; } .dots span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ===== story told in the scene: speech bubbles + MyVibi notifications, small caption at the bottom ===== */
body:not(.no-3d) .stories { display: none; }
body.no-3d .cap, body.no-3d .talk { display: none; }
.talk { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.tb { position: absolute; left: 0; top: 0; will-change: transform; }
.tb-in { position: absolute; bottom: 12px; left: 0; translate: -50% 0; width: max-content; max-width: 250px; padding: 9px 14px 10px; border-radius: 18px; font-size: 14.5px; line-height: 1.3;
  opacity: 0; transform: translateY(10px) scale(.8); transform-origin: 50% 100%; transition: opacity .25s, transform .5s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.tb.on .tb-in { opacity: 1; transform: none; }
.tb-in::after { content: ""; position: absolute; bottom: -5px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 2px; transform: rotate(45deg); background: var(--tail); }
.tb.l .tb-in { translate: calc(-100% + 28px) 0; transform-origin: calc(100% - 28px) 100%; } .tb.l .tb-in::after { left: auto; right: 22px; }
.tb.r .tb-in { translate: -28px 0; transform-origin: 28px 100%; } .tb.r .tb-in::after { left: 28px; }
.tb b { font-weight: 600; } .tb small { display: block; margin-top: 2px; font-size: 12.5px; }
.say .tb-in { --tail: #fff; background: #fff; color: #1b1446; }
.app .tb-in { --tail: #17123d; background: linear-gradient(#17123d, #17123d) padding-box, var(--grad) border-box; border: 1.5px solid transparent; color: #fff; padding-left: 36px; }
.app .tb-in::before { content: ""; position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; border-radius: 6px; background: var(--grad) center / 13px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='3'%3E%3Ccircle cx='12' cy='16' r='8'/%3E%3Ccircle cx='20' cy='16' r='8'/%3E%3C/svg%3E"), var(--grad); }
.app .tb-in::after { background: #17123d; border-right: 1.5px solid color-mix(in srgb, var(--s) 70%, transparent); border-bottom: 1.5px solid color-mix(in srgb, var(--s) 70%, transparent); }
.app small { color: var(--mute); }
.hub .tb-in { font-size: 13px; padding: 6px 12px 6px 32px; } .hub .tb-in::before { top: 6px; left: 8px; }

.cap { position: fixed; z-index: 20; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: max-content; max-width: calc(100% - 24px); text-align: center;
  padding: 10px 20px 12px; border-radius: 22px; background: rgba(14, 10, 40, .78); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cap.in { animation: capIn .6s var(--ease) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }
.cap-k { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--s); }
.cap-k span { padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; letter-spacing: .04em; }
.cap-k .when { font-weight: 700; } .cap-k .feat { margin-left: 0; }
.cap-h { margin-top: 4px; font: 800 clamp(20px, 2vw, 26px)/1.1 var(--display); letter-spacing: -.03em; }
.cap-h em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.endcta { display: none; justify-content: center; gap: 10px; margin-top: 12px; }
.endcta.on { display: flex; }
@media (max-width: 760px) {
  .tb-in { max-width: 190px; font-size: 13px; padding: 7px 11px 8px; border-radius: 15px; } .tb small { font-size: 11px; }
  .app .tb-in { padding-left: 31px; } .app .tb-in::before { left: 8px; top: 8px; width: 16px; height: 16px; }
  .hub .tb-in { font-size: 11.5px; padding: 5px 9px 5px 28px; } .hub .tb-in::before { top: 5px; left: 6px; }
  .cap { padding: 8px 14px 10px; border-radius: 18px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .cap-k { font-size: 10.5px; } .cap-k .when { display: none; } .cap-k .feat { display: inline-block; font-size: 11px; padding: 2px 8px; }
  .cap-h { font-size: 17px; }
  .endcta .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
}

/* intro, autoplay, polish */
.intro { position: fixed; z-index: 22; left: 50%; top: 50%; translate: -50% -52%; width: min(720px, calc(100% - 32px)); text-align: center; padding: 30px 28px 26px; border-radius: 32px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(40, 24, 110, .72), rgba(14, 10, 40, .78)); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.intro-k { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--s); }
.intro-h { margin: 12px 0 10px; font: 800 clamp(38px, 6.4vw, 76px)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.intro-h em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-p { color: var(--mute); max-width: 520px; margin: 0 auto; }
.intro-s { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13.5px; color: var(--ink); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
body:not(.ready) .intro { opacity: 0 !important; }
body.no-3d .intro, body.no-3d .play { display: none; }
.play { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--grad); font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px color-mix(in srgb, var(--p) 45%, transparent); transition: transform .2s; }
.play:hover { transform: translateY(-1px); }
.play i { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play.on i { width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%); }
.tb-in b { display: inline; }
.tb.on .tb-in { animation: tbPop .5s cubic-bezier(.3, 1.6, .5, 1) both, tbFloat 4s ease-in-out .5s infinite; }
@keyframes tbFloat { 50% { translate: var(--tx, -50%) -3px; } }
.tb.l .tb-in { --tx: calc(-100% + 28px); } .tb.r .tb-in { --tx: -28px; }
@keyframes tbPop { from { opacity: 0; transform: translateY(12px) scale(.7); } }
.cap { transition: opacity .3s; }
@media (max-width: 760px) {
  .play span { display: none; } .play { padding: 8px 11px; }
  .intro { padding: 22px 18px 20px; border-radius: 26px; top: 46%; } .intro-p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .tb.on .tb-in { animation: none; } .intro-s { animation: none; } }

.intro-n { margin-top: 10px; font-size: 12px; color: var(--mute); opacity: .8; }
.show { display: block; margin-top: 12px; }
body.no-3d .steps li { opacity: 1; color: #e4e1fb; }

/* friendlier start: what MyVibi is in three steps, calmer motion */
.intro { width: min(780px, calc(100% - 32px)); }
.intro-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 4px; text-align: left; }
.intro-steps li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 14px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid var(--line); opacity: 0; animation: stepIn .7s var(--ease) both; }
.intro-steps li:nth-child(1) { animation-delay: .5s; } .intro-steps li:nth-child(2) { animation-delay: .9s; } .intro-steps li:nth-child(3) { animation-delay: 1.3s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; } }
.intro-steps span { font-size: 24px; } .intro-steps b { font-size: 15px; } .intro-steps small { color: var(--mute); font-size: 12.5px; line-height: 1.3; }
.intro-k, .intro-h, .intro-p { animation: stepIn .8s var(--ease) both; } .intro-h { animation-delay: .15s; } .intro-p { animation-delay: .3s; }
.cap-s { margin: 6px auto 0; max-width: 540px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.tb-in b.ty { position: relative; display: inline-block; } .ty i { visibility: hidden; font-style: normal; } .ty u { position: absolute; inset: 0; text-decoration: none; }
@media (max-width: 760px) {
  .intro-steps { grid-template-columns: 1fr; gap: 6px; margin-top: 14px; }
  .intro-steps li { grid-template-columns: 30px 1fr; column-gap: 8px; padding: 8px 12px; } .intro-steps span { grid-row: span 2; font-size: 20px; align-self: center; } .intro-steps small { font-size: 12px; }
  .cap-s { display: none; }
  .intro { top: 48%; }
}

/* explanatory lines removed on request: keep the original city-story scheme */
.cap-s { display: none !important; }

/* polish: vignette, glass edges, floating emoji on the intro */
#scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 55%, rgba(9, 6, 32, .5) 100%); }
.cap { border: 1px solid transparent; background: linear-gradient(rgba(14, 10, 40, .8), rgba(14, 10, 40, .8)) padding-box, linear-gradient(120deg, color-mix(in srgb, var(--p) 80%, transparent), color-mix(in srgb, var(--s) 80%, transparent), color-mix(in srgb, var(--t) 60%, transparent)) border-box; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.tb-in { box-shadow: 0 14px 34px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .06); }
.bar i { background: linear-gradient(90deg, var(--p), var(--s), var(--t)); }
.dots button.on { box-shadow: 0 0 18px var(--s), 0 0 4px #fff; }
.fl { position: absolute; font-size: clamp(26px, 3.4vw, 44px); left: var(--x); top: var(--y); animation: flt 6s ease-in-out var(--d) infinite; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); pointer-events: none; }
@keyframes flt { 50% { transform: translateY(-14px) rotate(6deg); } }
.intro { overflow: visible; }
@media (max-width: 760px) { .fl { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .fl { animation: none; } }

/* v6: no scrolling, a Play button starts the story */
html, body { height: 100%; overflow: hidden; }
.track { display: none; }
.intro-s { display: none; }
.intro-play { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 16px 30px; border-radius: 999px; background: var(--grad); color: #fff; font: 800 18px/1 var(--display, inherit); letter-spacing: -.01em; box-shadow: 0 14px 40px color-mix(in srgb, var(--p) 55%, transparent); cursor: pointer; pointer-events: auto; animation: stepIn .8s var(--ease) .5s both, playPulse 2.4s ease-in-out 1.4s infinite; transition: transform .2s; }
.intro-play:hover { transform: translateY(-2px) scale(1.03); }
.intro-play i { width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@keyframes playPulse { 0%, 100% { box-shadow: 0 14px 40px color-mix(in srgb, var(--p) 55%, transparent), 0 0 0 0 color-mix(in srgb, var(--s) 50%, transparent); } 50% { box-shadow: 0 14px 40px color-mix(in srgb, var(--p) 55%, transparent), 0 0 0 16px transparent; } }
@media (prefers-reduced-motion: reduce) { .intro-play { animation: none; } }

/* v7: modern welcome screen + MyVibi greeting */
.intro { inset: 0; left: 0; top: 0; translate: none; width: auto; max-width: none; padding: 0 22px; border-radius: 0; border: 0; box-shadow: none; display: grid; place-content: center; justify-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 62% at 50% 50%, rgba(8, 5, 30, .82), rgba(8, 5, 30, .5) 62%, rgba(8, 5, 30, .18)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.intro > *:not(.fl) { position: relative; z-index: 2; }
.intro-logo { position: relative; width: 92px; height: 56px; margin-bottom: 18px; animation: stepIn .8s var(--ease) both; }
.intro-logo i { position: absolute; top: 0; width: 56px; height: 56px; border-radius: 50%; border: 6px solid; box-shadow: 0 0 28px color-mix(in srgb, var(--s) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--p) 40%, transparent); }
.intro-logo i:nth-child(1) { left: 0; border-color: var(--p); animation: ringA 4s ease-in-out infinite; }
.intro-logo i:nth-child(2) { right: 0; border-color: var(--s); animation: ringB 4s ease-in-out infinite; }
@keyframes ringA { 50% { transform: translateX(7px); } } @keyframes ringB { 50% { transform: translateX(-7px); } }
.intro-k { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.intro-h { font-size: clamp(44px, 8.4vw, 112px); line-height: .94; margin: 20px 0 16px; }
.intro-p { font-size: clamp(15px, 1.7vw, 19px); max-width: 560px; }
.intro-t { margin-top: 16px; font-size: 13px; color: var(--mute); animation: stepIn .8s var(--ease) .9s both; }
.intro-play { padding: 20px 38px; font-size: 20px; }
.intro .fl { left: auto; top: auto; }
.intro .fl:nth-child(1) { left: 9% !important; top: 20% !important; } .intro .fl:nth-child(2) { left: 87% !important; top: 17% !important; }
.intro .fl:nth-child(3) { left: 8% !important; top: 68% !important; } .intro .fl:nth-child(4) { left: 89% !important; top: 64% !important; }
.intro .fl:nth-child(5) { left: 23% !important; top: 82% !important; } .intro .fl:nth-child(6) { left: 74% !important; top: 83% !important; }
.intro .intro-n { margin-top: 6px; font-size: 12px; }
.hello { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; text-align: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(40, 24, 110, .88), rgba(8, 5, 30, .96)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hello.on { opacity: 1; visibility: visible; }
.hello-in { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 640px; }
.hello-logo { position: relative; width: 120px; height: 74px; margin-bottom: 8px; }
.hello-logo i { position: absolute; top: 0; width: 74px; height: 74px; border-radius: 50%; border: 8px solid; box-shadow: 0 0 40px color-mix(in srgb, var(--s) 60%, transparent); }
.hello-logo i:nth-child(1) { left: 0; border-color: var(--p); } .hello-logo i:nth-child(2) { right: 0; border-color: var(--s); }
.hello.on .hello-logo i:nth-child(1) { animation: helloA 5.6s var(--ease) both; } .hello.on .hello-logo i:nth-child(2) { animation: helloB 5.6s var(--ease) both; }
@keyframes helloA { 0% { transform: translateX(-90px) scale(.4); opacity: 0; } 25% { opacity: 1; } 45%, 100% { transform: none; opacity: 1; } }
@keyframes helloB { 0% { transform: translateX(90px) scale(.4); opacity: 0; } 25% { opacity: 1; } 45%, 100% { transform: none; opacity: 1; } }
.hl { opacity: 0; font: 600 clamp(19px, 3vw, 26px)/1.3 var(--display); color: var(--ink); }
.hello.on .hl { animation: hlIn .9s var(--ease) calc(var(--i) * 1.3s + .5s) both; }
.hl.big { font: 800 clamp(46px, 9vw, 104px)/.95 var(--display); letter-spacing: -.045em; }
.hl.big em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl.sub { font: 400 clamp(15px, 2vw, 19px)/1.5 "Inter", system-ui, sans-serif; color: var(--mute); max-width: 520px; }
.hl.hgo { font-size: clamp(16px, 2.2vw, 20px); color: var(--s); font-weight: 700; }
@keyframes hlIn { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hello-skip { position: absolute; right: 22px; bottom: 22px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--mute); }
.hello-skip:hover { color: var(--ink); }
@media (max-width: 760px) { .intro-play { padding: 17px 30px; font-size: 18px; } .intro-logo { transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .hello.on .hl, .hello.on .hello-logo i { animation: none; opacity: 1; } .intro-logo i { animation: none; } }

/* v8: cinematic lobby - city stays visible, camera orbits then flies into the story while the greeting plays */
.intro { backdrop-filter: none; -webkit-backdrop-filter: none; background: radial-gradient(ellipse 62% 56% at 50% 52%, rgba(8, 5, 30, .6), rgba(8, 5, 30, .2) 70%, transparent), linear-gradient(180deg, rgba(8,5,30,.35), transparent 30%, transparent 70%, rgba(8,5,30,.45)); }
.intro-h, .intro-p, .intro-k, .intro-t, .intro-n { text-shadow: 0 3px 28px rgba(8, 5, 30, .65); }
.hello { backdrop-filter: none; -webkit-backdrop-filter: none; background: radial-gradient(ellipse 72% 62% at 50% 50%, rgba(8, 5, 30, .74), rgba(8, 5, 30, .3) 80%, rgba(8, 5, 30, .08)); transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hl { text-shadow: 0 4px 30px rgba(8, 5, 30, .7); }
.hello.on .hl.big { animation: hlBig 1.5s var(--ease) calc(var(--i) * 1.3s + .5s) both; }
@keyframes hlBig { from { opacity: 0; letter-spacing: .22em; transform: scale(1.12); filter: blur(14px); } to { opacity: 1; letter-spacing: -.045em; transform: none; filter: none; } }
.rip { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 2px solid var(--s); opacity: 0; pointer-events: none; }
.hello.on .rip { animation: rip 2.6s ease-out both; }
.hello.on .rip:nth-of-type(1) { animation-delay: 1.8s; } .hello.on .rip:nth-of-type(2) { animation-delay: 2.15s; border-color: var(--p); } .hello.on .rip:nth-of-type(3) { animation-delay: 2.5s; }
@keyframes rip { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(5.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hello.on .rip { animation: none; } .hello.on .hl.big { animation: none; opacity: 1; } }
.intro-h em, .hl.big em { text-shadow: none; filter: drop-shadow(0 3px 16px rgba(8, 5, 30, .55)); }

/* v10: "feature used" card shown at every pause of the story */
.fcard { position: fixed; z-index: 26; left: 50%; top: 88px; width: min(460px, calc(100% - 28px)); display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; padding: 14px 18px 16px 14px; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: linear-gradient(rgba(14, 10, 40, .86), rgba(14, 10, 40, .86)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 22px 60px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, -14px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s; }
.fcard.on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.fc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-content: center; font-size: 26px; background: var(--grad); box-shadow: 0 8px 24px color-mix(in srgb, var(--p) 45%, transparent); }
.fc-body { display: grid; gap: 1px; min-width: 0; }
.fc-body small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s); }
.fc-n { font: 800 18px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.fc-t { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.fc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--k, 1)); }
body:not(.started) .fcard { display: none; }
@media (max-width: 760px) { .fcard { top: 80px; padding: 11px 14px 14px 11px; gap: 11px; grid-template-columns: 44px 1fr; } .fc-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; } .fc-n { font-size: 16px; } .fc-t { font-size: 13px; } }

/* v11: calmer, nicer feature card (no label; ring countdown, counter, spring entrance) */
.fcard { grid-template-columns: 58px 1fr auto; gap: 16px; padding: 16px 18px 16px 16px; border-radius: 26px; width: min(480px, calc(100% - 28px)); top: 90px;
  background: linear-gradient(135deg, rgba(24, 16, 70, .92), rgba(10, 7, 34, .92)) padding-box, var(--grad) border-box; box-shadow: 0 26px 70px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--p) 22%, transparent);
  transform: translate(-50%, -26px) scale(.9); transition: opacity .35s var(--ease), transform .7s cubic-bezier(.2, 1.35, .3, 1), visibility .4s; }
.fcard.on { transform: translate(-50%, 0) scale(1); }
.fc-ico { position: relative; width: 58px; height: 58px; border-radius: 50%; font-size: 27px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--s) 55%, #fff 0%), var(--p)); box-shadow: 0 8px 26px color-mix(in srgb, var(--p) 50%, transparent); }
.fc-ico::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(from 0deg, var(--s) calc(var(--k, 1) * 360deg), rgba(255,255,255,.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.fcard.on .fc-ico span, .fcard.on .fc-ico { animation: fcPop .7s cubic-bezier(.2, 1.5, .3, 1) both; }
@keyframes fcPop { from { transform: scale(.4) rotate(-14deg); } to { transform: none; } }
.fc-n { font-size: 20px; }
.fc-t { font-size: 14px; }
.fc-no { align-self: start; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--mute); padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); }
.fc-bar { display: none; }
@media (max-width: 760px) { .fcard { grid-template-columns: 46px 1fr; top: 78px; padding: 12px 14px 12px 12px; gap: 12px; } .fc-ico { width: 46px; height: 46px; font-size: 22px; } .fc-n { font-size: 17px; } .fc-t { font-size: 13px; } .fc-no { display: none; } }
@media (prefers-reduced-motion: reduce) { .fcard, .fcard.on .fc-ico { animation: none; transition: opacity .2s; } }

/* loader failsafe */
.loader.fail .ld-ring { display: none; }
.loader.fail { background: var(--bg); }
.loader.fail p { text-align: center; color: var(--ink); font-size: 18px; max-width: 360px; padding: 0 20px; }
.loader.fail small { display: block; margin-top: 8px; color: var(--mute); font-weight: 400; font-size: 13.5px; }

/* v14: speech bubbles as ONE shape (tail is part of the same fill, outline + shadow follow the whole silhouette) */
.tb-in { box-shadow: none !important; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .3)); }
.app .tb-in { border: 0; background: #17123d; padding: 10px 15px 11px 38px;
  filter: drop-shadow(0 0 1px color-mix(in srgb, var(--s) 95%, transparent)) drop-shadow(0 0 .6px color-mix(in srgb, var(--s) 80%, transparent)) drop-shadow(0 12px 16px rgba(0, 0, 0, .34)); }
.app .tb-in::before { left: 12px; top: 12px; }
.tb-in::after, .app .tb-in::after { width: 18px; height: 11px; margin: 0; bottom: -10px; border: 0; border-radius: 0; transform: none; background: var(--tail); clip-path: polygon(0 0, 100% 0, 61% 80%, 50% 100%, 39% 80%); }
.tb-in::after { left: calc(50% - 9px); }
.tb.l .tb-in::after { left: auto; right: 19px; } .tb.r .tb-in::after { left: 19px; }
.hub .tb-in { padding: 6px 12px 7px 33px; }
@media (max-width: 760px) { .app .tb-in { padding: 8px 11px 9px 32px; } .app .tb-in::before { left: 8px; top: 9px; } .tb-in::after, .app .tb-in::after { width: 15px; height: 9px; bottom: -8px; } .tb.l .tb-in::after { right: 20px; } .tb.r .tb-in::after { left: 20px; } }
/* loader: two rings like the logo, orbiting */
.ld-logo { position: relative; display: block; width: 104px; height: 64px; animation: ldOrbit 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.ld-logo i { position: absolute; top: 4px; width: 56px; height: 56px; border-radius: 50%; border: 7px solid; box-shadow: 0 0 30px color-mix(in srgb, var(--s) 55%, transparent), inset 0 0 16px color-mix(in srgb, var(--p) 35%, transparent); }
.ld-logo i:nth-child(1) { left: 0; border-color: var(--p); animation: ldA 2.4s ease-in-out infinite; }
.ld-logo i:nth-child(2) { right: 0; border-color: var(--s); animation: ldB 2.4s ease-in-out infinite; }
@keyframes ldOrbit { to { transform: rotate(360deg); } }
@keyframes ldA { 50% { transform: translateX(12px); } } @keyframes ldB { 50% { transform: translateX(-12px); } }
.loader.fail .ld-logo, .loader.fail .ld-logo i { animation: none; }
@media (prefers-reduced-motion: reduce) { .ld-logo, .ld-logo i { animation: none; } }

/* v16: problem cards (muted) vs solution cards (vivid) */
.fc-no { position: static; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 5px 11px; border-radius: 999px; background: var(--grad); }
.fcard.prob { background: linear-gradient(135deg, rgba(36, 32, 62, .95), rgba(16, 14, 34, .95)) padding-box, linear-gradient(120deg, #9aa1c6, #596082) border-box; box-shadow: 0 26px 70px rgba(0,0,0,.5); }
.fcard.prob .fc-ico { background: radial-gradient(circle at 30% 25%, #7a81a6, #3b405d); box-shadow: none; }
.fcard.prob .fc-ico::before { background: conic-gradient(from 0deg, #c3c8e6 calc(var(--k, 1) * 360deg), rgba(255,255,255,.14) 0); }
.fcard.prob .fc-no { background: rgba(255,255,255,.12); color: #d6d9ee; }
@media (max-width: 760px) { .fc-no { display: block !important; position: absolute; top: 9px; right: 12px; padding: 3px 8px; font-size: 9.5px; } .fc-body { padding-right: 72px; } }
