/* LurfFx — Arc Raiders style: deep Topside navy, electric cyan, heavy condensed type,
   snow and HUD details. The red-pink of the kill flare is the second colour. */
:root {
  --bg: #050b14;
  --surface: #0a1422;
  --surface-2: #10203a;
  --line: rgba(56, 189, 248, 0.16);
  --text: #eaf6ff;
  --muted: #8ea3bb;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.13);
  --accent-glow: 0 0 24px rgba(34, 211, 238, 0.45);
  --on-accent: #02121c;
  --flare: #ff4d6d;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --kill: #ff5c8a;
  --radius: 14px;
  --radius-sm: 10px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* page backdrop: the snowy raider scene behind everything, dimmed to the navy so text reads.
   A fixed layer, not background-attachment: fixed (that repaints the whole page on every scroll). */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.72), rgba(5, 11, 20, 0.86) 55%, rgba(5, 11, 20, 0.94)),
    url(assets/bg/snow-raider.webp) center 40% / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
.hidden { display: none !important; }
[hidden] { display: none !important; } /* so el.hidden always wins over display rules */
.view-dev #studio[hidden] { display: block !important; } /* the developer page always shows the studio */
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.accent { color: var(--accent); }
.glow { color: var(--accent); text-shadow: 0 0 22px rgba(34, 211, 238, 0.55); }
.center { text-align: center; }
.eyebrow {
  margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text);
}
.title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: 0.01em; margin-bottom: 40px;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: none; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s, box-shadow 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-glow); }
.btn-primary:hover:not(:disabled) { background: #67e8f9; }
.btn-primary svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover:not(:disabled) { background: #16294a; }
.btn-soft.danger:hover:not(:disabled) { color: var(--bad); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg {
  padding: 15px 30px; font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
/* "Create your edit": bigger, with a breathing glow, a pulse ring, a light sweep and a nudging arrow */
.btn-cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 20px 42px; font-size: 1.6rem; gap: 12px;
  animation: ctaBreathe 2.4s ease-in-out infinite;
}
.btn-cta svg { width: 26px; height: 26px; animation: ctaArrow 1.2s ease-in-out infinite; }
.btn-cta::before { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: ctaSweep 3s ease-in-out infinite;
}
.btn-cta::after { /* pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: ctaRing 2.4s ease-out infinite;
}
.btn-cta:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); }
@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(34, 211, 238, 0.45); }
  50% { transform: scale(1.05); box-shadow: 0 0 48px rgba(34, 211, 238, 0.85); }
}
@keyframes ctaArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes ctaSweep { 0%, 40% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes ctaRing { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); } 100% { box-shadow: 0 0 0 22px rgba(34, 211, 238, 0); } }
@media (max-width: 520px) { .btn-cta { padding: 16px 30px; font-size: 1.3rem; } }
.btn-mini {
  background: var(--surface-2); color: var(--text); border: none; border-radius: 8px;
  padding: 5px 9px; font: inherit; font-size: 0.8rem; cursor: pointer;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 64px;
  display: flex; align-items: center; gap: 36px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px), calc((100vw - 1140px) / 2)) max(20px, env(safe-area-inset-right, 0px), calc((100vw - 1140px) / 2));
  background: rgba(5, 11, 20, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* logo: the LF mark (assets/logo/lf-mark.svg) and "LurfFx" (Montserrat Black) take turns in the same spot,
   cross-fading every 4 s; files for other uses in assets/logo/ */
.logo-text {
  position: relative; display: inline-block; color: #fff;
  font-family: Montserrat, "Arial Black", sans-serif; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1;
  animation: logoWord 8s ease-in-out infinite;
}
.logo-text span { color: var(--accent); animation: logoWordFx 8s ease-in-out infinite; }
.logo-text::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.4em; height: 1.32em; translate: -50% -50%;
  background: url(assets/logo/lf-mark.svg) center / contain no-repeat;
  animation: logoMark 8s ease-in-out infinite;
}
@keyframes logoWord { 0%, 40% { color: #fff; } 50%, 90% { color: transparent; } 100% { color: #fff; } }
@keyframes logoWordFx { 0%, 40% { color: var(--accent); } 50%, 90% { color: transparent; } 100% { color: var(--accent); } }
@keyframes logoMark {
  0%, 40% { opacity: 0; scale: 0.7; }
  50%, 90% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 0.7; }
}.site-nav nav { display: flex; gap: 28px; flex: 1; }
.site-nav nav a { color: var(--text); font-weight: 600; font-size: 0.92rem; opacity: 0.85; }
.site-nav nav a:hover { opacity: 1; color: var(--accent); }
@media (max-width: 700px) { .site-nav nav { display: none; } .site-nav { justify-content: space-between; } }

/* ---------- Hero ---------- */
main { max-width: 1140px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.hero {
  position: relative; margin: 0 calc(50% - 50vw); padding-block: 96px 90px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px), calc((100vw - 1140px) / 2)) max(20px, env(safe-area-inset-right, 0px), calc((100vw - 1140px) / 2));
  min-height: 640px; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute; inset: 0; background: center right / cover no-repeat;
  filter: saturate(1.15) contrast(1.05);
}
/* cold Topside wash + fade to the page on the left so the text reads */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 11, 20, 0.92) 30%, rgba(5, 11, 20, 0.35) 62%, rgba(5, 11, 20, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    linear-gradient(180deg, rgba(120, 190, 255, 0.18), transparent 50%);
}
.hero-inner { position: relative; z-index: 3; max-width: 680px; }
/* raw clip in the back (greyed), the before/after slider in front */
.hero .hero-art { filter: grayscale(0.55) brightness(0.7) contrast(1.05); }
.hero-show {
  position: absolute; z-index: 3; top: 50%; right: max(20px, calc((100vw - 1140px) / 2) + 40px);
  width: min(290px, 26vw); transform: translateY(-50%);
}
.hero-show .compare {
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5), 0 0 60px -6px rgba(34, 211, 238, 0.6), 0 30px 60px rgba(0, 0, 0, 0.55);
}
.hero-raw-tag {
  position: absolute; top: -44px; right: 104%; white-space: nowrap; font-family: var(--display); font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px;
  background: rgba(5, 11, 20, 0.8); color: var(--muted, #9fb0c6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.hero-raw-tag::after { content: " →"; color: var(--accent); }
/* no room beside the text: the slider drops under it */
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; }
  .hero-show { order: 2; }
  .hero-show { position: relative; top: auto; right: auto; transform: none; width: min(300px, 80vw); margin: 40px auto 0; z-index: 3; }
  .hero-raw-tag { display: none; }
}
.hero h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 0.92; margin: 6px 0 18px;
}
/* hero price: big glowing "$7" on a dark card with a cyan edge and a cyan bar on the left */
.price-tag {
  display: inline-flex; align-items: center; margin: 14px 0 40px; padding: 6px 30px 10px 26px;
  border-radius: 16px; background: rgba(5, 11, 20, 0.75); border-left: 8px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45), 0 0 44px -6px rgba(34, 211, 238, 0.55);
}
.price-big {
  font-family: Montserrat, var(--display); font-weight: 900; font-size: 5.5rem; line-height: 1;
  color: var(--accent); letter-spacing: -0.04em; text-shadow: 0 0 28px rgba(34, 211, 238, 0.65);
}
.price-big sup { font-size: 0.45em; vertical-align: 0.9em; margin-right: 4px; color: #fff; text-shadow: none; }
@media (max-width: 520px) { .price-big { font-size: 4.2rem; } }
.price-num {
  font-family: var(--display); font-weight: 800; font-size: 6rem; line-height: 0.9; margin: 0;
  color: var(--accent); text-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.watch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.watch-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--accent); color: #fff;
}
.watch-icon svg { fill: #fff; stroke: none; width: 18px; height: 18px; }
.watch:hover .watch-icon { background: var(--accent-soft); }

/* snow drifting over the hero */
.snow {
  position: absolute; inset: -20% 0 0; z-index: 2; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 80px 120px, #fff, transparent 60%),
    radial-gradient(2.5px 2.5px at 150px 60px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 210px 180px, #fff, transparent 60%),
    radial-gradient(2px 2px at 260px 90px, #fff, transparent 60%);
  background-size: 300px 220px;
  animation: snow 14s linear infinite;
}
@keyframes snow { to { background-position: 60px 220px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }

/* ---------- Home hero: featured edit and animated CTA ---------- */
.hero-home {
  display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); align-items: center;
  gap: clamp(36px, 5vw, 72px); min-height: 670px; padding-block: 76px 82px;
}
.hero-home::before {
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.96) 0%, rgba(5, 11, 20, 0.88) 42%, rgba(5, 11, 20, 0.56) 100%),
    radial-gradient(ellipse at 78% 46%, rgba(34, 211, 238, 0.12), transparent 44%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-home .snow { opacity: 0.2; animation: none; }
.hero-home .hero-inner { width: 100%; max-width: 560px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #c8d9e9;
  font-family: var(--display); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.19em; text-transform: uppercase;
}
.hero-eyebrow-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(34, 211, 238, 0.8); }
.hero-eyebrow-arrow { color: var(--accent); font-size: 1.1rem; }
.hero-home h1 {
  max-width: 590px; margin: 0 0 18px; font-size: clamp(3.25rem, 5.5vw, 4.8rem); line-height: 0.9; letter-spacing: -0.012em;
}
.hero-home h1 .glow { text-shadow: 0 0 26px rgba(34, 211, 238, 0.35); }
.hero-copy { max-width: 440px; margin: 0; color: #b3c4d6; font-size: 1.07rem; line-height: 1.65; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin: 24px 0 0; }
.hero-price { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-price strong { color: var(--text); font-family: Montserrat, var(--display); font-size: 2rem; font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.hero-price span { color: #a8bacb; font-size: 0.9rem; font-weight: 600; }
.hero-meta-separator { width: 1px; height: 22px; background: rgba(226, 242, 255, 0.2); }
.hero-meta-note { display: inline-flex; align-items: center; gap: 8px; color: #c4d2df; font-size: 0.9rem; font-weight: 600; }
.hero-meta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }
.hero-home .hero-actions { gap: 18px; margin-top: 28px; }
.hero-home .btn-cta {
  min-height: 60px; gap: 16px; padding: 10px 12px 10px 24px; border-radius: 14px;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 72%, #16c4dc); color: #02121c;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  animation: home-cta-pulse 3.6s ease-in-out infinite; transition: filter 0.2s ease;
}
.hero-home .btn-cta::before { display: block; z-index: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.48) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat; animation: home-cta-shine 3.6s ease-in-out infinite; }
.hero-home .btn-cta::after { display: none; }
.hero-home .btn-cta > span { position: relative; z-index: 1; }
.hero-home .btn-cta svg { width: 19px; height: 19px; animation: home-cta-arrow 3.6s ease-in-out infinite; }
.hero-home .btn-cta:hover:not(:disabled) { filter: brightness(1.1); }
@keyframes home-cta-pulse { 0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.2); } 45% { transform: translateY(-3px) scale(1.035); box-shadow: 0 15px 42px rgba(34, 211, 238, 0.52); } }
@keyframes home-cta-shine { 0%, 28% { background-position: -150% 0; } 65%, 100% { background-position: 250% 0; } }
@keyframes home-cta-arrow { 0%, 36%, 100% { transform: translateX(0); } 49% { transform: translateX(5px); } 62% { transform: translateX(0); } }
.hero-cta-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(2, 18, 28, 0.11); transition: transform 0.2s ease, background 0.2s ease; }
.hero-home .btn-cta:hover .hero-cta-icon { transform: translateX(2px); background: rgba(2, 18, 28, 0.17); }
.hero-home .watch { color: #d5e4f0; font-size: 0.95rem; }
.hero-home .watch-icon { width: 38px; height: 38px; border-color: rgba(34, 211, 238, 0.7); }
.hero-home .hero-show {
  position: relative; top: auto; right: auto; z-index: 3; width: 100%; max-width: 540px;
  justify-self: center; transform: none;
}
.hero-home .hero-show::before {
  content: ""; position: absolute; z-index: -1; inset: 12% -12%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.16), transparent 68%); pointer-events: none;
}
.hero-home .hero-show::after { display: none; }
.hero-video-card {
  padding: 16px; border: 1px solid rgba(168,225,241,0.32); border-radius: 28px;
  background: linear-gradient(135deg, #1c3748, #081523 45%, #102a3b);
  box-shadow: 8px 12px 0 -3px #102838, 9px 13px 0 -3px rgba(133,215,237,0.28), 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.14);
}
.hero-video-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 5px 15px; }
.hero-video-heading > span { font-family: var(--display); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.hero-video-heading a { color: #b9cfdd; font-size: 0.77rem; text-decoration: none; }
.hero-video-screen { position: relative; width: 100%; aspect-ratio: 576 / 328; margin-inline: auto; overflow: hidden; border: 1px solid rgba(190,229,243,0.22); border-radius: 16px; background: #02060b; }
.hero-video-screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.hero-video-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 6px 3px; color: #eaf8ff; text-decoration: none; }
.hero-video-caption strong, .hero-video-caption small { display: block; }
.hero-video-caption strong { font-family: var(--display); font-size: 1rem; letter-spacing: 0.06em; }
.hero-video-caption small { margin-top: 3px; color: #9eb8ca; font-size: 0.75rem; }
.hero-video-caption > span:last-child { color: var(--accent); font-size: 1.5rem; }
.hero-video-caption:hover strong, .hero-video-heading a:hover { color: var(--accent); }
.hero-video-heading > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(34,211,238,.65); }
.hero-video-card.is-playing .hero-live-dot { animation: hero-live 2.4s ease-in-out infinite; }
@keyframes hero-live { 50% { opacity: .45; } }
/* "Your edit" card motion: a cyan light runs round the border, the card floats, a light sweep
   crosses the screen, the live dot sends out a ring, the label shimmers and the caption arrow nudges */
@property --hero-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero-video-card { position: relative; isolation: isolate; animation: heroFloat 6s ease-in-out infinite; }
.hero-video-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--hero-spin), transparent 0 62%, rgba(34,211,238,.15) 70%, #22d3ee 82%, #a5f3fc 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: heroSpin 5s linear infinite;
}
.hero-video-card::after {
  content: ""; position: absolute; inset: 8% -6% -10%; z-index: -2; border-radius: 40px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(34,211,238,.28), transparent 65%); filter: blur(24px);
  animation: heroGlow 4s ease-in-out infinite;
}
.hero-video-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%) -120% 0 / 60% 100% no-repeat;
  animation: heroSweep 5.5s ease-in-out infinite 1.2s;
}
.hero-live-dot { position: relative; animation: hero-live 2.4s ease-in-out infinite; }
.hero-live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: heroRing 2s ease-out infinite; }
.hero-video-heading > span {
  background: linear-gradient(90deg, var(--accent) 0 40%, #e0fbff 50%, var(--accent) 60% 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: heroShimmer 4s linear infinite;
}
.hero-video-caption > span:last-child { display: inline-block; animation: heroNudge 2.2s ease-in-out infinite; }
@keyframes heroSpin { to { --hero-spin: 360deg; } }
@keyframes heroFloat { 50% { transform: translateY(-6px); } }
@keyframes heroGlow { 50% { opacity: .55; transform: scale(.97); } }
@keyframes heroSweep { 0%, 55% { background-position: -120% 0; } 100% { background-position: 260% 0; } }
@keyframes heroRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes heroShimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes heroNudge { 50% { transform: translate(3px, -3px); } }
/* no prefers-reduced-motion opt-out here: the owner wants this card animated, and their PC has reduce motion on */
.hero-timeline { --progress: 0%; margin-top: 15px; padding: 12px; border: 1px solid rgba(135,196,219,.16); border-radius: 14px; background: rgba(3,12,22,.65); }
.hero-timeline[hidden] { display: none; }
.hero-transport { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-transport button { cursor: pointer; font: inherit; border: 0; color: #c7e3ef; }
.hero-play { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: rgba(34,211,238,.15); font-size: .8rem !important; }
.hero-time { color: #d9f5ff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.hero-time span { color: #6f91a5; }
.hero-sound { margin-left: auto; padding: 6px 0 6px 10px; background: none; font-size: .7rem !important; }
.hero-transport button:hover { color: var(--accent); }
.hero-transport button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-filmstrip { position: relative; height: 51px; border-radius: 7px; isolation: isolate; }
.hero-filmstrip-frames { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(34,211,238,.5); border-radius: inherit; background: url('assets/hero/astronaut-timeline.webp') center / 100% 100% no-repeat; }
.hero-filmstrip-frames::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent var(--progress), rgba(4,13,24,.48) var(--progress)), repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 2px), rgba(4,13,24,.8) calc(12.5% - 2px) 12.5%); }
.hero-playhead { position: absolute; z-index: 2; top: -5px; bottom: -5px; left: clamp(1px, var(--progress), calc(100% - 1px)); width: 2px; background: #c0f7ff; box-shadow: 0 0 12px rgba(34,211,238,.9); pointer-events: none; }
.hero-playhead::before { content: ''; position: absolute; top: -3px; left: -4px; width: 10px; height: 7px; border-radius: 2px 2px 4px 4px; background: #c0f7ff; }
.hero-seek { position: absolute; z-index: 3; inset: -8px 0; width: 100%; height: calc(100% + 16px); margin: 0; opacity: 0; cursor: ew-resize; }
.hero-filmstrip:focus-within { outline: 2px solid var(--accent); outline-offset: 5px; }
.hero-timeline-labels { display: flex; justify-content: space-between; margin-top: 12px; color: #6f91a5; font-size: .6rem; font-variant-numeric: tabular-nums; }
.hero-timeline-labels span:nth-child(2) { color: #9bbbcf; letter-spacing: .04em; }
@media (max-width: 960px) {
  .hero-home { display: flex; flex-direction: column; align-items: stretch; gap: 36px; min-height: 0; padding-block: 64px 68px; }
  .hero-home .hero-inner { max-width: 680px; }
  .hero-home .hero-show { width: 100%; max-width: 540px; margin: 0 auto; }
  .hero-home h1 { font-size: clamp(3.35rem, 8vw, 4.6rem); }
}
@media (max-width: 520px) {
  .hero-home { gap: 30px; padding-block: 50px 54px; }
  .hero-eyebrow { margin-bottom: 14px; font-size: 0.8rem; letter-spacing: 0.15em; }
  .hero-home h1 { font-size: clamp(3rem, 13.2vw, 4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-home .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-video-card { padding: 12px; border-radius: 22px; }
  .hero-video-heading { gap: 8px; }
}
/* This intro keeps its animation on the owner's reduced-motion desktop setting. */


/* ---------- Shared bits ---------- */
.section { padding: 120px 0 0; scroll-margin-top: 70px; }
/* intro parts off screen (e.g. while in the studio) skip drawing, so their endless animations cost nothing */
.hero, .section, .cta { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.tag {
  position: absolute; font-family: var(--display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 6px; pointer-events: none;
}
.tag-dark { background: rgba(2, 8, 16, 0.85); color: #fff; }
.tag-cyan { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-glow); }
.tag-flare { background: rgba(255, 77, 109, 0.92); color: #fff; top: 10px; left: 10px; }

/* ---------- See the difference ---------- */
.diff-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: stretch; }
.features-row { flex-direction: row; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 56px; }
.features-row .feature { flex: 1 1 220px; }

/* ---------- Showcase: "ice theater" (showcase.js) ----------
   Wider than the page column: the snowy scene, a heading on top, the 3D iPhone on a glowing podium
   in the middle between two ice pillars angled toward it (creator left, how the edit did right),
   arrows + creator dots under the podium, a "03 / 07 NAME" counter top right. Switching edits:
   .out (the pieces leave, staggered) then .in (they come back one by one, numbers count up, the
   phone dips and turns, showcase.js); the backdrop crossfades to the new clip's frame. */
#difference { content-visibility: visible; } /* auto clips painting to the section, and the panel is wider */
/* off screen (showcase.js toggle): every loop (snow, rings, neon, dots) freezes so editing isn't slowed */
.showcase.is-off, .showcase.is-off::before, .showcase.is-off::after, .showcase.is-off *,.showcase.is-off *::before, .showcase.is-off *::after { animation-play-state: paused !important; }
.showcase {
  position: relative; isolation: isolate; display: grid; perspective: 1500px; overflow-x: clip; /* the phone canvas is 2× the stage */
  margin-inline: calc(50% - min(820px, 50vw - 12px)); padding: 60px clamp(40px, 5.5vw, 100px) 30px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr) minmax(0, 1fr);
  grid-template-areas: "head head head" "left stage right" "nav nav nav";
  column-gap: clamp(24px, 3.5vw, 64px); row-gap: 8px;
}
/* backdrop: the snow scene (brighter than the page's), the clip's frame blurred over it, snow, a cyan floor */
.show-bg {
  position: absolute; inset: 0; z-index: -1; border-radius: 30px; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.3), rgba(5, 11, 20, 0.55) 60%, rgba(4, 10, 20, 0.92)), url(assets/bg/snow-raider.webp) center 35% / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.show-cover {
  position: absolute; inset: -40px; z-index: 0; background: center 30% / cover no-repeat; opacity: 0; transform: scale(1.18);
  filter: blur(30px) brightness(0.5) saturate(1.4); mix-blend-mode: screen; transition: opacity 1s ease, transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.show-cover.on { opacity: 0.45; transform: scale(1.04); }
.show-snow { /* two tiles of flakes moved by transform only (no repaint) */
  position: absolute; left: 0; right: 0; top: -300px; height: calc(100% + 300px); opacity: 0.6;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent), radial-gradient(1.2px 1.2px at 140px 110px, #dff, transparent),
    radial-gradient(2px 2px at 220px 230px, #fff, transparent), radial-gradient(1px 1px at 80px 190px, #cfe, transparent),
    radial-gradient(1.4px 1.4px at 60px 90px, #fff, transparent), radial-gradient(1px 1px at 120px 20px, #fff, transparent);
  background-size: 300px 300px, 300px 300px, 300px 300px, 300px 300px, 150px 150px, 150px 150px;
  animation: snowFall 16s linear infinite;
}
@keyframes snowFall { to { transform: translate3d(-60px, 300px, 0); } }
.show-bg::after { /* the floor: dark, with a cyan pool of light under the podium */
  content: ""; position: absolute; inset: auto 0 0; height: 38%;
  background: radial-gradient(40% 55% at 50% 70%, rgba(34, 211, 238, 0.28), transparent 70%), linear-gradient(0deg, rgba(4, 10, 20, 0.9), transparent);
}
/* counter, top right */
.show-count {
  position: absolute; top: 22px; right: 30px; display: flex; align-items: center; gap: 6px; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.show-count b { display: inline-block; color: var(--text); }
.show-count-name { display: inline-block; margin-left: 8px; color: #c3d4e6; }
.showcase.in .show-count b, .showcase.in .show-count-name { animation: countIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.showcase.in .show-count-name { animation-delay: 0.1s; }
@keyframes countIn { from { transform: translateY(110%); opacity: 0; } }
.show-head { grid-area: head; position: relative; z-index: 2; text-align: center; margin-bottom: clamp(40px, 5vw, 84px); }
.show-head .title { font-size: clamp(2rem, 4.2vw, 4rem); line-height: 0.95; margin: 0 0 8px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.show-lede { margin: 0 auto; max-width: 34em; color: #c3d4e6; font-size: 1.08rem; }
/* --- the phone on its podium --- */
.show-stage {
  grid-area: stage; align-self: center; position: relative; height: clamp(480px, 36vw, 640px); cursor: pointer; outline: none;
  background: radial-gradient(45% 40% at 50% 55%, rgba(34, 211, 238, 0.22), transparent 70%);
}
.show-podium { /* a round plinth: lit top face, two rings, a glowing rim */
  position: absolute; left: 50%; bottom: -3%; width: min(150%, 600px); height: clamp(70px, 6vw, 100px); transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #173a57, #0b2236 62%, #061322);
  box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.85), 0 0 34px 4px rgba(34, 211, 238, 0.55), 0 16px 0 -1px #071827, 0 16px 0 1px rgba(34, 211, 238, 0.55), 0 22px 40px 6px rgba(34, 211, 238, 0.25), 0 40px 60px rgba(0, 0, 0, 0.6);
}
.show-podium::before { content: ""; position: absolute; inset: 16% 20%; border-radius: 50%; border: 1.5px solid rgba(165, 243, 252, 0.65); box-shadow: inset 0 0 16px rgba(34, 211, 238, 0.6), 0 0 16px rgba(34, 211, 238, 0.5); }
.show-podium::after { content: ""; position: absolute; inset: -38% -16%; border-radius: 50%; border: 2px solid rgba(34, 211, 238, 0.4); box-shadow: 0 0 30px rgba(34, 211, 238, 0.35); animation: podPulse 3.2s ease-in-out infinite; }
@keyframes podPulse { 50% { opacity: 0.35; transform: scale(1.04); } }
.show-stage::before { /* a ring of light that rolls out over the floor when the edit changes */
  content: ""; position: absolute; left: 50%; bottom: -2%; width: 90%; aspect-ratio: 4 / 1; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(34, 211, 238, 0.8); box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), inset 0 0 30px rgba(34, 211, 238, 0.4);
  transform: translateX(-50%) scale(0.2); opacity: 0;
}
.showcase.in .show-stage::before { animation: ringOut 1.1s 0.05s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ringOut { 0% { transform: translateX(-50%) scale(0.2); opacity: 0.9; } 100% { transform: translateX(-50%) scale(1.5); opacity: 0; } }
.show-stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 20px; }
/* much wider and taller than the stage (showcase.js GL_PAD matches the height), so the phone never
   touches the canvas edge while it floats, turns or dips (it got cut off at 124%) */
.show-gl { position: absolute; left: -50%; top: -14%; width: 200%; height: 128%; display: block; z-index: 1; pointer-events: none; }
/* switch motion blur (showcase.js blur): fading copies behind the phone + a light streak through it */
.show-trail { opacity: 0; filter: blur(3px); transition: opacity 0.25s; }
.show-streak {
  position: absolute; left: 50%; top: 46%; z-index: 2; width: 150%; height: 26px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(103, 232, 249, 0.55) 45%, transparent);
  filter: blur(6px); mix-blend-mode: screen; transform: translate(-50%, -50%) scaleX(0.4);
}
/* the levitating phone's shadow on the podium (size/opacity follow its height, showcase.js) */
.show-shadow {
  position: absolute; left: 50%; bottom: 1.5%; z-index: 1; width: 46%; height: 30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), rgba(34, 211, 238, 0.15) 70%, transparent);
  filter: blur(6px); transform: translateX(-50%);
}
.show-stage:not(.is-3d) .show-shadow { display: none; }
/* the clip is the screen's source; seen only if the 3D phone can't load */
.show-stage video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.show-stage.is-flat video {
  z-index: 1; width: auto; height: 86%; aspect-ratio: 9 / 16; opacity: 1; left: 50%; top: 46%; transform: translate(-50%, -50%);
  object-fit: cover; border-radius: 30px; box-shadow: 0 0 0 6px #c9ccd1, 0 0 60px -8px rgba(34, 211, 238, 0.6);
}
.show-stage:not(.is-3d):not(.is-flat)::after { /* loading */
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%;
  border: 3px solid rgba(34, 211, 238, 0.25); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* --- the ice pillars --- */
.show-side { position: relative; z-index: 2; }
.show-pillar {
  align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; container-type: inline-size;
  min-height: 86%; justify-content: center; padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 32px); border-radius: 28px;
  background:
    radial-gradient(120% 50% at 50% -8%, rgba(165, 243, 252, 0.22), transparent 60%),
    linear-gradient(165deg, rgba(120, 220, 255, 0.14), rgba(10, 30, 52, 0.55) 38%, rgba(4, 14, 28, 0.8));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1.5px rgba(165, 243, 252, 0.55), inset 0 0 60px rgba(34, 211, 238, 0.35), 0 0 70px rgba(34, 211, 238, 0.45), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.show-who { grid-area: left; transform: rotateY(18deg); transform-origin: right center; }
.show-right { grid-area: right; transform: rotateY(-18deg); transform-origin: left center; }
.show-pillar::before { /* neon tube round the edge, brighter at the corners, breathing */
  content: ""; position: absolute; inset: -4px; padding: 4px; border-radius: 32px; pointer-events: none;
  background: linear-gradient(180deg, #fff, #67e8f9 18%, rgba(34, 211, 238, 0.55) 50%, #67e8f9 82%, #fff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 8px #22d3ee) drop-shadow(0 0 22px #22d3ee); animation: tube 3s ease-in-out infinite alternate;
}
@keyframes tube { to { opacity: 0.65; } }
.show-pillar::after { /* frost: fine cracks, and snow piled at the foot */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(70% 16% at 30% 100%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(50% 12% at 80% 100%, rgba(255, 255, 255, 0.16), transparent 70%),
    repeating-linear-gradient(118deg, transparent 0 26px, rgba(165, 243, 252, 0.07) 26px 27px),
    repeating-linear-gradient(32deg, transparent 0 41px, rgba(165, 243, 252, 0.05) 41px 42px);
}
.show-tile { display: grid; grid-template-columns: auto auto; grid-template-areas: "i n" "i l"; align-items: center; justify-content: center; column-gap: 12px; }
.show-tile[hidden] { display: none; }
.show-tile svg { grid-area: i; width: 30px; height: 30px; stroke: none; }
.show-tile b { grid-area: n; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.show-tile small { grid-area: l; color: #c3d4e6; font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.likes svg { fill: #fe2c55; filter: drop-shadow(0 0 10px rgba(254, 44, 85, 0.6)); }
.tt svg { fill: #fff; filter: drop-shadow(1.5px 1.5px 0 #fe2c55) drop-shadow(-1.5px -1.5px 0 #25f4ee); }
.yt svg { fill: #ff0033; }
/* --- left pillar: who it was for --- */
.show-pfp {
  position: relative; width: clamp(130px, 11.5vw, 190px); aspect-ratio: 1; margin: 6px 0 18px; border-radius: 50%;
  box-shadow: 0 0 70px rgba(34, 211, 238, 0.5);
}
.show-ring { /* a glowing ring with a bright arc running round it */
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(#22d3ee, rgba(34, 211, 238, 0.25) 30%, #a5f3fc 50%, rgba(34, 211, 238, 0.25) 70%, #22d3ee);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.9)); animation: spin 7s linear infinite;
}
.show-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a1422; }
.show-id { display: flex; flex-direction: column; align-items: center; width: 100%; }
.show-tag { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--accent); }
.show-name {
  display: block; max-width: 100%; font-family: var(--display); font-weight: 800; line-height: 0.95; text-transform: uppercase; white-space: nowrap;
  font-size: min(4.6rem, calc(140cqi / var(--len, 6))); text-shadow: 0 0 26px rgba(34, 211, 238, 0.45), 0 6px 24px rgba(0, 0, 0, 0.6);
}
.show-name span { display: inline-block; }
.show-handle { display: block; margin-top: 2px; color: #c3d4e6; font-size: 1.1rem; }
.show-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 18px; }
.show-stats .show-tile { /* frosted cards: icon over number over label */
  grid-template-columns: 1fr; grid-template-areas: "i" "n" "l"; justify-items: center; row-gap: 6px; padding: 16px 8px; border-radius: 16px;
  background: rgba(4, 14, 28, 0.55); box-shadow: inset 0 0 0 1px rgba(165, 243, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.show-stats .show-tile svg { width: 28px; height: 28px; }
/* --- right pillar: how it did --- */
.show-views-t { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.show-views-t > small { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3em; text-transform: uppercase; color: #d6e8f7; }
.show-views-t > b {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: min(6.6rem, 30cqi); line-height: 0.92; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(34, 211, 238, 0.7);
}
.show-meter { position: relative; width: 100%; height: 3px; border-radius: 2px; background: rgba(165, 243, 252, 0.15); overflow: hidden; margin-top: 12px; }
.show-meter i { position: relative; display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, #22d3ee, #a5f3fc, #22d3ee); box-shadow: 0 0 10px #22d3ee; transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
.show-meter i::after { /* shimmer running along the filled part */
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent) -100% 0 / 50% 100% no-repeat;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.show-views-t > .show-eng { font-family: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 0.85rem; }
.show-eng b { color: var(--accent); }
.show-right .likes { margin: 14px 0 6px; }
.show-right .likes svg { width: 40px; height: 40px; }
.show-right .likes b { font-size: 2.6rem; }
.show-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.show-go, .show-prof {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; padding: 14px 44px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.show-chev { position: absolute; right: 16px; top: 50%; margin-top: -9px; width: 18px !important; height: 18px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.6; }
.show-go { /* "Watch edit": cyan, with a light that runs across it */
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.03em;
  color: var(--on-accent); background: linear-gradient(180deg, #67e8f9, #22d3ee 60%, #06b6d4); box-shadow: 0 10px 30px -6px rgba(34, 211, 238, 0.9);
}
.show-go svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.show-go::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%) -120% 0 / 200% 100% no-repeat;
  animation: glint 3.2s ease-in-out infinite;
}
@keyframes glint { 0%, 60% { background-position: -120% 0; } 100% { background-position: 220% 0; } }
.show-prof { font-weight: 600; font-size: 1.05rem; color: var(--text); background: rgba(4, 14, 28, 0.6); box-shadow: inset 0 0 0 1px rgba(165, 243, 252, 0.3); }
.show-prof svg { width: 20px; height: 20px; }
.show-go:hover, .show-prof:hover { transform: scale(1.04); }
.show-go:hover { box-shadow: 0 12px 36px -4px rgba(34, 211, 238, 1); }
.show-prof:hover { background: rgba(34, 211, 238, 0.14); }
.show-bar { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.show-bar svg { width: 16px; height: 16px; fill: #fff; stroke: none; }
.show-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.show-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.show-track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
/* --- under the podium: arrows + one dot (the creator's picture) per edit --- */
.show-nav { grid-area: nav; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 0 6%; }
.show-arrow {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; cursor: pointer; color: var(--text);
  background: rgba(4, 14, 28, 0.6); border: 1.5px solid rgba(34, 211, 238, 0.7); box-shadow: 0 0 20px rgba(34, 211, 238, 0.45), inset 0 0 12px rgba(34, 211, 238, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.show-arrow svg { width: 24px; height: 24px; stroke-width: 2.4; }
.show-arrow:hover { transform: scale(1.12); background: rgba(34, 211, 238, 0.18); }
.show-arrow:active { transform: scale(0.94); }
.show-dots { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.show-dots button {
  position: relative; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #0a1422 center / cover no-repeat; opacity: 0.5; filter: grayscale(0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}
.show-dots button:hover { opacity: 0.85; filter: none; }
.show-dots button.on { opacity: 1; filter: none; transform: scale(1.3); box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(34, 211, 238, 0.8); }
.show-dots button.on::after { /* how long until the next edit: a line filling under it */
  content: ""; position: absolute; left: 15%; bottom: -9px; height: 2px; width: 0; border-radius: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: dotFill var(--dur, 3s) linear forwards;
}
@keyframes dotFill { to { width: 70%; } }
.show-dots button:focus-visible, .show-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* --- switching: leave (staggered), then come back one by one --- */
.show-pfp, .show-id, .show-stats, .show-right > * { transition: opacity 0.3s ease-in, transform 0.3s ease-in, filter 0.3s ease-in; }
.showcase.out .show-pfp { opacity: 0; transform: scale(0.6) rotate(30deg); filter: blur(8px); }
.showcase.out .show-id { opacity: 0; transform: translateY(-20px); filter: blur(6px); transition-delay: 0.04s; }
.showcase.out .show-stats { opacity: 0; transform: translateY(20px); filter: blur(6px); transition-delay: 0.08s; }
.showcase.out .show-right > * { opacity: 0; transform: translateY(-16px); filter: blur(6px); }
.showcase.out .show-right > :nth-child(2) { transition-delay: 0.04s; }
.showcase.out .show-right > :nth-child(3) { transition-delay: 0.08s; }
.showcase.out .show-right > :nth-child(4) { transition-delay: 0.12s; }
.showcase.in .show-pfp { animation: pfpIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pfpIn { from { opacity: 0; transform: scale(0.4) rotate(-60deg); filter: blur(10px); } }
.showcase.in .show-ring { animation: spin 7s linear infinite, ringFlash 0.9s 0.1s ease-out; }
@keyframes ringFlash { 0% { filter: drop-shadow(0 0 30px #fff) brightness(2); } }
.showcase.in .show-tag { animation: fadeUp 0.5s 0.15s ease both; }
.showcase.in .show-name span { animation: letterUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.2s + var(--i) * 0.045s); }
@keyframes letterUp { from { transform: translateY(70%) rotate(8deg); opacity: 0; filter: blur(6px); } }
.showcase.in .show-handle { animation: fadeUp 0.5s 0.35s ease both; }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } }
.showcase.in .show-stats .show-tile { animation: riseIn 0.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.showcase.in .show-stats .show-tile + .show-tile { animation-delay: 0.5s; }
@keyframes riseIn { from { transform: translateY(30px); opacity: 0; } }
.showcase.in .show-views-t { animation: dropIn 0.65s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes dropIn { from { transform: translateY(-30px); opacity: 0; filter: blur(8px); } }
/* the view count swells and settles (overshoot, then a little rebound) */
.showcase.in .show-views-t > b { animation: bounceBig 1.1s 0.3s both; }
@keyframes bounceBig {
  0% { transform: scale(1); } 30% { transform: scale(1.2); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  55% { transform: scale(0.95); } 75% { transform: scale(1.04); } 100% { transform: scale(1); }
}
.showcase.in .show-right .likes { animation: riseIn 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.showcase.in .likes svg { animation: beat 1s 0.6s ease both; }
@keyframes beat { 0%, 40%, 80% { transform: scale(1); } 20%, 60% { transform: scale(1.35); } }
.showcase.in .show-btns { animation: riseIn 0.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.showcase.in .show-bar { animation: riseIn 0.5s 0.5s ease both; }
/* the other three looks (showcase.js FX, data-fx): same pieces and delays, other moves.
   Both pillars flash their neon edge on every switch. */
.showcase.in .show-pillar::before { animation: tube 3s ease-in-out infinite alternate, tubeFlash 0.7s ease-out; }
@keyframes tubeFlash { 0% { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 40px #22d3ee) brightness(1.8); } }
/* spin: the cards turn round like the phone */
.showcase[data-fx="spin"].in :is(.show-pfp, .show-tag, .show-handle, .show-stats .show-tile, .show-views-t, .show-right .likes, .show-btns, .show-bar) { animation-name: flipCard; animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes flipCard { from { opacity: 0; transform: perspective(700px) rotateY(-110deg); } }
.showcase[data-fx="spin"].in .show-name span { animation-name: letterFlip; transform-origin: 50% 100%; }
@keyframes letterFlip { from { opacity: 0; transform: perspective(400px) rotateX(-100deg); } }
/* zoom: everything punches in from big and blurred */
.showcase[data-fx="zoom"].in :is(.show-pfp, .show-tag, .show-handle, .show-stats .show-tile, .show-views-t, .show-right .likes, .show-btns, .show-bar) { animation-name: zoomPunch; animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes zoomPunch { from { opacity: 0; transform: scale(1.6); filter: blur(12px); } }
.showcase[data-fx="zoom"].in .show-name span { animation-name: letterZoom; }
@keyframes letterZoom { from { opacity: 0; transform: scale(2.4); filter: blur(10px); } }
/* tumble: pieces skid in from the outside edges, the name glitches on (RGB split) */
.showcase[data-fx="tumble"].in .show-who :is(.show-pfp, .show-tag, .show-handle, .show-stats .show-tile) { animation-name: skidL; animation-duration: 0.65s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.showcase[data-fx="tumble"].in .show-right :is(.show-views-t, .likes, .show-btns, .show-bar) { animation-name: skidR; animation-duration: 0.65s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes skidL { from { opacity: 0; transform: translateX(-70px) skewX(14deg); } }
@keyframes skidR { from { opacity: 0; transform: translateX(70px) skewX(-14deg); } }
.showcase[data-fx="tumble"].in .show-name span { animation-name: glitchIn; animation-duration: 0.55s; animation-timing-function: steps(1); }
@keyframes glitchIn {
  0% { opacity: 0; clip-path: inset(40% 0 50% 0); transform: translateX(-10px); text-shadow: -3px 0 #fe2c55, 3px 0 #22d3ee; }
  20% { opacity: 1; clip-path: inset(10% 0 65% 0); transform: translateX(8px); text-shadow: 3px 0 #fe2c55, -3px 0 #22d3ee; }
  40% { clip-path: inset(60% 0 8% 0); transform: translateX(-6px); text-shadow: -2px 0 #fe2c55, 2px 0 #22d3ee; }
  60% { clip-path: inset(0 0 40% 0); transform: translateX(4px); }
  80% { clip-path: inset(25% 0 0 0); transform: none; }
  100% { clip-path: inset(0); }
}
@media (max-width: 1100px) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) minmax(0, 1fr); }
  .show-who { transform: rotateY(16deg); }
  .show-right { transform: rotateY(-16deg); }
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "left" "right" "nav"; row-gap: 20px; padding: 56px 16px 22px; perspective: none; }
  .show-bg { border-radius: 22px; }
  .show-count { top: 18px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.2em; }
  .show-stage { height: clamp(440px, 118vw, 620px); margin-bottom: 30px; }
  .show-podium { width: 100%; }
  .show-who, .show-right { transform: none; min-height: 0; }
  .show-pfp { width: 120px; }
  .show-name { font-size: min(4rem, calc(130cqi / var(--len, 6))); }
  .show-nav { margin-top: 4px; padding: 0; gap: 8px; }
  .show-arrow { width: 44px; height: 44px; }
  .show-dots { gap: 7px; }
  .show-dots button { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .show-stats .show-tile b { font-size: 1.7rem; }
  .show-tile small { letter-spacing: 0.1em; font-size: 0.72rem; }
}
@media (max-width: 860px) { .diff-grid { grid-template-columns: 1fr; } }
.compare {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.5);
}
/* phone-shaped 9:16 version: real before/after screenshots, so no dimming on "before" */
.compare-vertical { aspect-ratio: 9 / 16; width: 100%; max-width: 380px; justify-self: center; }
.compare-vertical .compare-before img { filter: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before img { filter: saturate(0.55) brightness(0.85); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 12px rgba(255,255,255,0.7); }
.compare-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--on-accent); font-weight: 800;
}
.compare-tag-l { top: 14px; left: 14px; }
.compare-tag-r { top: 14px; right: 14px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(2, 8, 16, 0.9), transparent); font-weight: 600; font-size: 0.9rem; pointer-events: none;
}
.features { display: flex; flex-direction: column; gap: 18px; }
.feature {
  flex: 1; display: flex; align-items: center; gap: 20px; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(16, 32, 58, 0.7), rgba(10, 20, 34, 0.7));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feature h3, .how-steps h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.02em;
}
.feature p, .how-steps p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.feature-icon {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 12px;
  color: var(--accent); background: rgba(34, 211, 238, 0.06); box-shadow: inset 0 0 0 1px var(--line);
}
.feature-icon svg { width: 30px; height: 30px; }

/* ---------- How it works ---------- */
.how { border-top: 1px solid var(--line); margin-top: 120px; padding-top: 100px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.how-steps li { display: flex; align-items: center; gap: 18px; padding: 8px 30px; }
.how-steps li + li { border-left: 1px solid var(--line); }
@media (max-width: 800px) {
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .how-steps li + li { border-left: none; }
}
.how-num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--accent-glow);
}
.how-icon {
  flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(234, 246, 255, 0.5); color: var(--accent);
}
.how-icon svg { width: 30px; height: 30px; }

/* ---------- Creators I've worked for ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.creator { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.creator-img { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; }
.creator-body { padding: 22px 24px 26px; }
.creator h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; }
.creator-handle { margin: 2px 0 18px; }
.creator-stats { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.creator-stat { display: flex; flex-direction: column; gap: 2px; }
.sc-num { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--accent); text-shadow: 0 0 18px rgba(34, 211, 238, 0.45); font-variant-numeric: tabular-nums; }
.sc-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.creators-empty { text-align: center; padding: 34px; border: 2px dashed var(--line); border-radius: var(--radius); color: #c4b5fd; }
/* customers only see the section once there's a creator in it */
.view-customer .creators.incomplete, .view-customer #creatorsLink.incomplete { display: none; }
.anim-example { position: relative; overflow: hidden; }
.anim-example span { position: relative; padding: 8px 18px; border-radius: 999px; background: rgba(5, 11, 20, 0.8); }

/* ---------- Sign-in window ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: safe center; overflow-y: auto; /* scrolls on short screens */
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(2, 6, 12, 0.72); backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; width: min(440px, 100%); padding: 34px 32px 28px; border-radius: 18px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 211, 238, 0.1);
}
.modal-card .logo-text { font-size: 1.6rem; }
.modal-card h2 { margin: 18px 0 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.modal-lead { margin: 0 0 24px; color: #cfe3f5; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 0.9rem;
}
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 18px;
  border: none; border-radius: 999px; background: #ffffff; color: #1f1f1f; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn-google:hover { background: #eef3f8; }
.g-logo { width: 20px; height: 20px; stroke: none; }
.modal-perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.modal-perks li { display: flex; gap: 10px; }
.modal-perks li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.modal-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: #a5f3fc; font-size: 0.88rem; }
.modal-note:empty { display: none; }
.modal-note.error { background: rgba(248, 113, 113, 0.12); color: #fecaca; }

/* ---------- Audio guide (tutorial.js) ---------- */
.guide-modal { z-index: 45; }
.guide-card { width: min(520px, 100%); text-align: center; padding: 40px 34px 34px; }
.guide-icon { font-size: 3.4rem; margin-top: 18px; filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.45)); }
.guide-card h2 { font-size: 2.6rem; margin-top: 8px; }
.guide-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-choices .btn { padding: 16px 18px; font-size: 1.1rem; justify-content: center; }
@media (max-width: 420px) { .guide-choices { grid-template-columns: 1fr; } }
.guide-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 35; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface); font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.guide-pill[hidden] { display: none; }
.guide-pill button { border: none; border-radius: 999px; padding: 6px 12px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 20px; }
.auth-tabs button { flex: 1; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 0.82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#authForm { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.field input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 500;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-submit { width: 100%; padding: 13px; margin-top: 4px; }
.acct { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.acct h2 { margin: 0 0 2px; }
.acct-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
#authAccount .btn { margin-top: 20px; }
.nav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
#signIn { gap: 8px; max-width: 200px; }
#signInLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Price banner ---------- */
.cta {
  position: relative; margin-top: 130px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.55), 0 0 40px rgba(34, 211, 238, 0.15);
}
.cta-art { position: absolute; inset: 0; background: center right / cover no-repeat; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5, 11, 20, 0.97) 0%, rgba(5, 11, 20, 0.9) 55%, rgba(5, 11, 20, 0.35) 100%);
}
.cta-inner {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 48px 52px;
}
.cta h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 0.95; }
.cta h2 .glow { font-size: 1.35em; }
.cta-price { padding-left: 32px; border-left: 1px solid rgba(234, 246, 255, 0.3); }
.cta-price .eyebrow { font-size: 0.8rem; margin: 0; }
.cta-price .price-num { font-size: 5rem; }
.cta-price-sub { margin: 4px 0 0; font-weight: 600; color: #cfe3f5; }

/* ---------- Studio ---------- */
.studio { padding-top: 130px; scroll-margin-top: 64px; }
/* the studio is wider than the intro (main's 1140px): up to 1600px, 20px from the window edges */
.studio { margin-inline: calc(50% - min(800px, 50vw - 28px)); }
.studio > .title { margin-bottom: 18px; }
.step-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 32px; }
.step-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; letter-spacing: 0.01em; }
.hint { color: var(--muted); margin: 4px 0 0; }
.tip {
  background: var(--accent-soft); color: #a5f3fc; font-weight: 600; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line);
}

/* step bar: sticks under the nav while you're in the studio */
.stepper {
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 15; list-style: none; display: flex; justify-content: space-between;
  margin: 0 calc(50% - 50vw) 40px; padding-block: 12px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px), calc((100vw - 1140px) / 2)) max(20px, env(safe-area-inset-right, 0px), calc((100vw - 1140px) / 2));
  background: rgba(5, 11, 20, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.stepper li {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; text-align: center;
}
/* connecting line between the dots, with a small gap on each side of a dot */
.stepper li:not(:first-child)::before {
  content: ""; position: absolute; top: 15px; right: calc(50% + 24px); width: calc(100% - 48px); height: 2px;
  border-radius: 2px; background: var(--line);
}
.stepper li.done::before, .stepper li.active::before { background: var(--accent); }
.stepper .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.stepper li:not(.locked):not(.active):hover .num { border-color: var(--accent); color: var(--text); }
.stepper li:not(.locked):hover .name { color: var(--text); }
.stepper li.active { color: var(--accent); }
.stepper li.active .num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-glow); }
.stepper li.done .num { border-color: var(--accent); background: #0e3442; color: var(--accent); }
.stepper li.locked { cursor: not-allowed; opacity: 0.5; }
.stepper .name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.15s;
}
@media (max-width: 520px) { .stepper .name { display: none; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.main-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.main-col.drag-files .dropzone, .main-col.drag-files .source-list { outline: 2px dashed var(--accent); outline-offset: 4px; }

.block { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.block-head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.02em; }
.n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 0.85rem; font-weight: 800; box-shadow: var(--accent-glow);
}

/* ---------- 1. Your clips ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 36px 16px; border: 2px dashed var(--line); border-radius: var(--radius-sm);
  cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; margin-bottom: 6px;
}
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.source {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.source-tag { font-weight: 800; white-space: nowrap; }
/* dev: rate each auto cut (app.js cutNotes) */
.cut-notes { list-style: none; padding: 4px 12px 8px; font-size: 0.82rem; }
.cut-notes summary { cursor: pointer; color: var(--muted); }
.cut-note { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cn-time { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.cn-stars button { background: none; border: 0; padding: 0 1px; cursor: pointer; color: #475569; font-size: 1rem; }
.cn-stars button.on { color: #facc15; }
.cn-text { flex: 1; min-width: 0; padding: 4px 8px; border-radius: 6px; border: 1px solid #334155; background: var(--surface-2); color: inherit; }
.cn-bar { display: flex; gap: 8px; margin-top: 8px; }
.cn-was { white-space: nowrap; color: var(--muted); font-size: 0.75rem; min-width: 56px; }
.cn-ignore { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); cursor: pointer; }
.cn-compare { margin: 6px 0 2px; color: #22d3ee; }
.source .fc-name { flex: 1; min-width: 0; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-state { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.source.cutting .src-state { color: var(--warn); }
.source.done .src-state { color: var(--good); }
.source.error .src-state { color: var(--bad); }
.src-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.95rem; padding: 2px 4px; }
.src-remove:hover:not(:disabled) { color: var(--bad); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.row-actions #analyzeBtn { margin-left: auto; }
.add-more { cursor: pointer; }
.status { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; min-height: 1.2em; }
.status:empty { display: none; }
.folder-hint { margin: 10px 0 0; }
.folder-clips { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 200px; overflow-y: auto; }
.folder-clips:not(:empty) { margin-top: 10px; }
.folder-clips li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 0.88rem;
  background: var(--surface-2); border-radius: 8px; cursor: grab;
}
.folder-clips li:hover { background: #2c313b; }
.fc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* ---------- 2. Highlights ---------- */
.group + .group { margin-top: 34px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.group-title { font-weight: 700; }
.group-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.group-title .from { color: var(--muted); font-weight: 600; }
.group-empty { color: var(--muted); font-size: 0.88rem; padding: 4px 0; }
.clip-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.clip-card {
  position: relative; background: var(--surface-2); border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.clip-card:hover { transform: translateY(-2px); }
.clip-card.selected { box-shadow: 0 0 0 2px var(--accent); }
.clip-card:not(.in-video) .thumb { opacity: 0.5; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #2a2f38 center / cover no-repeat; }
.badge, .dur {
  position: absolute; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.78);
}
.badge { top: 6px; left: 6px; }
.dur { bottom: 6px; right: 6px; font-variant-numeric: tabular-nums; }
/* clip fit score 1–10 (fitscore.js): in Your videos and on the clip cards (bottom left) */
.fit-score { display: inline-flex; align-items: baseline; gap: 1px; padding: 1px 7px; border-radius: 999px; cursor: help; white-space: nowrap;
  font: 700 0.8rem 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; color: #04111d; background: var(--good, #4ade80); }
.fit-score small { font-size: 0.65rem; opacity: 0.75; }
.fit-score.ok { background: var(--warn, #fbbf24); }
.fit-score.bad { background: var(--bad, #f87171); }
.fit-score.busy { opacity: 0.6; }
.thumb .fit-score { position: absolute; bottom: 6px; left: 6px; z-index: 1; }
.card-toggle {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.95rem; cursor: pointer;
  display: grid; place-items: center;
}
.card-toggle.on { background: var(--good); color: #0b1a13; }
.card-toggle:hover { filter: brightness(1.1); }

/* ---------- Blocks 1 + 2 motion (.fancy) ----------
   The block rises in, a cyan light runs round its edge on hover, the number badge pulses;
   new videos / clip cards (.enter, set once by app.js) slide in one after another. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fancy {
  position: relative; isolation: isolate;
  background: radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.07), transparent 55%), var(--surface);
  transition: box-shadow 0.35s;
}
.play-in .fancy { animation: fancyIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; } /* only after a "Create your edit" click (site.js) */
.fancy::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(34, 211, 238, 0.9) 78%, #a5f3fc 82%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; animation: fancySpin 4s linear infinite;
}
.fancy:hover::before, .main-col.drag-files .fancy::before { opacity: 1; }
.fancy:hover { box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px -24px rgba(34, 211, 238, 0.45); }
#highlightsBlock.fancy { animation-delay: 0.08s; }
@keyframes fancyIn { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fancySpin { to { --ang: 360deg; } }
.fancy .n {
  position: relative; width: 28px; height: 28px;
  background: linear-gradient(135deg, #67e8f9, var(--accent) 55%, #0891b2);
  animation: nFloat 3s ease-in-out infinite;
}
.fancy .n::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: nRing 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
@keyframes nFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes nRing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2); opacity: 0; } }

/* the drop area: a slow light sweep, the arrow bobs, it lifts and glows on hover / while dragging files */
.fancy .dropzone {
  position: relative; overflow: hidden; padding: 44px 16px;
  background: radial-gradient(60% 90% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%);
  transition: border-color 0.3s, background-color 0.3s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}
.fancy .dropzone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(165, 243, 252, 0.09) 50%, transparent 65%);
  transform: translateX(-100%); animation: dzSweep 3.6s ease-in-out infinite;
}
.fancy .dropzone:hover, .main-col.drag-files .dropzone {
  border-color: var(--accent); background-color: var(--accent-soft); transform: translateY(-2px);
  box-shadow: 0 14px 40px -20px rgba(34, 211, 238, 0.6);
}
.fancy .dz-icon { width: 54px; height: 54px; font-size: 1.4rem; animation: dzBob 2.4s ease-in-out infinite; transition: transform 0.3s; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
.fancy .dropzone:hover .dz-icon, .main-col.drag-files .dz-icon { animation: dzBob 0.9s ease-in-out infinite, dzPulse 1.2s ease-out infinite; }
@keyframes dzSweep { 0%, 20% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes dzBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dzPulse { from { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); } to { box-shadow: 0 0 0 16px rgba(34, 211, 238, 0); } }

/* your videos: slide in, lift on hover with a cyan edge; cutting shows a moving stripe */
.fancy .source {
  position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s, box-shadow 0.25s;
}
.fancy .source::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform 0.25s;
}
.fancy .source:hover { transform: translateX(3px); background-color: #13233b; box-shadow: 0 8px 24px -16px rgba(34, 211, 238, 0.6); }
.fancy .source:hover::before, .fancy .source.cutting::before { transform: scaleY(1); }
.fancy .source.cutting::before { background: var(--warn); }
.fancy .source.cutting::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--warn), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: srcScan 1.2s linear infinite;
}
@keyframes srcScan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.fancy .enter { animation: itemIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; /* (not "both": that would pin transform and kill the hover lift) */ animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.fancy #analyzeBtn:not(:disabled) { position: relative; overflow: hidden; box-shadow: var(--accent-glow); }
.fancy #analyzeBtn:not(:disabled)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: dzSweep 2.8s ease-in-out infinite;
}

/* clip cards: lift + glow, the picture zooms a touch, the ✓ / ＋ button springs */
.fancy .clip-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.fancy .clip-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(34, 211, 238, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.35); }
.fancy .clip-card.selected { box-shadow: 0 0 0 2px var(--accent), 0 14px 34px -18px rgba(34, 211, 238, 0.8); }
.fancy .thumb { overflow: hidden; transition: opacity 0.3s; }
.fancy .thumb::before {
  content: ""; position: absolute; inset: 0; background: inherit; transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fancy .clip-card:hover .thumb::before { transform: scale(1.07); }
.fancy .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 11, 20, 0.6)); }
.fancy .thumb .badge, .fancy .thumb .dur { z-index: 1; backdrop-filter: blur(4px); }
.fancy .card-toggle { z-index: 2; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.25s, filter 0.2s; }
.fancy .card-toggle:hover { transform: scale(1.15); }
.fancy .card-toggle:active { transform: scale(0.9); }
.fancy .card-toggle.on { box-shadow: 0 0 14px rgba(52, 211, 153, 0.55); }

/* ---------- Editor ---------- */
.preview { width: 100%; border-radius: var(--radius-sm); background: #000; display: block; max-height: 56vh; }
.trim { margin-top: 14px; }
.trim-track {
  position: relative; height: 44px; background: var(--surface-2); border-radius: 10px;
  cursor: pointer; touch-action: none; user-select: none;
}
.trim-range { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 3px solid var(--accent); border-radius: 10px; }
.trim-handle {
  position: absolute; top: -3px; bottom: -3px; width: 16px; background: var(--accent); cursor: ew-resize;
}
.trim-handle::after { content: ""; position: absolute; left: 6px; top: 32%; bottom: 32%; width: 4px; border-left: 2px solid var(--on-accent); border-right: 2px solid var(--on-accent); }
.trim-handle[data-handle="start"] { left: -3px; border-radius: 9px 0 0 9px; }
.trim-handle[data-handle="end"] { right: -3px; border-radius: 0 9px 9px 0; }
.trim-playhead { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #fff; border-radius: 2px; pointer-events: none; }
.trim-marks { position: absolute; inset: 0; pointer-events: none; }
.trim-kill { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1px; background: var(--kill); border-radius: 2px; }
.trim-kill::before { content: "🎯"; position: absolute; top: -21px; left: -7px; font-size: 12px; }
.trim-times { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.trim-times #trimLen { color: var(--text); font-weight: 700; }
.editor-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.editor-actions .spacer { flex: 1; }
.editor-hint { margin: 10px 0 0; }
.editor-hint:empty { display: none; }

/* ---------- 3. Timeline (editor-style, kept simple) ---------- */
.timeline-block { padding-bottom: 14px; }
.timeline-block .block-head { margin-bottom: 12px; }
.meter-text { font-size: 0.9rem; }
.meter-text strong[data-state="sweet"] { color: var(--good); }
.meter-text strong[data-state="over"] { color: var(--bad); }

/* Watch while you edit: when the timeline block is wide enough, the video moves to a column on
   the right and stays pinned below the header + steps while you scroll the timeline tools. */
.timeline-block { container-type: inline-size; }
.tl-main { min-width: 0; }
@container (min-width: 700px) {
  .tl-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: start; }
  .tl-side { order: 2; position: sticky; top: 158px; max-height: calc(100vh - 172px); overflow-y: auto; scrollbar-width: thin;
    padding: 3px; } /* room for the video's 2px blue ring (overflow would crop it) */
  .tl-side .stage { margin: 0; }
  /* the video is taller than the tools: centre them beside it instead of leaving a gap */
  .tl-main { align-self: center; }
  /* sized to fit the screen height, so the whole video is visible next to the tools */
  .tl-side .vframe-wrap { width: clamp(200px, min(34cqw, calc((100vh - 230px) * 9 / 16)), 400px); }
/* "Bigger preview" (index.html #bigPreview): same side-by-side layout (video on the right, sticky),
   the video a bit taller and the gap smaller, so the video and the timeline both stay in view */
.timeline-block.big-preview .tl-layout { gap: 20px; }
.timeline-block.big-preview .tl-side { top: 120px; max-height: calc(100vh - 130px); }
.timeline-block.big-preview .tl-side .vframe-wrap { width: clamp(240px, min(40cqw, calc((100vh - 180px) * 9 / 16)), 520px); }
.timeline-block.big-preview .tl-main { align-self: center; } /* centred beside the video, not stuck to the top */
/* ✋ Manual adjust in Bigger preview: the screen-tall video pushed the settings below what the
   side column shows, so they go in a column beside the video instead */
.timeline-block.big-preview .tl-side .vframe-wrap:has(> .adjust-panel:not([hidden])) {
  width: auto; display: grid; align-items: start; gap: 12px;
  grid-template-columns: clamp(240px, min(36cqw, calc((100vh - 200px) * 9 / 16)), 560px) minmax(220px, 280px);
}
.timeline-block.big-preview .vframe-wrap:has(> .adjust-panel:not([hidden])) > .vframe-head { grid-column: 1 / -1; }
.timeline-block.big-preview .vframe-wrap > .adjust-panel { max-height: calc(100vh - 230px); overflow-y: auto; scrollbar-width: thin; }
}
/* Bigger preview breaks out of the studio's 1600px to the window edges, so the video gets wider */
.timeline-block.big-preview { margin-inline: calc(50% - 50vw + 28px); }

/* narrow screens: a small floating copy of the video while the player is scrolled away */
.mini-player {
  position: fixed; right: 16px; bottom: 76px; z-index: 30; width: 132px; aspect-ratio: 9 / 16; padding: 0; border: none;
  border-radius: 12px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55), 0 14px 34px rgba(0, 0, 0, 0.6);
}
.mini-player[hidden] { display: none; }
.mini-player canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mini-time {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.6);
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff;
}

/* preview stage: the 1080 × 1920 video */
.stage { display: flex; justify-content: center; margin: 4px 0 26px; }
.viewer { position: relative; background: #000; overflow: hidden; }
/* the video plays underneath; what you see is drawn on the canvas (blur + stretched gameplay + health bar) */
.viewer video, .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }

.vframe-wrap { width: min(340px, 100%); display: flex; flex-direction: column; gap: 12px; }
/* z-index: the name that pops up under a tool button draws over the video and the Effects bar, not under them */
.vframe-head { position: relative; z-index: 30; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; }
.vframe-tools { display: flex; gap: 6px; flex-wrap: wrap; }
/* icon-only tool buttons: the name pops up under it on hover. (It used to slide out inside the
   button, which widened it: the toolbar wrapped, the button jumped from under the mouse, the
   name hid again and it flickered on and off — Edge shadow / Performance couldn't be clicked.) */
.hp-name-input { flex: 1 1 140px; max-width: 220px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line, #24324a);
  background: var(--surface-2); color: var(--text); font: 600 0.9rem "Varela Round", sans-serif; }
.vtool { gap: 0; position: relative; transition: background 0.25s ease, color 0.25s ease; }
.tool-name { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); z-index: 20;
  padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.vtool:hover .tool-name, .vtool:focus-visible .tool-name { opacity: 1; transform: translate(-50%, 0); }
/* the video column scrolls (overflow), so a centred name on the outer buttons got cut off: line those up with the button's edge */
/* (Hover zoom counts as first: the zoom bar before it is usually hidden) */
.vframe-tools > .vtool:first-child .tool-name, .vframe-tools > #hoverZoom .tool-name { left: 0; transform: translate(0, -4px); }
.vframe-tools > .vtool:last-child .tool-name { left: auto; right: 0; transform: translate(0, -4px); }
.vframe-tools > .vtool:first-child:hover .tool-name, .vframe-tools > .vtool:last-child:hover .tool-name, .vframe-tools > #hoverZoom:hover .tool-name,
.vframe-tools > .vtool:first-child:focus-visible .tool-name, .vframe-tools > .vtool:last-child:focus-visible .tool-name, .vframe-tools > #hoverZoom:focus-visible .tool-name { transform: translate(0, 0); }
/* sliders / toggles: the "what it does" line fades in on hover */
.tip small { display: block; max-height: 0; opacity: 0; overflow: hidden; font-weight: 500; font-size: 0.8rem; color: var(--muted, #94a3b8);
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease; margin-top: -8px; }
.tip:hover small, .tip:focus-within small { max-height: 3em; opacity: 1; margin-top: -4px; }
.inline-toggle.tip { flex-wrap: wrap; }
.inline-toggle.tip small { flex-basis: 100%; margin-top: 0; }
.slider-row input[type="range"] { transition: filter 0.2s ease; }
.slider-row:hover input[type="range"] { filter: brightness(1.15); }
#hoverZoom.on { background: var(--accent); color: var(--on-accent); }
.vframe.zooming:not(.adjusting), .phone.zooming { cursor: zoom-in; }
.vframe-size { font-size: 0.85rem; color: var(--muted); }
.vframe-size b { color: var(--text); font-variant-numeric: tabular-nums; }
.vframe { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.5); }
.vframe.adjusting { box-shadow: 0 0 0 2px var(--accent), var(--accent-glow); cursor: grab; touch-action: none; }
.vframe.adjusting:active { cursor: grabbing; }
.frame-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vf-title { position: absolute; left: 7%; right: 7%; z-index: 2; text-align: center; line-height: 1.05; pointer-events: none; overflow-wrap: anywhere; }
.vf-title[data-pos="top"] { top: 9%; }
.vf-title[data-pos="middle"] { top: 50%; transform: translateY(-50%); }
.vf-title[data-pos="bottom"] { bottom: 9%; }
.vframe { container-type: inline-size; }
.auto-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(5, 11, 20, 0.75); color: #a5f3fc; pointer-events: none;
}
.adjust-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.adjust-panel .slider-row { margin: 0; }
#manualAdjust.on { background: var(--accent); color: var(--on-accent); }

.viewer-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.viewer-label {
  position: absolute; top: 10px; left: 10px; font-size: 0.78rem; font-weight: 700;
  background: rgba(10, 11, 14, 0.75); padding: 3px 10px; border-radius: 999px;
}

/* timeline HUD: a quiet strip of text tools. No pills, no filled chips; state shows as a cyan
   label and a small underline instead of a lit-up button */
.tl-toolbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #0b1729; border-radius: 12px 12px 0 0; padding: 8px 12px; border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}
.tool {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; min-width: 30px; padding: 0 8px;
  background: transparent; color: var(--muted); border: none; border-radius: 6px;
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.12s, background 0.12s;
}
.tool:hover:not(:disabled) { background: rgba(56, 189, 248, 0.07); color: var(--text); }
.tool:disabled { opacity: 0.35; cursor: not-allowed; }
/* play is the one thing that stays solid, as a small square rather than a circle */
.tool-play { background: var(--accent); color: var(--on-accent); width: 34px; min-width: 34px; height: 30px; justify-content: center; border-radius: 6px; padding: 0; }
.tool-play:hover:not(:disabled) { background: #67e8f9; color: var(--on-accent); }
.tool-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.tl-time { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--muted); margin: 0 8px 0 6px; min-width: 110px; }

.tl { display: flex; background: #060e1a; border-radius: 0 0 12px 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
/* secondary tools (Undo, feature toggles, zoom presets): text only, no box */
.tool-pill { padding: 0 8px; }
.tool-pill.on, .tl-toolbar .tool.on, .tl-toolbar .tool[aria-pressed="true"],
.tl-toolbar #healthBtn.on, .tl-toolbar #camBtn.on, .tl-toolbar #ccBtn.on, .tl-toolbar #speedUp.on {
  background: transparent; color: #67e8f9; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0;
}
.adv-bar { border-radius: 0; background: #08121f; }
/* More control stands out: an outlined cyan chip (filled while on) */
.tl-toolbar #moreControl { font-weight: 800; color: #a5f3fc; border-radius: 999px; padding: 0 14px; background: rgba(34, 211, 238, 0.12); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 12px rgba(34, 211, 238, 0.18); }
.tl-toolbar #moreControl:hover { background: rgba(34, 211, 238, 0.22); }
.tl-toolbar #moreControl.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 14px rgba(34, 211, 238, 0.35); border-radius: 999px; }
/* Effects bar above the video (More control): hide health / gun / facecam in this clip */
.fx-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px; margin-bottom: 8px; border-radius: 10px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); }
.fx-tabs-label { font-weight: 700; font-size: 0.8rem; color: var(--muted); margin-right: 2px; }
/* each one reads "Health: on" (cyan) or "Health: off" (grey) — no strikethrough */
.fx-tab { height: 28px; padding: 0 12px; border: none; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  color: var(--muted); background: rgba(148, 163, 184, 0.06); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18); transition: background 0.2s, color 0.2s; }
.fx-tab.on { color: #a5f3fc; background: rgba(34, 211, 238, 0.14); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45); }
.fx-tab:disabled { opacity: 0.35; cursor: not-allowed; }
/* ✨ Easy effects toggle (app.js "Easy effects") */
.timeline-block:not(.easy-on) .easy-fx { display: none; }
/* facecam split layout (vertical.js camSplit): the cam fills the top, so no size / corners / drag hint */
#camRow.split .cam-float, #camRow.split .fx-hint { display: none; }
/* Content creator / Montage switch, on top of Easy effects (vertical.js data-edit-mode) */
.mode-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 6px; border-radius: 12px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); }
.mode-btn { height: 28px; border: none; border-radius: 8px; background: none; color: var(--muted); font: 700 0.9rem 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; cursor: pointer; transition: background 0.2s, color 0.2s; }
.mode-btn:hover { color: var(--text); }
.mode-btn.on { color: #06121f; background: var(--accent); }
.cam-found { margin: 0; color: #67e8f9; }
.cam-found:empty { display: none; }
/* one row: Content creator / Montage, then Templates + Easy effects (wraps on narrow screens) */
.look-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.look-row .mode-bar { flex: 1 1 220px; margin: 0; }
.easy-bar { display: flex; gap: 6px; flex: 1 1 220px; }
.easy-bar .tool-pill { padding: 0 10px; }
.easy-bar #easyToggle, .easy-bar #tplToggle { flex: 1; justify-content: center; height: 30px; font-weight: 700; color: #a5f3fc;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), #0b1729); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.4); }
.easy-bar #easyToggle:hover, .easy-bar #tplToggle:hover { transform: none; background: rgba(34, 211, 238, 0.16); }
/* Templates (templates.js): the list opens under its button, like Easy effects */
.tpl-panel { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin-bottom: 6px; border-radius: 12px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); }
.tpl-panel[hidden] { display: none; }
.tpl-card { position: relative; }
.tpl-empty, .tpl-why { margin: 0; font-size: 0.82rem; color: var(--muted); }
.tpl-why:empty { display: none; }
.tpl-why.bad { color: var(--warn, #fbbf24); }
.tpl-local, .tpl-del { position: absolute; top: 4px; font: 700 0.6rem Barlow, sans-serif; border-radius: 4px; padding: 0 4px; }
.tpl-local { right: 24px; color: #04111d; background: var(--warn, #fbbf24); }
.tpl-del { right: 4px; color: var(--muted); cursor: pointer; }
.tpl-del:hover { color: var(--bad, #f87171); }
.tpl-del.armed, .tpl-rec-del.armed { color: #fff; background: var(--bad, #f87171); border-color: var(--bad, #f87171); }
.tpl-save { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-save input { flex: 1 1 160px; min-width: 0; max-width: 260px; }
.tpl-save input[hidden] { display: none; }
.tpl-save-note { font-size: 0.8rem; color: var(--muted); }
.tpl-save-note:empty { display: none; }

/* DEV step 0: make templates by making an edit (templates.js "Template recording") */
.stepper .dev-step .num { width: auto; padding: 0 9px; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.06em; border-color: #a78bfa; color: #c4b5fd; }
.stepper .dev-step .name { color: #c4b5fd; }
.stepper li.dev-step.active .num { background: #a78bfa; border-color: #a78bfa; color: #111; box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); }
.stepper li.dev-step.done .num { background: rgba(167, 139, 250, 0.15); border-color: #a78bfa; color: #c4b5fd; }
.stepper li.dev-step:not(.locked):hover .num { border-color: #c4b5fd; color: #ede9fe; box-shadow: 0 0 16px rgba(167, 139, 250, 0.55); }
.dev-step-page { display: flex; flex-direction: column; gap: 16px; }
.dev-step-page.hidden { display: none; }
.dev-step-page .block { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45); }
.tpl-rec-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tpl-rec-row input { flex: 1 1 200px; min-width: 0; max-width: 320px; }
.tpl-rec-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-rec-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.tpl-rec-item.on { box-shadow: inset 0 0 0 1px #a78bfa; }
.tpl-rec-txt { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.tpl-rec-txt small { color: var(--muted); font-size: 0.78rem; }
.tpl-rec-del:hover { color: var(--bad, #f87171); }
.tpl-rec-bar {
  position: fixed; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 28px); padding: 6px 6px 6px 12px;
  background: rgba(28, 21, 48, 0.94); border: 1px solid #a78bfa; border-radius: 999px; color: #ddd6fe; font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tpl-rec-bar[hidden] { display: none; }
.tpl-rec-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f87171; animation: tpl-rec-blink 1.2s infinite; }
@keyframes tpl-rec-blink { 50% { opacity: 0.3; } }
/* the card's picture: a tiny phone with blur above / below the band and marks for what's on */
.tpl-pic { justify-content: center; }
.tpl-pic .tpl-phone { zoom: 0.7; } /* 50px phone → 35px, fits the 36px picture box */
.tpl-phone { position: relative; width: 28px; height: 50px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45);
  background: linear-gradient(#1e3a5f 0 25%, #334155 25% 75%, #1e3a5f 75%); }
.tpl-phone.split { background: linear-gradient(#475569 0 36%, #334155 36%); }
.tpl-phone i { position: absolute; display: block; }
.tpl-phone .m-hp { left: 3px; top: 14px; width: 11px; height: 2px; background: var(--accent); }
.tpl-phone .m-hp.topright { left: auto; right: 3px; }
.tpl-phone .m-hp.head { left: 9px; top: 20px; }
.tpl-phone .m-gun { right: 3px; bottom: 14px; width: 9px; height: 4px; background: #e2e8f0; border-radius: 1px; }
.tpl-phone .m-cam { left: 9px; top: 3px; width: 10px; height: 8px; border-radius: 2px; background: #f472b6; }
.tpl-phone .m-title { left: 5px; right: 5px; height: 2px; top: 7px; background: #fff; opacity: 0.8; }
.tpl-phone .m-title.middle, .tpl-phone .m-title.free { top: 24px; }
.tpl-phone .m-title.bottom { top: auto; bottom: 6px; }
.tpl-phone .m-cc { inset: 0; background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.18)); }
/* dev template maker: a drawer on the right, so the player stays in view */
.tpl-maker { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; overflow-y: auto; background: #0a1424; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5), inset 1px 0 0 var(--line); font-size: 0.85rem; }
.tpl-maker[hidden] { display: none; }
.tpl-maker.drag { box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px var(--accent); }
.tpl-maker-head, .tpl-maker-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-maker-head { justify-content: space-between; font: 700 1.15rem 'Barlow Condensed', sans-serif; }
.tpl-maker-row input[type=text] { flex: 1; min-width: 0; }
.tpl-store { flex-basis: 100%; color: #67e8f9; font-size: 0.78rem; }
.tpl-store:empty { display: none; }
.tpl-src { padding: 10px; border-radius: 10px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.tpl-src-body { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; }
.tpl-src-body video { width: 150px; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.tpl-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; font-size: 0.76rem; }
.tpl-meta dt { color: var(--muted); }
.tpl-meta dd { margin: 0; overflow-wrap: anywhere; }
.tpl-fields details { border-radius: 8px; background: #0b1729; margin-bottom: 6px; }
.tpl-fields summary { cursor: pointer; padding: 6px 10px; font-weight: 700; }
.tpl-fields summary small { color: var(--muted); font-weight: 600; }
.tpl-fields table { width: 100%; border-collapse: collapse; }
.tpl-fields td { padding: 2px 10px; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.tpl-fields td:first-child { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.74rem; width: 45%; }
.tpl-fields tr.changed td:first-child { color: #67e8f9; }
.tpl-fields input:not([type=checkbox]), .tpl-fields select { width: 100%; box-sizing: border-box; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line);
  background: #06101d; color: var(--text); font: inherit; }
.tpl-fields input[type=color] { padding: 0; height: 24px; }
/* key hints on the cut tools + the hint line under them */
.adv-bar .tool kbd, .tl-adv-hint kbd {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px; border-radius: 4px;
  font: 700 0.62rem var(--body, inherit); color: var(--muted); background: rgba(148, 163, 184, 0.1); box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.3); }
.tl-adv-hint kbd { margin: 0 2px; }
.adv-bar .tool.on kbd { color: #a5f3fc; background: rgba(34, 211, 238, 0.18); }
/* where a Split / Cut reload click will land; white when the magnet holds it on the playhead */
.tl-cut-guide { position: absolute; top: 32px; bottom: 0; width: 0; margin-left: -1px; border-left: 2px dashed rgba(34, 211, 238, 0.7); pointer-events: none; z-index: 5; }
.tl-cut-guide.snapped { border-left: 2px solid #fff; }
/* Easy effects sits above the timeline; the timeline stays visible under it */
.easy-fx { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin-bottom: 6px; border-radius: 12px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); }
.easy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
/* card = picture left, name + state right; every card pulses a soft cyan glow (staggered by --d), on cards brighter */
.easy-card { --d: 0s; justify-content: flex-start; gap: 8px; height: auto; padding: 5px 8px; border-radius: 10px; text-align: left; color: var(--text);
  background: linear-gradient(90deg, #0f2039, #0b1729); animation: easyGlow 2.6s ease-in-out infinite var(--d); transition: transform 0.15s; }
.easy-card:hover:not(:disabled) { transform: translateY(-2px); }
.easy-card.on, .easy-card[aria-pressed="true"] { background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), #0b1729); animation-name: easyGlowOn; }
@keyframes easyGlow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16); } 50% { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 14px rgba(34, 211, 238, 0.18); } }
@keyframes easyGlowOn { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.55), 0 0 10px rgba(34, 211, 238, 0.2); } 50% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 24px rgba(34, 211, 238, 0.45); } }
.easy-pic { width: 66px; height: 36px; display: grid; place-items: center; flex: none; position: relative; }
.easy-txt { font: 700 0.9rem 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; line-height: 1.1; }
.easy-txt small { display: block; font: 600 0.72rem Barlow, sans-serif; color: var(--muted); }
.easy-card.on .easy-txt small, .easy-card[aria-pressed="true"] .easy-txt small { color: #67e8f9; }
.easy-thumb { border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35); }
/* Export step before paying: only the pay screen (app.js renderExport → .unpaid) */
.step.unpaid :is(#exportOpts, #exportSetBtn, #exportSettings, #exportNote, .export-run, #exportBar, #exportMsg),
.step.unpaid .block:has(#blurCmd), .step.unpaid .block-head:has(+ #exportOpts) { display: none !important; }
/* Animations card: picture slowly zooms with a light sweep; "Finish up first" banner covers the bar (app.js) */
#animFxPic { animation: fx-pic-zoom 6s ease-in-out infinite alternate; }
#animFxBtn .easy-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; animation: fx-pic-sheen 3s ease-in-out infinite; pointer-events: none; }
@keyframes fx-pic-zoom { from { transform: scale(1); } to { transform: scale(1.15) translateY(-3%); } }
@keyframes fx-pic-sheen { 0%, 40% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.easy-grid:has(> .fx-lock), .easy-grid:has(> .fx-pop) { position: relative; }
/* Animations card quick controls (app.js fxPop) */
.fx-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; display: flex; flex-direction: column; gap: 6px; padding: 12px;
  border-radius: 16px; font-size: 0.8rem; color: #e9d5ff;
  background: linear-gradient(#0b1020, #0b1020) padding-box, linear-gradient(135deg, #a78bfa, #22d3ee 60%, #a78bfa) border-box; border: 1.5px solid transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(167, 139, 250, 0.25); animation: fx-pop-in 0.3s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: top right; }
.fx-pop::before { content: ""; position: absolute; right: 38px; top: -7px; width: 12px; height: 12px; rotate: 45deg; background: #0b1020; border-left: 1.5px solid #a78bfa; border-top: 1.5px solid #a78bfa; }
.fx-pop[hidden] { display: none; }
.fx-pop header { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin-bottom: 4px; }
.fx-pop header img { grid-row: span 2; width: 54px; height: 36px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 12px rgba(167, 139, 250, 0.5); }
.fx-pop header b { font: 800 1rem "Barlow Condensed", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.fx-pop header small { color: #a5b4fc; }
.fx-pop p { margin: 4px 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a78bfa; }
.fx-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(167, 139, 250, 0.25); }
.fx-seg button { flex: 1; padding: 5px 0; border: 0; border-radius: 999px; background: transparent; color: #c4b5fd; font: 700 0.78rem "Barlow", sans-serif; cursor: pointer;
  transition: background 0.2s, color 0.2s, scale 0.15s cubic-bezier(.3, 1.6, .5, 1); }
.fx-seg button:hover { color: #fff; scale: 1.06; }
.fx-seg button[aria-pressed="true"] { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); }
.fx-range { display: flex; align-items: center; gap: 8px; color: #c4b5fd; font-weight: 700; font-size: 0.75rem; }
.fx-range input { flex: 1; accent-color: #a78bfa; }
.fx-pop .fx-build { text-transform: none; letter-spacing: 0; color: #67e8f9; font-weight: 600; }
.fx-pop footer { display: flex; gap: 6px; margin-top: 8px; }
.fx-pop footer button { flex: 1; padding: 6px 0; border-radius: 10px; border: 1px solid rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.08); color: #a5f3fc;
  font: 700 0.78rem "Barlow", sans-serif; cursor: pointer; transition: background 0.2s, scale 0.15s; }
.fx-pop footer button:hover { background: rgba(34, 211, 238, 0.2); scale: 1.04; }
.fx-pop footer [data-out] { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); color: #fca5a5; }
.fx-pop footer [data-out]:hover { background: rgba(248, 113, 113, 0.2); }
@keyframes fx-pop-in { from { opacity: 0; transform: scale(0.85) translateY(-6px); } }
/* FX1 card picked: box on the player to move / scale it (app.js editCard) */
.card-edit { position: absolute; z-index: 15; box-sizing: border-box; border: 2px dashed #a78bfa; border-radius: 8px; cursor: move; touch-action: none;
  background: rgba(167, 139, 250, 0.06); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.12); }
.card-edit[hidden] { display: none; }
.card-edit-tag { position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; white-space: nowrap; padding: 3px 9px; border-radius: 999px;
  background: #7c3aed; color: #fff; font: 700 0.7rem "Barlow", sans-serif; pointer-events: none; }
.card-edit-h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #7c3aed; cursor: nwse-resize; }
.card-edit-reset { position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: #22d3ee; color: #0b1220; font-weight: 800; cursor: pointer; }
.tl-fx.editing { outline: 2px solid #fff; outline-offset: 1px; }
.fx-lock { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 12px; background: linear-gradient(110deg, rgba(8, 16, 32, 0.96), rgba(46, 20, 90, 0.96)); border: 1px solid #a78bfa;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.5); animation: fx-lock-in 0.4s cubic-bezier(.3, 1.5, .5, 1) both; }
.fx-lock b { font: 800 1.3rem "Barlow Condensed", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fx-lock span { font-size: 0.8rem; color: #c4b5fd; }
.fx-lock.out { animation: fx-lock-out 0.35s ease-in both; }
@keyframes fx-lock-in { from { opacity: 0; transform: scale(0.9) translateY(8px); } }
@keyframes fx-lock-out { to { opacity: 0; transform: scale(1.05) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { #animFxPic, #animFxBtn .easy-pic::after { animation: none; } }
.easy-thumb img, .easy-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* health: crisp name + yellow tag; only the shield bars pulse with a faint glow (a glow on the
   whole picture blurred the text and the tag) */
.easy-card .easy-hp { width: 62px; height: 24px; shape-rendering: crispEdges; }
.easy-card .easy-hp text { shape-rendering: auto; }
.easy-card .easy-hp-glow { animation: easyHp 2.4s ease-in-out infinite; }
@keyframes easyHp { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
/* gun: mini in-game weapon panel, the mag empties 35 to 11 (app.js "Easy effects") */
.easy-pic .easy-gun { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.72); } /* drawn at 92×50, shrunk to fit the 66×36 picture */
.easy-gun { width: 92px; height: 50px; border-radius: 5px; position: relative; padding: 3px 5px; display: block;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 10px rgba(34, 211, 238, 0.15); }
.easy-gun .head { display: flex; justify-content: space-between; font: 700 0.5rem Barlow, sans-serif; letter-spacing: 0.06em; color: #0b1729; background: #e2e8f0; margin: -3px -5px 3px; padding: 1px 5px; border-radius: 4px 4px 0 0; }
.easy-gun .row { display: flex; align-items: center; justify-content: space-between; }
.easy-gun .mag { display: block; font: 700 1.15rem 'Barlow Condensed', sans-serif; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; }
.easy-gun .mag.low { color: #fca5a5; }
.easy-gun .res { display: block; font: 600 0.5rem Barlow, sans-serif; color: #94a3b8; letter-spacing: 0.04em; }
.easy-gun img { height: 20px; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)); }
.easy-gun.kick img { transform: translateX(-1px) rotate(-2deg); }
.easy-gun .ticks { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 3px; display: flex; gap: 1px; }
.easy-gun .ticks i { flex: 1; background: var(--accent); border-radius: 1px; }
.easy-gun .ticks i.gone { opacity: 0.15; }
/* color: before / after with a slanted line sweeping back and forth */
@property --easy-x { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
.easy-cc .after { clip-path: polygon(calc(var(--easy-x) + 10%) 0, 100% 0, 100% 100%, calc(var(--easy-x) - 10%) 100%); animation: easySweep 3.2s ease-in-out infinite; }
.easy-cc .line { position: absolute; top: -10%; bottom: -10%; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); transform: rotate(12deg); animation: easyLine 3.2s ease-in-out infinite; }
@keyframes easySweep { 0%, 100% { --easy-x: 15%; } 50% { --easy-x: 85%; } }
@keyframes easyLine { 0%, 100% { left: 15%; } 50% { left: 85%; } }
/* facecam: blinking rec dot; speed: badge */
.easy-rec { position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: easyRec 1.2s steps(2) infinite; }
@keyframes easyRec { 50% { opacity: 0.15; } }
.easy-x { position: absolute; right: 4px; bottom: 3px; font: 800 0.7rem 'Barlow Condensed', sans-serif; color: #04111d; background: var(--accent); padding: 0 4px; border-radius: 3px; }
/* toolbar toggle icon: 4-point spark, slow spin + twinkle, a small spark pops (inline SVG: animations don't reach <use> copies) */
.easy-spark { width: 16px; height: 16px; margin-right: 6px; overflow: visible; flex: none; }
.easy-spark .big { transform-origin: 9px 9px; animation: easySpin 6s linear infinite, easyTwinkle 1.8s ease-in-out infinite; filter: drop-shadow(0 0 3px var(--accent)); }
.easy-spark .small { transform-origin: 18px 4px; animation: easyPop 1.8s ease-in-out infinite 0.9s; }
@keyframes easySpin { to { rotate: 360deg; } }
@keyframes easyTwinkle { 50% { scale: 0.75; opacity: 0.7; } }
@keyframes easyPop { 0%, 100% { scale: 0; opacity: 0; } 50% { scale: 1; opacity: 1; } }
/* closed panel: nothing animates */
.timeline-block:not(.easy-on) .easy-fx * { animation-play-state: paused; }
.easy-fx .fx-tabs { margin: 0; }
/* Cut tools: the mouse turns into the picked tool over the clips */
.tl-canvas[data-cut-tool] .tl-lane, .tl-canvas[data-cut-tool] .tl-clip { cursor: crosshair; }
.tl-canvas[data-cut-tool="split"] .tl-lane, .tl-canvas[data-cut-tool="split"] .tl-clip {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cline x1='16' y1='0' x2='16' y2='32' stroke='%2322d3ee' stroke-width='2'/%3E%3Ctext x='18' y='14' font-size='14'%3E%E2%9C%82%EF%B8%8F%3C/text%3E%3C/svg%3E") 16 16, crosshair; }
.tl-canvas[data-cut-tool="reload"] .tl-lane, .tl-canvas[data-cut-tool="reload"] .tl-clip {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cline x1='1' y1='0' x2='1' y2='32' stroke='%2322d3ee' stroke-width='2'/%3E%3Ctext x='4' y='20' font-size='16'%3E%F0%9F%94%84%3C/text%3E%3C/svg%3E") 1 16, crosshair; }
.tl-canvas[data-cut-tool="remove"] .tl-lane, .tl-canvas[data-cut-tool="remove"] .tl-clip {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='4' y='22' font-size='18'%3E%F0%9F%97%91%EF%B8%8F%3C/text%3E%3C/svg%3E") 12 16, pointer; }
.tl-canvas[data-cut-tool] .tl-edge { pointer-events: none; }
/* Templates (placeholder) by the Timeline heading */
.timeline-block .block-head h3 + .templates-btn { margin-right: auto; }
.soon-tag { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: rgba(34, 211, 238, 0.15); color: var(--accent); }
.templates-btn.flash { box-shadow: inset 0 0 0 1.5px var(--accent); }
/* Health bar / Facecam panels: while one is open, the rest of the timeline column steps aside */
.timeline-block.fx-open .tl-main > :not(.fx-panel) { display: none !important; }
.fx-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; background: #0b1729; box-shadow: inset 0 0 0 1px var(--line); }
.fx-panel[hidden] { display: none; }
.fx-head { display: flex; align-items: center; gap: 8px; }
.fx-head h4 { margin: 0 auto 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; letter-spacing: 0.02em; }
.fx-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-label { flex: 0 0 72px; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.fx-field input[type="range"] { flex: 1 1 160px; max-width: 320px; }
/* color correct: a line on the track at the normal amount (--norm, set in vertical.js), the change beside it */
.cc-track { position: relative; display: flex; flex: 1 1 160px; max-width: 320px; }
.cc-track input[type="range"] { flex: 1; max-width: none; }
.cc-track::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--accent); opacity: 0.8; pointer-events: none;
  left: calc(8px + (100% - 16px) * var(--norm, 0)); } /* 8px = half the thumb: the thumb's centre at that value */
.cc-diff { min-width: 4.5em; font-size: 0.8rem; color: var(--muted, #8aa); font-variant-numeric: tabular-nums; }
.cc-diff.changed { color: var(--accent); }
.fx-field input[type="color"] { width: 36px; height: 26px; padding: 0; border: none; background: none; cursor: pointer; }
.fx-hint { margin: 0; }
/* the less used options (health / gun panels) fold away under "More options" */
.fx-more-body { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; } /* (details itself doesn't space its rows) */
.fx-more > summary { width: max-content; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding: 4px 0; }
.fx-more > summary::-webkit-details-marker { display: none; }
.fx-more > summary::before { content: "▸"; display: inline-block; margin-right: 6px; transition: transform 0.2s ease; }
.fx-more[open] > summary::before { transform: rotate(90deg); }
.fx-more > summary:hover { color: var(--text); }/* panel buttons: soft rounded chips that ease between states; on = cyan tint, no hard underline */
.fx-panel .tool-pill {
  height: 32px; padding: 0 14px; border-radius: 999px; color: var(--muted);
  background: rgba(148, 163, 184, 0.06); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.fx-panel .tool-pill:hover:not(:disabled) { background: rgba(56, 189, 248, 0.1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3); }
.fx-panel .tool-pill:active:not(:disabled) { transform: scale(0.96); }
.fx-panel .tool-pill.on, .fx-panel .tool-pill[aria-pressed="true"] {
  border-radius: 999px; color: #a5f3fc; background: rgba(34, 211, 238, 0.14);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45), 0 0 14px rgba(34, 211, 238, 0.12);
}
.fx-panel .seg button { transition: background 0.25s ease, color 0.25s ease; }
/* a row that slides open (the name's "More") */
.reveal { max-height: 0; opacity: 0; overflow: hidden; margin-top: -14px; transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease; }
.reveal.open { max-height: 60px; opacity: 1; margin-top: 0; }
.hp-name-input { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.hp-name-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
.fx-shadow { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #08121f; }
.fx-shadow[hidden] { display: none; }
[data-shadow-toggle][aria-expanded="true"], #camMaskBtn.on, #camBtn.on, #healthBtn.on { background: var(--accent); color: var(--on-accent); }
/* Performance mode switch (step 1 player and the phone) */
[data-perf].on, [data-hover-zoom].on { background: var(--accent); color: var(--on-accent); }
/* on = a bright cyan glow that breathes, so it's clear it's working */
[data-perf].on { box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.85), 0 0 26px 6px rgba(34, 211, 238, 0.45); animation: perfGlow 1.6s ease-in-out infinite; }
@keyframes perfGlow { 50% { box-shadow: 0 0 16px 4px rgba(34, 211, 238, 1), 0 0 40px 12px rgba(34, 211, 238, 0.6); } }
@media (prefers-reduced-motion: reduce) { [data-perf].on { animation: none; } }
.phone .phone-zoom { right: 56px; }
.phone-perf {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 0.95rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line);
}
/* Socials (step 6) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soc-apply { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.soc-apply .text-input { flex: 1; min-width: 0; }
.soc-name-label { flex: none; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; color: var(--accent); }

/* ---------- Step 2: numbered sections, tips, animated "more" toggles ---------- */
.step-no { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; font-size: 0.8em; color: #04121a; background: linear-gradient(135deg, var(--accent), #818cf8); box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
/* a friendly tip line: soft cyan card instead of grey small print */
.soc-tip { margin: 4px 0 12px; padding: 7px 11px; border-radius: 9px; font-size: 0.85rem; color: var(--text); background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.18); }
/* the fold-outs as small glowing pills: a light sweeps across, the icon bobs, the arrow nudges —
   enough to catch the eye without getting big */
.pop-more { margin-top: 10px; }
.pop-more > summary {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; width: auto;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--text);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(129, 140, 248, 0.14)); border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35); animation: pmGlow 2.8s ease-in-out infinite; transition: transform 0.2s, border-color 0.2s;
}
.pop-more > summary small { font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.pop-more > summary::before { order: 9; margin: 0 0 0 2px; animation: pmNudge 1.6s ease-in-out infinite; }
.pop-more > summary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); transform: translateX(-120%); animation: pmSweep 3.4s ease-in-out infinite; pointer-events: none; }
.pop-more > summary:hover { transform: translateY(-1px) scale(1.03); border-color: var(--accent); color: var(--text); }
.pop-more .pm-ic { display: inline-block; animation: pmBob 2.2s ease-in-out infinite; }
.pop-more[open] > summary { animation: none; }
.pop-more[open] > summary::before { animation: none; }
.pop-more[open] > summary::after, .pop-more[open] .pm-ic { animation: none; }
.pop-more[open] > .fx-more-body { animation: pmOpen 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pmGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } 50% { box-shadow: 0 0 14px 0 rgba(34, 211, 238, 0.35); } }
@keyframes pmSweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes pmBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-8deg); } }
@keyframes pmNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes pmOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop-more > summary, .pop-more > summary::before, .pop-more > summary::after, .pop-more .pm-ic { animation: none; } }
.soc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.soc-row { display: flex; align-items: center; gap: 12px; }
.soc-row svg { flex: 0 0 34px; width: 34px; height: 34px; }
.soc-row .text-input { flex: 1; min-width: 0; }
/* the logos beside the name boxes idle-animate: a slow bob with a glow in their own color, plus
   IG's lens pulse + flash dot, TikTok's cyan/red glitch, YouTube's play button pulse */
.soc-ic { overflow: visible; animation: socBob 3s ease-in-out infinite; --glow: #e1306c; }
.soc-ic * { transform-box: fill-box; transform-origin: center; }
.soc-ic.tt { --glow: #25f4ee; animation-delay: -1s; }
.soc-ic.yt { --glow: #ff0033; animation-delay: -2s; }
@keyframes socBob {
  0%, 100% { transform: translateY(0) rotate(0); filter: drop-shadow(0 0 2px var(--glow)); }
  50% { transform: translateY(-3px) rotate(-4deg); filter: drop-shadow(0 0 9px var(--glow)); }
}
.ig-lens { animation: igLens 2.2s ease-in-out infinite; }
@keyframes igLens { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ig-dot { animation: igDot 2.2s steps(1) infinite; }
@keyframes igDot { 0%, 85% { opacity: 1; } 88% { opacity: 0.2; } 92% { opacity: 1; } 95% { opacity: 0.2; } }
.ig-bg { animation: igHue 6s linear infinite; }
@keyframes igHue { 0%, 100% { filter: hue-rotate(0); } 50% { filter: hue-rotate(-35deg); } }
.tt-c { animation: ttC 1.6s steps(1) infinite; }
.tt-r { animation: ttR 1.6s steps(1) infinite; }
.tt-note { animation: ttBeat 0.8s ease-in-out infinite; }
@keyframes ttC { 0%, 70% { translate: 0 0; } 72% { translate: -1.2px 0.4px; } 76% { translate: 0.8px -0.6px; } 80% { translate: 0 0; } }
@keyframes ttR { 0%, 70% { translate: 0 0; } 72% { translate: 1.2px -0.4px; } 76% { translate: -0.8px 0.6px; } 80% { translate: 0 0; } }
@keyframes ttBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } }
.yt-play { animation: ytPlay 1.4s ease-in-out infinite; }
@keyframes ytPlay { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22) translateX(4%); } }
.soc-row:focus-within .soc-ic { animation-duration: 1.2s; }
/* each row sits on a soft moving glow of its platform's colors instead of plain dark */
.soc-row { padding: 8px 8px 8px 12px; border-radius: 14px; background-size: 220% 100%; animation: socRowGlow 6s ease-in-out infinite alternate; }
.soc-row:has(.ig) { background-image: linear-gradient(100deg, rgba(250, 126, 30, 0.22), rgba(214, 41, 118, 0.22), rgba(79, 91, 213, 0.22)); }
.soc-row:has(.tt) { background-image: linear-gradient(100deg, rgba(37, 244, 238, 0.2), rgba(1, 1, 1, 0), rgba(254, 44, 85, 0.2)); }
.soc-row:has(.yt) { background-image: linear-gradient(100deg, rgba(255, 0, 51, 0.24), rgba(255, 0, 51, 0.05), rgba(255, 0, 51, 0.24)); }
@keyframes socRowGlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }.inline-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; cursor: pointer; }
.inline-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
/* volume (More control) */
.vol-bar { display: inline-flex; align-items: center; gap: 8px; }
.vol-bar input[type="range"] { width: 110px; }
/* full screen (vertical.js): the page goes full screen and the 9:16 frame fills its height, on black */
.vframe.is-full, .phone.is-full {
  position: fixed !important; top: 0; left: 50%; transform: translateX(-50%); z-index: 1000;
  height: 100vh; width: auto; max-width: 100vw; aspect-ratio: 9 / 16; border-radius: 0; box-shadow: 0 0 0 100vmax #000;
}
body.has-full { overflow: hidden; }
.vf-exit { display: none; }
.vframe.is-full .vf-exit { display: block; left: auto; right: 14px; }
/* ⛶ top right of the video, over the blurred background (the ✕ above takes over in full screen) */
.vframe .vf-full { left: auto; right: 10px; top: 10px; z-index: 6; }
.vframe.is-full .vf-full { display: none; }
[data-full].on { background: var(--accent); color: var(--on-accent); }
.phone-full { position: absolute; top: 14px; left: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 0.95rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
/* facecam mask editor: the whole source frame with the crop box on top */
.cam-mask { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cam-mask[hidden] { display: none; }
/* while the crop is being placed, that's all the panel shows */
.fx-panel:has(.cam-mask:not([hidden])) > :not(.fx-head, .cam-mask) { display: none; }
.cam-mask-canvas { flex: 1 1 320px; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; touch-action: none; cursor: crosshair; }
.cam-mask-side { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; }
.cam-mask-side p { margin: 0; }

/* Simple timeline by default; "More control" reveals the editing tools */
.timeline-block:not(.more) .adv { display: none !important; }
.timeline-block:not(.more) .tl-x,
.timeline-block:not(.more) .tl-edge { display: none; }
.timeline-block:not(.more) .tl-clip { cursor: pointer; }
.tl-heads { flex: none; width: 104px; border-right: 1px solid rgba(56, 189, 248, 0.12); }
.tl-head {
  height: 84px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted); border-top: 1px solid rgba(56, 189, 248, 0.12); flex-wrap: wrap;
}
.tl-head-ruler { height: 32px; border-top: none; gap: 4px; padding: 0 8px; }
.zoom {
  width: 22px; height: 20px; border: none; border-radius: 5px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.zoom:hover { background: #2c313b; }
/* timeline zoom in the preview's top right: three plain buttons that shine every few seconds
   so they're easy to find (the shine is off for reduced motion) */
.zoom-bar { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35); }
.zoom-bar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-120%); animation: zoomShine 6s ease-in-out infinite; }
@keyframes zoomShine { 0% { transform: translateX(-120%); } 12% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .zoom-bar::after { animation: none; } }
.zoom-btn { width: 30px; height: 28px; padding: 0; font-size: 1.05rem; font-weight: 800; }
.tl-adv-hint { margin: 0; padding: 6px 12px; background: #08121f; }
.tl-head.head-v { height: var(--tl-v, 84px); }
.tl-head.head-a { height: var(--tl-a, 68px); }
#musicVol { width: 70px; height: 14px; accent-color: #a78bfa; }
/* bottom edge of the timeline: drag up / down to change the track height */
.tl-resize { height: 8px; margin-top: -4px; position: relative; z-index: 5; cursor: ns-resize; touch-action: none; border-radius: 4px; }
.tl-resize:hover, .tl-resize.dragging { background: linear-gradient(transparent 3px, var(--accent) 3px 5px, transparent 5px); }
.trk { font-size: 0.65rem; font-weight: 800; color: var(--text); background: var(--surface-2); border-radius: 5px; padding: 1px 5px; }
.voice-badge { font-size: 0.65rem; color: #c4b5fd; }
.tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; position: relative; }
.tl-canvas { position: relative; min-width: 100%; }
/* 45 s export limit line (app.js renderTimeline); wide hit area, thin purple line */
.tl-limit { position: absolute; top: 0; bottom: 0; width: 9px; margin-left: -4px; z-index: 4; cursor: help;
  background: linear-gradient(90deg, transparent 3px, rgba(168, 85, 247, 0.45) 3px, rgba(168, 85, 247, 0.45) 6px, transparent 6px); }
.tl-limit:hover { background: linear-gradient(90deg, transparent 3px, rgba(168, 85, 247, 0.85) 3px, rgba(168, 85, 247, 0.85) 6px, transparent 6px); }
.tl-ruler { display: block; height: 32px; cursor: col-resize; touch-action: none; }
.tl-ruler:hover { background: rgba(34, 211, 238, 0.04); }
.tl-ruler.panning { cursor: grabbing; }
.tl-lane { position: relative; border-top: 1px solid rgba(56, 189, 248, 0.12); }
.lane-v { height: var(--tl-v, 84px); }
/* FX1: the animation studio's weapon card (app.js "Animation row") */
.tl-head.head-fx, .lane-fx { height: 34px; }
.tl-fx { position: absolute; top: 4px; height: 26px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 6px;
  border-radius: 6px; cursor: grab; background: linear-gradient(90deg, #7c3aed, #3b82f6); color: #fff; font: 700 0.72rem "Barlow", sans-serif;
  white-space: nowrap; overflow: hidden; box-shadow: 0 0 10px rgba(124, 58, 237, 0.5); }
.tl-fx:active { cursor: grabbing; }
.tl-fx .tl-x { position: static; margin-left: auto; }
.tl-fx i { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, 0.22); pointer-events: none; } /* in / out = slo-mo zones */
.lane-a { height: var(--tl-a, 68px); }
/* while a clip is dragged: where it starts (and the empty space before it) */
.tl-move-tip { position: absolute; top: 2px; transform: translateX(-50%); z-index: 6; pointer-events: none; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-lane.drop-target { background: rgba(34, 211, 238, 0.06); }
.lane-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
button.lane-empty { border: 0; background: none; cursor: pointer; font: inherit; color: var(--accent); font-weight: 700; }
button.lane-empty:hover { text-decoration: underline; }

.tl-clip {
  position: absolute; top: 6px; bottom: 6px; border-radius: 8px; overflow: hidden; cursor: grab;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tl-clip.v { background: #183457 left center / auto calc(100% * var(--thumb-k, 1)) repeat; } /* thumbnail repeated = filmstrip */
.tl-clip.v::before { /* film sprocket strip along the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.55) 0 6px, transparent 6px 10px);
}
.tl-clip.a { background: #0b2a2e; cursor: pointer; }
.tl-clip.m { background: #24183f; touch-action: none; } /* the song (app.js "Music track") */
.tl-clip.m canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-clip.m .tl-trim { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; cursor: ew-resize; border-radius: 0 6px 6px 0; }
.tl-clip.m .tl-trim:hover { background: rgba(255, 255, 255, 0.35); }
/* effect lanes (health / gun / facecam), More control only */
.tl-clip.a canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-clip.selected { box-shadow: inset 0 0 0 2px #fff; }
/* drag-box pick (app.js "Pick many"): the box, and the clips it picked (cyan) */
.tl-clip.picked { box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px rgba(34, 211, 238, 0.45); cursor: grab; }
.tl-marquee { position: absolute; z-index: 7; pointer-events: none; border: 1px solid var(--accent); background: rgba(34, 211, 238, 0.12); border-radius: 3px; }
.tl-clip.dragging { opacity: 0.35; }
.tl-name, .tl-dur {
  position: absolute; font-size: 0.66rem; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: rgba(5, 11, 20, 0.7); pointer-events: none; white-space: nowrap;
}
/* clip name chip: sits under the sprocket strip, with a yellow bar on its left a bit taller than the text */
.tl-name { top: 10px; left: 8px; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis;
  padding: 3px 7px 3px 9px; border-radius: 5px; font-size: 0.68rem; letter-spacing: 0.02em; line-height: 1.2;
  background: rgba(5, 11, 20, 0.78); backdrop-filter: blur(2px); }
.tl-name::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #facc15; }
.tl-clip.m .tl-name::before { background: #a78bfa; }
.tl-dur { bottom: 4px; right: 6px; font-variant-numeric: tabular-nums; }
.tl-x {
  position: absolute; top: 6px; right: 5px; width: 18px; height: 18px; border-radius: 4px; border: none;
  background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 0.66rem; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.12s;
}
.tl-clip:hover .tl-x, .tl-clip.selected .tl-x { opacity: 1; }
.tl-x:hover { background: var(--bad); }
.tl-edge { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; touch-action: none; z-index: 2; }
.tl-edge.left { left: 0; }
.tl-edge.right { right: 0; }
.tl-clip:hover .tl-edge, .tl-clip.selected .tl-edge { background: rgba(255, 255, 255, 0.85); }
.tl-clip:hover .tl-edge.left, .tl-clip.selected .tl-edge.left { border-radius: 7px 0 0 7px; }
.tl-clip:hover .tl-edge.right, .tl-clip.selected .tl-edge.right { border-radius: 0 7px 7px 0; }
.tl-insert { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--accent); border-radius: 2px; pointer-events: none; z-index: 3; }

.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 4; }
/* the cap is a bigger grab area than its triangle, so it's easy to pick up */
.tl-playhead-cap { position: absolute; top: 0; left: -9px; width: 20px; height: 22px; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.tl-playhead-cap::after {
  content: ""; position: absolute; top: 0; left: 3px; width: 14px; height: 14px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); transition: background 0.12s, transform 0.12s;
}
.tl-playhead-cap:hover::after { transform: scale(1.15); }
.tl-playhead.dragging .tl-playhead-cap::after { transform: scale(1.2); }
.tl-playhead.snapped .tl-playhead-cap::after { background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7); }
.tl-playhead.snapped { box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.tl-hint { margin: 12px 2px 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---------- Steps 5–6: phone preview, text & framing ---------- */
.vert-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 760px) { .vert-layout { grid-template-columns: 1fr; justify-items: center; } .vert-panel { width: 100%; } }
.vert-panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* Export (step 6): three quality cards, then the record button and a progress bar */
.export-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.export-opt { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; }
.export-opt b { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.export-opt.on { border-color: var(--accent); box-shadow: var(--accent-glow); }
.export-opt:disabled { opacity: 0.5; cursor: not-allowed; }
.export-run { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
/* ⚙ export settings */
.export-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin: 10px 0 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); }
.export-settings > label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.export-settings select { padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0b1420; color: var(--text); font: inherit; }
.export-settings input[type="range"] { accent-color: var(--accent); }
.export-checks, .export-settings > p, .export-settings > .export-run { grid-column: 1 / -1; }
.export-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.88rem; }
.export-checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.export-checks input { accent-color: var(--accent); }
.export-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 12px; }
/* Socials font picker: each name shown in its own font */
.font-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto; padding: 2px; margin-bottom: 8px; }
.font-picks button { padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-size: 0.95rem; line-height: 1.1; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-picks button.on { border-color: var(--accent); background: rgba(34, 211, 238, 0.12); }
/* Animations (step 4): pick cards, then the edit as one bar with the animations on it */
.anim-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.anim-pick { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.anim-pick:hover { border-color: var(--accent); }
.anim-pick video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#1a2432 0 25%, #121a26 0 50%) 0 0 / 16px 16px; }
.anim-pick span { font-size: 0.85rem; font-weight: 600; }
.anim-none b { display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; background: #121a26; color: var(--muted); font-size: 2rem; }
.anim-none.on { border-color: var(--accent); }
/* the step 4 timeline: a ruler, the video's clips, and the animations (FX) on their own lane */
.anim-track { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 6px; border-radius: 10px; background: #0b1420;
  border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; touch-action: none; user-select: none; overflow: hidden; }
.anim-ruler { position: relative; height: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.anim-ruler span { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); padding: 3px 0 0 4px; font-size: 0.65rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.anim-lane { position: relative; height: 26px; }
.anim-lane-tag { position: absolute; z-index: 1; left: 6px; top: 50%; transform: translateY(-50%); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); opacity: 0.6; pointer-events: none; }
.anim-part { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: #1a2a3c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.anim-item { position: absolute; top: 0; bottom: 0; border-radius: 5px; border: 1px solid var(--accent); background: rgba(34, 211, 238, 0.14); color: var(--text);
  font-size: 0.7rem; font-weight: 600; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; cursor: grab; }
.anim-item.on { background: var(--accent); color: var(--on-accent); }
.anim-item:active { cursor: grabbing; }
.anim-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 2; }
.anim-playhead::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
/* Blur (step 6, under Export): the command to run, with a copy button */
.blur-cmd { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.blur-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.85rem; color: var(--accent); }
/* scaleX, not width: the bar moves every frame of an export, and a width change re-lays-out the page */
.export-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
/* while recording (app.js "Export") every page animation holds still: off screen they still cost a
   style recalc + paint each frame on the thread that draws the export */
html.exporting *, html.exporting *::before, html.exporting *::after { animation-play-state: paused !important; }
@media (min-width: 761px) { .phone-slot { position: sticky; top: 150px; } } /* stays in view beside the controls */
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 9px #0b1220, 0 0 0 10px var(--line), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(34, 211, 238, 0.12);
  container-type: inline-size;
}
.phone[hidden] { display: none; }
.phone-bg, .phone-screen { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-screen video { width: 100%; height: 100%; display: block; background: transparent; }
.phone-title {
  position: absolute; left: 7%; right: 7%; text-align: center; line-height: 1.05; pointer-events: none;
  overflow-wrap: anywhere; z-index: 2;
}
.phone-title[data-pos="top"] { top: 9%; }
.phone-title[data-pos="middle"] { top: 50%; transform: translateY(-50%); }
.phone-title[data-pos="bottom"] { bottom: 9%; }
.phone-side { position: absolute; right: 10px; bottom: 26%; display: flex; flex-direction: column; gap: 18px; font-size: 1.3rem; opacity: 0.85; z-index: 2; pointer-events: none; text-shadow: 0 1px 4px #000; }
.phone-play {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--accent);
}
.phone-play.playing { opacity: 0.5; }
.phone.empty::after {
  content: "Build your video in step 1 first"; position: absolute; inset: 0; display: grid; place-items: center; padding: 30px;
  text-align: center; color: var(--muted); font-weight: 600; z-index: 4;
}

.text-input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: 1.05rem; font-weight: 600;
}
.text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: none; background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.chip:hover { background: #16294a; }
.chip.on { background: var(--accent); color: var(--on-accent); }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.preset {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: none; border-radius: 12px; color: var(--text); font: inherit;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.15s;
}
.preset:hover { box-shadow: inset 0 0 0 1px var(--line); }
.preset.on { box-shadow: inset 0 0 0 2px var(--accent), var(--accent-glow); }
.preset-sample { font-size: 1.7rem; line-height: 1.1; margin-bottom: 6px; }
.preset-name { font-weight: 700; }
.text-controls { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 22px 0 18px; font-weight: 600; font-size: 0.9rem; }
.text-controls label { display: inline-flex; align-items: center; gap: 8px; }
.text-controls .grow { flex: 1; min-width: 160px; }
.text-controls .grow input { flex: 1; }
input[type="color"] { width: 38px; height: 30px; padding: 0; border: none; border-radius: 6px; background: none; cursor: pointer; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.seg button {
  padding: 8px 16px; border: none; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg button.on .muted { color: inherit; opacity: 0.7; }
.seg-big button { padding: 10px 20px; }
.soc-pick-label { margin: 10px 0 6px; }
.soc-pick-label:first-of-type { margin-top: 0; }
.frame-note { margin: 18px 0; min-height: 2.6em; white-space: pre-wrap; }
.slider-row { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.slider-row input:disabled { opacity: 0.35; }

/* ---------- Steps 2–5 ---------- */
.coming-soon {
  display: grid; place-items: center; min-height: 240px; background: var(--surface); border-radius: var(--radius);
  color: var(--muted); font-weight: 700;
}
/* ---------- Step 3 Sounds (sounds.js) ---------- */
/* one search box, tabs, then plain track rows: # · cover · title/artist · ▶ · ＋ */
.snd { background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.snd-search { display: flex; gap: 10px; margin-bottom: 14px; }
.snd-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: none; border-radius: 999px; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.snd-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.snd-own {
  flex: none; height: 46px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
}
.snd-own:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.snd-exact-btn { flex: none; height: 46px; padding: 0 16px; border: none; border-radius: 999px; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 0.85rem; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.snd-exact-btn:hover, .snd-exact-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.snd-exact-btn[aria-expanded="true"] { color: var(--accent); }
/* 🎤 title + artist: two boxes, searched together */
.snd-exact { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: -4px 0 14px; }
.snd-exact[hidden] { display: none; }
.snd-exact label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.snd-exact input { height: 40px; padding: 0 14px; border: none; border-radius: 10px; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.snd-exact input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.snd-exact .btn-mini { height: 40px; padding: 0 18px; }
/* search options: where from + kind (filter the found list, no new search) */
.snd-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.snd-opts[hidden] { display: none; }
.snd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.snd-chips button { border: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.snd-chips button:hover { color: var(--text); }
.snd-chips button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); box-shadow: none; }
/* ---------- Pick the part (app.js) + music drop ---------- */
.part-pick { width: min(860px, calc(100vw - 32px)); border: none; border-radius: var(--radius); padding: 18px; color: var(--text);
  background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line); }
.part-pick::backdrop { background: rgba(2, 6, 23, 0.7); }
.pp-head { display: flex; align-items: center; justify-content: space-between; }
.pp-head h3 { margin: 0; font-family: var(--display); text-transform: uppercase; }
.pp-wave { display: block; width: 100%; height: 130px; border-radius: 10px; background: var(--surface-2); cursor: pointer; touch-action: none; margin: 8px 0 12px; }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pp-len { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.pp-len input { accent-color: var(--accent); }
.pp-at { margin-left: auto; font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.pp-lines { margin-top: 12px; max-height: 180px; }
.pp-lines li { display: flex; gap: 10px; padding: 5px 10px; cursor: pointer; font-size: 0.85rem; }
.pp-lines li:hover { background: rgba(34, 211, 238, 0.08); }
.pp-lines li b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.music-drop { outline: 2px dashed #a78bfa; outline-offset: -2px; background-color: rgba(167, 139, 250, 0.12) !important; }
#laneM.music-drop::after { content: "Drop to use as music"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #a78bfa; pointer-events: none; }
/* ---------- Lyric mode (dev, lyrics.js) ---------- */
.lyr { margin-bottom: 20px; }
.lyr .block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lyr-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.lyr-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.lyr-tabs button { flex: none; border: none; background: none; color: var(--muted); cursor: pointer; padding: 8px 12px 7px; font: inherit; font-weight: 700;
  font-size: 0.88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lyr-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.lyr-page[hidden] { display: none; }
.lyr-find, .lyr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.lyr-find input, .lyr-row select, .lyr-c select { height: 36px; padding: 0 12px; border: none; border-radius: 8px; font: inherit; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lyr-find input { flex: 1 1 140px; min-width: 0; }
.lyr-offset button { border: none; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
  color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lyr-offset output { min-width: 70px; text-align: center; font-weight: 800; color: var(--accent); }
.lyr-results { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lyr-results button { width: 100%; text-align: left; border: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: 0.85rem;
  color: var(--text); background: var(--surface-2); }
.lyr-results button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lyr-results small { display: block; color: var(--muted); }
.lyr-lines { list-style: none; margin: 0 0 10px; padding: 0; max-height: 240px; overflow-y: auto; border-radius: 8px; background: var(--surface-2); }
.lyr-lines li[data-line] { display: flex; gap: 10px; padding: 5px 10px; cursor: pointer; font-size: 0.85rem; }
.lyr-lines li[data-line]:hover { background: rgba(34, 211, 238, 0.08); }
.lyr-lines li b { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.lyr-lines li.now { background: rgba(34, 211, 238, 0.16); }
.lyr-lines li.now b, .lyr-lines li.now span { color: var(--accent); }
.lyr-lines li.lyr-blank span { color: var(--muted); }
.lyr-edit summary { cursor: pointer; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.lyr-edit { margin-top: 10px; }
.lyr-words { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.lyr-words textarea { width: 100%; box-sizing: border-box; border: none; border-radius: 8px; padding: 10px; font: 600 0.95rem/1.6 Barlow, sans-serif;
  color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); resize: vertical; }
.lyr-sync { width: 100%; font-size: 1rem; }
#lyrTap.on { background: #ef4444; color: #fff; }
.lyr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; margin-bottom: 12px; }
.lyr-c { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.lyr-c output { color: var(--accent); font-weight: 800; }
.lyr-c input[type="range"] { width: 100%; accent-color: var(--accent); }
.lyr-col { flex-direction: row; align-items: center; justify-content: space-between; }
.lyr-col input[type="color"] { width: 42px; height: 28px; border: none; padding: 0; background: none; cursor: pointer; }
.lyr-wide { grid-column: 1 / -1; }
.lyr-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lyr-presets button { border: none; border-radius: 8px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 700;
  color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lyr-presets button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.lyr-presets .lyr-reset { color: var(--muted); }
.slow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 10px; font-size: 0.85rem; }
.slow-row input { width: 64px; height: 28px; border: none; border-radius: 6px; padding: 0 6px; font: inherit; color: var(--text); background: var(--surface); }
.slow-row button { margin-left: auto; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
/* slow-mo zones on the video lane (app.js renderSlow) */
.tl-slow { position: absolute; top: 0; height: 16px; z-index: 3; pointer-events: none; border-radius: 4px; background: rgba(167, 139, 250, 0.85);
  color: #1e1b4b; font-size: 0.65rem; font-weight: 800; line-height: 16px; padding: 0 4px; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.snd-src { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.snd-full { font-size: 0.6rem; font-weight: 800; color: var(--accent); background: rgba(34, 211, 238, 0.12); border-radius: 3px; padding: 1px 4px; margin-left: 6px; vertical-align: 2px; }
.music-now { margin: 0 0 12px; font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.music-now button { margin-left: 8px; border: none; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
.snd-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.snd-tabs button {
  flex: none; border: none; background: none; color: var(--muted); cursor: pointer; padding: 10px 14px 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.snd-tabs button:hover { color: var(--text); }
.snd-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.snd-note { margin: 10px 2px 8px; font-size: 0.8rem; color: var(--muted); min-height: 1em; }
.snd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.snd-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.snd-row + .snd-row { border-top: 1px solid var(--line); }
.snd-row:hover { background: var(--surface-2); }
.snd-row.playing { background: rgba(34, 211, 238, 0.08); }
.snd-rank { flex: none; width: 24px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.snd-row.playing .snd-rank { color: var(--accent); }
.snd-art { flex: none; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; }
.snd-info { flex: 1; min-width: 0; }
.snd-info > b, .snd-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-info > b { font-size: 0.95rem; font-weight: 600; }
.snd-info > span { font-size: 0.8rem; color: var(--muted); }
.snd-e { font-size: 0.6rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 3px; padding: 1px 4px; margin-left: 6px; vertical-align: 2px; }
.snd-play, .snd-add {
  flex: none; width: 38px; height: 38px; border: none; border-radius: 50%; cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 800;
  display: grid; place-items: center;
}
.snd-play { background: rgba(34, 211, 238, 0.12); color: var(--accent); }
.snd-add { background: var(--accent); color: var(--on-accent); font-size: 1.15rem; }
.snd-play:hover:not(:disabled), .snd-row.playing .snd-play { background: var(--accent); color: var(--on-accent); }
.snd-add:hover:not(:disabled) { filter: brightness(1.12); }
.snd-add.on { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.snd-play:disabled, .snd-add:disabled { opacity: 0.3; cursor: not-allowed; }
.snd-empty { color: var(--muted); font-size: 0.9rem; padding: 18px 6px; }
@media (max-width: 560px) {
  .snd { padding: 12px; margin-left: -4px; margin-right: -4px; }
  .snd-own span, .snd-exact-btn span { display: none; } /* just 📁 / 🎤 on a phone */
  .snd-tabs { gap: 0; }
  .snd-tabs button { flex: 1 1 auto; padding: 9px 4px 8px; font-size: 0.86rem; letter-spacing: 0; }
  .snd-row { gap: 9px; padding: 8px 2px; }
  .snd-rank { width: 18px; font-size: 0.95rem; }
  .snd-art { width: 40px; height: 40px; }
}
/* 📺 TikToks tab: video cards, each with its sound under it */
.trend-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 4px; }
.trend-video { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.trend-video:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
/* the card's picture is a button: click it and TikTok's player takes its place on this page */
.trend-watch { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.trend-video img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--surface); }
.trend-play-big { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 1.1rem; pointer-events: none; }
.trend-watch .snd-info { padding: 8px 10px; }
.trend-watch .snd-info b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.85rem; line-height: 1.25; }
.trend-vsound { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); }
.trend-vsound .snd-info b { font-size: 0.8rem; }
.trend-vsound .snd-play, .trend-vsound .snd-add { width: 32px; height: 32px; font-size: 0.85rem; }
.sounds-timeline { margin-bottom: 20px; }
.trend-frame-box { position: relative; overflow: hidden; width: 100%; background: #000; }
/* TikTok's embed is drawn at 325 × 740; sounds.js scales this box so the card is never zoomed in or out */
.trend-frame { position: absolute; left: 0; top: 0; width: 325px; height: 740px; border: 0; transform-origin: 0 0; }
.trend-video > .trend-open { display: block; flex: none; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.trend-video > .trend-open:hover { text-decoration: underline; }
.step-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.step-nav .btn:disabled { visibility: hidden; }
#nextBtn:disabled { visibility: visible; }

/* ---------- About ---------- */
.about .lead { font-size: 1.1rem; max-width: 700px; margin: 0 0 28px; color: #cfe3f5; }
.about h3 { margin: 40px 0 16px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.facts { padding-left: 20px; display: grid; gap: 14px; max-width: 720px; margin: 0 0 12px; }
.facts sup a { color: var(--accent); }
.sources { color: var(--muted); font-size: 0.78rem; padding-left: 20px; margin-top: 16px; }
.sources a { text-decoration: underline; }

.footer { text-align: center; padding: 72px 20px 40px; margin-top: 120px; border-top: 1px solid var(--line); }
.footer-tag {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 14px;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; font-size: 0.85rem; color: var(--muted);
}
.footer-tag::before, .footer-tag::after { content: ""; width: 60px; height: 1px; background: var(--line); }
.toast {
  position: fixed; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 30; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
  background: var(--surface-2); color: var(--text); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body:has(.dev-bar:not(.hidden)) .footer { padding-bottom: 90px; }

/* ---------- Customer vs developer view ---------- */
.view-customer .dev-only, .view-dev .customer-only { display: none !important; }

/* dev-only things wear the dev bar's purple + a DEV pill, so it's clear customers won't see them */
.view-dev .dev-only:not(.lab-open, .dev-lab, .dev-step, .dev-step-page, .tpl-rec-bar), .view-dev .dev-lab .lab-card { outline: 1px dashed #a78bfa; outline-offset: 3px; border-radius: 8px; }
.view-dev .dev-only:not(.lab-open, .tpl-maker, .dev-lab, button, details, .dev-step, .dev-step-page, .tpl-rec-bar) { background-color: rgba(167, 139, 250, 0.07); color: #ddd6fe; }
.view-dev .dev-only:not(.lab-open, .tpl-maker, .dev-lab, button, details, .block, .dev-step, .dev-step-page, .tpl-rec-bar)::before,
.view-dev .dev-step-page h2::after,
.view-dev .block.dev-only > .block-head h3::after,
.view-dev button.dev-only:not(.lab-open)::after,
.view-dev details.dev-only > summary::after,
.view-dev .tpl-maker-head strong::after,
.view-dev .lab-head h3::after {
  content: "DEV"; display: inline-block; vertical-align: middle; margin: 0 6px; padding: 1px 6px;
  background: #a78bfa; color: #111; border-radius: 999px;
  font: 700 0.62rem/1.4 "Barlow", sans-serif; letter-spacing: 0.06em;
}
.view-dev .dev-only:not(.lab-open, .tpl-maker, .dev-lab, button, details, .block, .dev-step, .dev-step-page, .tpl-rec-bar)::before { margin: 0 6px 4px 0; align-self: flex-start; }
.view-dev button.dev-only:not(.lab-open) { color: #c4b5fd; border-color: #a78bfa; }

.dev-bar {
  position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); z-index: 20;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(28, 21, 48, 0.92); border: 1px solid #a78bfa; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 0.75rem; opacity: 0.85; transition: opacity 0.15s;
}
.dev-bar:hover { opacity: 1; }
.dev-tag { color: #c4b5fd; font-weight: 700; padding: 0 6px; white-space: nowrap; }
.dev-bar button {
  background: transparent; color: var(--muted); border: none; border-radius: 999px; padding: 4px 10px;
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.dev-bar button.active { background: #a78bfa; color: #111; }
@media (max-width: 480px) { .dev-tag { display: none; } }

/* developer-only panels */
.settings { background: var(--surface); border-radius: var(--radius); padding: 18px; align-self: start; }
.settings h3 { margin-bottom: 12px; }

/* ---------- 🧪 Dev lab (devlab.js) ---------- */
.dev-bar .lab-open { color: #c4b5fd; }
.dev-bar .lab-open.on { background: var(--accent); color: var(--on-accent); }
.dev-lab {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: rgba(2, 6, 14, 0.72); backdrop-filter: blur(6px);
}
.dev-lab[hidden] { display: none; }
.lab-card {
  width: min(1180px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid #a78bfa; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lab-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: -16px; margin: -16px -18px 0; padding: 14px 18px 10px; background: var(--surface); z-index: 1; border-bottom: 1px solid var(--line); }
.lab-head h3 { margin: 0; }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.lab-tabs button {
  background: var(--surface-2); color: var(--muted); border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.lab-tabs button.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.lab-pane[data-pane="detect"], .lab-pane[data-pane="libs"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.lab-pane[hidden] { display: none !important; }
.lab-pane .trigger { margin: 0; }
.lab-pane[data-pane="tune"], .lab-pane[data-pane="saved"] { max-width: 520px; }
.lab-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 48px 16px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.lab-drop[hidden] { display: none; }
.lab-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-bottom: 12px; }
.lab-modes button {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px;
}
.lab-modes button small { color: var(--muted); font-size: 0.76rem; line-height: 1.3; }
.lab-modes button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--accent-glow); }
.lab-modes button:disabled { opacity: 0.55; cursor: wait; }
.lab-rate { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.lab-rate[hidden] { display: none; }
.lab-stars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.lab-stars button { font: 700 0.95rem var(--display); padding: 6px 0; border-radius: 6px; cursor: pointer; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.lab-stars button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.lab-rate textarea { width: 100%; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; font-size: 0.85rem; }
.lab-drop.over, .lab-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.lab-run { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.lab-run[hidden] { display: none; }
@media (max-width: 860px) { .lab-run { grid-template-columns: minmax(0, 1fr); } }
.lab-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lab-left video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); }
.lab-strip { width: 100%; height: 70px; border-radius: 8px; background: var(--bg); cursor: pointer; }
.lab-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lab-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lab-prog { position: relative; height: 24px; border-radius: 999px; background: var(--surface-2); overflow: hidden; font-size: 0.8rem; }
.lab-prog[hidden] { display: none; }
.lab-prog-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); border-right: 2px solid var(--accent); transition: width 0.2s; }
.lab-prog span { position: relative; display: block; padding: 3px 10px; }
.lab-sum { margin: 0; font-weight: 700; }
.lab-check { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 5px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.8rem; }
.lab-check:empty { display: none; }
.lab-check li { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); gap: 6px; color: var(--muted); }
.lab-check li b { color: var(--text); }
.lab-check li.warn::before { content: "⚠"; color: var(--warn); }
.lab-check li.ok::before { content: "✓"; color: var(--good); }
.lab-check li.info::before { content: "·"; color: var(--muted); text-align: center; }
.lab-row .warn { display: block; color: var(--warn); font-size: 0.78rem; margin-top: 2px; }
.lab-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.lab-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--muted); font-size: 0.85rem;
}
.lab-row.clip { border-left-color: var(--accent); }
.lab-row.more { border-left-color: var(--warn); }
.lab-row.skip { border-left-color: var(--bad); }
.lab-row.idle { border-left-color: #ffd23f; }
.lab-row.mine { border-left-color: var(--good); }
.lab-row .when { font: 700 0.8rem var(--display); background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; cursor: pointer; }
.lab-row .why b { display: block; }
.lab-row .why span { color: var(--muted); }
.lab-row .marks { display: flex; gap: 4px; }
.lab-row .marks button { white-space: nowrap; }
.lab-row .done { color: var(--good); font-weight: 700; white-space: nowrap; }
.trigger {
  border: none; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem;
}
.trigger legend { float: left; width: 100%; font-weight: 700; padding: 0; margin-bottom: 2px; }
.trigger p { margin: 0; }
.sub { display: flex; flex-direction: column; gap: 8px; }
.range { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; }
.slider { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
select, input[type="number"] {
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit;
}
input[type="number"] { width: 64px; }
input[type="checkbox"], input[type="range"] { accent-color: var(--accent); }
/* Gun library (dev Detection panel) */
.gun-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.gun-add input[type="text"] { width: 110px; }
.gun-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; font-size: 0.82rem; }
.gun-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.gun-list li > span { min-width: 0; overflow-wrap: anywhere; }
/* HUD samples (hudlearn.js): name + buttons, then the picture with the cut outline under them */
.hud-list li.hud-sample { flex-wrap: wrap; }
.hud-list li.hud-sample > span { flex: 1; }
.hud-thumb { display: block; flex-basis: 100%; width: 100%; border-radius: 6px; background: #000; }
.hud-thumb.marking { cursor: crosshair; outline: 2px solid #facc15; }
/* "Beta" tag inside a button (Auto Clip) */
.beta {
  margin-left: 4px; padding: 1px 6px; border-radius: 999px; vertical-align: 2px;
  background: rgba(5, 11, 20, 0.35); color: inherit; font-size: 0.68em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.report { margin-top: 20px; }
.report-canvas { width: 100%; height: 270px; display: block; background: #0c0e12; border-radius: var(--radius-sm); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* ---------- Hover: things grow a little, with a springy ease ----------
   Buttons, tools, chips, step dots, cards and blocks 1 + 2 scale up on hover and dip when pressed;
   the icons in them wiggle. Timeline parts (.tl-clip) are left alone so dragging/trimming stays exact. */
:root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn, .tool, .chip, .seg button, .btn-mini, .stepper .num, .feature, .creator, .soc-row {
  transition: transform 0.35s var(--spring), background-color 0.2s, color 0.2s, box-shadow 0.3s, filter 0.2s, opacity 0.15s;
}
.btn:hover:not(:disabled), .chip:hover, .seg button:hover, .btn-mini:hover:not(:disabled) { transform: translateY(-2px) scale(1.06); }
.tool:hover:not(:disabled) { transform: scale(1.08); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px -8px rgba(34, 211, 238, 0.75); }
.btn-soft:hover:not(:disabled), .chip:hover { box-shadow: 0 8px 22px -12px rgba(34, 211, 238, 0.6); }
.btn:active:not(:disabled), .tool:active:not(:disabled), .chip:active, .seg button:active { transform: scale(0.95); transition-duration: 0.1s; }
.stepper li:not(.locked):hover .num { transform: scale(1.18); box-shadow: 0 0 16px rgba(34, 211, 238, 0.55); }
.feature:hover, .creator:hover { transform: translateY(-4px) scale(1.02); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 40px -22px rgba(34, 211, 238, 0.6); }
.soc-row:hover { transform: scale(1.02); }
.fancy { transition: box-shadow 0.35s, transform 0.45s var(--spring); }
.fancy:hover { transform: scale(1.01); }
.fancy .source:hover { transform: translateX(3px) scale(1.02); }
.fancy .clip-card { transition: transform 0.4s var(--spring), box-shadow 0.3s; }
.fancy .clip-card:hover { transform: translateY(-5px) scale(1.06); z-index: 1; }
/* an icon inside a hovered button gives a little wiggle */
.btn:hover:not(:disabled) svg, .feature:hover .feature-icon { animation: hoverWiggle 0.5s var(--spring); }
@keyframes hoverWiggle { 0% { rotate: 0deg; } 30% { rotate: -10deg; } 60% { rotate: 8deg; } 100% { rotate: 0deg; } }

/* ---------- Auto Clip loading bar (app.js cutProgress) ----------
   A radar sweeps while it scans; the bar fills with a moving shine; it flashes green when done. */
.cut-box {
  display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 16px 18px;
  border-radius: var(--radius-sm); position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(8, 20, 36, 0.6) 60%), var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25), 0 16px 40px -24px rgba(34, 211, 238, 0.7);
  animation: itemIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cut-box[hidden] { display: none; }
.cut-radar {
  position: relative; flex: 0 0 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0 30%, transparent 31% 48%, rgba(34, 211, 238, 0.15) 49% 50%, transparent 51%), #06121f;
  box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.5);
}
.cut-radar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.65), transparent 25%);
  animation: radarSpin 1.4s linear infinite;
}
.cut-radar i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ff4d6d; top: 14px; left: 32px; box-shadow: 0 0 10px #ff4d6d; animation: radarBlip 1.4s ease-out infinite; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarBlip { 0%, 20% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
.cut-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cut-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cut-top strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem; }
.cut-pct { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(34, 211, 238, 0.5); }
.cut-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.cut-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit; position: relative;
  background: linear-gradient(90deg, #0891b2, var(--accent), #a5f3fc);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cut-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 18px);
  animation: barStripes 0.8s linear infinite;
}
@keyframes barStripes { from { background-position: 0 0; } to { background-position: 38px 0; } }
#cutWho { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-box.finished .cut-bar i { background: linear-gradient(90deg, #059669, var(--good)); box-shadow: 0 0 18px rgba(52, 211, 153, 0.8); }
.cut-box.finished .cut-pct { color: var(--good); text-shadow: 0 0 14px rgba(52, 211, 153, 0.5); }
.cut-box.finished .cut-radar::before { animation: none; background: radial-gradient(circle, rgba(52, 211, 153, 0.5), transparent 70%); }
.cut-box.finished .cut-radar i { display: none; }
.cut-cancel {
  flex: none; align-self: center; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 700 0.9rem var(--body, inherit); color: #fecaca; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.45);
}
.cut-cancel:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
.cut-cancel[hidden] { display: none; }

/* ---------- Voice guide ask: 5 s motion graphic on repeat (tutorial.js) ---------- */
/* Everything runs on one 5 s loop: orb punches in, sound bars bounce, three step chips fly
   through one after another, the headline words re-punch at the start of each loop. */
.guide-card { animation: fancyIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vg-stage {
  position: relative; height: 190px; border-radius: 16px; overflow: hidden; margin-bottom: 16px;
  background: radial-gradient(80% 90% at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%), #06101c;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
}
.vg-orb {
  position: absolute; left: 50%; top: 28px; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.1rem;
  background: linear-gradient(135deg, #67e8f9, var(--accent) 55%, #0891b2);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.55); animation: vgOrb 5s cubic-bezier(0.3, 1.5, 0.5, 1) infinite;
}
.vg-orb::before, .vg-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: nRing 1.25s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.vg-orb::after { animation-delay: 0.62s; }
@keyframes vgOrb { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 10%, 90% { transform: none; opacity: 1; } 100% { transform: scale(0.6); opacity: 0; } }
.vg-wave { position: absolute; left: 0; right: 0; top: 116px; display: flex; justify-content: center; align-items: center; gap: 5px; height: 26px; }
.vg-wave i { width: 5px; height: 100%; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: scaleY(0.25); animation: vgBar 0.5s ease-in-out infinite alternate; }
.vg-wave i:nth-child(2n) { animation-delay: 0.15s; } .vg-wave i:nth-child(3n) { animation-delay: 0.3s; } .vg-wave i:nth-child(4) { animation-delay: 0.08s; }
@keyframes vgBar { to { transform: scaleY(1); } }
.vg-chips { position: absolute; left: 0; right: 0; bottom: 12px; height: 30px; }
.vg-chips b {
  position: absolute; left: 50%; top: 0; padding: 5px 14px; border-radius: 999px; white-space: nowrap; font-size: 0.85rem;
  background: rgba(34, 211, 238, 0.14); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45); color: var(--text);
  opacity: 0; animation: vgChip 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.vg-chips b:nth-child(2) { animation-delay: 1.4s; } .vg-chips b:nth-child(3) { animation-delay: 2.8s; }
@keyframes vgChip {
  0% { opacity: 0; transform: translateX(80px) scale(0.8); } 5% { opacity: 1; transform: translateX(-50%); }
  24% { opacity: 1; transform: translateX(-50%); } 30%, 100% { opacity: 0; transform: translateX(-180px) scale(0.8); }
}
.vg-title { font-family: var(--display); text-transform: uppercase; }
.vg-title span { display: inline-block; animation: vgWord 5s cubic-bezier(0.3, 1.6, 0.5, 1) infinite; }
.vg-title span:nth-child(2) { animation-delay: 0.08s; } .vg-title span:nth-child(3) { animation-delay: 0.16s; }
.vg-title span:nth-child(4) { animation-delay: 0.24s; color: var(--accent); }
@keyframes vgWord { 0% { transform: translateY(14px) scale(0.6); opacity: 0; } 8%, 100% { transform: none; opacity: 1; } }
/* ---------- Liquid glass (trial; remove class="glass" on <html> to turn off) ---------- */
.glass {
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 45%, rgba(34, 211, 238, 0.04));
  --glass-blur: blur(22px) saturate(180%) brightness(1.08);
  --glass-edge: inset 1px 1px 0 rgba(255, 255, 255, 0.28), inset -1px -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 22px rgba(255, 255, 255, 0.035), 0 10px 34px rgba(0, 0, 0, 0.35);
}
/* soft colour behind everything so the glass has something to bend */
.glass body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, rgba(129, 140, 248, 0.18), transparent 70%),
    radial-gradient(45% 40% at 60% 85%, rgba(255, 77, 109, 0.12), transparent 70%);
  filter: blur(30px);
}
.glass .block, .glass .creator, .glass .settings, .glass .coming-soon, .glass .modal-card,
.glass .guide-pill, .glass .adjust-panel, .glass .cut-box {
  background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge); border: none;
}
.glass .site-nav, .glass .stepper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: none; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 8px 30px rgba(0, 0, 0, 0.3);
}
/* buttons and pills: lighter glass with a bright top lip */
/* no backdrop blur on these: they sit on already-blurred glass, and one blur pass per button made the studio lag */
.glass .btn-soft, .glass .btn-mini, .glass .guide-pill button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.glass .btn-soft:hover:not(:disabled), .glass .btn-mini:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
}
/* ⚡ Performance on: solid cyan + glow (see [data-perf].on) over the glass look */
.glass .btn-soft[data-perf].on, .glass .btn-soft[data-perf].on:hover:not(:disabled) {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.85), 0 0 26px 6px rgba(34, 211, 238, 0.45);
}
.glass .btn-primary {
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 6px rgba(2, 18, 28, 0.25), var(--accent-glow);
}

/* ---------- Title style + pickers (step 2) ---------- */
/* the title's text sits in .title-fx: the animation moves it (vertical.js animateTitle), the parent keeps the position */
.title-fx { display: inline-block; max-width: 100%; transform-origin: 50% 50%; will-change: transform; }
.title-fx.boxed { background: rgba(0, 0, 0, 0.6); padding: 0.08em 0.3em; border-radius: 0.2em; }
.anim-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-bottom: 4px; }
.anim-picks button, .pill-toggles button {
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text); font: 600 0.85rem inherit; font-family: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); cursor: pointer; text-align: left;
  transition: transform 0.18s var(--spring, ease), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.anim-picks button:hover, .pill-toggles button:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.45); }
.anim-picks button.on, .pill-toggles button.on {
  border-color: var(--accent); color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(129, 140, 248, 0.18)); box-shadow: 0 0 0 1px var(--accent), 0 6px 20px -8px rgba(34, 211, 238, 0.8);
}
.pill-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-toggles button { border-radius: 999px; padding: 7px 14px; }
/* Enlarge (vertical.js "Title enlarge"): the title's letters as tiles; picked = cyan, drag paints a range */
.big-letters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; margin: 4px 0 8px; padding: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); user-select: none; touch-action: none; cursor: text; }
.big-letters:empty::before { content: "Type a title first"; color: var(--muted); font-size: 0.85rem; align-self: center; }
.big-letters span { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 0.7em; padding: 2px 3px; border-radius: 5px; line-height: 1; font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--text); transition: background 0.12s, color 0.12s; }
.big-letters span.sp { min-width: 0.5em; }
.big-letters span:hover { background: rgba(34, 211, 238, 0.12); }
.big-letters span.on { background: rgba(34, 211, 238, 0.28); box-shadow: inset 0 0 0 1px var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw {
  width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.18);
  background: var(--sw, transparent); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw:hover { transform: scale(1.15); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 14px rgba(34, 211, 238, 0.6); transform: scale(1.1); }
.sw-none { background: linear-gradient(135deg, transparent 45%, var(--bad) 46% 54%, transparent 55%), rgba(255, 255, 255, 0.05); }
input.sw.sw-custom { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
input.sw.sw-custom.on { border-color: #fff; }
.sw-custom::-webkit-color-swatch-wrapper { padding: 0; }
.sw-custom::-webkit-color-swatch { border: none; border-radius: 50%; opacity: 0; }
.sw-custom.on::-webkit-color-swatch { opacity: 1; }

/* ---------- Polish: one calmer, shinier look for every panel ---------- */
.block { position: relative; overflow: hidden; }
.block::before { /* thin cyan light along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), rgba(129, 140, 248, 0.5), transparent);
}
.block-head h3::before { content: ""; width: 4px; height: 1em; border-radius: 4px; background: linear-gradient(180deg, var(--accent), #818cf8); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }
.soc-pick-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.step-head h2 { background: linear-gradient(90deg, #fff, #a5f3fc 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg button.on, .chip.on { background: linear-gradient(135deg, #67e8f9, var(--accent)); box-shadow: 0 4px 16px -6px rgba(34, 211, 238, 0.9); }
.text-input { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), rgba(129, 140, 248, 0.35)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent), 0 2px 10px rgba(34, 211, 238, 0.7); transition: transform 0.15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }

/* ---------- Tour (tour.js) ---------- */
/* opens as a circle from the click (--fx/--fy): a cyan edge (.tour's own background) runs just ahead of the dark
   fill (::before); closing shrinks it back. The arms + phone rise in .tour-lift (tour.js RISE/DROP). */
.tour { --ease: cubic-bezier(.65, 0, .25, 1); --wipe: cubic-bezier(.7, 0, .2, 1); --h: min(72vh, 120vw); position: fixed; inset: 0; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; padding: 16px; box-sizing: border-box; overflow: hidden; background: #22d3ee; cursor: pointer; user-select: none; clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); transition: clip-path 0.7s var(--wipe); }
.tour::before { content: ""; position: absolute; inset: 0; background: #01040a; clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); transition: clip-path 0.7s 0.08s var(--wipe); }
.tour.in, .tour.in::before { clip-path: circle(150vmax at var(--fx, 50%) var(--fy, 50%)); }
.tour.out, .tour.out::before { clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); transition-duration: 0.5s; }
.tour.out { transition-delay: 0.1s; }
.tour.out::before { transition-delay: 0s; }
/* scene > float (idle bob) > lift (rise/drop) = the phone's box > the three.js canvas (2× wide, 1.25× tall,
   centred, phone fills that box) */
.tour-scene { position: relative; }
.tour-float { animation: tourFloat 4s ease-in-out infinite; }
.tour-lift { position: relative; height: var(--h); width: calc(var(--h) * 0.485); }
.tour-gl { position: absolute; left: -50%; top: -12.5%; width: 200%; height: 125%; display: block; }
/* while the 3D phone is still loading: a cyan ring spins where the phone will be */
.tour-lift:empty::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 3px solid rgba(34, 211, 238, 0.2); border-top-color: #22d3ee; animation: tourSpin 0.8s linear infinite; }
@keyframes tourSpin { to { transform: rotate(360deg); } }
/* 1–5 list: glass cards slide in from the right one by one (out of a blur); the current card grows, glows,
   gets a cyan edge and a progress bar that fills for as long as its part is talked about (--dur);
   finished cards turn their number into a ✓ */
.tour-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(22px, 3.6vh, 38px); text-transform: uppercase; letter-spacing: 0.02em; }
.tour-list li {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-width: 9.5em;
  padding: 10px 24px 10px 10px; border-radius: 16px; color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0; transform: translateX(60px); filter: blur(10px);
  transition: opacity 0.5s calc(0.35s + var(--k) * 0.09s), filter 0.5s calc(0.35s + var(--k) * 0.09s), transform 0.6s calc(0.35s + var(--k) * 0.09s) cubic-bezier(.2, 1.3, .4, 1), color 0.3s, background 0.3s, box-shadow 0.3s;
}
.tour.in .tour-list li { opacity: 1; transform: none; filter: none; }
.tour.in .tour-list li.now {
  color: #fff; transform: translateX(-14px) scale(1.07); transition-delay: 0s;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.04));
  box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.7), 0 0 34px -4px rgba(34, 211, 238, 0.45);
}
.tour-list li.done { color: rgba(255, 255, 255, 0.75); }
.tour-list li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #22d3ee, #a5f3fc); transform: scaleX(0); transform-origin: left; }
.tour-list li.now::after { transform: scaleX(1); transition: transform var(--dur) linear; }
.tour-list li.done::after { transform: scaleX(1); opacity: 0.3; }
.tour-list span { position: relative; display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 11px; font-size: 0.72em; color: #67e8f9; background: rgba(34, 211, 238, 0.08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35); transition: background 0.3s, color 0.3s; }
.tour-list li.now span { background: #22d3ee; color: #04101e; animation: tourPop 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.tour-list li.done span { color: transparent; background: rgba(34, 211, 238, 0.18); }
.tour-list li.done span::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #22d3ee; animation: tourPop 0.4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tourPop { 0% { transform: scale(0.4) rotate(-20deg); } 100% { transform: none; } }
/* always moving: rows bob out of step, badges glow, a shine runs through each name; the current one pulses */
.tour-list li.now span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #22d3ee; animation: nRing 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) infinite; }
.tour-list b { font-weight: inherit; }
.tour-list li.now b { background: linear-gradient(100deg, #fff 40%, #a5f3fc 50%, #fff 60%) 100% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: tourShine 1.6s linear infinite; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.6)); }
@keyframes tourShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes tourFloat { 0%, 100% { transform: translateY(0) rotateZ(0); } 50% { transform: translateY(-10px) rotateZ(0.6deg); } }
/* no prefers-reduced-motion opt-out here: Windows "animation effects off" turns it on, and the owner wants the intro always animated */
.tour-hint { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Easy / Advanced (site.js) ---------- */
/* Easy hides the extra controls; Advanced shows everything */
body[data-ui="easy"] [data-advanced] { display: none !important; }
.ui-mode { display: flex; width: max-content; margin: 0 auto 18px; }
.ui-mode button { min-width: 96px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
