:root {
  color-scheme: light;
  --teal: #008C8C;
  --teal-mid: #008080;
  --deep: #033838;
  --cream: #F0EEE9;
  --paper: #fbfaf7;
  --ink: #123d3c;
  --muted: #708987;
  --line: rgba(3, 56, 56, .12);
  --shadow: 0 30px 80px rgba(0, 20, 20, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--deep); }
body {
  margin: 0;
  min-height: 100vh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(0, 140, 140, .45), transparent 35%),
    radial-gradient(ellipse at 95% 82%, rgba(0, 128, 128, .28), transparent 34%),
    linear-gradient(145deg, #033838 0%, #022c2d 56%, #031f22 100%);
  overflow-x: hidden;
}

.ambient { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(2px); opacity: .45; }
.ambient-one { width: 320px; height: 320px; top: -190px; right: 8%; border: 1px solid rgba(240,238,233,.16); box-shadow: 0 0 0 34px rgba(240,238,233,.018), 0 0 0 68px rgba(240,238,233,.014); }
.ambient-two { width: 240px; height: 240px; bottom: -160px; left: -90px; border: 1px solid rgba(0,140,140,.6); box-shadow: 0 0 0 28px rgba(0,140,140,.06), 0 0 0 56px rgba(0,140,140,.04); }
.app-shell { width: min(100%, 560px); margin: 0 auto; position: relative; z-index: 1; }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; margin: 0 4px 18px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-symbol { color: #7ae0d4; width: 39px; height: 39px; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-name { font-size: 12px; letter-spacing: .19em; font-weight: 850; line-height: 1.3; }
.brand-name span { color: #7ae0d4; margin-left: 3px; }
.brand-subtitle { font-size: 7px; letter-spacing: .24em; color: rgba(240,238,233,.54); margin-top: 3px; }
.secure-pill { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(167,224,212,.22); border-radius: 30px; padding: 8px 10px; font-size: 8px; letter-spacing: .12em; color: rgba(240,238,233,.76); white-space: nowrap; }
.secure-dot, .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ae0d4; box-shadow: 0 0 0 4px rgba(122,224,212,.12); }
.verification-card { position: relative; background: var(--cream); color: var(--ink); border-radius: 28px; padding: 27px 28px 20px; box-shadow: var(--shadow); overflow: hidden; }
.verification-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), #66c9b7 54%, #b7d9c9); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.eyebrow, .step-counter, .stage-kicker { font-size: 9px; font-weight: 800; letter-spacing: .15em; color: var(--teal-mid); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-line { display: inline-block; width: 20px; height: 1px; background: var(--teal); }
.step-counter { color: #8b9b95; letter-spacing: .11em; }
.step-counter b { color: var(--deep); }
.intro-block { position: relative; padding: 25px 0 21px; }
.intro-block h1 { margin: 0; font-size: clamp(29px, 8vw, 39px); letter-spacing: -.055em; line-height: 1.06; font-weight: 800; color: var(--deep); position: relative; z-index: 1; }
.intro-block h1 em { color: var(--teal); font-style: normal; }
.intro-copy { margin: 13px 0 0; max-width: 410px; font-size: 12px; line-height: 1.65; color: #637c77; }
.mini-orbit { position: absolute; width: 88px; height: 88px; top: 1px; right: -10px; opacity: .7; }
.orbit-core { position: absolute; width: 13px; height: 13px; background: #83d1c1; border-radius: 50%; left: 40px; top: 38px; box-shadow: 0 0 0 8px rgba(0,140,140,.08), 0 0 25px rgba(0,140,140,.25); }
.orbit-ring { position: absolute; border: 1px solid rgba(0,128,128,.22); border-radius: 50%; transform: rotate(-28deg) scaleY(.45); }
.orbit-ring-a { inset: 10px 1px; }
.orbit-ring-b { inset: 0 17px; transform: rotate(35deg) scaleY(.45); }
.progress-track { display: flex; gap: 6px; margin: 0 0 24px; }
.progress-segment { height: 3px; border-radius: 10px; flex: 1; background: #d7ddd5; transition: background .3s ease; }
.progress-segment.active { background: var(--teal); }
.stage-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.stage-kicker { font-size: 8px; letter-spacing: .17em; color: #8ba49a; }
.stage-heading h2 { margin: 4px 0 0; color: var(--deep); font-size: 19px; letter-spacing: -.035em; }
.puzzle-badge { padding: 7px 9px; display: flex; align-items: center; gap: 7px; background: rgba(0,140,140,.08); color: var(--teal-mid); border-radius: 7px; font-size: 8px; letter-spacing: .13em; font-weight: 800; }
.pulse-dot { width: 5px; height: 5px; }
.puzzle-frame { border: 1px solid rgba(3,56,56,.16); border-radius: 14px; overflow: hidden; background: #073e3e; box-shadow: 0 9px 22px rgba(3,56,56,.13); }
.puzzle-frame-top, .puzzle-frame-bottom { height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: rgba(240,238,233,.7); font-size: 7px; letter-spacing: .15em; }
.puzzle-frame-top { border-bottom: 1px solid rgba(240,238,233,.12); }
.puzzle-frame-top b { color: #7bd5c8; font-weight: 700; }
.frame-dots { display: flex; gap: 4px; }
.frame-dots i { width: 4px; height: 4px; display: block; border-radius: 50%; background: #74cabe; opacity: .7; }
.puzzle-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #063f40; touch-action: none; user-select: none; }
#sceneCanvas { width: 100%; height: 100%; display: block; }
#pieceCanvas { position: absolute; z-index: 3; display: block; width: 19.45%; height: auto; top: 0; left: 0; cursor: grab; touch-action: none; filter: drop-shadow(0 6px 9px rgba(0,20,20,.42)); transition: filter .18s ease; }
#pieceCanvas.dragging { cursor: grabbing; filter: drop-shadow(0 10px 12px rgba(0,20,20,.48)); }
.stage-gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 34%, transparent 68%, rgba(0,0,0,.1)); }
.puzzle-frame-bottom { background: rgba(2,35,36,.28); border-top: 1px solid rgba(240,238,233,.1); font-size: 6.5px; }
.tiny-icon { color: #7bd5c8; font-size: 12px; vertical-align: -1px; }
.drag-hint { color: #8fe0d2; }
.drag-hint span { font-size: 11px; }
.interaction-row { display: flex; align-items: center; gap: 11px; margin-top: 15px; }
.drag-icon { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(0,128,128,.18); border-radius: 10px; display: grid; place-items: center; color: var(--teal); background: rgba(0,140,140,.06); font-size: 20px; }
.interaction-copy { display: grid; gap: 3px; min-width: 0; }
.interaction-copy strong { font-size: 10px; color: var(--deep); }
.interaction-copy span { color: #84948d; font-size: 9px; }
.interaction-key { margin-left: auto; font-size: 7px; line-height: 1.5; font-weight: 800; letter-spacing: .13em; color: #9aaba2; text-align: right; }
.inline-feedback { min-height: 16px; margin: 7px 0 0 47px; font-size: 9px; color: var(--teal); }
.turnstile-panel { border: 1px solid rgba(3,56,56,.12); background: rgba(255,255,255,.52); border-radius: 15px; padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.turnstile-icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 8px; }
.turnstile-icon svg { width: 100%; height: 100%; }
.turnstile-copy { display: grid; gap: 5px; margin-bottom: 13px; }
.turnstile-copy strong { color: var(--deep); font-size: 13px; }
.turnstile-copy span { font-size: 10px; color: #7b8c84; line-height: 1.5; max-width: 280px; }
.turnstile-container { min-height: 68px; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.cloudflare-mark { font-size: 8px; color: #7b8f87; font-weight: 800; letter-spacing: .1em; }
.cloudflare-mark span { color: var(--teal); font-size: 16px; vertical-align: -2px; }
.micro-note { margin: 11px 0 0; text-align: center; font-size: 9px; color: #8a9991; line-height: 1.5; }
.success-panel { text-align: center; padding: 22px 12px 14px; background: linear-gradient(145deg, rgba(0,140,140,.08), rgba(255,255,255,.28)); border: 1px solid rgba(0,128,128,.16); border-radius: 18px; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 13px; color: var(--teal); }
.success-icon svg { width: 100%; height: 100%; }
.success-kicker { color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.success-panel h2 { margin: 7px 0; color: var(--deep); font-size: 27px; letter-spacing: -.05em; }
.success-panel p { margin: 0 auto; max-width: 310px; color: #73847d; font-size: 11px; line-height: 1.65; }
.success-stamp { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 8px 11px; border-radius: 6px; background: rgba(0,140,140,.1); color: var(--teal-mid); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.success-stamp span { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.global-status { min-height: 18px; margin: 12px 0 0; text-align: center; color: #a24c40; font-size: 10px; line-height: 1.5; }
.card-footer { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(3,56,56,.1); display: flex; align-items: flex-start; gap: 9px; }
.footer-shield { flex: 0 0 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(0,140,140,.1); color: var(--teal); font-size: 10px; }
.card-footer p { margin: 0; color: #89978f; font-size: 8px; line-height: 1.55; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 4px 0; color: rgba(240,238,233,.45); font-size: 7px; letter-spacing: .13em; }
.page-footer b { color: #7bd5c8; padding: 0 3px; }
.page-footer strong { color: rgba(240,238,233,.8); }
.hidden { display: none !important; }

@media (max-width: 420px) {
  body { padding-left: 12px; padding-right: 12px; }
  .verification-card { padding: 23px 18px 17px; border-radius: 23px; }
  .topbar { margin-left: 2px; margin-right: 2px; }
  .secure-pill { font-size: 7px; padding: 7px 8px; }
  .intro-block { padding-top: 22px; }
  .mini-orbit { right: -13px; transform: scale(.8); transform-origin: top right; opacity: .55; }
  .intro-copy { max-width: 300px; font-size: 11px; }
  .puzzle-frame-top, .puzzle-frame-bottom { padding-left: 9px; padding-right: 9px; }
  .puzzle-frame-bottom { font-size: 6px; }
  .drag-hint { display: none; }
  .interaction-copy strong { font-size: 9px; }
  .interaction-copy span { font-size: 8px; }
  .page-footer { font-size: 6px; }
}

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