:root {
  color: #f4f3ed;
  background: #050505;
  font-family: Inter, "Arial Narrow", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --ink: #050505;
  --paper: #f4f3ed;
  --acid: #d7ff00;
  --optic-cyan: #47cfff;
  --orange: #ff6b25;
  --muted: rgba(244, 243, 237, 0.58);
  --line: rgba(244, 243, 237, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(215, 255, 0, 0.08), transparent 34rem),
    #050505;
}

button { border: 0; font: inherit; color: inherit; }

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  height: min(900px, calc(100dvh - 36px));
  min-height: min(900px, calc(100dvh - 36px));
  max-height: 932px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 34px;
  background: #070707;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(215, 255, 0, 0.035);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.55px, transparent 0.7px);
  background-size: 6px 6px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 17px 18px 10px;
}

.topbar h1, .topbar p, .marker-card h2, .marker-card p, .analysis-console h2 { margin: 0; }
.brand-lockup { display: grid; width: max-content; gap: 4px; }
.topbar h1 { display: inline-flex; align-items: baseline; font-size: 1.4rem; line-height: 1; letter-spacing: -0.06em; }
.brand-lockup h1 span:first-child { color: var(--paper); font-weight: 950; }
.brand-lockup h1 span:last-child { color: var(--acid); font-weight: 650; }
.brand-credit { width: max-content; display: flex; align-items: baseline; gap: 8px; margin: 0; text-transform: uppercase; }
.brand-credit span { color: rgba(244,243,237,.98); font: 950 .68rem/1 ui-monospace, monospace; letter-spacing: .065em; }
.brand-credit strong { color: var(--acid); font: 950 .78rem/.9 "Arial Black", Arial, sans-serif; letter-spacing: -.015em; transform: translateX(2px); }

.eyebrow, .kicker {
  color: var(--acid);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.72);
  cursor: pointer;
}

.icon-button:disabled { opacity: 1; }
.system-status { display: grid; justify-items: end; gap: 3px; }
.system-status small { color: var(--muted); font: 700 0.54rem/1 ui-monospace, monospace; letter-spacing: 0.1em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px rgba(215, 255, 0, 0.7); }
.status-dot.live { animation: statusPulse 0.8s ease-in-out infinite; }

.screen {
  position: relative;
  z-index: 2;
  min-height: calc(min(900px, 100dvh - 36px) - 69px);
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
}

.home-topbar { display: none; }
.portal-landing-viewport { position: absolute; left: 18px; right: 18px; top: 77px; height: min(61vh, 555px); min-height: 450px; border: 1px solid transparent; visibility: hidden; pointer-events: none; }
.portal-landing-scope { position: absolute; left: 50%; top: 48%; width: min(88%, 330px); aspect-ratio: 1; translate: -50% -50%; }
.home-screen {
  height: 100%;
  min-height: calc(min(900px, 100dvh - 36px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  overflow: hidden;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
}

.home-hero {
  position: relative;
  z-index: 5;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.poster-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1023 / 1537;
  overflow: hidden;
  transform-origin: 45.9% 44.9%;
  will-change: transform, filter;
}
.portal-camera-preview { position: absolute; z-index: 4; left: 18px; right: 18px; top: 77px; height: min(61vh, 555px); min-height: 450px; overflow: hidden; border: 1px solid rgba(244,243,237,.23); border-radius: 18px; background: #020202; opacity: 0; pointer-events: none; }
.portal-camera-preview video, .portal-camera-preview img { width: 100%; height: 100%; display: block; object-fit: cover; filter: contrast(1.16) saturate(1.08); }
.portal-camera-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, transparent 28%, rgba(0,0,0,.5) 100%), linear-gradient(to bottom, rgba(0,0,0,.22), transparent 32%, transparent 70%, rgba(0,0,0,.42)); }
.portal-camera-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(215,255,0,.16), rgba(244,243,237,.42), transparent); opacity: 0; transform: translateY(-100%); animation: portalFeedScan 1.38s ease-in-out both; }
.home-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.44));
  transform-origin: 45.9% 44.9%;
  will-change: transform, filter, opacity;
}

