/* Vaultopia · white monochrome studio + liquid glass. The only colour on the page comes from the map (and the vault's cyan magic). */
:root {
  --bg: #fbfbfd; --ink: #1d1d1f; --ink2: #424245; --grey: #6e6e73; --grey2: #86868b; --grey3: #d2d2d7; --fill: #f0f0f3;
  --line: rgba(0, 0, 0, .1); --cyan: #53e0ff; --cyan-ink: #0a8fb0;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --spring: cubic-bezier(.34, 1.36, .64, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --lx: 0; --ly: 0;
  /* glass recipe */
  --g-tint: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.42) 46%, rgba(255,255,255,.5) 100%);
  --g-filter: blur(14px) saturate(.5) brightness(1.2) contrast(.94);
  --g-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.45), inset 0 0 0 .5px rgba(255,255,255,.6),
    inset 0 18px 28px -22px rgba(255,255,255,1), inset 0 -16px 26px -22px rgba(0,0,0,.12),
    0 .5px 0 rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.05), 0 14px 34px rgba(0,0,0,.1), 0 40px 80px -30px rgba(0,0,0,.22);
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%,
    1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/24px var(--font-text); letter-spacing: -.012em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html.sheet-open body, html.vv-open body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 90; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.fine { font-size: 13px; line-height: 18px; color: var(--grey); }
h1, h2, h3, .plot-no, .big, .brand, .code { font-family: var(--font-display); font-optical-sizing: auto; }

/* ═════════ liquid glass ═════════ */
.glass { position: relative; isolation: isolate; background: var(--g-tint); border: 0; box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: var(--g-filter); backdrop-filter: var(--g-filter); }
/* the rim: a bright edge that catches the light top-left and bottom-right, thinner on the sides */
.glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; padding: 1.25px;
  background: linear-gradient(calc(135deg + var(--lx) * 25deg), rgba(255,255,255,1) 0%, rgba(255,255,255,.35) 22%, rgba(255,255,255,0) 45%, rgba(255,255,255,0) 60%, rgba(255,255,255,.45) 84%, rgba(255,255,255,.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* the sheen: soft light pooling inside the glass, sliding with the pointer / tilt */
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(130% 80% at calc(28% + var(--lx) * 28%) calc(-8% + var(--ly) * 16%), rgba(255,255,255,.62), rgba(255,255,255,0) 58%),
    radial-gradient(90% 60% at calc(80% - var(--lx) * 20%) 112%, rgba(255,255,255,.4), rgba(255,255,255,0) 60%); }
/* Chromium: real refraction at the rim (per-element SVG lens, assets/glass.1b8f618053.js) */
html.lg-lens [data-lens] { -webkit-backdrop-filter: var(--lens,) blur(12px) saturate(.5) brightness(1.2) contrast(.94); backdrop-filter: var(--lens,) blur(12px) saturate(.5) brightness(1.2) contrast(.94); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255,255,255,.9); } }

/* ═════════ buttons ═════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 var(--s3); border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--spring), background .25s, box-shadow .25s, opacity .2s; }
.btn:active, .ctl:active { transform: scale(.95); transition-duration: .12s; }
.btn-dark { background: linear-gradient(180deg, #2f2f31, #1d1d1f); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.16); }
.btn-dark:hover { background: #000; }
.btn-glass { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62)); color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.05), 0 6px 14px rgba(0,0,0,.06); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: #fff; }
.btn[disabled] { opacity: .38; cursor: not-allowed; }
.btn-wide { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-icon { padding: 0; width: 46px; flex: none !important; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ═════════ nav ═════════ */
.nav { position: fixed; z-index: 20; left: var(--s1); right: var(--s1); top: max(var(--s1), env(safe-area-inset-top)); height: 48px; border-radius: 24px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 10px; animation: nav-in .9s var(--ease-out) .1s both; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: block; color: var(--ink); }
.brand-mark svg, .foot-mark svg { width: 100%; height: 100%; display: block; }
.nav-ig { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1), inset 0 1px 0 #fff; }
@keyframes nav-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }

