/* tc-anim.css: scroll animations and the animated scenes on the home page (2026-10-17). Theme tokens only, so
   light and dark both work. Everything still shows (no animation) for people who ask for reduced motion. */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
.rv-scale { opacity: 0; transform: scale(.92); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv-scale.in { opacity: 1; transform: none; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue), #8b5cf6, var(--blue)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* hero video portrait */
.portrait { position: relative; width: min(300px, 78%); aspect-ratio: 1; margin: 34px auto 0; }
.portrait video, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 2; box-shadow: 0 20px 50px var(--glow); }
.portrait .ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--blue); opacity: .35; animation: ring 3.2s ease-out infinite; }
.portrait .ring.r2 { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.94); opacity: .5; } to { transform: scale(1.22); opacity: 0; } }
.portrait .chip { position: absolute; z-index: 3; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); white-space: nowrap; display: flex; gap: 8px; align-items: center; animation: float 5s ease-in-out infinite; }
.portrait .chip svg { width: 16px; height: 16px; color: var(--blue); }
.portrait .c1 { top: 4%; left: -18%; } .portrait .c2 { top: 40%; right: -24%; animation-delay: 1.2s; } .portrait .c3 { bottom: 2%; left: -10%; animation-delay: 2.4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* SUPER CONNECTOR: platforms around Pixie, memory pulses travel along the links */
.connector { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto 70px; }
.connector svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connector .link { stroke: var(--blue); stroke-width: 2; fill: none; opacity: .28; stroke-dasharray: 6 8; }
.connector .pulse { fill: var(--blue); filter: drop-shadow(0 0 6px var(--blue)); }
.connector .hub { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; z-index: 2;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--blue-soft), 0 18px 40px var(--glow); }
.connector .hub video, .connector .hub img { width: 100%; height: 100%; object-fit: cover; }
.connector .node { position: absolute; transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.connector .node .ic { width: 58px; height: 58px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.connector .node.person .ic { border-radius: 50%; color: #fff; font-weight: 800; font-size: 18px; }
.connector .note { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(100% + 18px); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 16px; padding: 10px 14px; font-size: 14px; width: max-content; max-width: 92%; text-align: center; opacity: 0; transition: opacity .5s, transform .5s; }
.connector .note.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.connector .note b { color: var(--blue); }
.memories { display: grid; gap: 10px; margin-top: 22px; }
.memory { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--card-b); border-radius: 16px; padding: 12px 14px; font-size: 15px; color: var(--ink2); }
.memory b { color: var(--ink); }
.memory .tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); margin-top: 2px; }

/* X SPACE scene */
.space { background: var(--bg); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 18px; max-width: 400px; margin: 0 auto; }
.space .top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--mute); }
.space .live { background: #7c3aed; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; }
.space h4 { font-size: 19px; margin: 12px 0 16px; color: var(--ink); line-height: 1.3; }
.space .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.spk { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink2); position: relative; }
.spk .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; position: relative; overflow: visible; }
.spk .av img, .spk .av video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.spk .av::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid #7c3aed; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; }
.spk.talk .av::after { opacity: 1; transform: scale(1); animation: talkring .6s ease-in-out infinite alternate; }
@keyframes talkring { to { transform: scale(1.08); } }
.spk .host { position: absolute; top: 46px; font-size: 10px; background: #7c3aed; color: #fff; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.space .wave { display: flex; gap: 3px; align-items: center; height: 30px; margin: 16px 0 6px; justify-content: center; }
.space .wave i { width: 4px; border-radius: 2px; background: #7c3aed; height: 6px; animation: wave 1s ease-in-out infinite; }
.space .wave i:nth-child(2n) { animation-delay: .15s; } .space .wave i:nth-child(3n) { animation-delay: .3s; } .space .wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wave { 50% { height: 28px; } }
.space .caption { min-height: 44px; font-size: 15px; color: var(--ink); text-align: center; }
.space .caption b { color: #7c3aed; }
.space .reacts { display: flex; justify-content: center; gap: 10px; margin-top: 10px; height: 26px; position: relative; }
.space .reacts span { font-size: 20px; animation: up 2.4s ease-out forwards; position: absolute; opacity: 0; }
@keyframes up { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px); } }

/* TELEGRAM chat scene: messages arrive one by one */
.tgchat { max-width: 400px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.tgchat .top { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tgchat .top b { display: block; font-size: 16px; } .tgchat .top span { color: var(--mute); font-size: 13px; }
.tgchat .body { background: var(--bg2); padding: 14px; display: grid; gap: 8px; min-height: 330px; align-content: end; }
.tgchat .m { max-width: 82%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 14.5px; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .35s, transform .35s; }
.tgchat .m.on { opacity: 1; transform: none; }
.tgchat .m i { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: #e0823a; }
.tgchat .m.px { justify-self: start; background: var(--blue-soft); border-color: transparent; }
.tgchat .m.px i { color: var(--blue); }
.tgchat .m.sys { justify-self: center; background: none; border: 0; color: var(--mute); font-size: 13px; }
.tgchat .typing { justify-self: start; display: none; gap: 4px; padding: 10px 14px; background: var(--blue-soft); border-radius: 16px; }
.tgchat .typing.on { display: flex; }
.tgchat .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dot 1s infinite; }
.tgchat .typing i:nth-child(2) { animation-delay: .15s; } .tgchat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; transform: translateY(-3px); } }

/* league video */
.vid { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.vid video { width: 100%; height: 100%; display: block; }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); border: 0; cursor: pointer; color: #fff; }
.vid .play span { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.vid .play:hover span { transform: scale(1.06); }
.vid .play svg { width: 30px; height: 30px; color: #111; margin-left: 4px; }
.vid.playing .play { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-scale { opacity: 1; transform: none; transition: none; }
  .portrait .ring, .portrait .chip, .space .wave i, .hero h1 .grad { animation: none; }
}
@media (max-width: 520px) { .portrait .chip { font-size: 12px; padding: 6px 10px; } .portrait .c1 { left: -8%; } .portrait .c2 { right: -10%; } .portrait .c3 { left: -4%; } }

/* 8 points around Pixie on a phone (2026-10-22) */
@media (max-width: 480px) { .connector .node { font-size: 11px; } .connector .node .ic { width: 46px; height: 46px; border-radius: 14px; } }