.poster-eye-portal {
  --portal-travel-x: 0px;
  --portal-travel-y: 0px;
  --portal-start-size: 13.4%;
  --portal-target-size: 280px;
  position: absolute;
  z-index: 6;
  left: 45.9%;
  top: 44.9%;
  width: var(--portal-start-size);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,9,4,.94) 0 43%, rgba(0,5,2,.78) 58%, transparent 72%);
  will-change: translate, scale, opacity;
}
.poster-eye-portal .scope-architecture { --scope-size: 100%; left: 50%; top: 50%; width: 100%; opacity: 1; filter: drop-shadow(0 0 5px rgba(69,255,140,.52)); }
.scope-portal .scope-ring-outer { border-color: rgba(97,255,164,.68); }
.scope-portal .scope-ring-ticks { animation: scopeSpin 2.4s linear infinite; }
.scope-portal .scope-ring-segments { animation: scopeSpin 1.35s linear infinite reverse; }
.scope-portal .scope-orbit-a { animation-duration: 2.1s; }
.scope-portal .scope-orbit-b { animation-duration: 1.1s; }
.scope-portal .scope-clamp { width: min(12.3%, 34px); height: min(12.3%, 34px); border-color: rgba(215,255,0,.9); filter: drop-shadow(0 0 5px rgba(215,255,0,.55)); }
.poster-eye-portal .portal-reticle { left: 50%; top: 50%; width: min(52.2%, 144px); height: auto; aspect-ratio: 1; animation: none; }
.poster-eye-portal .portal-reticle::before { left: -16.67%; right: -16.67%; }
.poster-eye-portal .portal-reticle::after { top: -16.67%; bottom: -16.67%; }
.poster-eye-portal .portal-reticle span { width: min(18.06%, 26px); height: min(18.06%, 26px); }
.poster-eye-core { position: absolute; z-index: 8; left: 50%; top: 50%; width: min(7.25%, 20px); aspect-ratio: 1; translate: -50% -50%; border: 2px solid var(--acid); border-radius: 50%; background: transparent; box-shadow: 0 0 18px rgba(215,255,0,.55); }
.poster-eye-flare { position: absolute; z-index: 7; left: 50%; top: 50%; width: 180%; height: 1px; translate: -50% -50%; background: linear-gradient(90deg, transparent, #45ff8c, transparent); box-shadow: 0 0 12px rgba(69,255,140,.68); }
.poster-eye-flare::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 180%; translate: -50% -50%; background: linear-gradient(transparent, #45ff8c, transparent); }
.poster-transition-status { position: absolute; z-index: 8; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid rgba(69,255,140,.48); background: rgba(0,6,3,.88); color: #62ffa1; opacity: 0; translate: 0 8px; font: 900 .46rem/1 ui-monospace, monospace; letter-spacing: .1em; pointer-events: none; }
.poster-transition-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.poster-transition-status > span { position: relative; display: grid; }
.poster-transition-status b, .poster-transition-status strong { grid-area: 1 / 1; font: inherit; }
.poster-transition-status b { color: #62ffa1; animation: posterStatusInit 1.38s ease both; }
.poster-transition-status strong { color: var(--acid); opacity: 0; animation: posterStatusReady 1.38s ease both; }
.poster-transition-status em { color: rgba(244,243,237,.54); font-style: normal; }
.home-screen:not(.is-transitioning) .poster-eye-portal { opacity: .58; background: transparent; filter: drop-shadow(0 0 4px rgba(69,255,140,.22)); }
.home-screen:not(.is-transitioning) .poster-eye-portal .scope-architecture > * { display: none; }
.home-screen:not(.is-transitioning) .poster-eye-portal .scope-ring-segments,
.home-screen:not(.is-transitioning) .poster-eye-portal .scope-ring-core { display: block; }
.home-screen:not(.is-transitioning) .poster-eye-portal .scope-ring-segments { inset: 14%; opacity: .3; animation: idleOpticTurn 22s linear infinite; }
.home-screen:not(.is-transitioning) .poster-eye-portal .scope-ring-core { inset: 28%; opacity: .3; border-color: rgba(69,255,140,.34); box-shadow: 0 0 8px rgba(69,255,140,.18); }
.home-screen:not(.is-transitioning) .poster-eye-portal .portal-reticle,
.home-screen:not(.is-transitioning) .poster-eye-flare { display: none; }
.home-screen:not(.is-transitioning) .poster-eye-core { animation: idleEyeCore 4.8s ease-in-out infinite; }
.home-screen.is-transitioning { background: #000; }
.home-screen.is-transitioning .poster-stage { overflow: visible; }
.home-screen.is-transitioning .portal-camera-preview { animation: portalCameraReveal 1.38s cubic-bezier(.4,0,.2,1) both; }
.home-screen.is-transitioning .home-poster { animation: posterThroughEye 1.38s cubic-bezier(.65,0,.16,1) both; }
.home-screen.is-transitioning .poster-eye-portal { animation: portalScopeBridge 1.38s cubic-bezier(.68,0,.18,1) both; }
.home-screen.is-transitioning .poster-eye-core { animation: portalCoreResolve 1.38s ease both; }
.home-screen.is-transitioning .poster-transition-status { animation: posterStatusCycle 1.38s ease both; }
.home-screen.is-transitioning .home-actions,
.home-screen.is-transitioning > .home-legal { animation: posterControlsOut .18s ease both; pointer-events: none; }

.home-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.home-actions .primary-action,
.home-actions .secondary-action { min-height: 52px; padding-inline: 12px; font-size: .72rem; }
.home-actions .ghost-action { grid-column: 1 / -1; min-height: 28px; padding-inline: 3px; }
.home-legal { display: grid; justify-items: center; gap: 7px; margin-top: -2px; }
.home-legal .disclaimer { max-width: 42ch; }
.home-camera-error { position: absolute; z-index: 15; left: 14px; right: 14px; bottom: 132px; padding: 10px 11px; border: 1px solid rgba(255,107,37,.48); border-left: 3px solid var(--orange); background: rgba(20,7,2,.94); box-shadow: 0 10px 30px rgba(0,0,0,.52); }
.how-link { display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px; border-bottom: 1px solid rgba(244,243,237,.42); background: transparent; color: rgba(244,243,237,.58); font: 800 .62rem/1.25 ui-monospace, monospace; letter-spacing: .035em; cursor: pointer; }
.how-link .glyph { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-size: .48rem; }

.how-overlay { position: absolute; z-index: 40; inset: 0; display: grid; align-items: end; }
.how-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); cursor: pointer; animation: howBackdropIn .22s ease both; }
.how-sheet { position: relative; z-index: 1; display: grid; gap: 14px; max-height: calc(100% - 44px); overflow-y: auto; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); border: 1px solid rgba(69,255,140,.34); border-bottom: 0; border-radius: 22px 22px 0 0; background: linear-gradient(155deg, rgba(10,25,17,.99), rgba(4,8,6,.99) 52%, #050505); box-shadow: 0 -24px 70px rgba(0,0,0,.72), inset 0 1px rgba(97,255,164,.12); animation: howSheetIn .34s cubic-bezier(.2,.8,.2,1) both; }
.how-sheet::before { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 3px; translate: -50% 0; border-radius: 4px; background: rgba(244,243,237,.24); }
.how-sheet-topline { display: flex; align-items: center; justify-content: space-between; }
.how-sheet h2 { margin: 0; max-width: 11ch; font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: clamp(2rem, 10vw, 2.7rem); line-height: .86; letter-spacing: -.025em; text-transform: uppercase; }
.how-sheet p { margin: 0; color: rgba(244,243,237,.72); font-size: .84rem; line-height: 1.48; }
.how-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(244,243,237,.22); border-radius: 50%; background: rgba(255,255,255,.035); color: var(--paper); cursor: pointer; }
.how-close .glyph { font-size: 1.2rem; }
.how-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.how-traits span { padding: 7px 8px; border: 1px solid rgba(69,255,140,.3); background: rgba(69,255,140,.055); color: #62ffa1; font: 900 .57rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.how-sheet .how-limit { padding: 12px; border-left: 3px solid var(--acid); background: rgba(215,255,0,.05); color: rgba(244,243,237,.58); font-size: .75rem; }

.home-scanner {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 12px;
  translate: -50% 0;
  width: 94%;
  height: calc(100% - 24px);
  border: 1px solid rgba(244, 243, 237, 0.2);
  background:
    linear-gradient(rgba(255,255,255,.025), rgba(255,255,255,.008)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.035) 23px 24px),
    #080808;
  box-shadow: inset 0 0 80px rgba(0,0,0,.86), 0 22px 60px rgba(0,0,0,.55);
  clip-path: polygon(12% 0, 100% 0, 100% 91%, 88% 100%, 0 100%, 0 10%);
}

.scanner-bezel { position: absolute; inset: 12px; overflow: hidden; border: 1px solid rgba(215,255,0,.22); background: radial-gradient(circle at 50% 47%, rgba(215,255,0,.075), transparent 43%); }
.scanner-corners i { position: absolute; width: 28px; height: 28px; border-color: var(--paper); opacity: .82; }
.scanner-corners i:nth-child(1) { top: 15px; left: 15px; border-top: 2px solid; border-left: 2px solid; }
.scanner-corners i:nth-child(2) { top: 15px; right: 15px; border-top: 2px solid; border-right: 2px solid; }
.scanner-corners i:nth-child(3) { right: 15px; bottom: 15px; border-right: 2px solid; border-bottom: 2px solid; }
.scanner-corners i:nth-child(4) { left: 15px; bottom: 15px; border-left: 2px solid; border-bottom: 2px solid; }
.optical-ring { position: absolute; left: 50%; top: 46%; translate: -50% -50%; border: 1px solid rgba(244,243,237,.34); border-radius: 50%; }
.optical-ring i { position: absolute; left: 50%; top: -7px; width: 1px; height: 14px; background: var(--acid); transform-origin: 50% calc(50% + var(--ring-radius)); }
.optical-ring i:nth-child(2) { rotate: 90deg; }.optical-ring i:nth-child(3) { rotate: 180deg; }.optical-ring i:nth-child(4) { rotate: 270deg; }
.ring-outer { --ring-radius: 91px; width: 182px; height: 182px; border-style: dashed; animation: scannerRotate 12s linear infinite; }
.ring-inner { --ring-radius: 61px; width: 122px; height: 122px; border-color: rgba(215,255,0,.5); animation: scannerRotate 7s linear infinite reverse; }
.optical-crosshair { position: absolute; left: 50%; top: 46%; width: 78px; height: 78px; translate: -50% -50%; border: 1px solid rgba(215,255,0,.78); border-radius: 50%; box-shadow: 0 0 28px rgba(215,255,0,.12); }
.optical-crosshair::before, .optical-crosshair::after { content: ""; position: absolute; background: var(--acid); }
.optical-crosshair::before { left: -38px; right: -38px; top: 50%; height: 1px; }
.optical-crosshair::after { top: -38px; bottom: -38px; left: 50%; width: 1px; }
.optical-crosshair span { position: absolute; width: 17px; height: 17px; border-color: var(--acid); }
.optical-crosshair span:first-child { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.optical-crosshair span:nth-child(2) { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.optical-crosshair b { position: absolute; inset: 31px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px rgba(215,255,0,.7); animation: statusPulse 1s ease-in-out infinite; }
.scanner-sweep { position: absolute; z-index: 3; left: 0; right: 0; top: -10%; height: 13%; background: linear-gradient(transparent, rgba(215,255,0,.18), var(--acid), transparent); mix-blend-mode: screen; animation: homeScan 2.8s cubic-bezier(.45,0,.55,1) infinite; }
.scanner-node { position: absolute; width: 7px; height: 7px; border: 1px solid var(--acid); border-radius: 50%; box-shadow: 0 0 10px rgba(215,255,0,.55); }
.node-a { left: 23%; top: 31%; }.node-b { right: 19%; top: 57%; }.node-c { left: 31%; bottom: 22%; }
.scanner-node::before, .scanner-node::after { content: ""; position: absolute; background: rgba(215,255,0,.65); }
.scanner-node::before { left: -5px; right: -5px; top: 2px; height: 1px; }.scanner-node::after { top: -5px; bottom: -5px; left: 2px; width: 1px; }
.scanner-readout { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid rgba(255,255,255,.16); padding-top: 8px; }
.scanner-readout small { font: 700 .48rem/1 ui-monospace, monospace; letter-spacing: .13em; color: var(--muted); }
.scanner-readout strong { color: var(--acid); font: 900 .7rem/1 ui-monospace, monospace; letter-spacing: .12em; }

.action-stack { display: grid; gap: 8px; }
.primary-action, .secondary-action, .ghost-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.primary-action { justify-content: space-between; padding: 0 20px; background: var(--acid); color: #050505; box-shadow: 0 12px 32px rgba(215, 255, 0, 0.12); }
.secondary-action { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.ghost-action { min-height: 38px; justify-content: space-between; padding: 0 2px; background: transparent; color: var(--muted); font-size: 0.7rem; }
.primary-action:disabled { cursor: wait; opacity: .58; box-shadow: none; }
.primary-action:active, .secondary-action:active, .ghost-action:active, .marker:active { transform: scale(0.985); }
.compact { min-height: 48px; padding-inline: 16px; }
.hidden-input, .capture-canvas { display: none; }

.capture-screen, .analyzing-screen { display: grid; align-content: start; gap: 12px; }
.capture-screen {
  height: calc(100% - 69px);
  min-height: 0;
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
}
.capture-screen::-webkit-scrollbar { width: 0; height: 0; }
.capture-screen.has-rejection { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.capture-command-dock { position: absolute; z-index: 24; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(132px,.9fr) minmax(154px,1.12fr); gap: 8px; padding: 8px; border: 1px solid rgba(215,255,0,.5); border-radius: 5px; background: linear-gradient(110deg, rgba(3,3,3,.97), rgba(12,14,4,.95)); box-shadow: 0 -18px 44px rgba(0,0,0,.78), 0 0 28px rgba(215,255,0,.09); backdrop-filter: blur(18px); }
.capture-command-dock::before { content: ""; position: absolute; left: 10px; right: 10px; top: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--acid), transparent); opacity: .74; }
.camera-handoff .topbar, .camera-handoff .camera-controls, .camera-handoff .capture-panel, .camera-handoff .capture-command-dock, .camera-handoff .capture-screen > .disclaimer { animation: captureChromeIn .46s cubic-bezier(.2,.8,.2,1) both; }
.camera-handoff .camera-controls { animation-delay: .04s; }
.camera-handoff .capture-panel, .camera-handoff .capture-command-dock { animation-delay: .1s; }
.camera-handoff .lock-chip, .camera-handoff .exposure-scale { animation: captureOpticsIn .4s ease .08s both; }
.sound-control.dock-sound { min-height: 64px; grid-template-columns: 34px 1fr; gap: 9px; padding: 8px 10px; background: rgba(255,255,255,.025); }
.sound-control.dock-sound .sound-wave { width: 34px; height: 34px; }
.sound-control.dock-sound small { font-size: .5rem; }
.sound-control.dock-sound strong { font-size: .64rem; line-height: 1.08; }
.dock-scan { min-height: 60px; padding: 0 14px; font-size: .79rem; box-shadow: 0 0 26px rgba(215,255,0,.14); }
.panel-upload { width: 100%; }
.scanner-viewport {
  position: relative;
  height: min(61vh, 555px);
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 18px;
  background: #020202;
}
.bud-image { width: 100%; height: 100%; display: block; object-fit: cover; filter: contrast(1.16) saturate(1.08); }
.optical-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 48%, transparent 34%, rgba(0, 0, 0, 0.52) 100%); }
.scope-architecture { --scope-size: min(88%, 330px); position: absolute; z-index: 3; left: 50%; top: 48%; width: var(--scope-size); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; filter: drop-shadow(0 0 11px rgba(215,255,0,.14)); }
.scope-ring { position: absolute; inset: 0; border-radius: 50%; }
.scope-ring-outer { inset: -8%; border: 1px solid rgba(244,243,237,.42); box-shadow: 0 0 0 10px rgba(5,5,5,.28), 0 0 0 11px rgba(71,207,255,.12), inset 0 0 22px rgba(71,207,255,.08); }
.scope-ring-outer::before, .scope-ring-outer::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border-top: 3px solid var(--optic-cyan); border-bottom: 3px solid var(--acid); clip-path: polygon(0 0,38% 0,45% 11%,55% 11%,62% 0,100% 0,100% 100%,62% 100%,55% 89%,45% 89%,38% 100%,0 100%); opacity: .72; }
.scope-ring-outer::after { inset: 12px; border-width: 1px; rotate: 37deg; opacity: .35; }
.scope-ring-ticks { inset: 1%; background: repeating-conic-gradient(from 0deg, rgba(244,243,237,.72) 0 1deg, transparent 1deg 5deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); opacity: .65; }
.scope-ring-segments { inset: 9%; background: conic-gradient(from -8deg, var(--optic-cyan) 0 28deg, transparent 28deg 48deg, rgba(244,243,237,.88) 48deg 69deg, transparent 69deg 111deg, var(--acid) 111deg 146deg, transparent 146deg 190deg, rgba(71,207,255,.64) 190deg 222deg, transparent 222deg 268deg, var(--acid) 268deg 304deg, transparent 304deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); opacity: .7; }
.scope-ring-core { inset: 21%; border: 1px solid rgba(71,207,255,.3); box-shadow: inset 0 0 28px rgba(71,207,255,.06), 0 0 18px rgba(215,255,0,.07); }
.scope-ring-core::before { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(215,255,0,.38); border-radius: 50%; }
.scope-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(71,207,255,.24); }
.scope-orbit-a { inset: -15%; animation: scopeSpin 19s linear infinite; }
.scope-orbit-b { inset: 14%; border-style: dotted; border-color: rgba(215,255,0,.32); animation: scopeSpin 8s linear infinite reverse; }
.scope-orbit i { position: absolute; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; color: var(--optic-cyan); background: #050505; box-shadow: 0 0 9px currentColor; }
.scope-orbit i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.scope-orbit i:first-child { left: 50%; top: -4px; }
.scope-orbit i:nth-child(2) { right: -4px; top: 50%; }
.scope-orbit i:nth-child(3) { left: 50%; bottom: -4px; color: var(--acid); }
.scope-orbit i:nth-child(4) { left: -4px; top: 50%; color: var(--acid); }
.scope-orbit-b i { width: 5px; height: 5px; color: var(--acid); }
.scope-orbit-b i:nth-child(2) { right: 13%; top: 18%; }
.scope-orbit-b i:nth-child(3) { left: 13%; bottom: 18%; }
.scope-cardinal { position: absolute; left: 50%; translate: -50% 0; color: var(--optic-cyan); font: 900 .5rem/1 ui-monospace, monospace; text-shadow: 0 0 9px currentColor; }
.scope-north { top: -15%; }
.scope-south { bottom: -15%; color: var(--acid); }
.scope-clamp { position: absolute; width: 34px; height: 34px; border-color: rgba(244,243,237,.84); }
.clamp-tl { left: 5%; top: 5%; border-left: 3px solid; border-top: 3px solid; clip-path: polygon(0 0,100% 0,100% 20%,24% 20%,24% 100%,0 100%); }
.clamp-tr { right: 5%; top: 5%; border-right: 3px solid; border-top: 3px solid; clip-path: polygon(0 0,100% 0,100% 100%,76% 100%,76% 20%,0 20%); }
.clamp-br { right: 5%; bottom: 5%; border-right: 3px solid; border-bottom: 3px solid; clip-path: polygon(76% 0,100% 0,100% 100%,0 100%,0 80%,76% 80%); }
.clamp-bl { left: 5%; bottom: 5%; border-left: 3px solid; border-bottom: 3px solid; clip-path: polygon(0 0,24% 0,24% 80%,100% 80%,100% 100%,0 100%); }
.scope-bus { position: absolute; top: 22%; display: grid; gap: 4px; width: 25px; }
.scope-bus i { height: 3px; background: rgba(71,207,255,.66); box-shadow: 0 0 8px rgba(71,207,255,.36); }
.scope-bus i:nth-child(2), .scope-bus i:nth-child(5) { width: 62%; }
.bus-left { right: 105%; justify-items: end; }
.bus-right { left: 105%; }
.scope-wing { position: absolute; top: 50%; width: 30%; height: 24%; translate: 0 -50%; opacity: .58; }
.scope-wing i { position: absolute; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--optic-cyan)); transform-origin: right; }
.scope-wing i:first-child { top: 16%; rotate: 23deg; }
.scope-wing i:nth-child(2) { top: 50%; }
.scope-wing i:nth-child(3) { bottom: 16%; rotate: -23deg; }
.wing-left { right: 98%; }
.wing-right { left: 98%; transform: scaleX(-1); }
.scope-sector { position: absolute; top: 62%; display: flex; align-items: end; gap: 3px; height: 32px; }
.scope-sector i { width: 3px; height: 8px; background: var(--optic-cyan); box-shadow: 0 0 7px rgba(71,207,255,.54); }
.scope-sector i:nth-child(2) { height: 17px; }.scope-sector i:nth-child(3) { height: 27px; }.scope-sector i:nth-child(4) { height: 14px; }.scope-sector i:nth-child(5) { height: 22px; background: var(--acid); }
.sector-left { right: 109%; transform: scaleX(-1); }
.sector-right { left: 109%; }
.scope-coordinate { position: absolute; left: 50%; bottom: -23%; translate: -50% 0; display: flex; gap: 5px; color: rgba(244,243,237,.42); font: 800 .42rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.scope-coordinate b { color: var(--acid); }
.scope-analysis .scope-ring-ticks, .scope-analysis .scope-ring-segments { animation: scopeSpin 8s linear infinite; }
.scope-analysis .scope-ring-segments { animation-direction: reverse; animation-duration: 5.2s; }
.scope-analysis .scope-ring-outer { animation: scopePulse 1.1s ease-in-out infinite; }
.scope-analysis .scope-clamp { border-color: var(--acid); filter: drop-shadow(0 0 7px rgba(215,255,0,.55)); }
.scope-analysis .scope-orbit-a { animation-duration: 7s; border-color: rgba(71,207,255,.45); }
.scope-analysis .scope-orbit-b { animation-duration: 3.7s; }
.scope-analysis .scope-sector i { animation: sectorSignal .46s ease-in-out infinite alternate; }
.scope-analysis .scope-sector i:nth-child(2) { animation-delay: .08s; }.scope-analysis .scope-sector i:nth-child(3) { animation-delay: .17s; }.scope-analysis .scope-sector i:nth-child(4) { animation-delay: .25s; }.scope-analysis .scope-sector i:nth-child(5) { animation-delay: .33s; }
.scope-home { --scope-size: min(79%, 274px); top: 46%; opacity: .88; }
.scope-home .scope-ring-ticks { animation: scopeSpin 16s linear infinite; }
.scope-home .scope-ring-segments { animation: scopeSpin 9s linear infinite reverse; }
.scope-home .scope-clamp { border-color: rgba(215,255,0,.82); }
.scope-live { opacity: .76; }
.scope-result { --scope-size: min(82%, 350px); top: 43%; opacity: .42; filter: drop-shadow(0 0 10px rgba(215,255,0,.16)); }
.scope-result .scope-ring-outer, .scope-result .scope-ring-core { border-color: rgba(215,255,0,.44); }
.reticle { position: absolute; z-index: 4; left: 50%; top: 48%; width: 144px; height: 144px; translate: -50% -50%; border: 1px solid rgba(244, 243, 237, 0.52); border-radius: 50%; animation: breathe 2.4s ease-in-out infinite; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: rgba(244, 243, 237, 0.7); }
.reticle::before { left: -24px; right: -24px; top: 50%; height: 1px; }
.reticle::after { top: -24px; bottom: -24px; left: 50%; width: 1px; }
.reticle span { position: absolute; width: 26px; height: 26px; border-color: var(--acid); }
.reticle span:first-child { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.reticle span:nth-child(2) { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.reticle b { position: absolute; inset: 62px; border: 2px solid var(--acid); border-radius: 50%; box-shadow: 0 0 18px rgba(215, 255, 0, 0.55); }

.scan-line { position: absolute; z-index: 5; inset-inline: 0; top: -16%; height: 16%; opacity: 0; background: linear-gradient(transparent, rgba(215, 255, 0, 0.24), var(--acid), transparent); mix-blend-mode: screen; }
.is-analyzing .scan-line { opacity: 1; animation: scanDown 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.is-analyzing .bud-image { animation: analysisImage 1.5s ease-in-out infinite alternate; }
.is-analyzing .reticle { border-color: rgba(215, 255, 0, 0.62); animation-duration: 1.1s; }
.is-analyzing { border-color: rgba(215,255,0,.55); box-shadow: inset 0 0 54px rgba(215,255,0,.08), 0 0 28px rgba(215,255,0,.08); }
.is-analyzing .scan-line { animation-duration: .92s; }
.is-verifying .scan-line { height: 25%; animation-duration: 1.18s; background: linear-gradient(transparent, rgba(215,255,0,.08), rgba(215,255,0,.72), rgba(255,255,255,.75), transparent); }
.is-verifying .reticle { width: 174px; height: 174px; animation: verifyReticle 1.35s cubic-bezier(.4,0,.2,1) infinite; }
.is-verifying .acquisition-ring { width: 248px; height: 248px; border-style: dotted; animation-duration: 1.35s; }
.is-verifying .bud-image { animation: verifyImage 1.8s ease-in-out infinite alternate; }

.analysis-field { position: absolute; z-index: 6; inset: 0; overflow: hidden; pointer-events: none; }
.analysis-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(215,255,0,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(215,255,0,.18) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 48%, #000 0 42%, transparent 78%); animation: gridBreathe 1.2s ease-in-out infinite; }
.spectral-band { position: absolute; inset-block: -12%; width: 15%; opacity: .18; filter: blur(10px); mix-blend-mode: screen; transform: skewX(-9deg); }
.spectral-a { left: -22%; background: linear-gradient(90deg, transparent, var(--acid), transparent); animation: spectralTraverse 2.1s ease-in-out infinite; }
.spectral-b { right: -22%; background: linear-gradient(90deg, transparent, rgba(255,107,37,.72), transparent); animation: spectralTraverseReverse 2.6s ease-in-out infinite .25s; }
.scan-prism { position: absolute; left: -8%; right: -8%; height: 9%; opacity: .58; border-top: 1px solid rgba(71,207,255,.55); border-bottom: 1px solid rgba(215,255,0,.46); backdrop-filter: hue-rotate(32deg) saturate(1.65) contrast(1.12); mix-blend-mode: screen; transform: skewY(-2deg); }
.prism-a { top: 18%; animation: prismSlice 1.48s cubic-bezier(.4,0,.2,1) infinite; }
.prism-b { top: 69%; height: 5%; opacity: .38; animation: prismSliceReverse 1.86s cubic-bezier(.4,0,.2,1) infinite .22s; }
.depth-ring { position: absolute; left: 50%; top: 48%; translate: -50% -50%; border: 1px solid rgba(244,243,237,.2); border-radius: 50%; opacity: 0; }
.depth-ring-a { width: 90px; height: 90px; animation: depthEcho 1.55s ease-out infinite; }
.depth-ring-b { width: 90px; height: 90px; animation: depthEcho 1.55s ease-out infinite .7s; }
.acquisition-ring { position: absolute; left: 50%; top: 48%; width: 214px; height: 214px; translate: -50% -50%; border: 1px dashed rgba(215,255,0,.68); border-radius: 50%; box-shadow: 0 0 24px rgba(215,255,0,.12), inset 0 0 24px rgba(215,255,0,.08); animation: acquisitionSpin 2.2s linear infinite; }
.acquisition-ring::before, .acquisition-ring::after { content: ""; position: absolute; border-radius: 50%; }
.acquisition-ring::before { inset: 18px; border: 1px solid rgba(244,243,237,.24); }
.acquisition-ring::after { inset: 47px; border: 1px dotted rgba(215,255,0,.55); animation: ringPulse .62s ease-out both; }
.acquisition-ring i { position: absolute; width: 17px; height: 17px; border-color: var(--acid); }
.acquisition-ring i:nth-child(1) { left: -2px; top: -2px; border-left: 2px solid; border-top: 2px solid; }
.acquisition-ring i:nth-child(2) { right: -2px; top: -2px; border-right: 2px solid; border-top: 2px solid; }
.acquisition-ring i:nth-child(3) { right: -2px; bottom: -2px; border-right: 2px solid; border-bottom: 2px solid; }
.acquisition-ring i:nth-child(4) { left: -2px; bottom: -2px; border-left: 2px solid; border-bottom: 2px solid; }
.axis-beam { position: absolute; opacity: .72; mix-blend-mode: screen; }
.beam-x { left: -26%; top: 48%; width: 152%; height: 1px; background: linear-gradient(90deg, transparent, var(--acid) 20% 80%, transparent); box-shadow: 0 0 10px var(--acid); animation: beamSweepY 1.15s ease-in-out infinite alternate; }
.beam-y { top: -26%; left: 50%; width: 1px; height: 152%; background: linear-gradient(transparent, var(--acid) 20% 80%, transparent); box-shadow: 0 0 10px var(--acid); animation: beamSweepX 1.35s ease-in-out infinite alternate-reverse; }
.radial-flare { position: absolute; left: 50%; top: 48%; width: 310px; height: 310px; translate: -50% -50%; border-radius: 50%; opacity: .48; background: repeating-conic-gradient(from 0deg, transparent 0 9deg, rgba(71,207,255,.14) 9deg 10deg, transparent 10deg 24deg, rgba(215,255,0,.1) 24deg 25deg); -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 43% 44%, transparent 45% 61%, #000 62% 63%, transparent 64%); mask: radial-gradient(circle, transparent 0 42%, #000 43% 44%, transparent 45% 61%, #000 62% 63%, transparent 64%); animation: flareCounterSpin 11s linear infinite; }
.data-rain { position: absolute; inset: 0; overflow: hidden; opacity: .5; mix-blend-mode: screen; }
.data-rain i { position: absolute; top: -28%; width: 2px; height: 18%; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(71,207,255,.8) 5px 8px, transparent 8px 13px, rgba(215,255,0,.72) 13px 14px); animation: dataRain 1.8s linear infinite; }
.data-rain i:nth-child(1) { left: 8%; }.data-rain i:nth-child(2) { left: 19%; animation-delay: -.55s; }.data-rain i:nth-child(3) { left: 34%; animation-delay: -1.1s; }.data-rain i:nth-child(4) { left: 47%; animation-delay: -.25s; }.data-rain i:nth-child(5) { left: 62%; animation-delay: -1.45s; }.data-rain i:nth-child(6) { left: 73%; animation-delay: -.8s; }.data-rain i:nth-child(7) { left: 86%; animation-delay: -1.25s; }.data-rain i:nth-child(8) { left: 94%; animation-delay: -.38s; }
.vector-trace { position: absolute; width: 42%; height: 1px; background: linear-gradient(90deg, transparent, var(--optic-cyan), transparent); box-shadow: 0 0 7px rgba(71,207,255,.4); opacity: .6; transform-origin: center; }
.trace-a { left: -6%; top: 29%; rotate: 24deg; animation: vectorPulse 1.1s ease-in-out infinite; }
.trace-b { right: -6%; bottom: 31%; rotate: -21deg; animation: vectorPulse 1.1s ease-in-out infinite .44s; }
.impact-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(215,255,0,.34), transparent 48%); opacity: 0; animation: impactFlash .62s ease-out both; }
.vision-signature { position: absolute; z-index: 9; left: 14px; bottom: 58px; display: grid; grid-template-columns: 8px auto; gap: 3px 7px; align-items: center; padding: 7px 8px; border-left: 2px solid var(--acid); background: rgba(5,5,5,.72); font: 800 .45rem/1 ui-monospace, monospace; letter-spacing: .09em; }
.vision-signature i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: statusPulse .8s ease-in-out infinite; }
.vision-signature span { color: var(--paper); }
.vision-signature b { color: var(--acid); font-size: .42rem; }
.field-counter { position: absolute; z-index: 9; right: 14px; bottom: 15px; display: grid; justify-items: end; gap: 2px; padding: 6px 7px; border-right: 2px solid var(--acid); background: rgba(5,5,5,.72); }
.field-counter small { color: var(--muted); font: 700 .46rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.field-counter strong { color: var(--acid); font: 900 1.15rem/.9 ui-monospace, monospace; text-shadow: 0 0 13px rgba(215,255,0,.55); }
.scan-complete { animation: completeFrame .68s ease-out both; }
.scan-complete .acquisition-ring { border-style: solid; animation: completeRing .68s ease-out both; }
.scan-complete .impact-flash { animation: completeFlash .68s ease-out both; }

.exposure-scale { position: absolute; z-index: 4; right: 14px; top: 31%; display: grid; justify-items: end; gap: 8px; color: var(--paper); font: 700 0.54rem/1 ui-monospace, monospace; }
.exposure-scale i { width: 16px; height: 18px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.75) 0 1px, transparent 1px 5px); }
.exposure-scale span:nth-of-type(2) { color: var(--acid); }
.lock-chip { position: absolute; z-index: 7; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(215, 255, 0, 0.62); border-radius: 2px; background: rgba(5, 5, 5, 0.78); color: var(--acid); font: 900 0.61rem/1 ui-monospace, monospace; letter-spacing: 0.08em; }

.characteristic-lock { position: absolute; z-index: 8; translate: -50% -50%; pointer-events: none; }
.characteristic-lock b { position: absolute; left: 34px; top: calc(50% + var(--label-shift, 0px)); width: max-content; translate: 0 -50%; padding: 5px 7px; border-left: 1px solid var(--acid); background: rgba(5,5,5,.78); color: var(--acid); font: 800 0.5rem/1 ui-monospace, monospace; letter-spacing: .08em; transition: top .28s ease; }
.characteristic-lock.label-left b { left: auto; right: 34px; border-left: 0; border-right: 1px solid var(--acid); text-align: right; }
.lock-crosshair { position: relative; display: block; width: 32px; height: 32px; border: 1px solid var(--acid); border-radius: 50%; box-shadow: 0 0 16px rgba(215,255,0,.35); }
.lock-crosshair::before, .lock-crosshair::after { content: ""; position: absolute; background: var(--acid); }
.lock-crosshair::before { left: -7px; right: -7px; top: 50%; height: 1px; }
.lock-crosshair::after { top: -7px; bottom: -7px; left: 50%; width: 1px; }
.lock-crosshair i { position: absolute; inset: 11px; border-radius: 50%; background: var(--acid); }
.characteristic-lock.acquiring .lock-crosshair { animation: acquire 0.7s ease-in-out infinite; }
.characteristic-lock.acquiring::before, .characteristic-lock.acquiring::after { content: ""; position: absolute; left: 16px; top: 16px; translate: -50% -50%; border: 1px solid var(--acid); border-radius: 50%; animation: targetShock .62s ease-out both; }
.characteristic-lock.acquiring::before { width: 76px; height: 76px; }
.characteristic-lock.acquiring::after { width: 48px; height: 48px; animation-delay: .08s; }
.characteristic-lock.locked .lock-crosshair { width: 24px; height: 24px; background: rgba(215,255,0,.12); }

.capture-panel, .analysis-console, .marker-card, .flags-card, .trait-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(11, 11, 11, 0.9);
}
.capture-panel { display: grid; gap: 11px; padding: 14px; }
.capture-panel > div:first-child { display: flex; justify-content: space-between; align-items: end; }
.capture-panel strong { font: 900 2rem/0.9 ui-monospace, monospace; }
.capture-panel strong small { font-size: 0.7rem; color: var(--muted); }
.quality-bar, .mini-bar { overflow: hidden; height: 3px; background: rgba(255,255,255,.12); }
.quality-bar span, .mini-bar i { display: block; height: 100%; background: var(--acid); }
.camera-controls { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.camera-tool, .zoom-control { min-height: 66px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11,11,11,.94); color: var(--paper); }
.camera-tool { display: flex; align-items: center; gap: 10px; padding: 11px; text-align: left; }
.camera-tool .glyph { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgba(215,255,0,.45); border-radius: 50%; color: var(--acid); font-size: 1rem; }
.camera-tool span:not(.glyph), .zoom-control span:not(.glyph) { display: grid; gap: 4px; }
.camera-tool small, .zoom-control small { color: rgba(244,243,237,.7); font: 850 .55rem/1 ui-monospace, monospace; letter-spacing: .085em; }
.camera-tool strong, .zoom-control strong { color: var(--paper); font: 950 .76rem/1 ui-monospace, monospace; letter-spacing: .055em; }
.camera-tool.is-active { border-color: rgba(215,255,0,.75); background: rgba(215,255,0,.08); box-shadow: inset 0 0 18px rgba(215,255,0,.06), 0 0 16px rgba(215,255,0,.07); }
.camera-tool.is-active strong { color: var(--acid); }
.camera-tool:disabled, .zoom-control.is-disabled { opacity: .42; }
.sound-control { width: 100%; min-height: 54px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(244,243,237,.18); border-radius: 3px; background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(215,255,0,.025)); color: var(--paper); text-align: left; cursor: pointer; }
.sound-control > span:last-child { display: grid; gap: 5px; }
.sound-control small { color: var(--muted); font: 800 .48rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.sound-control strong { color: var(--paper); font: 900 .63rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.sound-control.is-ready { border-color: rgba(215,255,0,.62); background: rgba(215,255,0,.07); box-shadow: inset 0 0 22px rgba(215,255,0,.04); }
.sound-control.is-ready strong { color: var(--acid); }
.sound-wave { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(215,255,0,.45); border-radius: 50%; }
.sound-wave i { width: 2px; height: 7px; background: var(--acid); }
.sound-wave i:nth-child(2) { height: 14px; }
.sound-wave i:nth-child(3) { height: 20px; }
.sound-wave i:nth-child(4) { height: 10px; }
.sound-control.is-ready .sound-wave i { animation: soundMeter .62s ease-in-out infinite alternate; }
.sound-control.is-ready .sound-wave i:nth-child(2) { animation-delay: .13s; }
.sound-control.is-ready .sound-wave i:nth-child(3) { animation-delay: .24s; }
.sound-control.is-ready .sound-wave i:nth-child(4) { animation-delay: .06s; }
.zoom-control { display: grid; grid-template-columns: 32px 82px 1fr; align-items: center; gap: 9px; padding: 10px 11px; }
.zoom-control > .glyph { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(215,255,0,.45); border-radius: 50%; color: var(--acid); font: 900 1rem/1 ui-monospace, monospace; }
.zoom-control input { width: 100%; min-width: 0; accent-color: var(--acid); }
.zoom-control input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, rgba(215,255,0,.78), rgba(255,255,255,.16)); }
.zoom-control input::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; border: 2px solid var(--black); border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 0 10px rgba(215,255,0,.34); -webkit-appearance: none; }
.camera-control-warning { border-left: 2px solid var(--orange); padding-left: 9px; }
.control-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.warning { margin: 0; color: #ffbb80; font-size: 0.82rem; line-height: 1.4; }
.camera-diagnostics { max-height: 138px; overflow: auto; margin: 0; padding: 10px; border: 1px solid rgba(255,107,37,.35); background: rgba(255,107,37,.08); color: #ffd6c0; font: 0.66rem/1.45 ui-monospace, monospace; white-space: pre-wrap; }
.target-gate { display: grid; gap: 4px; padding: 9px; border-left: 2px solid var(--acid); background: rgba(215,255,0,.05); }
.target-gate strong { color: var(--acid); font: 800 0.58rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.target-gate p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.target-gate.denied { border-color: var(--orange); background: rgba(255,107,37,.07); }
.target-gate.denied strong { color: #ff9b68; }

.rejection-poster { display: grid; gap: 9px; padding: 17px; border: 1px solid rgba(255,107,37,.52); border-left: 4px solid var(--orange); background: linear-gradient(110deg, rgba(255,107,37,.12), rgba(10,10,10,.96)); }
.has-rejection .scanner-viewport { height: min(47vh, 410px); min-height: 350px; }
.has-rejection .lock-chip { border-color: var(--orange); color: #ff9b68; }
.has-rejection .reticle { border-color: rgba(255,107,37,.72); }
.has-rejection .reticle span { border-color: var(--orange); }
.has-rejection .reticle b { border-color: var(--orange); box-shadow: 0 0 18px rgba(255,107,37,.5); }
.rejection-poster .eyebrow { color: #ff9b68; }
.rejection-poster strong { font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: 3.25rem; line-height: .8; letter-spacing: -.035em; text-transform: uppercase; }
.rejection-poster > p:last-child { margin: 0; color: rgba(244,243,237,.7); font-size: .8rem; line-height: 1.42; }

.analysis-console { position: relative; display: grid; gap: 9px; padding: 14px; overflow: hidden; border-top-color: rgba(215,255,0,.6); box-shadow: inset 0 1px rgba(215,255,0,.15), 0 0 26px rgba(215,255,0,.05); }
.analysis-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 0 38%, rgba(215,255,0,.08) 50%, transparent 62%); translate: -100% 0; animation: consoleSweep 1.4s ease-in-out infinite; }
.analysis-heading { display: flex; align-items: end; justify-content: space-between; }
.analysis-heading strong { color: var(--acid); font: 900 1.9rem/.9 ui-monospace, monospace; }
.analysis-heading strong span { color: var(--muted); font-size: .75rem; }
.analysis-console h2 { max-width: 18ch; font-size: 1.17rem; line-height: 1.08; letter-spacing: -.02em; }
.vision-data-stream { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: rgba(244,243,237,.5); font: 700 .44rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.vision-data-stream i { height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, var(--acid), transparent); animation: dataPulse 1s ease-in-out infinite; }
.vision-data-stream b { color: var(--acid); font-size: .43rem; }
.pass-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding-top: 5px; }
.pass-tick { display: grid; gap: 5px; min-width: 0; color: rgba(244,243,237,.32); font: 700 .47rem/1 ui-monospace, monospace; text-transform: uppercase; }
.pass-tick i { height: 3px; background: rgba(255,255,255,.12); }
.pass-tick span { overflow: hidden; text-overflow: ellipsis; }
.pass-tick.active { color: var(--paper); }
.pass-tick.active i { background: var(--acid); }
.pass-tick.current i { box-shadow: 0 0 12px rgba(215,255,0,.7); animation: tickPulse .7s ease-in-out infinite; }
.pass-tick.verifying i { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(215,255,0,.72), rgba(255,255,255,.08)); background-size: 200% 100%; animation: verifyRail 1.2s linear infinite; }
.pass-tick.verifying:nth-child(2) i { animation-delay: .12s; }
.pass-tick.verifying:nth-child(3) i { animation-delay: .24s; }
.pass-tick.verifying:nth-child(4) i { animation-delay: .36s; }
.pass-tick.verifying:nth-child(5) i { animation-delay: .48s; }

/* The scan is a takeover, not another card in the normal page. */
.scan-theater-active { background: #000; }
.scan-theater-active .ambient-grid { z-index: 32; opacity: .09; mask-image: none; }
.scan-theater-active .topbar { opacity: 0; pointer-events: none; }
.analyzing-screen { position: absolute; z-index: 30; inset: 0; min-height: 0; padding: 0; display: block; overflow: hidden; border-radius: inherit; background: #000; isolation: isolate; }
.analyzing-screen .scanner-viewport { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: inherit; box-shadow: inset 0 0 110px rgba(0,0,0,.72); }
.analyzing-screen .bud-image { object-fit: cover; filter: contrast(1.25) saturate(1.14) brightness(.82); }
.analyzing-screen .optical-shade { background: radial-gradient(circle at 50% 43%, transparent 24%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.9) 100%), linear-gradient(to bottom, rgba(0,0,0,.65), transparent 22%, transparent 62%, rgba(0,0,0,.84)); }
.analyzing-screen .reticle, .analyzing-screen .acquisition-ring { top: 43%; }
.analyzing-screen .analysis-grid { background-size: 34px 34px; }
.analyzing-screen .vision-signature { left: 20px; bottom: 218px; }
.analyzing-screen .field-counter { right: 20px; bottom: 218px; }
.analyzing-screen .exposure-scale { right: 20px; top: 35%; }
.analyzing-screen .lock-chip { left: 20px; bottom: 266px; }
.analyzing-screen .analysis-console { position: absolute; z-index: 35; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 8px; padding: 14px; border-color: rgba(215,255,0,.48); border-radius: 3px; background: linear-gradient(115deg, rgba(4,4,4,.96), rgba(13,15,5,.88)); backdrop-filter: blur(16px); box-shadow: inset 0 1px rgba(215,255,0,.2), 0 14px 48px rgba(0,0,0,.62), 0 0 30px rgba(215,255,0,.08); }
.analyzing-screen .analysis-console h2 { max-width: 22ch; font-size: 1.08rem; }
.theater-topline { position: absolute; z-index: 40; top: calc(19px + env(safe-area-inset-top)); left: 20px; right: 20px; display: flex; align-items: start; justify-content: space-between; pointer-events: none; }
.theater-brand { display: grid; gap: 4px; }
.theater-brand strong { display: flex; font-size: 1.65rem; line-height: .86; letter-spacing: -.075em; }
.theater-brand strong span:first-child { color: var(--paper); font-weight: 950; }
.theater-brand strong span:last-child { color: var(--acid); font-weight: 650; }
.theater-brand .theater-credit strong { font-size: .78rem; letter-spacing: -.01em; }
.theater-brand .theater-credit span { font-size: .68rem; }
.theater-sound { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid rgba(215,255,0,.32); background: rgba(0,0,0,.56); color: var(--acid); font: 800 .48rem/1 ui-monospace, monospace; letter-spacing: .11em; }
.theater-sound i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: statusPulse .74s ease-in-out infinite; }
.theater-stage-code { position: absolute; z-index: 7; top: 78px; right: -9px; color: rgba(215,255,0,.085); font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: clamp(10rem, 48vw, 13.5rem); line-height: .72; letter-spacing: -.09em; pointer-events: none; text-shadow: 0 0 60px rgba(215,255,0,.09); }
.theater-bootline { position: absolute; z-index: 40; top: calc(82px + env(safe-area-inset-top)); left: 20px; right: 20px; display: grid; grid-template-columns: 7px auto 1fr; align-items: center; gap: 7px; color: rgba(244,243,237,.58); font: 800 .42rem/1 ui-monospace, monospace; letter-spacing: .1em; pointer-events: none; }
.theater-bootline i { width: 7px; height: 7px; border: 1px solid var(--optic-cyan); rotate: 45deg; box-shadow: 0 0 8px rgba(71,207,255,.5); animation: bootNode .72s ease-in-out infinite; }
.theater-bootline b { justify-self: end; color: var(--acid); }
.theater-shutter { position: absolute; z-index: 42; left: 0; right: 0; height: 51%; background: #020202; pointer-events: none; }
.shutter-top { top: 0; animation: shutterTop .78s cubic-bezier(.76,0,.24,1) both; }
.shutter-bottom { bottom: 0; animation: shutterBottom .78s cubic-bezier(.76,0,.24,1) both; }
.phase-locking .theater-shutter { display: none; }

.result-screen { display: grid; gap: 10px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: calc(100dvh - 103px); animation: resultReveal .72s cubic-bezier(.2,.8,.2,1) both; }
.result-screen { scrollbar-width: none; }
.result-screen::-webkit-scrollbar { width: 0; height: 0; }
.marked-image { position: relative; height: clamp(430px, calc(100dvh - 350px), 490px); overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: #020202; }
.marked-image::after { content: ""; position: absolute; z-index: 7; inset: -20% 0 auto; height: 22%; pointer-events: none; opacity: 0; background: linear-gradient(transparent, rgba(71,207,255,.1), rgba(215,255,0,.64), rgba(255,255,255,.72), transparent); mix-blend-mode: screen; animation: resultScan 1.05s cubic-bezier(.4,0,.2,1) .18s both; }
.marked-image > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: contrast(1.12) saturate(1.08); }
.image-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.3), transparent 22%, transparent 62%, rgba(0,0,0,.58)); }
.dossier-label { position: absolute; z-index: 5; top: 15px; left: 15px; right: 15px; display: flex; align-items: center; gap: 10px; font: 900 .56rem/1 ui-monospace, monospace; letter-spacing: .11em; }
.dossier-label i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--acid) 0 32%, rgba(255,255,255,.2) 32%); }
.marker { position: absolute; z-index: 6; translate: -50% -50%; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.marker > span { position: absolute; z-index: 2; inset: 6px; border: 1px solid rgba(244,243,237,.75); border-radius: 50%; }
.marker > span::before, .marker > span::after { content: ""; position: absolute; background: rgba(244,243,237,.8); }
.marker > span::before { left: -8px; right: -8px; top: 50%; height: 1px; }
.marker > span::after { top: -8px; bottom: -8px; left: 50%; width: 1px; }
.marker > span i { position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); }
.marker b { position: absolute; z-index: 3; left: 35px; top: calc(50% + var(--label-shift, 0px)); translate: 0 -50%; width: max-content; padding: 6px 8px; border: 1px solid rgba(244,243,237,.24); background: rgba(3,3,3,.92); color: var(--paper); font: 900 clamp(.72rem,3vw,.82rem)/1 ui-monospace, monospace; letter-spacing: .035em; text-transform: uppercase; text-shadow: 0 1px 4px #000; box-shadow: 0 4px 14px rgba(0,0,0,.36); transition: top .25s ease; }
.marker-leader { position: absolute; z-index: 1; left: 50%; top: 50%; width: var(--leader-length, 14px); height: 1px; transform-origin: 0 50%; transform: rotate(var(--leader-angle, 0rad)); background: linear-gradient(90deg, rgba(244,243,237,.82), rgba(244,243,237,.28)); box-shadow: 0 0 6px rgba(244,243,237,.18); pointer-events: none; }
.marker.label-left b { left: auto; right: 35px; text-align: right; }
.marker.active > span { border-color: var(--acid); box-shadow: 0 0 16px rgba(215,255,0,.55); }
.marker.active > span::before, .marker.active > span::after, .marker.active > span i { background: var(--acid); }
.marker.active .marker-leader { height: 2px; background: linear-gradient(90deg, var(--acid), rgba(215,255,0,.34)); box-shadow: 0 0 9px rgba(215,255,0,.34); }
.marker.active b { color: var(--acid); border-color: rgba(215,255,0,.64); border-left: 3px solid var(--acid); box-shadow: 0 0 16px rgba(215,255,0,.12), 0 4px 14px rgba(0,0,0,.42); }
.marker.label-left.active b { border-left-width: 1px; border-right: 3px solid var(--acid); }

.result-verdict { position: relative; min-height: 104px; display: grid; grid-template-columns: minmax(0,1fr) 98px; gap: 10px; overflow: hidden; border: 1px solid rgba(215,255,0,.26); background: linear-gradient(112deg, rgba(14,16,7,.98), rgba(3,3,3,.98) 62%); box-shadow: inset 3px 0 var(--acid), inset 0 1px rgba(255,255,255,.08); }
.result-verdict::after { content: ""; position: absolute; right: 92px; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(215,255,0,.38), transparent); transform: skewX(-10deg); }
.verdict-copy { align-self: center; min-width: 0; display: grid; gap: 5px; padding: 12px 4px 12px 15px; }
.verdict-kicker { display: flex; align-items: center; gap: 7px; color: var(--acid); font: 900 .48rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.verdict-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 11px var(--acid); }
.verdict-copy p { margin: 0; max-width: 16ch; font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: clamp(1.45rem, 6.4vw, 1.95rem); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.verdict-copy small { overflow: hidden; color: rgba(244,243,237,.52); font: 800 .48rem/1.2 ui-monospace, monospace; letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.verdict-score { position: relative; align-self: stretch; display: grid; place-content: center; justify-items: end; padding: 8px 11px 8px 0; color: var(--acid); }
.verdict-score span { position: absolute; left: 5px; bottom: 9px; color: rgba(215,255,0,.72); font: 900 .42rem/.86 ui-monospace, monospace; letter-spacing: .08em; }
.verdict-score strong { font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: 4.9rem; line-height: .72; letter-spacing: -.055em; text-shadow: 0 0 24px rgba(215,255,0,.14); }
.verdict-score i { position: absolute; top: 9px; right: 8px; width: 22px; height: 2px; background: var(--acid); box-shadow: -30px 0 rgba(215,255,0,.22); }
.marker-card { display: grid; gap: 7px; padding: 14px; border-left: 3px solid var(--acid); }
.marker-card h2 { font-size: 1.15rem; }
.marker-card p:last-child { color: var(--muted); line-height: 1.42; font-size: .84rem; }
.trait-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.trait-card { display: grid; gap: 8px; padding: 11px; }
.trait-card div:first-child { display: grid; gap: 3px; }
.trait-card strong { font-size: .83rem; text-transform: uppercase; }
.trait-card span { color: var(--muted); font-size: .65rem; }
.trait-card b { font: 900 1.55rem/1 ui-monospace, monospace; color: var(--acid); }
.flags-card { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; }
.flags-title { width: 100%; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.flags-card > span { padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); font-size: .69rem; }
.share-card-action { display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(215,255,0,.25); background: linear-gradient(110deg, rgba(215,255,0,.075), rgba(255,255,255,.018)); }
.share-card-action .result-share { width: 100%; min-height: 58px; font: 950 .75rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.share-card-action .result-share .glyph { font-size: 1.3rem; }
.share-card-action p { margin: 0; color: rgba(244,243,237,.44); font: 700 .51rem/1.35 ui-monospace, monospace; letter-spacing: .03em; text-align: center; }
.share-card-action.has-error { border-color: rgba(255,107,37,.48); }
.share-card-action.has-error p { color: #ff9b68; }
.sticky-actions { padding-top: 2px; }
.disclaimer { margin: 0; color: rgba(244,243,237,.36); font-size: .61rem; line-height: 1.35; text-align: center; }

@keyframes statusPulse { 50% { opacity: .35; transform: scale(.75); } }
@keyframes howBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes howSheetIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scannerRotate { to { transform: rotate(360deg); } }
@keyframes homeScan { 0% { top: -13%; } 100% { top: 100%; } }
@keyframes scanDown { 0% { top: -16%; } 100% { top: 100%; } }
@keyframes breathe { 0%,100% { transform: scale(.96); opacity: .72; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes acquire { 0%,100% { transform: scale(.72) rotate(0); opacity: .6; } 50% { transform: scale(1.22) rotate(45deg); opacity: 1; } }
@keyframes analysisImage { from { filter: contrast(1.12) saturate(1.02); } to { filter: contrast(1.26) saturate(1.2); } }
@keyframes tickPulse { 50% { opacity: .35; } }
@keyframes gateClamp { from { inset: 36px 18px 54px; opacity: .2; } to { inset: 60px 42px 82px; opacity: 1; } }
@keyframes gridBreathe { 50% { opacity: .3; transform: scale(1.035); } }
@keyframes acquisitionSpin { to { transform: rotate(360deg); } }
@keyframes ringPulse { from { scale: .5; opacity: 0; } 55% { opacity: 1; } to { scale: 1; opacity: .65; } }
@keyframes beamSweepY { from { translate: 0 -72px; } to { translate: 0 72px; } }
@keyframes beamSweepX { from { translate: -72px 0; } to { translate: 72px 0; } }
@keyframes impactFlash { 0% { opacity: .85; } 30%,100% { opacity: 0; } }
@keyframes targetShock { from { scale: .25; opacity: 1; } to { scale: 1.55; opacity: 0; } }
@keyframes consoleSweep { 0%,25% { translate: -100% 0; } 75%,100% { translate: 100% 0; } }
@keyframes completeFrame { 0% { box-shadow: inset 0 0 54px rgba(215,255,0,.08), 0 0 28px rgba(215,255,0,.08); } 40% { box-shadow: inset 0 0 90px rgba(215,255,0,.3), 0 0 48px rgba(215,255,0,.3); } 100% { box-shadow: inset 0 0 54px rgba(215,255,0,.12), 0 0 28px rgba(215,255,0,.1); } }
@keyframes completeRing { from { scale: .72; opacity: .45; } 55% { scale: 1.12; opacity: 1; box-shadow: 0 0 40px rgba(215,255,0,.5); } to { scale: 1; opacity: 1; } }
@keyframes completeFlash { 0% { opacity: 0; } 38% { opacity: .9; background: rgba(215,255,0,.22); } 100% { opacity: 0; } }
@keyframes verifyReticle { 0%,100% { scale: .82; opacity: .58; rotate: 0deg; } 50% { scale: 1.04; opacity: 1; rotate: 8deg; box-shadow: 0 0 38px rgba(215,255,0,.24); } }
@keyframes verifyGate { 0%,100% { inset: 46px 26px 66px; opacity: .58; } 50% { inset: 68px 48px 88px; opacity: 1; } }
@keyframes verifyImage { from { filter: contrast(1.08) saturate(.9) hue-rotate(-2deg); scale: 1; } to { filter: contrast(1.3) saturate(1.28) hue-rotate(3deg); scale: 1.025; } }
@keyframes spectralTraverse { 0%,12% { left: -22%; opacity: 0; } 38%,68% { opacity: .22; } 100% { left: 108%; opacity: 0; } }
@keyframes spectralTraverseReverse { 0%,12% { right: -22%; opacity: 0; } 38%,68% { opacity: .16; } 100% { right: 108%; opacity: 0; } }
@keyframes depthEcho { 0% { scale: .45; opacity: .8; } 72%,100% { scale: 3.2; opacity: 0; } }
@keyframes dataPulse { 0%,100% { opacity: .18; transform: scaleX(.35); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes verifyRail { from { background-position: 180% 0; } to { background-position: -20% 0; } }
@keyframes scopeSpin { to { rotate: 360deg; } }
@keyframes scopePulse { 0%,100% { opacity: .58; filter: drop-shadow(0 0 4px rgba(71,207,255,.16)); } 50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(215,255,0,.38)); } }
@keyframes sectorSignal { from { scale: 1 .32; opacity: .35; } to { scale: 1 1.14; opacity: 1; } }
@keyframes prismSlice { 0%,100% { translate: -8% -90px; opacity: .12; } 50% { translate: 8% 150px; opacity: .62; } }
@keyframes prismSliceReverse { 0%,100% { translate: 7% 110px; opacity: .08; } 50% { translate: -7% -120px; opacity: .42; } }
@keyframes flareCounterSpin { to { rotate: -360deg; } }
@keyframes dataRain { from { translate: 0 -120%; } to { translate: 0 720%; } }
@keyframes vectorPulse { 0%,100% { transform: scaleX(.25); opacity: .12; } 50% { transform: scaleX(1); opacity: .82; } }
@keyframes bootNode { 50% { scale: .54; opacity: .35; rotate: 135deg; } }
@keyframes resultReveal { from { opacity: 0; transform: scale(.965); filter: brightness(1.55) saturate(.55); } to { opacity: 1; transform: scale(1); filter: brightness(1) saturate(1); } }
@keyframes resultScan { 0% { top: -22%; opacity: 0; } 18%,70% { opacity: .9; } 100% { top: 112%; opacity: 0; } }
@keyframes idleOpticTurn { to { rotate: 360deg; } }
@keyframes idleEyeCore { 0%,100% { opacity: .58; scale: .92; background: rgba(69,255,140,.52); box-shadow: 0 0 6px rgba(69,255,140,.62), 0 0 14px rgba(69,255,140,.28); } 50% { opacity: .88; scale: 1.06; background: rgba(69,255,140,.78); box-shadow: 0 0 9px rgba(69,255,140,.86), 0 0 20px rgba(69,255,140,.44); } }
@keyframes posterThroughEye { 0% { transform: scale(1); filter: brightness(1) contrast(1); opacity: 1; } 18% { transform: scale(1.035); filter: brightness(1.22) contrast(1.08); opacity: 1; } 68% { transform: scale(calc(var(--poster-dive-scale, 6.9) * .72)); filter: brightness(.48) contrast(1.2); opacity: .92; } 100% { transform: scale(var(--poster-dive-scale, 6.9)); filter: brightness(.06) contrast(1.5); opacity: 0; } }
@keyframes portalScopeBridge { 0% { opacity: .58; width: var(--portal-start-size); translate: -50% -50%; } 14% { opacity: 1; width: var(--portal-start-size); translate: -50% -50%; } 18% { opacity: 1; width: calc(var(--portal-start-size) * 1.035); translate: -50% -50%; } 68% { opacity: 1; width: calc(var(--portal-target-size) * .72); translate: -50% -50%; } 100% { opacity: 1; width: var(--portal-target-size); translate: calc(-50% + var(--portal-travel-x)) calc(-50% + var(--portal-travel-y)); } }
@keyframes portalCoreResolve { 0% { opacity: 0; scale: .5; background: #45ff8c; box-shadow: 0 0 8px #45ff8c, 0 0 24px rgba(69,255,140,.88); } 18%,62% { opacity: 1; scale: 1.4; background: #45ff8c; box-shadow: 0 0 12px #45ff8c, 0 0 34px rgba(69,255,140,.92); } 100% { opacity: 1; scale: 1; background: transparent; box-shadow: 0 0 18px rgba(215,255,0,.55); } }
@keyframes posterStatusCycle { 0% { opacity: 0; translate: 0 8px; } 10%,70% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -4px; } }
@keyframes posterStatusInit { 0%,58% { opacity: 1; } 72%,100% { opacity: 0; } }
@keyframes posterStatusReady { 0%,58% { opacity: 0; } 72%,100% { opacity: 1; } }
@keyframes portalCameraReveal { 0%,54% { opacity: 0; filter: brightness(.3) saturate(.4); } 76% { opacity: .46; filter: brightness(.72) saturate(.78); } 100% { opacity: 1; filter: brightness(1) saturate(1); } }
@keyframes portalFeedScan { 0%,55% { opacity: 0; transform: translateY(-100%); } 68% { opacity: .8; } 100% { opacity: 0; transform: translateY(100%); } }
@keyframes captureChromeIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes captureOpticsIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes posterControlsOut { to { opacity: 0; translate: 0 12px; } }
@keyframes shutterTop { 0%,12% { translate: 0 0; } 100% { translate: 0 -103%; } }
@keyframes shutterBottom { 0%,12% { translate: 0 0; } 100% { translate: 0 103%; } }
@keyframes soundMeter { from { scale: 1 .45; opacity: .5; } to { scale: 1 1.18; opacity: 1; } }

@media (max-width: 380px) {
  .app-shell { padding: 0; }
  .phone-frame { height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh; border-radius: 0; }
  .screen { min-height: calc(100dvh - 69px); }
  .home-hero { min-height: 486px; }
  .scanner-viewport { min-height: 402px; height: 57vh; }
  .portal-landing-viewport { min-height: 402px; height: 57vh; }
  .portal-camera-preview { min-height: 402px; height: 57vh; }
  .analyzing-screen .scanner-viewport { min-height: 0; height: 100%; }
  .marked-image { height: clamp(410px, calc(100dvh - 330px), 455px); }
  .result-verdict { grid-template-columns: minmax(0,1fr) 88px; }
  .verdict-score strong { font-size: 4.45rem; }
}

@media (min-width: 780px) { .phone-frame { min-height: 900px; } }

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