/* ═════════ hero: the map full bleed, the glass panel floating over its lower part ═════════ */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg); }
.stage { position: absolute; inset: 0; }
.map-gl { position: absolute; inset: 0; display: block; z-index: 0; animation: map-in 1.6s var(--ease-out) both; }
.map-3d { z-index: 1; animation: none; }
@keyframes map-in { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
.map-fallback { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; transform-origin: 0 0; transition: transform .9s cubic-bezier(.3,.7,.2,1), width .9s cubic-bezier(.3,.7,.2,1), height .9s cubic-bezier(.3,.7,.2,1); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(251,251,253,0), var(--bg)); pointer-events: none; z-index: 1; }
.map-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.map-lbl { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap; font-size: 11px; line-height: 14px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink); transition: opacity .25s; will-change: transform; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.7)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(0,0,0,.1), 0 4px 14px rgba(0,0,0,.14);
  -webkit-backdrop-filter: blur(10px) saturate(.6); backdrop-filter: blur(10px) saturate(.6); margin-top: -10px; }
.map-lbl i { position: absolute; left: 50%; bottom: -9px; width: 1px; height: 8px; background: rgba(29,29,31,.55); }
.map-lbl i::after { content: ''; position: absolute; left: -2.5px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.map-lbl.is-vault { background: linear-gradient(180deg, #2f2f31, #1d1d1f); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 14px rgba(0,0,0,.2); }
.plot-label { position: absolute; left: 0; top: 0; z-index: 3; padding: 9px 16px 10px; border-radius: 18px; text-align: center; white-space: nowrap; pointer-events: none; will-change: transform; animation: pop .6s var(--spring) both; }
.plot-label b { display: block; font-size: 15px; line-height: 18px; font-weight: 700; letter-spacing: -.02em; }
.plot-label span { display: block; font-size: 13px; line-height: 17px; color: var(--ink2); }
.fb-pin { position: absolute; transition: left .9s cubic-bezier(.3,.7,.2,1), top .9s cubic-bezier(.3,.7,.2,1); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,200,120,.55), 0 0 30px 10px rgba(255,190,100,.8); }
.tip { position: absolute; left: 0; top: 0; z-index: 3; width: max-content; min-width: 160px; max-width: 240px; padding: 12px var(--s2); border-radius: 20px; font-size: 14px; line-height: 19px;
  transform: translate(-50%, calc(-100% - 18px)); animation: pop .55s var(--spring) both; }
.tip b { display: block; font-size: 17px; letter-spacing: -.02em; font-family: var(--font-display); }
.tip .who { display: block; color: var(--ink2); overflow-wrap: anywhere; margin-bottom: 6px; }
.tip .badge { display: inline-block; }
.tip .tip-house { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.tip button { display: flex; margin-top: 10px; min-height: 36px; padding: 0 14px; font-size: 14px; }
@keyframes pop { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }
.hint { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 3; }
.hint.on { opacity: 1; }

.map-btns { position: absolute; z-index: 4; right: var(--s1); top: calc(max(var(--s1), env(safe-area-inset-top)) + 58px); display: flex; flex-direction: column; gap: var(--s1); align-items: center;
  animation: nav-in .9s var(--ease-out) .5s both; }
.ctl { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; cursor: pointer; padding: 0; border: 0; transition: transform .5s var(--spring); }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
.seg .ctl { background: transparent; }
.seg hr { margin: 0 10px; border: 0; height: .5px; background: rgba(0,0,0,.16); }
.close-explore { position: absolute; z-index: 5; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); border-radius: 999px; min-height: 46px; padding: 0 28px; font-weight: 600; cursor: pointer; }

/* the panel */
.panel { position: absolute; z-index: 4; left: var(--s1); right: var(--s1); bottom: max(var(--s1), env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  border-radius: 32px; padding: 50px var(--s2) var(--s2); max-height: calc(100svh - 120px); overflow: visible; animation: panel-in 1.1s var(--spring) .35s both; }
.panel .result, .panel .mine { max-height: calc(100svh - 430px); overflow: auto; overscroll-behavior: contain; }
@keyframes panel-in { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
.intro { text-align: center; }
.eyebrow { margin: 0 0 6px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--grey); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; vertical-align: 1px; margin-right: 8px; animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(29,29,31,.35); } 70% { box-shadow: 0 0 0 7px rgba(29,29,31,0); } 100% { box-shadow: 0 0 0 0 rgba(29,29,31,0); } }
h1 { margin: 0; font-size: clamp(40px, 11.4vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.lede { margin: var(--s1) auto var(--s2); max-width: 30ch; font-size: 16px; line-height: 22px; color: var(--ink2); letter-spacing: -.016em; }
.search { display: flex; align-items: center; background: rgba(255,255,255,.94); border-radius: 999px; padding: 4px 4px 4px var(--s2);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12), inset 0 1px 2px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.06); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 20px rgba(0,0,0,.08); }
.search .at { font-size: 19px; font-weight: 600; color: var(--grey2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 500; padding: 10px 6px; }
.search input::placeholder { color: var(--grey2); }
.search input::-webkit-search-cancel-button { display: none; }
.search .btn { min-height: 44px; padding: 0 22px; }

/* the medallion: a glass coin holding the line-art door, half out of the panel */
.medal { position: absolute; left: 50%; top: -46px; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center;
  transition: transform .6s var(--spring); }
.medal:hover { transform: scale(1.04) rotate(-3deg); }
.mark { width: 74px; height: 74px; display: block; color: var(--ink); }
.mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* line-art draw-in (pathLength = 1): rings, then the seals one by one, then their glyphs; broken seals light up cyan */
.mark.play .ring, .door.play .ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) .5s forwards; }
.mark.play .r1, .door.play .r1 { animation-delay: .7s; }
.mark.play .disc, .door.play .disc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease-out) calc(.9s + var(--i) * 80ms) forwards; }
.mark.play .gl, .door.play .gl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out calc(1.4s + var(--i) * 80ms) forwards; }
.mark.play .dot, .door.play .dot { opacity: 0; animation: fade-in .4s ease-out calc(1.9s + var(--i) * 80ms) forwards; }
.door:not(.play) .ring, .door:not(.play) .disc, .door:not(.play) .gl { stroke-dasharray: 1; stroke-dashoffset: 1; }
.door:not(.play) .dot { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.mark .lit .gl, .door .lit .gl { stroke: var(--cyan-ink); }
.mark .lit .dot, .door .lit .dot { fill: var(--cyan-ink); }
.mark .lit .disc, .door .lit .disc { stroke: var(--ink); }
.mark.play .lit .gl, .door.play .lit .gl { animation: draw .9s ease-out calc(1.4s + var(--i) * 80ms) forwards, glow 3.2s ease-in-out 2.6s infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 .15px var(--cyan)) drop-shadow(0 0 .5px rgba(83,224,255,.7)); } 50% { filter: drop-shadow(0 0 .3px var(--cyan)) drop-shadow(0 0 1.1px rgba(83,224,255,.9)); } }
.mark .next .disc, .door .next .disc { stroke-dasharray: .03 .025; animation: none; stroke-dashoffset: 0; }
.mark.play .next .disc, .door.play .next .disc { animation: spin-dash 14s linear infinite; }
@keyframes spin-dash { to { stroke-dashoffset: -1; } }

