:root {
  --ink: #172033;
  --muted: #66728d;
  --line: rgba(24, 32, 51, 0.08);
  --blue: #1f6fdb;
  --green: #0f8a5f;
  --page: #f8efe2;
}

* { box-sizing: border-box; }

.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;
}

html { min-width: 320px; background: #e9eef9; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: #e9eef9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(31, 111, 219, .35); outline-offset: 2px; }

[hidden] { display: none !important; }

.site-shell {
  width: min(100%, 425px);
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: 20px;
  background:
    radial-gradient(circle at 92% 74%, rgba(255, 197, 168, .36), transparent 25%),
    linear-gradient(180deg, #fff8ed 0%, var(--page) 100%);
}

.hero {
  position: relative;
  height: min(108.75vw, 460px);
  overflow: hidden;
  background: #e7dcc8;
  border-radius: 0 0 26px 26px;
}

.hero-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 30%; transition: opacity .18s ease; }
.hero-image.changing { opacity: .42; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(6, 12, 21, .12) 52%, rgba(6, 12, 21, .84) 100%); }

.language-picker {
  position: absolute;
  z-index: 4;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  min-height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: white;
  background: rgba(8, 18, 28, .58);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}
.language-picker select {
  max-width: 112px;
  height: 32px;
  padding: 0 18px 0 3px;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.language-picker select option { color: var(--ink); background: white; }

.hero-info { position: absolute; right: 16px; bottom: 16px; left: 16px; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, .32); }
.hero-badge { width: max-content; margin-bottom: 9px; padding: 6px 11px; display: flex; align-items: center; gap: 7px; background: rgba(12, 26, 36, .56); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 12px; backdrop-filter: blur(6px); }
.hero-badge span { width: 7px; height: 7px; background: #35d190; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53, 209, 144, .15); }
.hero h1 { margin: 0; max-width: 330px; font-size: clamp(24px, 7vw, 30px); line-height: 1.08; letter-spacing: -.035em; }
.hero-info p { margin: 9px 0 10px; max-width: 355px; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.55; }
.hero-info strong { font-size: 12px; letter-spacing: .01em; }

.thumb-strip-wrap { position: relative; height: 115px; margin-top: -8px; padding: 0 10px; overflow: hidden; }
.thumb-track { width: 100%; height: 115px; padding: 6px 4px 8px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.thumb-track::-webkit-scrollbar { display: none; }
.thumb-card { width: calc(25% - 9px); min-width: 70px; height: 101px; padding: 3px; flex: 0 0 auto; overflow: hidden; background: white; border: 1px solid rgba(255,255,255,.92); border-radius: 14px; box-shadow: 0 8px 18px rgba(18, 28, 56, .1); scroll-snap-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.thumb-card img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 10px; }
.thumb-card.active { border: 3px solid #358df3; box-shadow: 0 0 0 2px rgba(53, 141, 243, .18), 0 8px 18px rgba(18, 28, 56, .12); transform: translateY(-1px); }

.content-stack { padding: 8px 12px 0; display: grid; gap: 8px; }
.info-card { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(17, 24, 39, .14); }
.story-card { min-height: 94px; padding: 14px; }
.eyebrow { display: block; margin-bottom: 7px; color: #8a93a8; font-size: 11px; }
.story-card h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; }
.story-card p { margin: 0; color: var(--muted); font-size: 12px; }

.mini-stats { min-height: 71px; padding: 10px 6px; display: grid; grid-template-columns: repeat(3, 1fr); }
.mini-stats article { display: grid; place-items: center; align-content: center; gap: 5px; }
.mini-stats article + article { border-left: 1px solid #edf0f7; }
.mini-stats strong { color: #172449; font-size: 17px; }
.mini-stats span { color: #78839c; font-size: 10px; }

.trust-card { min-height: 105px; padding: 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-grid div { min-height: 55px; padding: 8px 4px; display: grid; place-items: center; align-content: center; gap: 6px; background: #f3f6ff; border: 1px solid #e5eaf7; border-radius: 12px; text-align: center; }
.trust-grid strong { color: #243869; font-size: 12px; }
.trust-grid span { color: #77829b; font-size: 9px; }

.cta-wrap { position: relative; margin-top: 10px; padding: 0 12px; }
.cta-button { position: relative; width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; color: white; background: linear-gradient(135deg, var(--blue), var(--green)); border-radius: 16px; box-shadow: 0 12px 26px rgba(31, 111, 219, .28); font-size: 16px; font-weight: 900; }
.cta-button:active { transform: translateY(1px); }
.cta-finger { position: absolute; z-index: 2; top: 22px; right: 18px; width: 40px; height: 44px; object-fit: contain; pointer-events: none; animation: point 1.15s ease-in-out infinite; }
.cta-note { padding-top: 8px; color: #8791a8; font-size: 10px; text-align: center; }
.privacy { margin: 0; padding: 10px 16px 0; color: #a8afbf; font-size: 10px; line-height: 16px; text-align: center; }

.modal { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; background: rgba(0,0,0,.64); }
.guide-sheet { width: min(100%, 425px); max-height: 100svh; padding: 16px 16px 20px; overflow-y: auto; background: rgba(255,255,255,.97); border-radius: 26px 26px 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,.28); }
.sheet-handle { width: 40px; height: 4px; margin: -5px auto 13px; background: #e4e8f2; border-radius: 999px; }
.guide-sheet h2 { margin: 0 0 6px; color: #17203a; font-size: 19px; line-height: 1.2; font-weight: 900; }
.guide-image-wrap { margin: 2px 0 10px; overflow: hidden; background: #f3f6ff; border: 1px solid #edf0f8; border-radius: 16px; }
.guide-image-wrap img { width: 100%; display: block; }
.guide-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-steps { margin-top: 12px; display: grid; gap: 8px; }
.guide-steps div { min-height: 48px; padding: 10px; display: flex; align-items: center; gap: 10px; background: #fafbff; border: 1px solid #edf0f7; border-radius: 14px; }
.guide-steps b { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: #2b60bb; background: #edf3ff; border-radius: 9px; font-size: 12px; }
.guide-steps span { color: #66728d; font-size: 12px; }
.guide-primary, .guide-secondary { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 15px; font-weight: 900; }
.guide-primary { margin-top: 12px; color: white; background: linear-gradient(135deg, var(--blue), var(--green)); }
.guide-secondary { margin-top: 12px; color: #273869; background: #eef3ff; }
.guide-status { min-height: 18px; margin: 9px 0 0; color: #c8424c; font-size: 11px; text-align: center; }
.guide-status.success { color: #0f8a5f; }
.guide-note { margin: 4px 0 0; color: #9ba4b8; font-size: 11px; line-height: 1.55; text-align: center; }

.experience-view { min-height: 100svh; color: white; background: #07070d; }
.experience-shell { position: relative; width: min(100%, 375px); min-height: 100svh; margin: 0 auto; background: radial-gradient(circle at 50% 7%, rgba(101, 56, 77, .72), transparent 34%), radial-gradient(circle at 8% 35%, rgba(17, 55, 96, .48), transparent 29%), linear-gradient(180deg, #1a101d 0%, #0d101b 47%, #060810 100%); box-shadow: 0 0 56px rgba(24, 7, 22, .35); }
.experience-language-picker { top: max(14px, env(safe-area-inset-top)); right: 14px; }

.loader-shell { padding: 30px 10px; display: flex; align-items: center; justify-content: center; }
.loader-card { width: min(100%, 331px); padding: 24px 18px 20px; overflow: hidden; text-align: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.radar { position: relative; width: 148px; height: 148px; margin: 2px auto 18px; overflow: hidden; background: radial-gradient(circle, rgba(255,255,255,.13) 0 7%, transparent 8% 100%), repeating-radial-gradient(circle, rgba(255,255,255,.18) 0 1px, transparent 2px 38px); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(255,255,255,.09); }
.radar::before { top: 50%; right: 0; left: 0; height: 1px; }
.radar::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep { position: absolute; z-index: 1; top: 50%; left: 50%; width: 69px; height: 2px; transform-origin: left center; background: linear-gradient(90deg, #3fe7a3, transparent); box-shadow: 0 0 8px rgba(63,231,163,.65); animation: radarSweep 2.3s linear infinite; }
.radar-center { position: absolute; z-index: 2; top: 50%; left: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%); background: #39e1a0; border-radius: 50%; box-shadow: 0 0 0 7px rgba(57,225,160,.12); }
.radar-avatar { position: absolute; z-index: 3; width: 34px; height: 34px; padding: 2px; overflow: hidden; background: white; border-radius: 50%; box-shadow: 0 5px 12px rgba(0,0,0,.34); }
.radar-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.radar-avatar.a1 { top: 28px; left: 25px; }
.radar-avatar.a2 { top: 45px; right: 22px; }
.radar-avatar.a3 { right: 55px; bottom: 18px; }
.loader-card h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 950; }
.loader-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }
.loader-progress { height: 8px; overflow: hidden; background: rgba(255,255,255,.11); border-radius: 999px; }
.loader-card .loader-progress { margin: 18px 4px 0; }
.loader-progress span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, #38e59c, #ff4e86); border-radius: inherit; transition: width .12s linear; }
.loader-meta { margin: 10px 4px 0; display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: 11px; line-height: 15px; font-weight: 800; }
.loader-meta strong { color: inherit; }

.deck-shell { min-height: 935px; padding: 12px 12px 122px; }
.profiles-view .experience-language-picker { top: 12px; right: 43px; transform: scale(.72); transform-origin: top right; }
.deck-header { height: 45px; padding: 2px 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.88); font-size: 11px; }
.deck-header span { display: flex; align-items: center; gap: 6px; }
.deck-header i { width: 7px; height: 7px; background: #3be49d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(59,228,157,.12); }
.deck-header strong { color: rgba(255,255,255,.7); font-size: 10px; white-space: nowrap; }
.deck-progress { margin: 0 2px 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.deck-progress span { height: 3px; background: rgba(255,255,255,.15); border-radius: 999px; }
.deck-progress span.active { background: linear-gradient(90deg, #ff487d, #ffad4d); }

.profile-deck-card { position: relative; width: 100%; aspect-ratio: 351 / 618; overflow: hidden; background: #222; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; box-shadow: 0 24px 58px rgba(0,0,0,.38); transition: opacity .16s ease, transform .16s ease; }
.profile-deck-card.changing { opacity: .55; transform: scale(.992); }
.profile-deck-card { touch-action: pan-y; user-select: none; }
.deck-progress span.complete { background: #ffe7f2; }
.deck-progress span.current { background: linear-gradient(90deg,#ffe7f2 0%,#f4b5d0 65%,rgba(255,255,255,.15) 65%); }
.unlock-strip { padding: 12px; margin-top:12px; border:1px solid rgba(255,255,255,.13); border-radius:18px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.82); font-size:12px; }
.unlock-strip strong { display:block; margin-bottom:3px; color:white; font-size:13px; }
.opener-profile { display:flex; align-items:center; gap:12px; padding:12px; background:#f4f6fb; border-radius:16px; margin:14px 0; }
.opener-profile img { width:54px; height:54px; border-radius:14px; object-fit:cover; }
.opener-profile p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.opener-list { display:grid; gap:9px; }
.opener-option { display:grid; gap:6px; text-align:left; background:#f7f9ff; color:#172033; border:1px solid #e5eaf3; padding:14px; border-radius:14px; }
.opener-option span { font-size:12px; color:var(--muted); }
.contact-sheet { max-height:92svh; }
#contact-form input,#contact-form select { width:100%; min-width:0; height:48px; border-radius:12px; border:1px solid #dce2ee; padding:10px; color:#172033; background:white; font:inherit; font-size:14px; }
#contact-form > input { margin-top:8px; }
.contact-phone-row { display:grid; grid-template-columns:135px 1fr; gap:8px; }
.form-error { margin:8px 0; color:#c8424c; font-size:12px; }
#contact-phone[aria-invalid="true"] { border-color:#c8424c; }
.contact-done { padding:24px 10px; text-align:center; }
.contact-done > span { display:inline-grid; place-items:center; width:60px; height:60px; border-radius:50%; color:#0f8a5f; background:#dcf9eb; font-size:32px; }
.contact-done p { color:var(--muted); font-size:13px; line-height:1.5; }
.copy-fallback { position:fixed; top:-1000px; opacity:0; }
.contact-lockbar button[aria-disabled="true"] { cursor:pointer; }
.profile-deck-card > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.deck-card-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,4,9,.28), transparent 31%, transparent 55%, rgba(8,5,11,.94) 100%); }
.deck-card-top { position: absolute; top: 14px; right: 14px; left: 14px; display: flex; justify-content: space-between; gap: 10px; }
.deck-card-top span { padding: 7px 10px; color: white; background: rgba(16,19,31,.44); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 11px; font-weight: 950; backdrop-filter: blur(8px); }
.deck-card-top span:first-child { background: rgba(18,103,72,.68); }
.deck-card-top #deck-contact.ready { background: rgba(26,109,88,.72); border-color: rgba(91,235,180,.35); }
.deck-card-info { position: absolute; right: 16px; bottom: 17px; left: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.card-name-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deck-card-info h1 { margin: 0 0 8px; font-size: 31px; line-height: 1; font-weight: 950; }
.card-name-row span { padding: 0 0 3px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 900; white-space: nowrap; }
.deck-card-info p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.45; font-weight: 650; }
.deck-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.deck-tags { margin: 12px 0; }
.deck-tags span { padding: 7px 10px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: 10px; font-weight: 850; backdrop-filter: blur(8px); }
.card-hint { color: rgba(255,255,255,.64); font-size: 11px; font-weight: 800; }
.deck-actions { margin-top: 12px; display: grid; grid-template-columns: .8fr 1fr; gap: 10px; }
.deck-actions button, .contact-lockbar button { height: 56px; border-radius: 18px; font-size: 15px; font-weight: 950; }
.deck-skip { color: #f0dce8; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); }
.deck-like { color: white; background: linear-gradient(110deg, #ff477d, #ffac48); box-shadow: 0 10px 25px rgba(255,74,124,.2); }
.deck-hint { min-height: 30px; margin: 9px 0 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.4; font-weight: 750; text-align: center; }
.contact-lockbar { position: fixed; z-index: 20; right: 0; bottom: 10px; left: 0; width: min(calc(100% - 24px), 351px); min-height: 153px; margin: auto; padding: 12px 12px 13px; background: rgba(12,15,26,.9); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; box-shadow: 0 18px 42px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.lockbar-top { height: 26px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.92); font-size: 12px; font-weight: 900; }
#lockbar-time { flex: 0 0 auto; padding: 6px 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; }
.lockbar-progress { height: 7px; margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,.13); border-radius: 999px; }
.lockbar-progress span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, #39e49e, #ff4e85, #ffb347); border-radius: inherit; transition: width .2s linear; }
.contact-lockbar button { width: 100%; height: 52px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 17px; }
.contact-lockbar button:disabled { cursor: not-allowed; }
.contact-lockbar button.unlocked { color: white; background: linear-gradient(135deg, #ff4d85, #ffb347); box-shadow: 0 10px 25px rgba(255,74,124,.2); }
.contact-lockbar p { min-height: 15px; margin: 8px 0 0; color: #ffdf91; font-size: 11px; line-height: 15px; font-weight: 760; text-align: center; }

@keyframes point { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(5px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes radarSweep { to { transform: rotate(360deg); } }

@media (min-width: 426px) {
  body { padding: 0 0 50px; }
  .site-shell, .experience-shell { box-shadow: 0 0 50px rgba(36, 48, 77, .12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
