/* adv.css: styles for v5.8 (adv.js, adv3d.js). Blue family; no white haze. */

/* ---------- 2. The process as one 3D film (computers; replaces the small flat window there) ---------- */
.adv-film { position: relative; width: 100%; height: 400px; margin: 0 0 26px; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(6, 16, 44, 0), rgba(10, 30, 84, .35)); }
.adv-film canvas { display: block; width: 100%; height: 100%; }
.adv-has-film .fx-flow { display: none; }

/* ---------- 3. The 3D globe (computers; the flat dotted one stays everywhere else) ---------- */
.adv-has-globe > canvas.fx-globe:not(.adv-globe) { display: none; }
.adv-globe { cursor: grab; touch-action: pan-y; }
.adv-globe:active { cursor: grabbing; }
.live-users.adv-has-globe { grid-template-columns: minmax(0, 1fr) 230px; }
.live-users.adv-has-globe > .adv-globe { width: 230px; height: 230px; }

/* ---------- 4. Portrait in depth ---------- */
.adv-depth { perspective: 1100px; --dx: 0; --dy: 0; }
.adv-depth .portrait { transform: translate3d(calc(var(--dx) * -13px), calc(var(--dy) * -6px), 0) rotateY(calc(var(--dx) * -5deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.adv-depth .portrait-ring { transform: translate3d(calc(var(--dx) * 11px), calc(var(--dy) * 6px), 0) scale(.985); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* ---------- 5. Liquid project pictures ---------- */
.adv-liq-host { position: relative; }
.adv-liq { position: absolute; z-index: 2; pointer-events: none; background-size: 100% 100%; background-position: top; filter: url(#adv-rip); transform: scale(1.06); transform-origin: var(--mx, 50%) var(--my, 50%); opacity: 0; transition: opacity .25s ease;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, #000 54px, transparent 128px); mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, #000 54px, transparent 128px); }
.adv-liq.on { opacity: 1; }
.adv-melting { filter: url(#adv-melt); }

/* ---------- 6. Particle headlines ---------- */
.section-head h2.adv-part { position: relative; }
.section-head h2.adv-part-on { color: transparent; }
.section-head h2.adv-part-on > span { visibility: hidden; }
.adv-pcv { position: absolute; pointer-events: none; z-index: 2; max-width: none; transition: opacity .4s ease; }
.adv-pcv.out { opacity: 0; }

/* ---------- 10. The price tower (replaces the flat blocks) ---------- */
.adv-has-tower .fx-stack { display: none; }
.adv-tower { display: block; margin: 4px auto 22px; max-width: 100%; overflow: visible; cursor: grab; touch-action: pan-y; }
.adv-tower:active { cursor: grabbing; }
.adv-tower g { transition: transform .55s cubic-bezier(.2, 1.3, .3, 1), opacity .35s ease; }
.adv-tower g.new { transform: translateY(-50px); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .adv-tower g, .adv-depth .portrait, .adv-depth .portrait-ring { transition: none; } }

/* ---------- 7. Liquid page change ---------- */
.adv-wipe { position: fixed; left: 0; top: 0; width: 200vw; height: 100vh; height: 100dvh; z-index: 2000; pointer-events: none; will-change: transform; }
.adv-wipe svg { display: block; width: 100%; height: 100%; }
.adv-wipe.out { animation: adv-wipe-out .5s cubic-bezier(.5, 0, .8, .4) forwards; }
.adv-wipe.in { animation: adv-wipe-in .75s cubic-bezier(.2, .6, .3, 1) .12s both; }
@keyframes adv-wipe-out { from { transform: translateX(100vw); } to { transform: translateX(-50vw); } }
@keyframes adv-wipe-in { from { transform: translateX(-50vw); } to { transform: translateX(-205vw); } }

/* ---------- 8. Skills you can throw ---------- */
.adv-skills { margin-top: 34px; }
.adv-tray { position: relative; height: 300px; border-radius: 0 0 34px 34px; border: 2px solid rgba(140, 200, 255, .38); border-top: 0; background: linear-gradient(rgba(47, 134, 255, 0), rgba(47, 134, 255, .13)); overflow: hidden; touch-action: pan-y; }
.adv-token { font: 800 15.5px var(--head); color: #fff; padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(160, 220, 255, .7); cursor: grab; white-space: nowrap; user-select: none; -webkit-user-select: none;
  background: linear-gradient(160deg, #2a68d8, #1746a8); box-shadow: inset 0 2px 6px rgba(160, 215, 255, .35), 0 8px 18px rgba(0, 6, 28, .5); }
.adv-token.y { color: #0a1430; border-color: #fff0a0; background: linear-gradient(#ffd60a, #ffb300); }
.adv-token.picked { box-shadow: 0 0 0 3px var(--yellow), 0 8px 18px rgba(0, 6, 28, .5); }
.adv-tray.live .adv-token { position: absolute; left: 0; top: 0; touch-action: none; will-change: transform; }
.adv-tray.live .adv-token.held { cursor: grabbing; z-index: 3; box-shadow: inset 0 2px 6px rgba(160, 215, 255, .35), 0 20px 34px rgba(0, 6, 28, .65); }
.adv-tray.flat { height: auto; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px; }
.adv-skill-note { display: inline-flex; margin-top: 12px; font: 800 14.5px var(--body); color: var(--yellow); } .adv-skill-note[hidden] { display: none; }
@media (max-width: 640px) { .adv-tray { height: 440px; } .adv-token { font-size: 14px; padding: 10px 14px; } }

/* ---------- 9. Guided tour ---------- */
.adv-tour-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 16px 9px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff; font: 700 14.5px var(--body); cursor: pointer; }
.adv-tour-btn svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--yellow); fill: #0a1430; }
.adv-tour-btn:hover { border-color: rgba(255, 214, 10, .7); }
.adv-tour { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, 100% - 32px); z-index: 70; display: grid; gap: 10px; justify-items: center; }
.adv-tour-cap { margin: 0; padding: 12px 22px; border-radius: 14px; background: rgba(4, 12, 36, .94); box-shadow: 0 0 0 1px rgba(120, 180, 255, .35), 0 14px 34px rgba(0, 4, 24, .6); font: 800 clamp(16px, 2.2vw, 22px)/1.3 var(--head); text-align: center; }
.adv-tour-bar { width: 100%; display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 999px; background: rgba(4, 12, 36, .94); box-shadow: 0 0 0 1px rgba(120, 180, 255, .35), 0 14px 34px rgba(0, 4, 24, .6); }
.adv-tour-pp { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--yellow); cursor: pointer; position: relative; }
.adv-tour-pp::before, .adv-tour-pp::after { content: ""; position: absolute; top: 12px; width: 4px; height: 14px; background: #0a1430; border-radius: 1px; }
.adv-tour-pp::before { left: 13px; } .adv-tour-pp::after { left: 21px; }
.adv-tour-pp.paused::before { left: 15px; top: 11px; width: 0; height: 0; background: none; border-left: 12px solid #0a1430; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-radius: 0; }
.adv-tour-pp.paused::after { display: none; }
.adv-tour-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); position: relative; margin: 0 8px; }
.adv-tour-track i { position: absolute; left: 0; top: 0; height: 5px; border-radius: 3px; background: var(--yellow); width: 0; }
.adv-tour-track b { position: absolute; top: -5px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #48577f; }
.adv-tour-track b.on { background: var(--yellow); }
.adv-tour-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.adv-tour-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
html.adv-touring { scroll-behavior: auto; }
html.adv-touring .cp-launch, html.adv-touring .cp-hint, html.adv-touring .to-top { opacity: 0; pointer-events: none; }

/* ---------- 11. See it in your room ---------- */
.adv-room-row { margin-top: 12px; }
.adv-room { position: fixed; inset: 0; z-index: 3000; background: radial-gradient(circle at 50% 40%, #12357f, #06143f 60%, #020716); color: #fff; overflow: hidden; touch-action: none; }
.adv-room video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.adv-room.live video { opacity: 1; }
.adv-room-title { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 22px 20px 34px; font: 800 20px var(--head); background: linear-gradient(rgba(2, 7, 22, .82), transparent); z-index: 2; pointer-events: none; }
.adv-room-stage { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.adv-room-item { position: relative; width: min(78vw, 440px); transform-origin: 50% 80%; will-change: transform; padding: 0 0 26px; }
.adv-room-item .rl-laptop { transform: perspective(900px) rotateX(7deg); transform-origin: 50% 100%; }
.adv-room-shadow { position: absolute; left: 4%; right: 4%; bottom: 0; height: 30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 70%); }
.adv-room-hint { position: absolute; left: 20px; right: 20px; bottom: 96px; margin: 0; text-align: center; font: 700 14.5px var(--body); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); z-index: 2; pointer-events: none; }
.adv-room-bar { position: absolute; left: 16px; right: 16px; bottom: 20px; display: flex; gap: 10px; justify-content: center; z-index: 2; }
.adv-room-bar .btn { min-height: 50px; } .adv-room-bar .btn-yellow { flex: 1; max-width: 320px; }
.adv-room-bar .btn-ghost { background: rgba(2, 7, 22, .72); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.adv-room-open { overflow: hidden; }
.adv-room-bar [hidden] { display: none; }
