/* 3D + live effects layer: device, scenes, cursor, knobs, orbs, bursts, transitions, stacks. */

/* ---------- 3D phone device ---------- */
/* Stage fills the preview area; the slot is the tallest 9:16 box that fits, centred. */
.device-stage { --stage-w: 100vw; perspective: 1400px; perspective-origin: 50% 45%; position: relative; flex: 1 1 auto; align-self: stretch; width: 100%; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.device-slot { position: relative; flex: none; height: 100%; max-height: min(100%, calc(var(--stage-w) * 16 / 9)); aspect-ratio: 9 / 16; transform-style: preserve-3d; }
.device { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.device .phone-frame { position: absolute; inset: 0; height: auto; max-height: none; transform: translateZ(2px); will-change: transform; }
.device-body { position: absolute; inset: -10px; border-radius: 36px; background: linear-gradient(160deg, #2b2b38, #0c0c12 60%, #17171f); transform: translateZ(-16px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.08); will-change: transform; }
.device-body::before { content: ''; position: absolute; inset: 4px; border-radius: 33px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0)); }
.device-edge { --lx: 50%; --ly: 40%; position: absolute; inset: -7px; border-radius: 33px; transform: translateZ(-6px); background: radial-gradient(120% 100% at var(--lx) var(--ly), rgba(255,255,255,0.55), rgba(180,170,255,0.18) 30%, rgba(30,30,40,0.9) 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 0 1px rgba(0,0,0,0.6); }
.device-edge::after { content: ''; position: absolute; inset: 5px; border-radius: 29px; background: #06060a; }
.device-glare { position: absolute; inset: 0; border-radius: 26px; pointer-events: none; z-index: 9; transform: translateZ(3px); mix-blend-mode: screen; }
.device-shadow { position: absolute; left: 8%; right: 8%; bottom: -5%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.7), rgba(0,0,0,0)); transform: translateY(18px); z-index: 0; will-change: transform; }
.fx-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; }
.fx-field.on { opacity: 0.85; }
.gyro-btn.on { color: var(--lime); }

/* Fullscreen preview: the phone alone, as tall as the screen, floating controls. */
body.presenting { overflow: hidden; }
body.presenting .topbar, body.presenting .col-left, body.presenting .col-right, body.presenting .timeline, body.presenting .ask-wrap, body.presenting .mobile-tabs, body.presenting .gyro-btn { display: none !important; }
body.presenting .studio { grid-template-columns: 1fr; grid-template-rows: 100vh; }
body.presenting .col-center { height: 100vh; background: #050508; }
body.presenting .preview-wrap { padding: 2vh 0 78px; }
body.presenting .controls { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 50; background: rgba(12,12,18,0.7); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(12px); gap: 10px; }
body.presenting .controls .time { min-width: 0; }
.present-title { position: fixed; top: 24px; left: 32px; z-index: 50; font-family: var(--display); font-weight: 700; font-size: 20px; display: none; }
.present-title small { display: block; font-family: var(--font); font-weight: 500; color: var(--text-2); font-size: 12px; margin-top: 2px; }
body.presenting .present-title { display: block; animation: rise .5s var(--ease); }

/* ---------- AI orb scene ---------- */
.ai-orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Orbiting clip thumbnails sit behind the stage list and scale with the phone. */
.ai-orbit { position: absolute; left: 50%; top: 36%; width: 0; height: 0; transform-style: preserve-3d; perspective: 600px; z-index: 1; pointer-events: none; }
.ai-orbit img { position: absolute; width: 16cqw; height: 27cqw; object-fit: cover; border-radius: 2.6cqw; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.5); transform-origin: 0 0; animation: orbit 7s linear infinite; }
@keyframes orbit { from { transform: rotateY(var(--a)) translateZ(42cqw) rotateY(calc(-1 * var(--a))) translate(-50%, -50%); } to { transform: rotateY(calc(var(--a) + 360deg)) translateZ(42cqw) rotateY(calc(-1 * var(--a) - 360deg)) translate(-50%, -50%); } }
.ai-orbit img.fly { animation: none; transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity 1.1s; opacity: 0; }


/* ---------- Burst layer / plane / fly clone ---------- */
.burst-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9000; }
.paper-plane { position: fixed; left: 0; top: 0; width: 28px; height: 28px; z-index: 9001; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
.fly-clone { border-radius: 12px; overflow: hidden; }

/* ---------- Knob ---------- */
.knob { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; user-select: none; touch-action: none; }
.knob-face { position: relative; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3a4c, #14141c 70%); box-shadow: 0 10px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -3px 8px rgba(0,0,0,0.6); cursor: ns-resize; }
.knob-ticks { position: absolute; inset: 0; }
.knob-ticks i { position: absolute; left: 50%; top: 50%; width: 2px; height: 5px; margin-left: -1px; background: rgba(255,255,255,0.18); border-radius: 2px; transform-origin: 50% 0; }
.knob-ring { position: absolute; inset: 6px; border-radius: 50%; background: conic-gradient(from 225deg, #8b6cff, #ff4fa3 var(--fill, 0%), rgba(255,255,255,0.06) var(--fill, 0%), rgba(255,255,255,0.06) 75%, transparent 75%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); }
.knob-cap { position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #4a4a5e, #1c1c26 70%); box-shadow: 0 6px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2); transition: transform .12s var(--ease); }
.knob.active .knob-cap { box-shadow: 0 6px 14px rgba(0,0,0,0.6), 0 0 0 3px rgba(139,108,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
.knob-mark { position: absolute; left: 50%; top: 7px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.knob-value { font-size: 12.5px; font-weight: 600; }
.knob-label { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.knob-row { display: flex; gap: 18px; justify-content: space-around; padding: 6px 0 2px; }

/* ---------- Colour orb ---------- */
.color-orb { display: flex; gap: 12px; align-items: center; }
.orb-disc { position: relative; border-radius: 50%; box-shadow: 0 14px 30px rgba(0,0,0,0.6); }
.orb-disc canvas { display: block; border-radius: 50%; cursor: crosshair; touch-action: none; }
.orb-marker { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); transform: translate(-50%, -50%); pointer-events: none; }
.orb-side { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.orb-swatch { width: 100%; height: 22px; border-radius: 8px; border: 1px solid var(--line-2); }
.orb-rail { background: linear-gradient(90deg, #000, #888, #fff); }

/* ---------- Top bar live bits ---------- */
.status-orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent-2) var(--p, 0%), rgba(255,255,255,0.15) 0); position: relative; animation: spin 2.4s linear infinite; }
.status-orb::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-2); }
.task-ring { width: 26px; height: 26px; flex: none; }
.task-ring circle { fill: none; stroke-width: 3; }
.task-ring .bg { stroke: rgba(255,255,255,0.12); }
.task-ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s var(--ease); }
.task-ring.done .fg { stroke: var(--lime); }
.avatar-flip { width: 32px; height: 32px; perspective: 300px; cursor: default; }
.avatar-flip .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--spring); }
.avatar-flip:hover .inner { transform: rotateY(180deg); }
.avatar-flip .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.avatar-flip .face.front { background: var(--grad); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.avatar-flip .face.back { background: var(--bg-4); border: 1px solid var(--line-2); transform: rotateY(180deg); font-size: 8.5px; text-align: center; line-height: 1.1; padding: 2px; }
.sound-btn.on { color: var(--lime); }

/* ---------- Clips: fall-in, ring progress, flip, lift, 3D heat, film belt ---------- */
.clip.falling { animation: fall-in .6s var(--spring) both; transform-origin: 50% 0; }
@keyframes fall-in { 0% { opacity: 0; transform: translateY(-40px) rotateX(-40deg) scale(0.9); } 60% { transform: translateY(4px) rotateX(6deg); } 100% { opacity: 1; transform: none; } }
.clip.lifted { transform: translateY(-4px) rotateX(4deg) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--accent); z-index: 3; }
.clip .th .ring { position: absolute; inset: 0; border-radius: 8px; background: conic-gradient(var(--accent-2) var(--p, 0%), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 3px; }
.clip .th img.flip-in { animation: flip-in .7s var(--spring) both; }
@keyframes flip-in { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.clip .heat3d { grid-column: 1 / -1; height: 18px; position: relative; perspective: 300px; }
.clip .heat3d .bar { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(255,79,163,0.9), rgba(139,108,255,0.55)); transform: rotateX(28deg); transform-origin: 50% 100%; box-shadow: 0 -2px 0 rgba(255,255,255,0.25) inset; }
.clip .heat3d .bar.used { background: linear-gradient(180deg, #d9ff7a, #7fc21b); box-shadow: 0 0 10px rgba(182,255,59,0.6); }
.clip .heat3d .bar.lock { background: linear-gradient(180deg, #ffe58a, #c99a11); }
.strip .film { perspective: 500px; }
.strip .film .belt { position: absolute; inset: 0; background: inherit; transform: rotateX(18deg) scale(1.04); transform-origin: 50% 100%; }
.strip .film .win { backdrop-filter: contrast(1.05) saturate(1.2); background: rgba(182,255,59,0.05); }
.strip .film .win::before, .strip .film .win::after { display: none; }
.strip .film .lens { position: absolute; top: -18px; bottom: -6px; border-radius: 8px; background-image: inherit; background-size: auto 130%; background-position: var(--bx, 0) 40%; box-shadow: 0 0 0 2px var(--lime), 0 12px 30px rgba(0,0,0,0.6); pointer-events: none; }

/* ---------- Text panel: stack, spark, typing ---------- */
.screens.stack3d { perspective: 900px; }
.screens.stack3d .screen { transform-style: preserve-3d; transition: transform .35s var(--spring), border-color .2s, box-shadow .2s; }
.screens.stack3d .screen.active { transform: translateZ(18px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent); }
.screen .tbar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.screen .tbar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s linear; }
.screen.now .sh span:first-child { color: var(--lime); }
.screen .grip { cursor: grab; color: var(--text-3); display: inline-flex; margin-right: 6px; }
.screen.dragging { opacity: 0.5; }
.w.pop { animation: word-pop .35s var(--spring); }
@keyframes word-pop { 40% { transform: scale(1.35) rotate(-3deg); } }
.live-type { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.live-type span { position: absolute; transform: translate(-50%, -50%); text-align: center; font-family: var(--display); }
.live-type .ch { display: inline-block; opacity: 0; animation: ch .18s ease forwards; }
@keyframes ch { to { opacity: 1; } }

/* ---------- Look panel: flip cards, fly ---------- */
.tpl { perspective: 700px; overflow: visible; }
.tpl .inner { position: relative; transform-style: preserve-3d; transition: transform .6s var(--spring); border-radius: 12px; }
.tpl:hover .inner { transform: rotateY(180deg); }
.tpl .face { backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.tpl .face.back { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--bg-3); border: 1px solid var(--line-2); padding: 12px; font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; justify-content: space-between; }
.tpl .face.back b { color: var(--text); font-size: 13px; }
.tpl-grid.fan .tpl:not(:hover) { transform: scale(0.97); opacity: 0.85; }

/* ---------- Music: 3D waveform, vinyl, fetch card ---------- */
.wave3d { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: radial-gradient(500px 200px at 50% 110%, rgba(139,108,255,0.18), transparent 70%), var(--bg-4); margin-top: 10px; cursor: crosshair; }
.wave3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave3d .tip { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(20,20,28,0.9); border: 1px solid var(--line-2); font-size: 11px; pointer-events: none; }
.vinyl { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s; }
.vinyl:hover { border-color: var(--line-2); }
.vinyl .disc { width: 46px; height: 46px; border-radius: 50%; flex: none; background: repeating-radial-gradient(circle, #111 0 1px, #1c1c24 1px 3px); position: relative; box-shadow: 0 6px 16px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08); }
.vinyl .disc::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--grad); }
.vinyl:hover .disc { animation: spin 1.6s linear infinite; }
.vinyl b { display: block; font-size: 13px; }
.vinyl span { font-size: 11.5px; color: var(--text-3); }
.fetch-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); perspective: 600px; }
.fetch-card .thumb { width: 54px; height: 54px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; animation: card-spin 2.2s ease-in-out infinite; }
@keyframes card-spin { 0%, 100% { transform: rotateY(-20deg); } 50% { transform: rotateY(20deg); } }

/* ---------- Motion: live transition demos, pacing viz ---------- */
.tdemo { height: 34px; border-radius: 8px; overflow: hidden; position: relative; background: #1a1a24; margin-top: 8px; }
.tdemo i { position: absolute; inset: 0; }
.tdemo .a { background: linear-gradient(120deg, #8b6cff, #5a3fd6); }
.tdemo .b { background: linear-gradient(120deg, #ff4fa3, #ff8a3d); }
.tdemo.cut .b { animation: td-cut 2s steps(1) infinite; }
@keyframes td-cut { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.tdemo.dip .b { animation: td-cut 2s steps(1) infinite; }
.tdemo.dip::after { content: ''; position: absolute; inset: 0; background: #000; animation: td-dip 2s linear infinite; }
@keyframes td-dip { 0%, 40% { opacity: 0; } 50% { opacity: 1; } 60%, 100% { opacity: 0; } }
.tdemo.flash .b { animation: td-cut 2s steps(1) infinite; }
.tdemo.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: td-dip 2s linear infinite; }
.tdemo.punch .b { animation: td-punch 2s ease-out infinite; }
@keyframes td-punch { 0%, 49% { opacity: 0; transform: scale(1.14); } 50% { opacity: 1; transform: scale(1.14); } 70%, 100% { opacity: 1; transform: scale(1); } }
.tdemo.prism .b { animation: td-cut 2s steps(1) infinite; }
.tdemo.prism::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,0,80,0.5), rgba(0,200,255,0.5)); mix-blend-mode: screen; filter: blur(4px); animation: td-dip 2s linear infinite; }
.tdemo.whip .b { animation: td-cut 2s steps(1) infinite; }
.tdemo.whip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: td-whip 2s linear infinite; }
@keyframes td-whip { 0%, 42% { transform: translateX(-100%); opacity: 0; } 46% { opacity: 1; } 58% { transform: translateX(100%); opacity: 1; } 60%, 100% { opacity: 0; } }
.tdemo.auto .b { animation: td-punch 2s ease-out infinite; }
.pace-viz { display: flex; gap: 6px; align-items: center; height: 22px; margin-top: 8px; }
.pace-viz i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.25; animation: pace 1.2s infinite; }
@keyframes pace { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }

/* ---------- Export: QA flips, celebration ---------- */
.qa .chip { animation: chip-flip .6s var(--spring) both; transform-origin: 50% 50%; }
.qa .chip:nth-child(2) { animation-delay: .08s; } .qa .chip:nth-child(3) { animation-delay: .16s; } .qa .chip:nth-child(4) { animation-delay: .24s; } .qa .chip:nth-child(5) { animation-delay: .32s; }
@keyframes chip-flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.qa .chip.danger { animation: chip-shake .5s ease both; }
@keyframes chip-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ---------- Ask Tempo: orb, typing, panel glow ---------- */
.ask-wrap { position: relative; }
.ask-orb { position: absolute; left: 6px; top: -14px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9b8ff, #8b6cff 40%, #ff4fa3 75%, transparent 76%); filter: blur(6px); opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .4s var(--spring); pointer-events: none; z-index: 0; }
.ask-wrap.listening .ask-orb { opacity: 0.8; transform: scale(1); animation: orb-breathe 1.6s ease-in-out infinite; }
@keyframes orb-breathe { 50% { transform: scale(1.15); filter: blur(8px); } }
.askbar { position: relative; z-index: 1; }
.mic-btn.rec { color: var(--danger); animation: pulse 1s infinite; }
.col-right.glow-pulse { animation: panel-glow 1.2s ease; }
@keyframes panel-glow { 0% { box-shadow: inset 0 0 0 0 rgba(139,108,255,0); } 30% { box-shadow: inset 0 0 60px rgba(139,108,255,0.35); } 100% { box-shadow: inset 0 0 0 0 rgba(139,108,255,0); } }
.type-cursor::after { content: '▍'; animation: pulse .8s infinite; color: var(--accent); }

/* ---------- Toasts 3D ---------- */
.toasts { perspective: 800px; }
.toast { transform-origin: 100% 100%; animation: toast-3d .5s var(--spring); }
@keyframes toast-3d { from { opacity: 0; transform: rotateX(-40deg) translateY(20px); } to { opacity: 1; transform: none; } }
.toast.error { animation: toast-3d .5s var(--spring), chip-shake .5s .3s ease; }

/* ---------- Keyboard overlay ---------- */
.keys-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; margin-top: 14px; }
.keycap { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 9px; border-radius: 8px; background: linear-gradient(180deg, #2b2b38, #15151d); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 4px 0 #0a0a10, 0 6px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18); font-size: 12px; font-weight: 700; transform: translateY(-2px); transition: transform .08s, box-shadow .08s; }
.keycap:hover { transform: translateY(1px); box-shadow: 0 1px 0 #0a0a10, inset 0 1px 0 rgba(255,255,255,0.18); }

/* ---------- Idle screensaver ---------- */
.saver { position: fixed; inset: 0; z-index: 500; background: #05050a; display: grid; place-items: center; animation: fade .8s; perspective: 1400px; }
.saver .saver-phone { width: min(38vh, 60vw); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 8px #14141c, 0 0 0 9px rgba(255,255,255,0.1); animation: saver-spin 16s ease-in-out infinite; }
.saver video { width: 100%; height: 100%; object-fit: cover; }
@keyframes saver-spin { 0%, 100% { transform: rotateY(-22deg) rotateX(6deg); } 50% { transform: rotateY(22deg) rotateX(-6deg); } }
.saver .hint { position: absolute; bottom: 30px; color: var(--text-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Page transitions (3D) ---------- */
.view-3d { perspective: 1600px; }
.view-leave { animation: view-leave .45s var(--ease) both; pointer-events: none; position: absolute; inset: 0; }
.view-enter { animation: view-enter .55s var(--ease) both; }
@keyframes view-leave { to { opacity: 0; transform: translateX(-12%) rotateY(18deg) scale(0.96); } }
@keyframes view-enter { from { opacity: 0; transform: translateX(10%) rotateY(-14deg) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; background: #0b0b10; display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash .bars { display: flex; gap: 8px; align-items: center; perspective: 400px; }
.splash .bars i { width: 10px; border-radius: 6px; background: var(--grad); animation: splash-bar 1s ease-in-out infinite; transform-origin: 50% 100%; }
.splash .bars i:nth-child(1) { height: 24px; animation-delay: 0s; } .splash .bars i:nth-child(2) { height: 46px; animation-delay: .12s; } .splash .bars i:nth-child(3) { height: 70px; animation-delay: .24s; } .splash .bars i:nth-child(4) { height: 40px; animation-delay: .36s; } .splash .bars i:nth-child(5) { height: 18px; animation-delay: .48s; }
@keyframes splash-bar { 0%, 100% { transform: scaleY(0.5) rotateX(20deg); opacity: 0.6; } 50% { transform: scaleY(1.15) rotateX(-20deg); opacity: 1; } }
.splash .word { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; animation: rise .8s var(--ease) both .2s; }

/* ---------- Login 3D ---------- */
.login .modal { transform-style: preserve-3d; transition: transform .6s var(--spring); }
.login .modal.shake { animation: chip-shake .5s ease; }
.login .modal.flip { transform: rotateY(90deg) scale(0.9); opacity: 0; transition: transform .5s ease-in, opacity .4s; }

/* ---------- Home: empty illustration ---------- */
.empty-3d { position: relative; height: 220px; perspective: 900px; display: grid; place-items: center; }
.empty-3d .e { position: absolute; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); box-shadow: var(--shadow-s); animation: float 6s ease-in-out infinite; display: grid; place-items: center; font-size: 12px; color: var(--text-2); }
.empty-3d .e.phone { width: 90px; height: 170px; border-radius: 20px; transform: rotateY(-20deg); }
.empty-3d .e.clip { width: 70px; height: 50px; left: 30%; top: 20%; animation-delay: -2s; }
.empty-3d .e.note { width: 90px; height: 40px; right: 30%; top: 30%; animation-delay: -4s; }
.empty-3d .e.music { width: 60px; height: 60px; border-radius: 50%; right: 32%; bottom: 20%; animation-delay: -1s; }

/* ---------- Timeline extras ---------- */
.timeline .zoom { display: inline-flex; gap: 2px; margin-left: 8px; }
.timeline .zoom button { width: 26px; height: 24px; border-radius: 6px; color: var(--text-2); }
.timeline .zoom button:hover { background: var(--panel-2); color: var(--text); }

@media (max-width: 1100px) {
  .device-body { inset: -6px; border-radius: 30px; }
  .device-edge { inset: -4px; border-radius: 28px; }
  .coverflow { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl:hover .inner, .avatar-flip:hover .inner { transform: none; }
}
.splash[data-note]::after { content: attr(data-note); position: absolute; left: 0; right: 0; bottom: 20%; text-align: center; color: #9a9ab0; font: 500 14px Inter, system-ui, sans-serif; letter-spacing: .02em; }