/* my pending house */
.mine { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 18px; background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); font-size: 14px; line-height: 19px; }
.mine .btn { flex: none; }
.mine .dot, .r-house .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,.2); animation: live 2.4s infinite; }

/* ═════════ result ═════════ */
.result:empty { display: none; }
.result { margin-top: var(--s2); padding-top: var(--s2); border-top: .5px solid rgba(0,0,0,.14); animation: card-in .7s var(--spring) both; }
@keyframes card-in { from { opacity: 0; translate: 0 12px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
.r-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--grey); }
.r-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plot-no { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -.005em; padding: 4px 10px; border-radius: 999px; }
.badge.founder { background: var(--ink); color: #fff; }
.badge.settler { box-shadow: inset 0 0 0 1px rgba(29,29,31,.4); color: var(--ink); }
.r-handle { margin: 4px 0 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.r-meta { margin: 2px 0 0; color: var(--grey); font-size: 15px; line-height: 20px; }
.r-house { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--ink2); }
.r-house .ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.r-btns { display: flex; gap: 8px; margin-top: 14px; }
.r-btns > .btn { flex: 1 1 auto; padding: 0 16px; }
.r-note { margin: 10px 0 0; font-size: 13px; color: var(--grey); }
.r-miss h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.r-miss p { margin: 0 0 8px; color: var(--ink2); font-size: 15px; line-height: 20px; }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.sugg button { background: #fff; border: 0; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.err { color: #b3261e; font-weight: 600; font-size: 14px; line-height: 19px; margin: 10px 0 0; }

/* ═════════ sections ═════════ */
section:not(.hero) { max-width: 760px; margin: 0 auto; padding: var(--s8) var(--s3) var(--s1); }
.kicker { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--grey); }
h2 { margin: 0; font-size: clamp(32px, 9vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -.046em; }
.sub { margin: var(--s1) 0 0; color: var(--ink2); font-size: 17px; line-height: 24px; }
.card { background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.03), 0 12px 32px rgba(0,0,0,.05); }

/* the big door */
.door-wrap { margin: var(--s4) auto var(--s2); max-width: 420px; }
.door { position: relative; aspect-ratio: 1; color: var(--ink); }
.door svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal-hit { position: absolute; width: 19%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0;
  transition: background .25s, box-shadow .25s, transform .5s var(--spring); }
.seal-hit:hover, .seal-hit:focus-visible { background: rgba(0,0,0,.04); box-shadow: 0 0 0 1px rgba(0,0,0,.12); outline: 0; transform: scale(1.06); }
.seal-hit.broken:hover, .seal-hit.broken:focus-visible { background: rgba(83,224,255,.1); box-shadow: 0 0 0 1px rgba(10,143,176,.35), 0 0 18px rgba(83,224,255,.35); }
.seal-tag { position: absolute; translate: -50% -50%; font-size: 10px; line-height: 12px; font-weight: 700; color: var(--grey2); font-variant-numeric: tabular-nums; pointer-events: none;
  background: var(--bg); padding: 0 3px; border-radius: 4px; letter-spacing: .01em; }
.seal-tag.broken { color: var(--cyan-ink); }
.seal-tag.next { color: var(--ink); }
.count-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: var(--s2) 0 var(--s1); }
.big { font-size: clamp(64px, 20vw, 110px); line-height: 1; font-weight: 700; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.unit { font-size: 19px; font-weight: 600; color: var(--grey); }
.next-card { padding: var(--s3); margin: var(--s3) 0; }
.next-card .nc-k { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--grey); }
.next-card h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.next-card p { margin: 0; color: var(--ink2); }
.next-card .nc-open { margin-top: 14px; }
.bar { height: 8px; background: var(--fill); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); font-weight: 600; font-variant-numeric: tabular-nums; }
.unlocks { list-style: none; margin: 0; padding: 0; border-top: .5px solid rgba(0,0,0,.12); }
.unlocks li { border-bottom: .5px solid rgba(0,0,0,.12); }
.unlocks button { display: flex; width: 100%; gap: 14px; align-items: baseline; padding: var(--s2) 2px; background: none; border: 0; text-align: left; cursor: pointer; }
.unlocks button:hover span { color: var(--ink); }
.unlocks b { min-width: 52px; font-size: 15px; font-weight: 700; color: var(--grey2); font-variant-numeric: tabular-nums; }
.unlocks span { flex: 1; color: var(--grey); font-size: 15px; line-height: 21px; }
.unlocks svg { width: 16px; height: 16px; align-self: center; fill: none; stroke: var(--grey2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unlocks li.done b, .unlocks li.done span { color: var(--ink); }
.unlocks li.done b { color: var(--cyan-ink); }

.steps { list-style: none; margin: var(--s4) 0 var(--s3); padding: 0; display: grid; gap: var(--s1); }
.steps li { position: relative; padding: var(--s3) var(--s3) var(--s3) 72px; }
.steps .num { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: linear-gradient(180deg, #2f2f31, #1d1d1f); color: #fff; }
.steps b { display: block; font-size: 17px; letter-spacing: -.02em; }
.steps span:last-child { color: var(--grey); font-size: 15px; line-height: 21px; }

.foot { max-width: 760px; margin: var(--s8) auto 0; padding: var(--s3) var(--s3) max(var(--s5), env(safe-area-inset-bottom)); border-top: .5px solid rgba(0,0,0,.12); color: var(--grey); font-size: 15px; line-height: 21px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s2); color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.foot-mark { width: 34px; height: 34px; }
.privacy { margin: var(--s2) 0; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px; }
.privacy p { margin: 10px 0 0; font-size: 14px; line-height: 20px; }

/* ═════════ explore ═════════ */
body.exploring { overflow: hidden; }
body.exploring .hero { position: fixed; inset: 0; z-index: 30; height: auto; min-height: 0; }
body.exploring .hero::after, body.exploring .panel, body.exploring #explore, body.exploring .nav { display: none; }
body.exploring .map-btns { top: max(14px, env(safe-area-inset-top)); }

/* ═════════ modals: share + the build sheet ═════════ */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--s2); background: rgba(240,240,244,.55);
  -webkit-backdrop-filter: blur(22px) saturate(.7); backdrop-filter: blur(22px) saturate(.7); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(100%, 400px); max-height: 100%; overflow: auto; padding: var(--s2); border-radius: 32px; animation: panel-in .8s var(--spring) both; overscroll-behavior: contain; }
.sheet-h { font-size: 17px; letter-spacing: -.02em; margin: 2px 0 12px; text-align: center; }
.sheet img { width: 100%; max-height: 56svh; object-fit: contain; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.15); background: #fff; }
.sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sheet-btns #shareGo { grid-column: 1 / -1; }

.modal-sheet { align-items: end; padding: max(var(--s1), env(safe-area-inset-top)) var(--s1) max(var(--s1), env(safe-area-inset-bottom)); }
.claim-sheet { width: min(100%, 520px); max-height: calc(100svh - 24px); padding: var(--s2) var(--s3) var(--s3); border-radius: 34px; }
.claim-sheet { --g-tint: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.82)); }
.cs-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 6px 0; }
.cs-x { width: 36px; height: 36px; background: rgba(0,0,0,.05); }
.cs-x svg { width: 16px; height: 16px; }
.steps-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps-dots li { width: 22px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.12); transition: background .3s, width .4s var(--spring); }
.steps-dots li.on { background: var(--ink); }
.steps-dots li.on:last-of-type, .steps-dots li.on + li:not(.on) { }
.cs-h { margin: 6px 0 4px; font-size: 30px; line-height: 34px; letter-spacing: -.045em; }
.cs-sub { margin: 0 0 var(--s2); color: var(--ink2); font-size: 15px; line-height: 21px; }
.field { display: block; margin: 0 0 10px; }
.field > span:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--grey); margin: 0 0 5px 4px; }
.inp { display: flex; align-items: center; background: rgba(255,255,255,.96); border-radius: 14px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14), inset 0 1px 2px rgba(0,0,0,.04); padding: 0 14px; }
.inp:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.inp i { font-style: normal; font-weight: 600; color: var(--grey2); font-size: 17px; }
.inp input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; padding: 13px 4px; }
.field-note { margin: -4px 0 12px 4px; font-size: 13px; color: var(--grey); }
.checks { display: grid; gap: 10px; margin: 4px 0 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 19px; color: var(--ink2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.privacy-line { margin: 0 0 var(--s2); font-size: 13px; line-height: 18px; color: var(--grey); }
.privacy-line svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; fill: none; stroke: var(--grey); stroke-width: 1.8; stroke-linejoin: round; }
.cs-btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: var(--s2) calc(-1 * var(--s3)) calc(-1 * var(--s3)); padding: 12px var(--s3) var(--s3); position: sticky; bottom: calc(-1 * var(--s3)); z-index: 3;
  background: linear-gradient(rgba(255,255,255,0), rgba(250,250,252,.92) 30%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 0 0 34px 34px; }
.cs-pick { margin: 0 -6px; }

.house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.house-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 0 12px 12px; border: 0; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.5)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(0,0,0,.1), 0 4px 14px rgba(0,0,0,.05);
  transition: transform .5s var(--spring), box-shadow .25s; }
