/* TipzPop — home + studio sign-in styles. Scoped to body.tz-home / tz-* classes so other pages are untouched.
 *
 * Performance rules: no backdrop-filter on page content, no infinite background/gradient animations,
 * no masks on animated children. The only always-running loop is the UPI marquee (transform only).
 */

:root {
  --tz-ink: #07060d;
  --tz-line: rgba(255, 255, 255, 0.09);
  --tz-violet: #7c5cff;
  --tz-pink: #ff4fd8;
  --tz-amber: #ffb84d;
  --tz-mint: #5bf0c0;
  --tz-grad: linear-gradient(115deg, #7c5cff 0%, #ff4fd8 55%, #ffb84d 100%);
}

body.tz-home { background: var(--tz-ink) !important; background-image: none !important; }
.tz-root { position: relative; min-height: 100vh; }
.tz-display { font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; letter-spacing: -0.035em; }
.tz-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
section[id] { scroll-margin-top: 88px; }
.tz-content { position: relative; z-index: 2; }

/* one static background layer */
.tz-page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 38%, rgba(255, 79, 216, 0.09), transparent 60%),
    var(--tz-ink);
}

/* ---------- text ---------- */
.tz-grad-text {
  background: var(--tz-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tz-word { display: inline-block; opacity: 0; transform: translateY(60%); animation: tzWordIn 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
@keyframes tzWordIn { to { opacity: 1; transform: none; } }
.tz-squiggle path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: tzDraw 1s 1s ease-out forwards; }
@keyframes tzDraw { to { stroke-dashoffset: 0; } }

/* ---------- buttons ---------- */
.tz-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 16px; color: #fff; font-weight: 700; cursor: pointer;
  background: linear-gradient(115deg, #7c5cff 0%, #ff4fd8 100%); border: 0;
  box-shadow: 0 10px 30px -12px rgba(255, 79, 216, 0.6);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.tz-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.tz-btn-primary:active { transform: translateY(0) scale(0.98); }
.tz-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; color: #f4f1ff; font-weight: 600; cursor: pointer; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.2s ease, border-color 0.2s ease;
}
.tz-btn-ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
.tz-btn-primary:focus-visible, .tz-btn-ghost:focus-visible, .tz-focus:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- surfaces ---------- */
.tz-card {
  position: relative; border-radius: 26px; border: 1px solid var(--tz-line);
  background: linear-gradient(180deg, rgba(24, 20, 44, 0.94), rgba(14, 11, 27, 0.94));
  transition: border-color 0.25s ease;
}
.tz-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.tz-glass { background: rgba(18, 14, 36, 0.92); border: 1px solid var(--tz-line); }

/* ---------- header ---------- */
.tz-nav { background: rgba(7, 6, 13, 0.94); border-bottom: 1px solid var(--tz-line); }
.tz-link { position: relative; color: #b9b3d6; transition: color 0.2s ease; }
.tz-link:hover { color: #fff; }

/* ---------- marquee (transform only) ---------- */
.tz-marquee-wrap { position: relative; overflow: hidden; }
.tz-marquee-wrap::before, .tz-marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 1; pointer-events: none; }
.tz-marquee-wrap::before { left: 0; background: linear-gradient(90deg, #07060d, transparent); }
.tz-marquee-wrap::after { right: 0; background: linear-gradient(270deg, #07060d, transparent); }
.tz-marquee { display: flex; width: max-content; gap: 14px; animation: tzMarquee 50s linear infinite; will-change: transform; }
.tz-marquee:hover { animation-play-state: paused; }
@keyframes tzMarquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- hero coin stage ---------- */
.tz-stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-inline: auto; touch-action: manipulation; cursor: pointer; }
.tz-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tz-stage-glow { position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.45), rgba(255, 79, 216, 0.18) 55%, transparent 75%); }
.tz-fallback-logo { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.tz-no-webgl .tz-fallback-logo { display: flex; }

/* ---------- feature visuals (animate only while the card is hovered) ---------- */
.tz-wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.tz-wave i { display: block; width: 5px; height: 100%; border-radius: 4px; background: var(--tz-grad); transform: scaleY(0.5);
  animation: tzWave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * 0.085s); animation-play-state: paused; }
.tz-card:hover .tz-wave i { animation-play-state: running; }
@keyframes tzWave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.tz-float { animation: tzFloat 6s ease-in-out infinite; }
@keyframes tzFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tz-trim-handle { animation: tzTrim 4.5s ease-in-out infinite alternate; animation-play-state: paused; }
.tz-card:hover .tz-trim-handle { animation-play-state: running; }
@keyframes tzTrim { from { transform: translateX(0); } to { transform: translateX(46px); } }
.tz-chip-pop { animation: tzChip 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.28s); animation-play-state: paused; }
.tz-card:hover .tz-chip-pop { animation-play-state: running; }
@keyframes tzChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.tz-bar-fill { transform-origin: 0 50%; transform: scaleX(var(--w, 1)); }

/* modal entrance (one-shot) */
.tz-alert-in { animation: tzAlertIn 0.35s cubic-bezier(0.2, 1, 0.3, 1) both; }
@keyframes tzAlertIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- timeline ---------- */
.tz-line { position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #7c5cff, #ff4fd8, #ffb84d); border-radius: 2px; opacity: 0.8; }
.tz-step-dot { background: linear-gradient(135deg, #7c5cff, #ff4fd8) !important; border-color: transparent !important; color: #fff !important; }

/* ---------- faq ---------- */
.tz-faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.tz-faq-open .tz-faq-body { grid-template-rows: 1fr; }
.tz-faq-body > div { overflow: hidden; }

/* ---------- range ---------- */
.tz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none;
  background: linear-gradient(90deg, #7c5cff var(--fill, 30%), rgba(255, 255, 255, 0.12) var(--fill, 30%)); }
.tz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #ff4fd8; cursor: grab; }
.tz-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid #ff4fd8; cursor: grab; }
.tz-range:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 3px; }

.tz-cta-border { position: relative; border-radius: 34px; padding: 1.5px; background: linear-gradient(135deg, #7c5cff, #ff4fd8, #ffb84d, #5bf0c0); }

/* ---------- savings calculator ---------- */
.tz-bar-track { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tz-bar-val { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.tz-chip-btn { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #cfc9e8; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.tz-chip-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.tz-chip-btn[aria-pressed='true'] { color: #fff; background: linear-gradient(135deg, #7c5cff, #ff4fd8); border-color: transparent; }

/* ---------- segmented tabs ---------- */
.tz-tabs { position: relative; display: grid; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--tz-line); }
.tz-tabs > .tz-tab-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: linear-gradient(135deg, #7c5cff, #ff4fd8);
  transition: transform 0.25s ease; }
.tz-tabs > button { position: relative; z-index: 1; min-height: 42px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #b9b3d6; transition: color 0.2s ease; cursor: pointer; }
.tz-tabs > button[aria-selected='true'] { color: #fff; }
.tz-tabs > button:hover { color: #fff; }

/* ---------- inputs ---------- */
.tz-field { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12); outline: none; transition: border-color 0.2s ease, background 0.2s ease; }
.tz-field::placeholder { color: #6f6890; }
.tz-field:focus { border-color: #9d86ff; background: rgba(124, 92, 255, 0.1); }
.tz-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #cfc9e8; }
.tz-pin { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tz-pin input { width: 100%; height: 58px; text-align: center; font-size: 24px; font-weight: 800; color: #fff; border-radius: 14px; outline: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); font-family: 'JetBrains Mono', ui-monospace, monospace;
  transition: border-color 0.2s ease, background 0.2s ease; caret-color: #ff4fd8; }
.tz-pin input:focus { border-color: #ff4fd8; background: rgba(255, 79, 216, 0.1); }
.tz-pin input.tz-filled { border-color: rgba(124, 92, 255, 0.7); background: rgba(124, 92, 255, 0.14); }
.tz-pin.tz-shake { animation: tzShake 0.4s; }
@keyframes tzShake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ---------- studio sign-in screen (/creator) ---------- */
.tz-auth { position: relative; min-height: 100vh; display: grid; background: var(--tz-ink); }
@media (min-width: 1024px) { .tz-auth { grid-template-columns: 1.05fr 1fr; } }
.tz-auth-aside { position: relative; display: none; padding: 48px; border-right: 1px solid var(--tz-line);
  background: radial-gradient(900px 600px at 20% 0%, rgba(124, 92, 255, 0.34), transparent 60%), radial-gradient(700px 500px at 90% 100%, rgba(255, 79, 216, 0.2), transparent 60%), #0b0916; }
@media (min-width: 1024px) { .tz-auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.tz-auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 18px; }
.tz-auth-card { width: 100%; max-width: 460px; border-radius: 28px; padding: 28px; background: #100d20; border: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 640px) { .tz-auth-card { padding: 36px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tz-word { opacity: 1 !important; transform: none !important; animation: none !important; }
  .tz-marquee, .tz-float, .tz-wave i, .tz-chip-pop, .tz-trim-handle, .tz-squiggle path, .tz-alert-in, .tz-pin.tz-shake { animation: none !important; }
  .tz-squiggle path { stroke-dashoffset: 0; }
  .tz-bar-val, .tz-tabs > .tz-tab-ind { transition: none; }
}

/* ---------- hero: how a tip travels (phone -> OBS -> live). Every size is in cqw, so it scales with the stage ---------- */
.tzf-stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1.34; margin-inline: auto; container-type: inline-size; user-select: none; }
.tzf-glow { position: absolute; inset: 6% 4%; border-radius: 50%; pointer-events: none; filter: blur(2px);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.34), rgba(255, 79, 216, 0.12) 60%, transparent 78%); }
.tzf-slot { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; }
.tzf-slot-phone { left: 1%; top: 0; width: 31%; }
.tzf-slot-obs { right: 0; top: 4%; width: 56%; }
.tzf-slot-live { left: 9%; bottom: 0; width: 82%; }

/* the travelling tip: a dotted track and a bright dash that runs along it */
.tzf-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tzf-dots { fill: none; stroke: rgba(196, 170, 255, 0.45); stroke-width: 0.75; stroke-linecap: round; stroke-dasharray: 0.01 2.6; }
.tzf-run { fill: none; stroke: url(#tzfGrad); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 16 140; stroke-dashoffset: 16; opacity: 0;
  filter: drop-shadow(0 0 1.2px rgba(255, 79, 216, 0.9)); }
.tzf-run.go { opacity: 1; animation: tzfRun 0.85s cubic-bezier(0.55, 0.05, 0.35, 1) forwards; }
@keyframes tzfRun { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -100; } }

.tzf-label { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 0.9cqw 2.2cqw 0.9cqw 1cqw; border-radius: 99px; font-size: 2.5cqw; font-weight: 700; color: #a1a1aa;
  background: rgba(18, 14, 36, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; transition: color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tzf-label span { display: inline-grid; place-items: center; min-width: 4.6cqw; height: 4.6cqw; border-radius: 99px; font-size: 2.2cqw; color: #fff; background: rgba(255, 255, 255, 0.1); }
.tzf-label.on { color: #fff; border-color: rgba(196, 170, 255, 0.5); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12); }
.tzf-label.on span { background: linear-gradient(115deg, #7c5cff, #ff4fd8); }

/* ---- 01 the phone ---- */
.tzf-phone { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 6.6cqw; padding: 1.3cqw; background: linear-gradient(160deg, #3a2f5c, #17122b 60%);
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.tzf-phone.is-tap { transform: scale(0.985); }
.tzf-notch { position: absolute; top: 2.2cqw; left: 50%; width: 11cqw; height: 2.6cqw; transform: translateX(-50%); border-radius: 99px; background: #0b0816; z-index: 2; }
.tzf-screen { position: relative; height: 100%; border-radius: 5.4cqw; overflow: hidden; padding: 6cqw 2.6cqw 2.6cqw; display: flex; flex-direction: column; gap: 1.7cqw;
  background: radial-gradient(120% 60% at 50% 0%, #2d2156 0%, #140f27 55%, #0d0a1b 100%); color: #fff; font-size: 2.3cqw; }
.tzf-ph-head { display: flex; align-items: center; gap: 1.6cqw; }
.tzf-ph-head b { display: block; font-size: 2.5cqw; }
.tzf-ph-head small { display: block; font-size: 1.8cqw; color: #a78bfa; }
.tzf-ph-av { width: 5.4cqw; height: 5.4cqw; border-radius: 1.8cqw; display: grid; place-items: center; font-weight: 800; font-size: 2.4cqw; background: linear-gradient(135deg, #7c5cff, #ff4fd8); }
.tzf-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 0.6cqw; border-radius: 2.2cqw; background: rgba(255, 255, 255, 0.06); font-size: 1.9cqw; font-weight: 700; text-align: center; }
.tzf-seg span { padding: 1cqw 0; border-radius: 1.6cqw; color: #a1a1aa; transition: background 0.3s, color 0.3s; }
.tzf-seg span.on { color: #fff; background: linear-gradient(115deg, #7c5cff, #ff4fd8); }
.tzf-thumb { position: relative; height: 12cqw; border-radius: 2.4cqw; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #3b2a6b, #1d1638); border: 1px solid rgba(255, 255, 255, 0.1); animation: tzfIn 0.4s ease both; }
.tzf-yt { width: 8.6cqw; height: 6cqw; border-radius: 1.8cqw; background: #ff0033; display: grid; place-items: center; box-shadow: 0 1cqw 3cqw rgba(255, 0, 51, 0.45); }
.tzf-yt svg { width: 4.6cqw; height: 4.6cqw; }
.tzf-dur { position: absolute; right: 1.2cqw; bottom: 1cqw; padding: 0.3cqw 1cqw; border-radius: 1cqw; font-size: 1.7cqw; font-weight: 700; background: rgba(0, 0, 0, 0.6); }
.tzf-field { padding: 1.2cqw 1.8cqw; border-radius: 2.2cqw; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.tzf-field small { display: block; font-size: 1.6cqw; color: #8b8a99; }
.tzf-field span { display: block; min-height: 3cqw; font-size: 2.2cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzf-caret { display: inline-block; width: 0.35cqw; height: 2.4cqw; margin-left: 0.3cqw; vertical-align: -0.4cqw; background: #ff4fd8; animation: tzfBlink 0.9s steps(1) infinite; }
@keyframes tzfBlink { 50% { opacity: 0; } }
.tzf-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; font-size: 2cqw; font-weight: 800; text-align: center; }
.tzf-amts span { padding: 1.2cqw 0; border-radius: 1.8cqw; background: rgba(255, 255, 255, 0.06); color: #c4c4cc; }
.tzf-amts span.on { color: #fff; background: rgba(124, 92, 255, 0.32); box-shadow: inset 0 0 0 1px rgba(196, 170, 255, 0.6); }
.tzf-pay { margin-top: auto; position: relative; display: flex; align-items: center; justify-content: center; gap: 1.2cqw; height: 7.6cqw; border-radius: 99px; font-size: 2.5cqw; font-weight: 800;
  background: linear-gradient(115deg, #7c5cff, #ff4fd8); box-shadow: 0 1.6cqw 4cqw rgba(255, 79, 216, 0.4); transition: background 0.35s, transform 0.2s; }
.tzf-phone.is-tap .tzf-pay { transform: scale(0.95); }
.tzf-pay.is-paid { background: linear-gradient(115deg, #10b981, #34d399); box-shadow: 0 1.6cqw 4cqw rgba(16, 185, 129, 0.4); animation: tzfPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.tzf-pay svg { width: 3.2cqw; height: 3.2cqw; }
@keyframes tzfPop { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.tzf-cursor { position: absolute; right: 7cqw; bottom: 1.4cqw; width: 6cqw; height: 6cqw; opacity: 0; transform: translate(6cqw, 6cqw); transition: opacity 0.25s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8.5-6.6 1.6 3.8 7.3-2.7 1.4-3.8-7.3L4 18z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tzf-cursor.show { opacity: 1; transform: none; }
.tzf-ripple { position: absolute; left: -1cqw; top: -1cqw; width: 4cqw; height: 4cqw; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); opacity: 0; }
.tzf-cursor.show .tzf-ripple { animation: tzfRipple 0.7s 0.35s ease-out; }
@keyframes tzfRipple { from { opacity: 1; transform: scale(0.3); } to { opacity: 0; transform: scale(2.6); } }

/* ---- 02 OBS ---- */
.tzf-monitor { width: 100%; display: flex; flex-direction: column; align-items: center; }
.tzf-mon-screen { width: 100%; aspect-ratio: 16 / 10.4; border-radius: 2.6cqw; padding: 1.4cqw; background: #1b1830; display: grid; grid-template-rows: 1fr auto; gap: 1.2cqw;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(196, 170, 255, 0.25); transition: box-shadow 0.4s; }
.tzf-monitor.is-hot .tzf-mon-screen { box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 79, 216, 0.7), 0 0 5cqw rgba(255, 79, 216, 0.25); }
.tzf-stand { width: 18%; height: 4cqw; background: linear-gradient(#262040, #15112a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tzf-obs-prev { position: relative; border-radius: 1.4cqw; background: #050409; overflow: hidden; display: grid; place-items: center; }
.tzf-onair { position: absolute; top: 1cqw; right: 1.2cqw; padding: 0.3cqw 1cqw; border-radius: 0.8cqw; font-size: 1.5cqw; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: #e11d48; animation: tzfBlink 1.6s steps(1) infinite; }
.tzf-obs-ping { display: flex; flex-direction: column; align-items: center; gap: 0.3cqw; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.tzf-obs-ping.show { opacity: 1; transform: none; }
.tzf-obs-ping b { font-size: 4cqw; font-weight: 800; background: linear-gradient(115deg, #7c5cff, #ff4fd8, #ffb84d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tzf-obs-ping small { font-size: 1.7cqw; color: #a1a1aa; }
.tzf-obs-docks { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1cqw; }
.tzf-dock { display: flex; flex-direction: column; gap: 0.6cqw; padding: 0.9cqw; border-radius: 1cqw; background: #262240; min-height: 9cqw; }
.tzf-dock small { font-size: 1.4cqw; color: #8b8a99; font-weight: 700; }
.tzf-dock i { display: block; height: 1.6cqw; border-radius: 0.5cqw; background: rgba(255, 255, 255, 0.08); font-style: normal; font-size: 1.3cqw; line-height: 1.6cqw; padding-left: 0.6cqw; color: transparent; white-space: nowrap; overflow: hidden; transition: background 0.3s, color 0.3s; }
.tzf-dock i.on { background: rgba(124, 92, 255, 0.55); }
.tzf-dock i.tzf-src.on { color: #fff; background: linear-gradient(115deg, #7c5cff, #ff4fd8); }
.tzf-mixer { flex-direction: column; }
.tzf-mixer em { display: block; height: 1.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.tzf-mixer em::after { content: ''; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v)); background: linear-gradient(90deg, #22c55e, #eab308 70%, #ef4444); transition: transform 0.5s; }

/* ---- 03 live on stream ---- */
.tzf-live { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 3cqw; overflow: hidden; box-shadow: 0 2.4cqw 7cqw rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(196, 170, 255, 0.3); background: #0a0814; }
.tzf-game, .tzf-sky, .tzf-hills, .tzf-road { position: absolute; inset: 0; }
.tzf-sky { background: linear-gradient(180deg, #2a1d5c 0%, #6d3b8f 45%, #f08a5d 70%, #f9c46b 82%); }
.tzf-hills { top: 48%; background:
  radial-gradient(60% 70% at 15% 100%, #2b1747 60%, transparent 61%), radial-gradient(55% 80% at 70% 100%, #241240 60%, transparent 61%), radial-gradient(40% 60% at 100% 100%, #1d0f36 60%, transparent 61%); }
.tzf-road { top: 66%; background: linear-gradient(180deg, #1a1030, #0d0819); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.tzf-road::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.2cqw; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #ffd166 0 3cqw, transparent 3cqw 6.4cqw); animation: tzfRoad 0.6s linear infinite; }
@keyframes tzfRoad { to { background-position: 0 6.4cqw; } }
.tzf-hud { position: absolute; left: 50%; bottom: 1.6cqw; transform: translateX(-50%); display: flex; gap: 0.6cqw; }
.tzf-hud i { width: 3.2cqw; height: 3.2cqw; border-radius: 0.6cqw; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.25); }
.tzf-livebadge { position: absolute; top: 1.6cqw; right: 1.6cqw; display: inline-flex; align-items: center; gap: 0.6cqw; padding: 0.4cqw 1.2cqw; border-radius: 0.8cqw; font-size: 1.7cqw; font-weight: 800; color: #fff; background: #e11d48; }
.tzf-livebadge i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #fff; animation: tzfBlink 1.2s steps(1) infinite; }
.tzf-cam { position: absolute; left: 1.6cqw; bottom: 1.6cqw; width: 12cqw; height: 9cqw; border-radius: 1.4cqw; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 35%, #8a6bd8, #3b2a6b); border: 2px solid rgba(255, 79, 216, 0.75); box-shadow: 0 0 3cqw rgba(255, 79, 216, 0.35); }
.tzf-cam span { width: 5.6cqw; height: 5.6cqw; border-radius: 50%; display: grid; place-items: center; font-size: 2cqw; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.35); }
.tzf-pin { position: absolute; top: 1.6cqw; left: 1.6cqw; padding: 0.6cqw 1.6cqw; border-radius: 99px; font-size: 1.9cqw; font-weight: 800; opacity: 0; transform: translateY(-2cqw);
  transition: opacity 0.4s 1.2s, transform 0.5s 1.2s cubic-bezier(0.2, 1.3, 0.4, 1); }
.tzf-pin.show { opacity: 1; transform: none; }

/* the Super Chat card: slides in, the voice wave runs while it is read */
.tzf-chat { position: absolute; left: 50%; top: 14%; width: 62%; border-radius: 2.2cqw; overflow: hidden; background: rgba(10, 8, 20, 0.88);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.55); opacity: 0; transform: translate(-50%, -3cqw) scale(0.9); transition: opacity 0.35s, transform 0.55s cubic-bezier(0.2, 1.3, 0.4, 1); }
.tzf-chat.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tzf-chat-head { display: flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 1.6cqw; font-size: 2.3cqw; }
.tzf-chat-av { width: 3.8cqw; height: 3.8cqw; border-radius: 50%; display: grid; place-items: center; font-size: 1.8cqw; font-weight: 800; background: rgba(0, 0, 0, 0.2); }
.tzf-chat-amt { margin-left: auto; padding: 0.3cqw 1cqw; border-radius: 99px; font-weight: 800; background: rgba(0, 0, 0, 0.18); }
.tzf-chat-body { display: flex; align-items: center; gap: 1.2cqw; padding: 1.3cqw 1.6cqw; font-size: 2.1cqw; color: #f4f4f5; }
.tzf-chat-body > span:not(.tzf-wave) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzf-spk { width: 3cqw; height: 3cqw; flex: none; color: #c4b5fd; }
.tzf-wave { display: inline-flex; align-items: center; gap: 0.35cqw; height: 3.4cqw; flex: none; }
.tzf-wave i { display: block; width: 0.45cqw; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #ff4fd8, #7c5cff); transform: scaleY(0.25); }
.tzf-wave.run i { animation: tzfWave 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * 0.06s); }
@keyframes tzfWave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }

/* the YouTube clip: a drawn clip (nothing is loaded) that plays its seconds */
.tzf-clip { position: absolute; left: 50%; top: 9%; width: 56%; opacity: 0; transform: translate(-50%, 2cqw) scale(0.85); transition: opacity 0.35s, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
.tzf-clip.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tzf-clip-video { position: relative; aspect-ratio: 16 / 9; border-radius: 1.8cqw; overflow: hidden; border: 0.5cqw solid #7c5cff; box-shadow: 0 0 4cqw rgba(124, 92, 255, 0.55); background: #000; }
.tzf-clip-scene { position: absolute; inset: -20%; background: conic-gradient(from 0deg at 50% 50%, #ff4fd8, #7c5cff, #22d3ee, #ffb84d, #ff4fd8); filter: blur(3cqw) saturate(1.3); opacity: 0.85; }
.tzf-clip.show .tzf-clip-scene { animation: tzfSpin 6s linear infinite; }
@keyframes tzfSpin { to { transform: rotate(360deg); } }
.tzf-clip-play { position: absolute; inset: 0; display: grid; place-items: center; }
.tzf-clip-play svg { width: 7cqw; height: 7cqw; padding: 1.6cqw; border-radius: 50%; background: rgba(0, 0, 0, 0.45); box-sizing: content-box; }
.tzf-clip.show .tzf-clip-play { animation: tzfFade 0.5s 0.9s forwards; }
@keyframes tzfFade { to { opacity: 0; transform: scale(1.4); } }
.tzf-clip-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 0.9cqw; background: rgba(255, 255, 255, 0.25); }
.tzf-clip-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: #ff0033; }
.tzf-clip-bar span.run { animation: tzfBar 5.2s linear 0.4s forwards; }
@keyframes tzfBar { to { transform: scaleX(1); } }
.tzf-clip-name { margin: 1cqw auto 0; width: max-content; max-width: 100%; padding: 0.5cqw 1.6cqw; border-radius: 99px; font-size: 1.9cqw; color: #fff; background: rgba(10, 8, 20, 0.8); white-space: nowrap; }
@keyframes tzfIn { from { opacity: 0; transform: translateY(1.5cqw); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tzf-stage *, .tzf-stage *::before, .tzf-stage *::after { animation: none !important; transition: none !important; }
}
/* the phone keeps its shape whatever is on its screen (aspect-ratio would otherwise let the content stretch it) */
.tzf-phone { min-height: 0; height: auto; overflow: hidden; }
.tzf-screen { min-height: 0; }
.tzf-ph-head > div { min-width: 0; }
.tzf-ph-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzf-seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* everything on the phone screen fits its height (a clip round has one more row) */
.tzf-screen { gap: 1.3cqw; padding-top: 5.6cqw; }
.tzf-screen > * { flex-shrink: 0; }
.tzf-thumb { height: 9cqw; }
.tzf-yt { width: 7.4cqw; height: 5.2cqw; }
.tzf-field { padding: 1cqw 1.6cqw; }
.tzf-pay { height: 6.6cqw; }
/* the OBS preview shows a small copy of the stream, like the real OBS window */
.tzf-obs-prev { background: linear-gradient(180deg, rgba(42, 29, 92, 0.75) 0%, rgba(109, 59, 143, 0.6) 50%, rgba(240, 138, 93, 0.45) 78%, #0d0819 100%); }
/* on a computer the scene sits beside the headline and the whole hero fits one screen */
@media (min-width: 1024px) { .tzf-stage { max-width: 460px; } }
