@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --orange-dark: #c2410c;
  --orange: #f97316;
  --orange-light: #fb923c;
  --white: #f5f5f5;
  --muted: #9ca3af;
}

* { box-sizing: border-box; }
body { font-size:calc(16px * var(--spy-text-scale,1)); margin: 0; background: #030404; color: var(--white); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #292b2b;
  border-top: 0;
  border-radius: 0 0 21px 21px;
  box-shadow: inset 0 0 0 2px #151717;
}

.matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.landing { display: flex; justify-content: center; padding: 75px 24px 72px; }
.landing-content { width: 420px; max-width: 100%; }
.landing.is-welcome { padding-top: 72px; }

.search-card {
  width: 420px;
  min-height: 475px;
  padding: 23px 23px 30px;
  text-align: center;
  background: rgb(5 6 6 / 90%);
  border: 1px solid #282a2a;
  border-radius: 28px;
  box-shadow: 0 15px 45px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 3%);
}

.brand { display: flex; align-items: center; justify-content: center; height: 65px; }
.brand-image { display: block; width: 97px; height: 65px; }

h1 { margin: 25px 0 0; font-size: calc(37.8px * var(--spy-text-scale,1)); font-weight: 700; line-height: 1.3; letter-spacing: -.756px; }
h1 > span { display: block; }
h1 strong { color: var(--orange); font-weight: inherit; background: linear-gradient(100deg, var(--orange-dark), var(--orange)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.description { margin: 12px 0 0; font-size: calc(18px * var(--spy-text-scale,1)); line-height: calc(23.4px * var(--spy-text-scale,1)); font-weight: 500; letter-spacing: -.18px; color: var(--muted); }
.welcome-description .welcome-emphasis { color: var(--orange); }
.is-welcome .search-card { min-height: 482px; }
.primary-button.welcome-button { min-height: 56px; margin-top: 56px; gap: 9px; }
.welcome-button { box-shadow: 0 8px 25px rgb(194 65 12 / 20%); }
.blinking-eye { flex: none; transform-origin: center; animation: eye-blink calc(3s * var(--spy-effect-duration,1)) ease-in-out infinite; }
@keyframes eye-blink {
  0%, 40%, 47%, 54%, 100% { transform: scaleY(1); }
  43%, 50% { transform: scaleY(.08); }
}
.trust-badges { display: flex; align-items: center; justify-content: center; gap: 23px; list-style: none; padding: 0; margin: 27px 0 0; }
.trust-badges li { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); color: #d1d5db; }
.trust-badges svg { width: 11px; height: 11px; flex: none; color: var(--orange); }
.access-counter { margin-top: 18px; text-align: center; color: var(--muted); }
.access-counter p { margin: 0; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(21px * var(--spy-text-scale,1)); letter-spacing: -.2px; }
.access-counter strong { color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.access-counter small { display: block; margin-top: 3px; font-size: calc(10px * var(--spy-text-scale,1)); line-height: calc(15px * var(--spy-text-scale,1)); color: #6b7280; }

.username-form { margin-top: 24px; }
.input-wrap { position: relative; display: flex; align-items: center; height: 56px; padding: 0 17px; background: #0c0f0f; border: 1px solid transparent; border-radius: 30px; transition: border-color calc(180ms * var(--spy-effect-duration,1)) ease, box-shadow calc(180ms * var(--spy-effect-duration,1)) ease; }
.input-wrap:focus-within { border-color: rgb(249 115 22 / 55%); box-shadow: 0 0 0 3px rgb(249 115 22 / 7%); }
.input-at { color: var(--orange); font-size: calc(20px * var(--spy-text-scale,1)); line-height: 1; font-weight: 500; flex-shrink: 0; margin-right: 7px; }
input { padding: 0; width: 100%; min-width: 0; height: 100%; background: transparent; color: #e5e7eb; border: 0; border-radius: inherit; outline: 0; font-size: calc(16px * var(--spy-text-scale,1)); line-height: calc(24px * var(--spy-text-scale,1)); caret-color: var(--orange); }
input::placeholder { color: #6b7280; opacity: 1; }
.input-wrap:has(input[aria-invalid="true"]) { border-color: var(--orange-dark); }

.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 51px;
  margin-top: 15px;
  padding: 13px 20px;
  border: 1px solid rgb(251 146 60 / 40%);
  border-radius: 28px;
  background: linear-gradient(110deg, var(--orange-dark), var(--orange));
  color: #fff;
  font-size: calc(16px * var(--spy-text-scale,1));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgb(194 65 12 / 16%);
  transition: box-shadow calc(180ms * var(--spy-effect-duration,1)) ease, filter calc(180ms * var(--spy-effect-duration,1)) ease, transform calc(180ms * var(--spy-effect-duration,1)) ease;
}
.primary-button:hover { filter: brightness(1.12); box-shadow: 0 5px 23px rgb(249 115 22 / 26%); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
.form-message { margin: 12px 5px 0; font-size: calc(13px * var(--spy-text-scale,1)); line-height: calc(19px * var(--spy-text-scale,1)); color: var(--muted); }
.form-message:empty { display: none; }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.confirm-profile-button:disabled { cursor: default; opacity: .8; }
.is-confirming .search-card { border-color: transparent; background: transparent; box-shadow: none; }
.is-confirming h1, .is-confirming #search-content { visibility: hidden; }
body:has(.profile-dialog[open]) { overflow: hidden; }
.profile-dialog {
  width: 450px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 19px 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #1e2527;
  border-radius: 24px;
  background: #0b0f10;
  color: var(--white);
  box-shadow: 0 22px 80px rgb(0 0 0 / 50%);
}
.profile-dialog::backdrop { background: rgb(0 0 0 / 62%); }
.profile-dialog h2 { margin: 0; text-align: center; font-size: calc(24px * var(--spy-text-scale,1)); line-height: calc(31px * var(--spy-text-scale,1)); font-weight: 700; letter-spacing: -.4px; color: var(--orange); outline: none; }
.confirmation-prompt { margin: 12px 0 0; color: #cbd0d6; text-align: center; font-size: calc(16px * var(--spy-text-scale,1)); line-height: calc(24px * var(--spy-text-scale,1)); overflow-wrap: anywhere; }
.confirmation-prompt strong { color: #f5f5f5; font-weight: 700; }
.profile-overview { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.profile-avatar { width: 82px; height: 82px; flex: none; border-radius: 50%; object-fit: cover; background: #191d1e; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; flex: 1; margin: 0; text-align: center; }
.profile-stats > div { display: flex; flex-direction: column; }
.profile-stats dd { order: -1; margin: 0; color: #f5f5f5; font-size: calc(16px * var(--spy-text-scale,1)); line-height: calc(21px * var(--spy-text-scale,1)); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile-stats dt { color: var(--muted); font-size: calc(13px * var(--spy-text-scale,1)); line-height: calc(17px * var(--spy-text-scale,1)); }
.profile-details { margin: 18px 8px 0; overflow-wrap: anywhere; }
.profile-name { margin: 0 0 5px; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); font-weight: 600; }
.profile-bio { margin: 0; color: #e5e7eb; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); white-space: pre-line; }
.profile-warning { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-top: 20px; padding: 11px 16px; border: 1px solid #672629; border-radius: 12px; color: #ff3543; background: rgb(102 32 32 / 28%); text-align: center; font-size: calc(10.5px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); }
.profile-warning > svg { flex: none; align-self: flex-start; margin-top: 1px; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.secondary-button, .confirmation-actions .primary-button { min-height: 48px; margin: 0; padding: 12px; border-radius: 17px; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); font-weight: 700; }
.secondary-button { border: 2px solid #374151; background: transparent; color: #f5f5f5; cursor: pointer; transition: border-color calc(180ms * var(--spy-effect-duration,1)) ease, background calc(180ms * var(--spy-effect-duration,1)) ease; }
.secondary-button:hover { border-color: var(--orange); background: rgb(249 115 22 / 5%); }
.secondary-button:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; }
.confirmation-actions .primary-button { gap: 12px; box-shadow: none; }
.confirmation-status { margin: 12px 4px 0; color: var(--muted); font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); text-align: center; }
.confirmation-status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
::selection { background: rgb(249 115 22 / 30%); color: #fff; }

@media (max-width: 480px) {
  .landing { padding: clamp(30px, 10.75svh, 75px) 18px 40px; }
  .landing.is-welcome { padding-top: clamp(30px, 10.3svh, 72px); }
  .search-card { width: 100%; padding: 28px 20px 30px; border-radius: 25px; min-height: 455px; }
  h1 { font-size: calc(clamp(29px, 8.1vw, 37.8px) * var(--spy-text-scale,1)); letter-spacing: -.756px; margin-top: 25px; }
  .description { font-size: calc(16px * var(--spy-text-scale,1)); line-height: calc(22px * var(--spy-text-scale,1)); margin-top: 17px; }
  .desktop-break { display: none; }
  .username-form { margin-top: 25px; }
  .input-wrap { padding: 0 15px; }
  input { font-size: calc(16px * var(--spy-text-scale,1)); }
  .trust-badges { gap: 16px; }
  .trust-badges li { gap: 5px; font-size: calc(10px * var(--spy-text-scale,1)); }
  .access-counter p { font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(19px * var(--spy-text-scale,1)); }
  .profile-dialog { padding: 20px 16px 16px; border-radius: 22px; }
  .profile-dialog h2 { font-size: calc(22px * var(--spy-text-scale,1)); line-height: calc(29px * var(--spy-text-scale,1)); }
  .confirmation-prompt { font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(21px * var(--spy-text-scale,1)); }
  .profile-overview { gap: 16px; }
  .profile-avatar { width: 68px; height: 68px; }
  .profile-stats { gap: 8px; }
  .profile-stats dd { font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); }
  .profile-stats dt { font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); }
  .profile-warning { padding: 10px; }
}
@media (max-width: 350px) {
  .landing { padding-left: 12px; padding-right: 12px; }
  .search-card { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: calc(28px * var(--spy-text-scale,1)); }
  .description { font-size: calc(15px * var(--spy-text-scale,1)); }
  .trust-badges { gap: 10px; }
  .trust-badges li { gap: 4px; font-size: calc(9px * var(--spy-text-scale,1)); }
  .profile-dialog { max-width: calc(100vw - 24px); padding-left: 13px; padding-right: 13px; }
  .profile-overview { gap: 10px; }
  .profile-avatar { width: 58px; height: 58px; }
  .profile-stats { gap: 5px; }
  .profile-stats dd { font-size: calc(13px * var(--spy-text-scale,1)); }
  .profile-stats dt { font-size: calc(10px * var(--spy-text-scale,1)); }
  .confirmation-actions { gap: 8px; }
  .secondary-button, .confirmation-actions .primary-button { font-size: calc(13px * var(--spy-text-scale,1)); padding: 10px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The next screen follows the reference's narrow Instagram-style composition. */
.scene.is-loading { border: 0; border-radius: 0; box-shadow: none; }
.is-loading .matrix { visibility: hidden; }
.loading-screen { min-height: 100svh; background: #050909; padding: 54px 24px 26px; }
.loading-shell { width: 336px; max-width: 100%; margin: 0 auto; text-align: center; }
.instagram-wordmark { display: block; width: 180px; height: 64px; margin: 0 auto; object-fit: contain; filter: brightness(0) invert(1); }
.simulation-label { margin: 6px 0 0; color: #9ca3af; font-size: calc(10px * var(--spy-text-scale,1)); line-height: calc(14px * var(--spy-text-scale,1)); letter-spacing: .4px; }
.loading-fields { display: grid; gap: 16px; margin-top: 22px; text-align: left; }
.visual-field { display: flex; align-items: center; min-height: 46px; padding: 11px 12px; border: 1px solid #354153; border-radius: 4px; color: #e5e7eb; background: #0c1011; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(22px * var(--spy-text-scale,1)); overflow-wrap: anywhere; }
.code-field { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
#loading-code { font: calc(15px * var(--spy-text-scale,1))/calc(22px * var(--spy-text-scale,1)) ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code-caret { height: 16px; width: 1px; margin-left: 3px; background: var(--orange); animation: code-caret calc(800ms * var(--spy-effect-duration,1)) steps(1) infinite; }
@keyframes code-caret { 50% { opacity: 0; } }
.loading-stage { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; margin-top: 28px; padding: 12px; overflow: hidden; border: 1px solid #263344; border-radius: 9px; background: #0c1011; text-align: left; }
.stage-indicator { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: #fff; }
.stage-spinner, .login-spinner { display: block; width: 22px; height: 22px; border: 2px solid rgb(249 115 22 / 22%); border-top-color: var(--orange); border-right-color: var(--orange); border-radius: 50%; animation: loading-spin calc(900ms * var(--spy-effect-duration,1)) linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.stage-check { display: none; width: 17px; height: 17px; }
.stage-copy { min-width: 0; }
.loading-stage h2 { margin: 0; color: #a6adb9; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); font-weight: 500; letter-spacing: -.12px; outline: none; }
.loading-stage p { margin: 4px 0 0; color: #7e8898; font-size: calc(11.5px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); }
.stage-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: rgb(249 115 22 / 6%); }
.stage-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--orange-dark), var(--orange)); }
[data-stage="broken"] .stage-indicator, [data-complete="true"] .stage-indicator { border-radius: 50%; background: linear-gradient(110deg, var(--orange-dark), var(--orange)); }
[data-stage="broken"] .stage-spinner, [data-complete="true"] .stage-spinner { display: none; }
[data-stage="broken"] .stage-check, [data-complete="true"] .stage-check { display: block; }
[data-stage="loading"] .stage-spinner { border-color: rgb(0 149 246 / 20%); border-top-color: #0095f6; border-right-color: #0095f6; }
[data-stage="loading"] .stage-progress > span { background: #0095f6; }
[data-stage="loading"] .stage-indicator { color: #fff; }
[data-complete="true"] [data-stage="loading"] .stage-indicator { background: #0095f6; }
.visual-login-button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 36px; margin-top: 16px; padding: 8px 12px; border: 0; border-radius: 4px; background: #0095f6; color: #fff; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); font-weight: 600; opacity: 1; -webkit-text-fill-color: #fff; }
.login-spinner { display: none; width: 14px; height: 14px; border-color: rgb(255 255 255 / 25%); border-top-color: #fff; border-right-color: #fff; }
.visual-login-button[aria-busy="true"] .login-spinner { display: block; }
[data-stage="broken"] ~ .visual-login-button { box-shadow: 0 0 20px rgb(0 149 246 / 7%); }
.login-decoration { color: #9ca3af; font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); user-select: none; }
.visual-reset { margin: 17px 0 0; color: #238bff; }
.visual-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 29px; color: #9ca3af; }
.visual-divider > span:not(:nth-child(2)) { height: 1px; background: #374456; }
.visual-facebook { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 30px 0 0; color: #238bff; font-weight: 500; }
.visual-facebook svg { width: 20px; height: 20px; flex: none; }
.visual-signup { margin: 38px 0 0; padding-top: 24px; border-top: 1px solid #374456; }
.visual-signup span { color: #238bff; }
.simulation-note { margin: 18px 0 0; color: #828c97; font-size: calc(10px * var(--spy-text-scale,1)); line-height: calc(15px * var(--spy-text-scale,1)); }
.loading-back { display: inline-block; margin-top: 8px; padding: 3px 6px; border: 0; background: transparent; color: #9ca3af; font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(17px * var(--spy-text-scale,1)); cursor: pointer; }
.loading-back:hover { color: var(--orange-light); }
.loading-back:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
.simulation-toast { position: fixed; top: 20px; left: 50%; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; width: 314px; max-width: calc(100vw - 32px); min-height: 48px; padding: 12px 16px; transform: translateX(-50%); border-radius: 8px; background: #178b43; color: #e1f4e9; box-shadow: 0 10px 40px rgb(23 139 67 / 18%); font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); font-weight: 500; animation: toast-in calc(180ms * var(--spy-effect-duration,1)) ease-out; }
.simulation-toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toast-in { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 480px) {
  .loading-screen { padding-top: 40px; padding-left: 22px; padding-right: 22px; }
  .loading-fields { margin-top: 18px; }
  .loading-stage h2 { font-size: calc(13px * var(--spy-text-scale,1)); }
  .loading-stage p { font-size: calc(11px * var(--spy-text-scale,1)); }
  .visual-signup { margin-top: 32px; }
}
@media (max-width: 350px) {
  .loading-screen { padding-left: 18px; padding-right: 18px; }
  .loading-stage { gap: 9px; padding-left: 10px; padding-right: 10px; }
  .loading-stage h2 { font-size: calc(12px * var(--spy-text-scale,1)); }
  .loading-stage p { font-size: calc(10px * var(--spy-text-scale,1)); }
  .login-decoration { font-size: calc(13px * var(--spy-text-scale,1)); }
  #loading-code { font-size: calc(14px * var(--spy-text-scale,1)); letter-spacing: .4px; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-screen *, .loading-screen *::before, .loading-screen *::after { animation: none !important; transition: none !important; }
  .code-caret { display: none; }
}

input[placeholder]{font-size:calc(16px * var(--spy-text-scale,1) * var(--spy-input-scale,1))}
[data-copy-size]{display:inline!important;overflow-wrap:anywhere}
.trust-badges{flex-wrap:wrap}