.house-card canvas { width: calc(100% + 24px); margin: 0 -12px 2px; aspect-ratio: 1.25; display: block; border-radius: 22px 22px 0 0; }
.house-card b { font-size: 15px; letter-spacing: -.02em; }
.house-card > span:last-child { font-size: 12px; line-height: 16px; color: var(--grey); margin-top: 2px; }
.house-card[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink), 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); background: #fff; }
.house-card:active { transform: scale(.97); }
.hc-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); opacity: 0; scale: .6; transition: opacity .2s, scale .4s var(--spring); }
.hc-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.house-card[aria-checked="true"] .hc-check { opacity: 1; scale: 1; }
.house-grid.flat .house-card { padding: 16px; }

.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 14px 12px 14px 20px; border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.06); }
.code { font-size: clamp(22px, 7.4vw, 34px); white-space: nowrap; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.ig { width: 20px; height: 20px; }
.mini-steps { margin: var(--s2) 0 10px; padding-left: 22px; font-size: 14px; line-height: 21px; color: var(--ink2); }
.claim-sheet .fine { margin: 0 0 var(--s2); }

.toast { position: fixed; z-index: 70; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 22px; text-align: center;
  font-size: 15px; font-weight: 600; animation: toast-in .7s var(--spring) both; }
@keyframes toast-in { from { opacity: 0; translate: -50% 24px; } to { opacity: 1; translate: -50% 0; } }
.toast.out { opacity: 0; translate: -50% 12px; transition: opacity .35s, translate .35s; }

/* ═════════ the seal viewer ═════════ */
.vault-view { position: fixed; inset: 0; z-index: 60; background: radial-gradient(120% 80% at 50% 35%, #3a3a3e 0%, #1c1c1f 55%, #0d0d0f 100%); color: #fff; animation: fade .35s ease both; transition: opacity .2s; }
.vv-stage { position: absolute; inset: 0; }
.vv-gl { position: absolute; inset: 0; display: block; touch-action: manipulation; }
.vv-top { position: absolute; left: 0; right: 0; top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; pointer-events: none; }
.vv-top > * { pointer-events: auto; }
.vv-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.vv-close { --g-tint: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1)); }
.vv-close svg { stroke: #fff; }
.vv-load { position: absolute; left: 50%; top: 50%; translate: -50% -50%; color: rgba(255,255,255,.7); }
.vv-card { position: absolute; left: var(--s1); right: var(--s1); bottom: max(var(--s1), env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; padding: 18px 20px 20px; border-radius: 30px; color: var(--ink);
  --g-tint: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.66)); animation: panel-in .9s var(--spring) .45s both; }
.vv-row { display: flex; align-items: center; justify-content: space-between; }
.vv-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--grey); }
.vv-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--grey2); }
.vv-dot.on { background: var(--cyan); box-shadow: 0 0 0 3px rgba(83,224,255,.25), 0 0 10px var(--cyan); }
.vv-dot.next { box-shadow: inset 0 0 0 2px var(--ink); animation: live 2.4s infinite; }
.vv-nav { display: flex; gap: 6px; }
.vv-arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(0,0,0,.06); }
.vv-arrow[disabled] { opacity: .3; cursor: default; }
.vv-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vv-card h3 { margin: 6px 0 4px; font-size: 28px; line-height: 32px; letter-spacing: -.045em; }
.vv-card h3 span { color: var(--grey); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.vv-what { margin: 0; font-size: 16px; line-height: 22px; color: var(--ink2); }
.vv-what.secret { font-weight: 600; letter-spacing: .2em; }
.vv-meta { margin: 8px 0 0; font-size: 13px; color: var(--grey); }
body.vault-loading .medal, body.vault-loading .seal-hit { cursor: progress; }
body.vault-loading .medal { animation: breathe 1s ease-in-out infinite; }
@keyframes breathe { 50% { scale: .96; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .mark .ring, .mark .disc, .mark .gl, .door .ring, .door .disc, .door .gl { stroke-dashoffset: 0 !important; } .door .dot, .mark .dot { opacity: 1 !important; } }
@media (min-width: 760px) {
  .panel { left: 50%; right: auto; width: 540px; translate: -50% 0; bottom: var(--s4); padding: 54px var(--s3) var(--s3); }
  @keyframes panel-in { from { opacity: 0; translate: -50% 56px; } to { opacity: 1; translate: -50% 0; } }
  .sheet, .claim-sheet, .vv-card { animation-name: sheet-in; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .modal-sheet { align-items: center; }
  .house-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { left: 50%; right: auto; width: min(1100px, calc(100% - 32px)); translate: -50% 0; top: 14px; }
  @keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 370px) { .cs-h { font-size: 26px; line-height: 30px; } .house-card > span:last-child { display: none; } .r-btns > .btn { padding: 0 12px; } }

/* the Great Replanning: "your plot moved" (panel note + result line), and an open plot looked up by number */
.mine.moved { background: rgba(255,255,255,.78); }
.mine.moved svg, .r-moved svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--cyan-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mine.moved span { flex: 1 1 auto; min-width: 0; }
.r-moved { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 19px; color: var(--ink2);
  background: rgba(83,224,255,.12); box-shadow: inset 0 0 0 .5px rgba(10,143,176,.28); }
.r-moved svg { margin-top: 1px; }
.r-moved b, .mine.moved b { color: var(--ink); font-weight: 600; }
.r-open { color: var(--grey); font-weight: 500; }
