.create-hub-open{overflow:hidden}.create-hub{position:fixed;inset:0;z-index:220;background:#000;color:#fff;overflow:auto;padding:12px max(16px,calc((100vw - 920px)/2)) 95px;font-family:Arial,sans-serif}.create-hub button,.create-hub input,.create-hub select,.create-hub textarea{font:inherit;color:inherit}.create-hub button{cursor:pointer;background:#202020;border:0;border-radius:12px;padding:14px}.create-hub header{display:flex;justify-content:space-between;align-items:center}.create-hub header h1{font-size:27px}.create-hub header button{background:none;font-size:27px}.create-hub footer{position:fixed;bottom:0;left:0;right:0;background:#000;display:flex;justify-content:center;gap:18px;padding:20px 8px calc(20px + env(safe-area-inset-bottom));z-index:1}.create-hub footer button{background:none;font-size:14px;font-weight:bold;color:#888}.create-hub footer [aria-current]{color:white}.create-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:18px 0}.create-tools button{background:none;padding:4px;font-size:12px;line-height:1.3}.create-tools b{display:block;font-size:32px;margin:10px}.create-new{display:grid;grid-template-columns:3fr 1fr;gap:12px}.create-new button{font-size:22px;font-weight:bold}.create-new button:first-child{background:linear-gradient(110deg,#fff0e7,#e9feff);color:#000;padding:24px}.create-new b{display:block;font-size:34px}.create-section{display:flex;align-items:center;justify-content:space-between;gap:10px}.create-section h2{font-size:26px}.create-section label{max-width:45%}.create-hub input:not([type=file]),.create-hub select,.create-hub textarea{background:#202020;border:1px solid #555;padding:12px;border-radius:10px;width:100%;box-sizing:border-box}.template-tabs{display:flex;gap:8px;overflow:auto}.template-tabs button{white-space:nowrap;background:none;color:#999;font-weight:bold}.template-tabs [aria-pressed=true]{color:white;border-bottom:3px solid white;border-radius:0}.create-note,.create-hub [role=status]{font-size:13px;color:#bdbdbd;line-height:1.5}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.template-grid button{background:none;padding:0;text-align:left}.template-grid button>div{height:260px;border-radius:18px;display:flex;flex-direction:column;justify-content:space-between;padding:18px;background:radial-gradient(circle at 10% 15%,var(--template-color),transparent 65%),linear-gradient(155deg,#242333,#030309);overflow:hidden}.template-grid strong{font-size:35px;overflow-wrap:anywhere}.template-grid b,.template-grid small{display:block;margin:8px 0}.template-grid small{font-size:12px;color:#ccc}.create-hub main>label{display:block;margin:16px 0}.create-hub input[type=file]{display:block;max-width:100%;margin:12px 0}.photo-canvas{width:100%;max-width:340px;max-height:45vh;object-fit:contain;display:block;margin:auto;background:#151526}.create-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.create-actions label{flex:1;min-width:100px}.create-hub video{max-width:100%;max-height:40vh;display:block;margin:auto}.friends-stage{background:#000;color:#fff;position:relative;min-height:75vh}.friends-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}.friends-head h1{font-size:24px}.friends-head button{background:none;color:white;font-size:32px;padding:5px}.friends-head img{width:42px;height:42px;border-radius:50%;border:2px solid #2ee8df}.friends-directory summary{padding:10px;color:#ccc;cursor:pointer}.friends-directory .people-page{background:#111;color:white;padding:14px}.friend-feed{height:calc(100dvh - 230px);min-height:350px;overflow:auto;scroll-snap-type:y mandatory}.friend-clip{position:relative;height:100%;min-height:350px;scroll-snap-align:start;background:#000;overflow:hidden}.friend-media{height:100%;display:grid;place-items:center}.friend-media img,.friend-media video{width:100%;height:100%;object-fit:contain}.friend-media p{padding:40px}.friend-clip aside{position:absolute;right:10px;bottom:90px;display:flex;flex-direction:column;gap:14px}.friend-clip aside button{font-size:34px;background:#0006;color:white;border:0;border-radius:50%;width:48px;height:48px;padding:0}.friend-clip footer{position:absolute;left:14px;bottom:15px;right:74px;text-shadow:0 2px 4px black}.friends-empty{padding:80px 24px;text-align:center}.friend-scope{font-size:11px;color:#aaa;padding:10px}.friends-stage .people-title h1{display:none}@media(max-width:600px){.template-grid button>div{height:225px;padding:14px}.template-grid strong{font-size:29px}.create-section h2{font-size:24px}.create-new button{font-size:18px}.create-hub header h1{font-size:26px}}

.live-template{position:relative;isolation:isolate}.live-template:before{content:"";position:absolute;inset:-45%;z-index:-1;background:conic-gradient(from 0deg,transparent,var(--template-color),#ffffff55,transparent);animation:topak-live-spin 9s linear infinite}.live-template:after{content:"✦ · ✧ · ✦";position:absolute;bottom:25%;left:10%;font-size:32px;color:#fffd;animation:topak-live-float 3s ease-in-out infinite alternate}.live-motion-2:before{animation-duration:5s}.live-motion-3:after{animation-duration:1.8s}.live-motion-4:before{animation-direction:reverse}@keyframes topak-live-spin{to{transform:rotate(360deg)}}@keyframes topak-live-float{to{transform:translate(18px,-40px);opacity:.3}}@media(prefers-reduced-motion:reduce){.live-template:before,.live-template:after{animation:none}}

.template-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;animation:topak-scene-breathe 7s ease-in-out infinite alternate}.template-grid strong,.template-grid span,.template-grid small{text-shadow:0 2px 8px #000}.template-grid button>div:has(.template-scene){background:#172c35}@keyframes topak-scene-breathe{to{transform:scale(1.08)}}@media(prefers-reduced-motion:reduce){.template-scene{animation:none}}

.live-template:after{content:none}.library-preview{height:260px;background:#111!important;overflow:hidden}.library-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.library-preview .clip-state{position:absolute;bottom:8px;left:8px;background:#0009;padding:5px;border-radius:8px;font-size:11px}.video-library-grid article{min-width:0}.video-library-grid article>button{width:100%;text-align:left;background:none;color:white;border:0;padding:0}.video-library-grid b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-library-grid small,.video-library-grid a{display:block;font-size:11px;color:#b8c6d8;overflow-wrap:anywhere}.video-library-grid a{color:#5de1e8;margin:5px 0 18px}

.template-gallery header{position:sticky;top:-12px;background:#000;z-index:5;gap:8px}.template-gallery header h1{font-size:24px}.template-gallery header .gallery-new-video{background:#f2faf9;color:#111;font-size:14px;font-weight:800;border-radius:28px;padding:10px 14px;white-space:nowrap}
.template-gallery .create-tools{display:flex;overflow:auto;margin:6px 0}.template-gallery .create-tools button{white-space:nowrap;font-size:11px}.template-gallery .create-tools b{font-size:17px;display:inline;margin:0 6px 0 0}.template-gallery .create-new{display:none}.template-gallery .create-section h2{font-size:18px}.template-gallery .gallery-license-note{display:none}.template-gallery .template-tabs{position:sticky;top:57px;background:#000;z-index:4}.gallery-count{font-size:12px;color:#999}.template-gallery .template-grid{display:block;columns:2;column-gap:14px}.template-gallery .template-grid>button{display:block;width:100%;break-inside:avoid;margin-bottom:24px}.template-gallery .template-grid>button>div{height:auto;aspect-ratio:3/4;padding:0}.template-gallery .template-grid>button:nth-child(3n+2)>div{aspect-ratio:3/5}.template-gallery .template-grid b{font-size:16px;line-height:1.35;margin-bottom:4px}.template-gallery .template-grid small{font-size:11px;line-height:1.4;margin:0;color:#aaa}.is-real-video:before,.is-real-video:after{display:none}.template-gallery .template-scene{z-index:0;animation:none;max-height:none;margin:0;object-fit:cover}.gallery-play{position:absolute;right:10px;bottom:10px;color:#fff;font-size:13px;text-shadow:0 1px 4px #000}.template-detail{padding:8px max(12px,calc((100vw - 600px)/2)) 100px}.template-detail header h1{font-size:15px;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-detail-stage{position:relative;height:calc(100dvh - 205px);background:#080808;border-radius:16px;overflow:hidden}.template-detail-stage video{width:100%;height:100%;max-height:none;object-fit:contain}.template-detail-info{position:absolute;bottom:0;left:0;right:0;padding:45px 16px 16px;background:linear-gradient(transparent,#000e)}.template-detail-info h2{font-size:23px;margin:0 0 8px}.template-detail-info p,.template-detail-info a{font-size:12px;color:#ddd}.template-detail .template-try{width:100%;background:#fa365b;color:#fff;font-weight:800;border-radius:28px;padding:18px;margin-top:12px;font-size:18px}.template-detail footer{display:none}
@media(min-width:1000px){.template-gallery .template-grid{columns:4}.template-gallery{padding-left:max(24px,calc((100vw - 1100px)/2));padding-right:max(24px,calc((100vw - 1100px)/2))}}

.template-detail{height:100dvh;overflow:hidden;padding:0;background:#000}.template-detail>header{position:absolute;top:0;left:0;right:0;z-index:6;padding:12px 16px;background:linear-gradient(#0009,transparent)}.template-detail>header button{color:white;text-shadow:0 1px 5px black}.template-detail-stage{height:calc(100dvh - 100px);width:100%;border-radius:0}.template-detail-stage video{object-fit:cover;width:100%;height:100%;max-height:none}.template-detail .template-try{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:16px;width:calc(100% - 32px);margin:0;z-index:5}.template-detail-info{padding-bottom:20px}.template-detail .template-sound{position:absolute;right:16px;top:76px;z-index:5;border-radius:25px;background:#0008;color:#fff;font-size:14px;padding:10px 14px}.template-detail .preview-error{position:absolute;bottom:100px;left:16px;right:16px;z-index:6;color:white;background:#0009}
.template-gallery .template-grid b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.template-gallery .template-grid>button>div{background:#111}.template-gallery .template-grid{columns:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.template-gallery .template-grid>button:nth-child(3n+2)>div{aspect-ratio:3/4}.template-gallery .create-tools,.template-gallery .template-tabs{scrollbar-width:none}.template-gallery .create-tools::-webkit-scrollbar,.template-gallery .template-tabs::-webkit-scrollbar{display:none}@media(min-width:1000px){.template-gallery .template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.template-detail-stage{max-width:600px;margin:auto}.template-detail .template-try{max-width:568px;left:50%;transform:translateX(-50%)}}

.template-gallery .gallery-quote{position:absolute;inset:35% 8% auto;z-index:2;font-size:25px;line-height:1.2;text-align:center;color:white;text-shadow:0 2px 12px #000,0 1px 3px #000;font-weight:800}.template-gallery .template-grid video{image-rendering:auto}.template-gallery .template-grid>button>div:has(.gallery-quote):after{display:block;content:'';inset:0;background:linear-gradient(transparent,#0005);animation:none;pointer-events:none}.template-detail-info h2{line-height:1.2}.template-gallery .template-grid small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
