:root {
  --ink: #08070d;
  --panel: #0d0b14;
  --paper: #f6f1ff;
  --muted: #a7a0b8;
  --pink: #ff2e97;
  --cyan: #22e0ff;
  --violet: #8457ff;
  --green: #3df5a0;
  font-family: "Manrope", sans-serif;
  color: var(--paper);
  background: #050409;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #050409; }
body { overflow: hidden; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--cyan); text-decoration: none; }
::selection { color: #fff; background: var(--pink); }
[hidden] { display: none !important; }

.app-frame {
  position: relative;
  width: min(100vw, 460px);
  height: 100dvh;
  max-height: 960px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  box-shadow: 0 0 100px rgba(132, 87, 255, .16);
}

.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.ambient--pink { width: 290px; height: 290px; top: -150px; left: -120px; background: rgba(255, 46, 151, .29); }
.ambient--cyan { width: 270px; height: 270px; top: 170px; right: -170px; background: rgba(34, 224, 255, .2); }

.screen { position: absolute; inset: 0; display: none; background: var(--ink); }
.screen.is-active { display: flex; }
.screen--scroll { overflow: hidden auto; scrollbar-width: none; }
.screen--scroll::-webkit-scrollbar { display: none; }
.screen--center { align-items: center; justify-content: center; }
.grid-field { position: fixed; inset: 0; opacity: .72; pointer-events: none; background-image: linear-gradient(rgba(132,87,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(34,224,255,.055) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(#000 0 68%, transparent); }
.landing-wrap { position: relative; width: 100%; padding: max(18px, env(safe-area-inset-top)) 20px max(36px, env(safe-area-inset-bottom)); }

.topbar, .brand { display: flex; align-items: center; }
.topbar { justify-content: space-between; }
.brand { gap: 9px; color: var(--paper); font-family: "Chakra Petch", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: 2.5px; }
.brand img { object-fit: contain; filter: drop-shadow(0 0 13px rgba(132, 87, 255, .72)); }
.beta-pill { padding: 5px 9px; border: 1px solid rgba(34, 224, 255, .45); border-radius: 999px; color: var(--cyan); font-family: "Chakra Petch", sans-serif; font-size: 9px; letter-spacing: 1.8px; }

.hero-copy { margin-top: 30px; }
.eyebrow { display: inline-flex; gap: 7px; align-items: center; padding: 7px 11px; border: 1px solid rgba(34, 224, 255, .35); border-radius: 999px; color: var(--cyan); background: rgba(34, 224, 255, .035); font-family: "Chakra Petch", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.9px; }
.eyebrow span { color: #fff; }
h1, h2 { margin: 0; font-family: "Chakra Petch", sans-serif; font-weight: 700; }
.hero-copy h1 { margin-top: 16px; font-size: clamp(35px, 9vw, 39px); line-height: 1.02; letter-spacing: -.5px; text-wrap: balance; }
.hero-copy h1 span, .source-wrap h2 span { color: var(--pink); text-shadow: 0 0 25px rgba(255, 46, 151, .42); }
.hero-copy p { max-width: 380px; margin: 16px 0 0; color: #c7c0d7; font-size: 14px; line-height: 1.65; }
.hero-start { width: 100%; min-height: 58px; margin-top: 18px; padding: 10px 14px 10px 17px; display: flex; align-items: center; justify-content: space-between; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: linear-gradient(110deg, #ff2e97, #bd39ee 68%, #844cff); box-shadow: 0 15px 32px rgba(255,46,151,.27), inset 0 1px rgba(255,255,255,.2); text-align: left; }
.hero-start span { display: flex; flex-direction: column; }
.hero-start strong { font-family: "Chakra Petch", sans-serif; font-size: 13px; letter-spacing: 1px; }
.hero-start small { margin-top: 3px; color: rgba(255,255,255,.76); font-size: 8px; letter-spacing: .8px; }
.hero-start b { font-size: 21px; font-weight: 400; }
.hero-start:active { transform: scale(.99); }

.hero-art { position: relative; height: 256px; margin-top: 23px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: radial-gradient(circle at 50% 36%, rgba(255,46,151,.23), transparent 26%), linear-gradient(145deg, #151024, #06050a 70%); box-shadow: 0 25px 54px rgba(0,0,0,.48); }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(34,224,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(34,224,255,.06) 1px, transparent 1px); background-size: 28px 28px; transform: perspective(280px) rotateX(58deg) translateY(100px) scale(1.4); }
.art-orbit { position: absolute; border: 1px solid; border-radius: 50%; transform: rotate(-18deg); }
.art-orbit--one { width: 250px; height: 94px; top: 63px; left: 79px; border-color: rgba(255,46,151,.55); box-shadow: 0 0 28px rgba(255,46,151,.16); }
.art-orbit--two { width: 190px; height: 68px; top: 83px; left: 109px; border-color: rgba(34,224,255,.5); transform: rotate(23deg); }
.hero-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.15) 3px 4px), linear-gradient(90deg, transparent, rgba(34,224,255,.08), transparent); mix-blend-mode: screen; }
.kitsune-figure { position: absolute; display: block; }
.kitsune-figure--hero { width: 132px; height: 214px; left: 50%; bottom: -11px; transform: translateX(-50%); filter: drop-shadow(0 0 23px rgba(255,46,151,.52)); }
.fox-ear { position: absolute; z-index: 1; width: 46px; height: 73px; top: 4px; border: 2px solid var(--pink); background: linear-gradient(155deg, rgba(255,46,151,.95), rgba(52,18,73,.85)); clip-path: polygon(50% 0, 100% 100%, 0 82%); }
.fox-ear::after { content: ""; position: absolute; inset: 11px 12px 8px; background: var(--cyan); opacity: .45; clip-path: inherit; }
.fox-ear--left { left: 12px; transform: rotate(-18deg); }
.fox-ear--right { right: 12px; transform: rotate(18deg) scaleX(-1); }
.fox-head { position: absolute; z-index: 2; width: 102px; height: 113px; top: 42px; left: 15px; overflow: hidden; border: 2px solid rgba(255,255,255,.45); border-radius: 48% 48% 43% 43%; background: linear-gradient(145deg, #d8cdf4 0%, #8a73ad 38%, #34263f 78%); box-shadow: inset -18px -9px 30px rgba(12,7,20,.55); }
.fox-head::before { content: ""; position: absolute; width: 80px; height: 66px; top: -22px; left: -10px; border-radius: 50%; background: #1c122b; transform: rotate(-20deg); }
.visor { position: absolute; z-index: 2; width: 82px; height: 25px; top: 43px; left: 9px; border: 1px solid var(--cyan); border-radius: 50% 42% 55% 42%; background: linear-gradient(90deg, rgba(34,224,255,.28), rgba(255,46,151,.72)); box-shadow: 0 0 16px rgba(34,224,255,.55); transform: rotate(-3deg); }
.face-mark { position: absolute; z-index: 3; width: 20px; height: 2px; top: 76px; background: var(--pink); box-shadow: 0 0 7px var(--pink); }
.face-mark--left { left: 11px; transform: rotate(24deg); }
.face-mark--right { right: 11px; transform: rotate(-24deg); }
.fox-body { position: absolute; z-index: 1; width: 126px; height: 112px; left: 3px; bottom: 0; border: 1px solid rgba(34,224,255,.45); border-radius: 45% 45% 8% 8%; background: linear-gradient(145deg, #5d2773, #15101f 52%, #0b101b); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.fox-body::before, .fox-body::after { content: ""; position: absolute; width: 2px; height: 106px; top: 9px; background: linear-gradient(var(--cyan), transparent); box-shadow: 0 0 8px var(--cyan); }
.fox-body::before { left: 34px; transform: rotate(-13deg); }
.fox-body::after { right: 34px; transform: rotate(13deg); }
.fox-body i { position: absolute; width: 42px; height: 19px; top: 16px; left: 42px; border: 2px solid var(--pink); border-radius: 3px 3px 50% 50%; box-shadow: 0 0 12px rgba(255,46,151,.6); }
.art-caption { position: absolute; left: 14px; top: 14px; display: flex; gap: 9px; align-items: center; }
.art-caption > span { color: rgba(255,255,255,.32); font-family: "Chakra Petch", sans-serif; font-size: 24px; font-weight: 700; }
.art-caption div { display: flex; flex-direction: column; }
.art-caption strong { font-family: "Chakra Petch", sans-serif; font-size: 12px; letter-spacing: 1.2px; }
.art-caption small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: 1.1px; }
.art-tags { position: absolute; left: 13px; bottom: 12px; display: flex; gap: 5px; }
.art-tags span { padding: 5px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(8,7,13,.72); font-family: "Chakra Petch", sans-serif; font-size: 8px; letter-spacing: .8px; }
.art-tags span:first-child { color: #fff; border-color: var(--pink); background: rgba(255,46,151,.7); }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 13px; }
.section-heading div { display: flex; flex-direction: column; gap: 3px; }
.section-heading span { font-family: "Chakra Petch", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; }
.section-heading small { color: #676174; font-size: 10px; }
.section-heading b { color: #676174; font-family: "Chakra Petch", sans-serif; font-size: 10px; letter-spacing: 1.5px; }

.template-card { width: 100%; min-height: 146px; padding: 11px; display: flex; gap: 14px; align-items: center; color: inherit; text-align: left; cursor: pointer; overflow: hidden; border: 1px solid rgba(255,46,151,.48); border-radius: 20px; background: linear-gradient(135deg, rgba(255,46,151,.13), rgba(19,14,29,.76)); box-shadow: 0 15px 38px rgba(255,46,151,.13); }
.template-card:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.template-card:active { transform: scale(.99); }
.template-portrait { position: relative; width: 100px; align-self: stretch; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(255,46,151,.32), transparent 32%), #0b0811; }
.template-portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.18) 4px 5px); }
.kitsune-figure--thumb { width: 91px; height: 145px; left: 4px; bottom: -15px; transform: scale(.78); transform-origin: bottom center; }
.template-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; }
.template-copy > small { display: flex; gap: 7px; align-items: center; color: var(--green); font-family: "Chakra Petch", sans-serif; font-size: 9px; letter-spacing: 1.4px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse-dot 1.8s infinite; }
.template-copy > strong { margin-top: 5px; font-family: "Chakra Petch", sans-serif; font-size: 21px; line-height: 1; }
.template-copy > em { margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; }
.template-cta { width: 100%; margin-top: 13px; padding: 10px 11px; display: flex; justify-content: space-between; border-radius: 9px; background: linear-gradient(135deg, var(--pink), #ad48ff); box-shadow: 0 7px 18px rgba(255,46,151,.28); font-family: "Chakra Petch", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .9px; }

.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini-template { position: relative; padding: 0; overflow: hidden; color: inherit; text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: #100d16; }
.mini-art { position: relative; height: 102px; display: block; overflow: hidden; background: radial-gradient(circle, rgba(132,87,255,.21), transparent 55%); filter: saturate(.55); }
.mini-art::after { content: ""; position: absolute; inset: 0; opacity: .32; background: repeating-linear-gradient(0deg, transparent 0 4px, #000 4px 5px); }
.mini-template > span:nth-child(2) { padding: 10px 11px 12px; display: flex; flex-direction: column; }
.mini-template strong { font-family: "Chakra Petch", sans-serif; font-size: 13px; }
.mini-template small { margin-top: 3px; color: #676174; font-size: 9px; }
.mini-template > b { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: #aaa3b5; background: rgba(8,7,13,.7); font-family: "Chakra Petch", sans-serif; font-size: 7px; letter-spacing: 1px; }
.halo { position: absolute; width: 82px; height: 20px; top: 19px; left: calc(50% - 41px); border: 2px solid #c6adff; border-radius: 50%; box-shadow: 0 0 18px rgba(198,173,255,.6); transform: rotate(-10deg); }
.seraph-core { position: absolute; width: 62px; height: 78px; left: calc(50% - 31px); bottom: -10px; border-radius: 48% 48% 0 0; background: linear-gradient(#786494, #16121e); }
.pixel-moon { position: absolute; width: 70px; height: 70px; top: 17px; left: 14px; border-radius: 50%; background: #a879ff; box-shadow: 0 0 22px rgba(168,121,255,.43); image-rendering: pixelated; }
.katana { position: absolute; width: 7px; height: 108px; top: 0; left: 60%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); transform: rotate(37deg); }

.mode-card { margin-top: 18px; padding: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.mode-card > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #f6be49; box-shadow: 0 0 9px #f6be49; }
.mode-card.is-demo > i { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.mode-card.is-live > i { background: var(--green); box-shadow: 0 0 9px var(--green); }
.mode-card div { display: flex; min-width: 0; flex-direction: column; }
.mode-card strong { font-family: "Chakra Petch", sans-serif; font-size: 10px; letter-spacing: 1.2px; }
.mode-card span { margin-top: 2px; color: #797285; font-size: 9px; }
footer { margin-top: 22px; color: #716a7e; text-align: center; font-family: "Chakra Petch", sans-serif; font-size: 9px; letter-spacing: 1px; }

.back-button { position: absolute; z-index: 2; top: max(17px, env(safe-area-inset-top)); left: 17px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(7,6,11,.52); backdrop-filter: blur(10px); font-size: 24px; line-height: 1; }
.source-wrap { width: 100%; padding: 40px 26px; }
.step-label { color: var(--cyan); font-family: "Chakra Petch", sans-serif; font-size: 10px; letter-spacing: 2px; }
.source-wrap h2 { margin-top: 11px; font-size: 39px; line-height: .98; letter-spacing: -1px; }
.source-wrap > p { max-width: 330px; margin: 12px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.source-option { width: 100%; margin-top: 11px; padding: 15px; display: flex; gap: 13px; align-items: center; color: inherit; text-align: left; cursor: pointer; border-radius: 17px; background: rgba(255,255,255,.035); }
.source-option--camera { border: 1px solid rgba(255,46,151,.43); }
.source-option--upload { border: 1px solid rgba(34,224,255,.36); }
.source-icon { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; font-size: 23px; font-weight: 700; }
.source-option--camera .source-icon { background: linear-gradient(135deg, var(--pink), #a941f3); }
.source-option--upload .source-icon { color: #071419; background: linear-gradient(135deg, var(--cyan), #4886ff); }
.source-option > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.source-option strong { font-family: "Chakra Petch", sans-serif; font-size: 15px; letter-spacing: .4px; }
.source-option small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.source-option > b { color: var(--cyan); font-size: 17px; }
.camera-glyph { position: relative; width: 24px; height: 17px; border: 2px solid #fff; border-radius: 4px; }
.camera-glyph::before { content: ""; position: absolute; width: 7px; height: 7px; top: 3px; left: 6px; border: 2px solid #fff; border-radius: 50%; }
.camera-glyph::after { content: ""; position: absolute; width: 7px; height: 3px; top: -5px; left: 2px; border-radius: 2px 2px 0 0; background: #fff; }
.inline-error { min-height: 18px; margin-top: 14px; color: #ff7b86; font-size: 11px; line-height: 1.45; }
.privacy-note { margin-top: 12px; padding: 12px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid rgba(255,255,255,.045); border-radius: 10px; color: #a098ae; background: rgba(255,255,255,.032); font-size: 10px; line-height: 1.55; }
.privacy-note i { color: var(--cyan); font-style: normal; }

.screen--preview { overflow: hidden; background: #040305; }
#local-video, #xmax-stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #040305; }
#xmax-stage { z-index: 2; overflow: hidden; opacity: 0; transition: opacity .35s ease; }
#xmax-stage.is-live { opacity: 1; }
#xmax-stage video, #xmax-stage canvas { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#local-video.is-mirrored { transform: scaleX(-1); }
#local-video.is-demo { filter: saturate(1.75) contrast(1.16) hue-rotate(270deg) brightness(1.04); }
.demo-treatment { position: absolute; z-index: 3; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(rgba(255,46,151,.08), rgba(132,87,255,.12)); mix-blend-mode: screen; }
.demo-treatment.is-visible { opacity: 1; }
.demo-treatment::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.demo-treatment i { position: absolute; width: 78vw; max-width: 360px; aspect-ratio: 1; top: 20%; left: 50%; border: 1px solid rgba(34,224,255,.45); border-radius: 50%; box-shadow: 0 0 60px rgba(255,46,151,.28), inset 0 0 35px rgba(34,224,255,.12); transform: translateX(-50%); animation: orbit 9s linear infinite; }
.preview-vignette { position: absolute; z-index: 4; inset: 0; pointer-events: none; box-shadow: inset 0 0 130px rgba(5,3,8,.8); }
.record-progress { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.08); }
.record-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 10px var(--pink); }
.preview-header, .result-header { position: absolute; z-index: 15; top: 0; left: 0; right: 0; padding: max(16px, env(safe-area-inset-top)) 16px 35px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(rgba(5,3,8,.84), transparent); }
.preview-header > div, .result-header > div { display: flex; flex-direction: column; align-items: center; }
.preview-header strong, .result-header strong { font-family: "Chakra Petch", sans-serif; font-size: 13px; letter-spacing: 1px; }
.preview-header span:not(.header-spacer), .result-header span:not(.header-spacer) { margin-top: 2px; color: var(--cyan); font-family: "Chakra Petch", sans-serif; font-size: 8px; letter-spacing: 1.1px; }
.header-spacer { width: 44px; height: 44px; }
.preview-timer { position: absolute; z-index: 15; top: calc(max(16px, env(safe-area-inset-top)) + 55px); left: 50%; padding: 6px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(5,3,8,.55); backdrop-filter: blur(8px); transform: translateX(-50%); white-space: nowrap; font-family: "Chakra Petch", sans-serif; font-size: 9px; letter-spacing: 1px; }
.connecting-card { position: absolute; z-index: 12; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(5,3,8,.62); backdrop-filter: blur(5px); }
.connecting-card.is-hidden { display: none; }
.connecting-card > i { width: 53px; height: 53px; border: 3px solid rgba(255,46,151,.23); border-top-color: var(--pink); border-radius: 50%; animation: spin .85s linear infinite; }
.connecting-card strong { margin-top: 15px; font-family: "Chakra Petch", sans-serif; font-size: 12px; letter-spacing: 1.7px; }
.connecting-card span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.record-controls { position: absolute; z-index: 15; left: 0; right: 0; bottom: 0; padding: 44px 20px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; background: linear-gradient(transparent, rgba(5,3,8,.88)); }
.record-controls.is-hidden { display: none; }
.record-controls > span { color: #d4cedd; font-size: 10px; letter-spacing: .3px; }
.record-button { width: 78px; height: 78px; margin-top: 13px; display: grid; place-items: center; cursor: pointer; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; background: transparent; animation: record-pulse 2s infinite; }
.record-button:disabled { opacity: .45; cursor: wait; animation: none; }
.record-button i { width: 57px; height: 57px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), #ad48ff); }
.record-controls small { margin-top: 10px; color: #80798c; font-size: 8px; }
.recording-hud { position: absolute; z-index: 16; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 20px max(42px, env(safe-area-inset-bottom)); background: linear-gradient(transparent 55%, rgba(5,3,8,.88)); }
.recording-hud.is-visible { display: flex; }
.recording-hud > span { position: absolute; top: calc(max(16px, env(safe-area-inset-top)) + 55px); padding: 7px 11px; border: 1px solid rgba(255,46,151,.5); border-radius: 999px; background: rgba(5,3,8,.58); font-family: "Chakra Petch", sans-serif; font-size: 9px; letter-spacing: 1px; }
.recording-hud > span i { width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--pink); animation: pulse-dot 1s infinite; }
.recording-hud > strong { font-family: "Chakra Petch", sans-serif; font-size: 58px; line-height: 1; text-shadow: 0 0 25px rgba(255,46,151,.6); }
.recording-hud > small { margin-top: 4px; color: #c8c1d2; font-size: 9px; }
#record-canvas { position: fixed; left: -9999px; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

.screen--result { flex-direction: column; background: #050409; }
.result-header { position: absolute; }
.result-header span:not(.header-spacer) { color: var(--green); }
.result-stage { position: relative; min-height: 0; flex: 1; overflow: hidden; background: #040305; }
.result-stage video { width: 100%; height: 100%; object-fit: cover; }
.result-watermark { position: absolute; inset: -18% -45%; display: flex; flex-direction: column; justify-content: space-evenly; opacity: .2; pointer-events: none; transform: rotate(-24deg); }
.result-watermark span { white-space: nowrap; color: #fff; font-family: "Chakra Petch", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 7px; text-shadow: 0 0 12px rgba(255,255,255,.25); }
.result-corner { position: absolute; right: 11px; bottom: 10px; padding: 5px 8px; display: flex; gap: 5px; align-items: center; border-radius: 7px; background: rgba(5,3,8,.55); font-family: "Chakra Petch", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1px; pointer-events: none; }
.result-corner img { width: 14px; height: 14px; object-fit: contain; }
.result-actions { padding: 15px 18px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.07); background: var(--panel); }
.success-line { margin-bottom: 10px; display: flex; gap: 7px; justify-content: center; align-items: center; color: var(--green); font-size: 9px; }
.success-line i { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; font-style: normal; font-size: 8px; }
.primary-button { width: 100%; padding: 16px; display: flex; justify-content: space-between; color: #fff; cursor: pointer; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--pink), #ad48ff); box-shadow: 0 9px 25px rgba(255,46,151,.27); font-family: "Chakra Petch", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .8px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.action-row button { padding: 12px; color: var(--paper); cursor: pointer; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.04); font-family: "Chakra Petch", sans-serif; font-size: 10px; font-weight: 600; }
.result-actions p { max-width: 350px; margin: 9px auto 0; color: #898191; text-align: center; font-size: 10px; line-height: 1.45; }

.screen--paywall { overflow: hidden auto; flex-direction: column; background: radial-gradient(circle at 85% 12%, rgba(132,87,255,.24), transparent 30%), radial-gradient(circle at 8% 58%, rgba(255,46,151,.16), transparent 34%), #08070d; }
.paywall-glow { position: fixed; inset: 0; pointer-events: none; opacity: .65; background-image: linear-gradient(rgba(132,87,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(34,224,255,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(#000, transparent 78%); }
.paywall-header { position: relative; z-index: 2; padding: max(16px, env(safe-area-inset-top)) 18px 8px; display: flex; align-items: center; justify-content: space-between; }
.paywall-header > span:not(.header-spacer) { color: var(--cyan); font-family: "Chakra Petch", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.paywall-wrap { position: relative; z-index: 1; width: 100%; padding: 20px 20px max(30px, env(safe-area-inset-bottom)); }
.paywall-kicker { color: var(--green); font-family: "Chakra Petch", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2.2px; }
.paywall-wrap h2 { margin-top: 9px; font-size: clamp(29px, 8vw, 36px); line-height: 1.02; letter-spacing: -.7px; }
.paywall-wrap h2 span { color: var(--pink); text-shadow: 0 0 22px rgba(255,46,151,.34); }
.paywall-wrap > p { max-width: 360px; margin: 12px 0 18px; color: #b8b0c8; font-size: 13px; line-height: 1.55; }
.plan-stack { display: grid; gap: 12px; }
.plan-card { position: relative; padding: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018)); box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.plan-card--featured { border-color: rgba(255,46,151,.62); background: linear-gradient(145deg, rgba(255,46,151,.13), rgba(132,87,255,.07) 60%, rgba(255,255,255,.02)); box-shadow: 0 18px 44px rgba(255,46,151,.13); }
.plan-ribbon { position: absolute; top: 0; right: 0; padding: 6px 10px; border-radius: 0 17px 0 10px; color: #fff; background: linear-gradient(120deg, var(--pink), #9b52ff); font-family: "Chakra Petch", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-top > div { display: flex; align-items: baseline; flex-wrap: wrap; }
.plan-top small { width: 100%; margin-bottom: 2px; color: var(--cyan); font-family: "Chakra Petch", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.plan-top strong { font-family: "Chakra Petch", sans-serif; font-size: 29px; line-height: 1; }
.plan-top sup { margin-right: 2px; font-size: 14px; }
.plan-top span { margin-left: 5px; color: #81798d; font-size: 9px; }
.plan-top > b { margin-top: 11px; padding: 5px 7px; border: 1px solid rgba(61,245,160,.3); border-radius: 999px; color: var(--green); background: rgba(61,245,160,.055); font-family: "Chakra Petch", sans-serif; font-size: 8px; letter-spacing: .8px; }
.plan-card ul { margin: 12px 0 14px; padding: 0; display: grid; gap: 6px; list-style: none; color: #c8c0d4; font-size: 10px; }
.plan-card li::before { content: "✓"; margin-right: 7px; color: var(--green); }
.plan-button { width: 100%; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.07); font-family: "Chakra Petch", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.plan-button--featured { border: 0; background: linear-gradient(120deg, var(--pink), #a442ff); box-shadow: 0 10px 25px rgba(255,46,151,.25); }
.plan-button:disabled { opacity: .55; cursor: wait; }
.checkout-note { min-height: 16px; margin-top: 12px; color: #777083; text-align: center; font-size: 9px; }
.checkout-note.is-error { color: #f6be49; }
.paywall-later { width: 100%; margin-top: 7px; padding: 9px; color: #6e6779; cursor: pointer; border: 0; background: transparent; font-family: "Chakra Petch", sans-serif; font-size: 8px; letter-spacing: .7px; }

[tabindex="-1"]:focus { outline: none; }

.toast { position: absolute; z-index: 100; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 38px); padding: 11px 14px; opacity: 0; pointer-events: none; border: 1px solid rgba(255,46,151,.45); border-radius: 10px; color: var(--paper); background: rgba(7,5,11,.94); box-shadow: 0 12px 30px rgba(0,0,0,.5); transform: translate(-50%, 12px); transition: .25s ease; text-align: center; font-size: 10px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
noscript { display: block; padding: 30px; color: #fff; background: #08070d; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes pulse-dot { 50% { opacity: .28; } }
@keyframes record-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,151,.42); } 50% { box-shadow: 0 0 0 13px rgba(255,46,151,0); } }

@media (min-width: 700px) {
  body { display: grid; min-height: 100vh; place-items: center; background: radial-gradient(circle at 50% -10%, #23152e, #050409 58%); }
  .app-frame { height: min(940px, 96vh); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; }
}

@media (max-height: 680px) {
  .source-wrap { padding-top: 70px; transform: scale(.91); transform-origin: center; }
  .result-actions { padding-top: 10px; padding-bottom: 12px; }
  .result-actions p { display: none; }
  .paywall-wrap { padding-top: 8px; }
  .paywall-wrap > p { margin: 8px 0 10px; }
  .plan-card { padding: 12px; }
  .plan-card ul { margin: 8px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
