:root {
  color-scheme: dark;
  --blue: #00aff0;
  --blue-bright: #32c8ff;
  --ink: #070a0c;
  --card: #11171b;
  --white: #f7fbfd;
  --muted: #9aaab2;
  --line: rgba(247, 251, 253, .14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { min-width: 320px; min-height: 100svh; margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.profile-page { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 100svh; margin: 0 auto; padding: 0; overflow: hidden; }
.ambient-glow { position: fixed; z-index: -1; top: -20vw; left: 50%; width: min(900px, 120vw); height: min(900px, 120vw); border-radius: 50%; background: radial-gradient(circle, rgba(0, 175, 240, .13), transparent 65%); transform: translateX(-50%); pointer-events: none; }

.profile-card { position: relative; width: 100%; min-height: 100svh; margin: 0; }
.photo-frame { position: absolute; inset: 0; isolation: isolate; overflow: hidden; border: 0; border-radius: 0; background: #172228; box-shadow: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; filter: saturate(.94) contrast(1.03); opacity: 0; transition: opacity .9s ease; }
.hero-photo.is-active { opacity: 1; }
.photo-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .68), rgba(0, 0, 0, .1) 32%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .84)), linear-gradient(105deg, rgba(0, 0, 0, .35), rgba(0, 175, 240, .08) 55%, rgba(0, 0, 0, .25)); pointer-events: none; }
.photo-topline, .photo-bottomline { position: absolute; right: 18px; left: 18px; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: rgba(247, 251, 253, .86); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.photo-topline { top: 14px; }
.age-chip { padding: 6px 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(0, 0, 0, .32); color: var(--white); font-size: 8px; letter-spacing: .1em; }
.photo-bottomline { bottom: 58px; color: rgba(247, 251, 253, .78); }
.blue-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 175, 240, .14); }

.profile-copy { position: relative; z-index: 2; display: flex; min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px 86px; text-align: center; text-shadow: 0 2px 22px rgba(0, 0, 0, .62); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: rgba(220, 239, 245, .78); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }

h1 { margin: 7px 0 4px; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 8vw, 54px); font-style: italic; font-weight: 700; letter-spacing: -.075em; line-height: .98; }
.intro { margin: 0; color: #c7d5da; font-size: 14px; line-height: 1.5; }

.continue-button, .fallback a { display: flex; align-items: center; justify-content: space-between; width: min(100%, 360px); margin: 18px auto 0; padding: 15px 16px 15px 20px; border-radius: 999px; background: var(--blue); color: #031014; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px rgba(0, 175, 240, .18); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.continue-button:hover { background: var(--blue-bright); box-shadow: 0 18px 40px rgba(0, 175, 240, .25); transform: translateY(-2px); }
.continue-button:focus-visible, .fallback a:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.button-arrow { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(3, 16, 20, .14); font-size: 17px; }
.handoff-status { min-height: 14px; margin: 10px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.handoff-status.is-opening { color: var(--blue-bright); }

.fallback { width: min(100%, 360px); margin: 14px auto 0; padding: 13px; border: 1px solid rgba(0, 175, 240, .3); border-radius: 14px; background: rgba(0, 175, 240, .06); }
.fallback p { margin: 0 0 10px; color: #cad7dc; font-size: 11px; }
.fallback a { margin: 0; padding: 11px 14px; background: rgba(0, 175, 240, .14); color: var(--blue-bright); box-shadow: none; font-size: 11px; }
.fallback a:hover { background: rgba(0, 175, 240, .22); transform: none; }
.legal-note { width: min(100%, 430px); margin: 20px auto 0; color: #8d9ca3; font-size: 9px; line-height: 1.6; }

.leave-warning { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 11, .62); backdrop-filter: blur(8px); }
.leave-warning-card { width: min(100%, 360px); padding: 24px 20px 18px; border: 1px solid rgba(247, 251, 253, .18); border-radius: 22px; background: rgba(10, 17, 21, .94); box-shadow: 0 22px 70px rgba(0, 0, 0, .42); text-align: center; }
.leave-warning-kicker { margin: 0 0 9px; color: var(--blue-bright); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.leave-warning-card h2 { margin: 0; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-style: italic; line-height: 1.05; }
.leave-warning-card p:not(.leave-warning-kicker) { margin: 12px 0 18px; color: #b6c4ca; font-size: 12px; line-height: 1.55; }
.leave-confirm { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px 13px 18px; border-radius: 999px; background: var(--blue); color: #031014; font-size: 12px; font-weight: 800; text-decoration: none; }
.leave-confirm span { font-size: 17px; }
.leave-cancel { margin-top: 12px; border: 0; background: transparent; color: #aab9bf; font: inherit; font-size: 11px; cursor: pointer; }
.leave-confirm:focus-visible, .leave-cancel:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

.page-footer { position: absolute; right: 20px; bottom: max(18px, env(safe-area-inset-bottom)); left: 20px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 13px; color: rgba(247, 251, 253, .72); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.footer-line { width: 30px; height: 1px; background: var(--blue); opacity: .7; }
[hidden] { display: none !important; }

@media (min-width: 700px) {
  .profile-copy { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 700px) {
  .profile-copy { justify-content: flex-end; padding: 80px 18px calc(24px + env(safe-area-inset-bottom)); }
  .photo-bottomline { display: none; }
  .continue-button { margin-top: 19px; }
  .legal-note { margin-top: 20px; color: rgba(247, 251, 253, .58); font-size: 8px; }
  .page-footer { margin-top: 21px; }
}

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