@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow-x: clip; }
body.lg { --ink: #fff8ec; --muted: rgb(255 248 236 / .62); --line: rgb(255 255 255 / .12); --gold: #f5b841; --gold-2: #ffd27a; --ease: cubic-bezier(.2,.8,.2,1);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Geist", system-ui, sans-serif; letter-spacing: -.005em; color: var(--ink); background: #12070d; overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- room ---------- */
.lg-room { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 30% 40%, #2a0f1c, #12070d 70%), #12070d; }
.lg-room::after { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.lg-warm { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
  background: radial-gradient(45% 55% at 30% 30%, rgb(245 184 65 / .30), transparent 70%), radial-gradient(60% 50% at 75% 60%, rgb(176 52 80 / .28), transparent 70%), linear-gradient(180deg, #3a1424, #20090f); }
.is-on .lg-warm { opacity: 1; }
.lg-dust { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s; }
.is-on .lg-dust { opacity: 1; }
.lg-dust i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgb(255 226 160 / .9), rgb(255 210 122 / 0) 70%); animation: dust linear infinite; }
.lg-dust i.big { filter: blur(6px); background: radial-gradient(circle, rgb(255 214 140 / .35), transparent 70%); }
@keyframes dust { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }

/* ---------- top / back ---------- */
.lg-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; }
.lg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.lg-snd { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / .05); display: grid; place-items: center; }
.lg-snd svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-snd .off { display: none; } .lg-snd[data-muted="true"] .on { display: none; } .lg-snd[data-muted="true"] .off { display: block; }
.lg-back { position: fixed; z-index: 5; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 10px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgb(255 255 255 / .06); text-decoration: none; font-size: 15px; font-weight: 500; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lg-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-back:hover, .lg-snd:hover { background: rgb(255 255 255 / .12); }

/* ---------- stage ---------- */
.lg-stage { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 70px 6vw 40px; max-width: 1400px; margin: 0 auto; }

/* ---------- lamp ---------- */
.lg-lamp { position: relative; justify-self: center; height: min(76vh, 620px); aspect-ratio: 240 / 560; }
.lg-lamp__svg { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.lg-shade__body { fill: url(#shadeOff); stroke: rgb(255 255 255 / .1); stroke-width: 1; transition: fill .4s; }
.lg-pleats { stroke: rgb(255 255 255 / .05); transition: stroke .6s; }
.lg-shade__rim { stroke: #3a2430; transition: stroke .6s; }
.is-on .lg-shade__body { fill: url(#shadeOn); stroke: rgb(255 230 180 / .6); }
.is-on .lg-pleats { stroke: rgb(196 120 40 / .35); }
.is-on .lg-shade__rim { stroke: #fff1c9; }
.lg-shade { transition: filter .8s; }
.is-on .lg-shade { filter: drop-shadow(0 0 22px rgb(255 200 110 / .7)) drop-shadow(0 0 60px rgb(245 184 65 / .35)); }
.lg-bulb { opacity: 0; transition: opacity .6s; }
.is-on .lg-bulb { opacity: 1; }
.lg-chain { fill: none; stroke: #c9a463; stroke-width: 2.2; stroke-dasharray: .1 4.2; stroke-linecap: round; }
.lg-bead { pointer-events: none; transition: filter .3s; }
.lg-grab .lg-bead, .lg-hit:hover ~ .lg-bead { filter: drop-shadow(0 0 7px rgb(255 214 140 / .9)); }
.lg-pull { cursor: grab; }
.lg-pull circle { transition: filter .3s; }
.lg-pull:hover circle, .lg-pulling .lg-pull circle { filter: drop-shadow(0 0 6px rgb(255 214 140 / .9)); }
.lg-pulling .lg-pull { cursor: grabbing; }
.lg-hit { fill: transparent; cursor: grab; touch-action: none; }
.lg-grab, .lg-grab * { cursor: grabbing !important; }

.lg-cone { position: absolute; z-index: 1; top: 21.8%; left: -150%; width: 400%; height: 82%; pointer-events: none; opacity: 0; transform-origin: 50% 0; transform: scaleY(.6);
  clip-path: polygon(42.25% 0, 57.75% 0, 100% 100%, 0 100%); filter: blur(8px);
  background: linear-gradient(180deg, rgb(255 222 150 / .5), rgb(245 184 65 / .16) 45%, transparent 90%);
  transition: opacity .9s var(--ease), transform 1s var(--ease); }
.is-on .lg-cone { opacity: 1; transform: none; }
.lg-pool { position: absolute; z-index: 0; left: -70%; width: 240%; bottom: -3%; height: 14%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgb(255 208 120 / .38), transparent 70%); transition: opacity 1.1s; }
.is-on .lg-pool { opacity: 1; }
.lg-flicker .lg-cone, .lg-flicker .lg-shade, .lg-flicker .lg-warm { animation: flick .5s steps(1) 1; }
@keyframes flick { 0% { opacity: 1; } 15% { opacity: .35; } 25% { opacity: 1; } 40% { opacity: .6; } 55% { opacity: 1; } }

.lg-pullbtn { position: absolute; z-index: 3; left: 74%; top: 42%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.lg-pullbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s ease-in-out infinite; }
.is-on .lg-pullbtn svg { animation: none; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.lg-pullbtn:hover { color: var(--ink); }
.lg-pullbtn__dot { width: 22px; height: 1px; background: currentColor; opacity: .6; }
.lg-pullbtn:focus-visible { outline: 2px solid var(--gold); }

/* ---------- card ---------- */
.lg-card { width: 100%; padding: 32px; border-radius: 30px;
  background: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / .04)); border: 1px solid rgb(255 236 200 / .16);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 40px 90px rgb(0 0 0 / .45);
  opacity: 0; filter: blur(14px); transform: translateY(16px) scale(.97); transition: opacity .8s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.is-on .lg-card { opacity: 1; filter: none; transform: none; transition-delay: .25s; }
.lg-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lg-lit { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 99px; border: 1px solid rgb(255 214 140 / .3); color: var(--gold-2); background: rgb(245 184 65 / .1); }
.lg-card h1 { margin: 0 0 26px; font-size: clamp(34px, 3.3vw, 44px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; }
.lg-card h1 span { display: block; margin-top: 4px; font-size: .62em; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; background: linear-gradient(90deg, #ffe3a3, #f5b841 45%, #ff8a7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-f { display: block; }
.lg-f > span:first-child { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 9px; }
.lg-in { position: relative; display: block; }
.lg-in svg { position: absolute; left: 16px; width: 18px !important; height: 18px !important; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lg-in input { width: 100%; height: 56px; padding: 0 16px 0 46px; border-radius: 16px; font-size: 17px !important; border: 1px solid rgb(255 255 255 / .14); background: rgb(0 0 0 / .28); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.lg-in input::placeholder { color: rgb(255 248 236 / .35); }
.lg-in input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(245 184 65 / .2); }
.lg-in input[aria-invalid="true"] { border-color: #ff9b8a; }
.lg-err { min-height: 20px; margin: 8px 0 8px; font-size: 14px; color: #ffb4a6; }
.lg-keep { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 16px; }
.lg-keep input { position: absolute; opacity: 0; pointer-events: none; }
.lg-keep i { width: 34px; height: 20px; border-radius: 99px; background: rgb(255 255 255 / .16); position: relative; transition: background .2s; flex: none; }
.lg-keep i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.lg-keep input:checked + i { background: var(--gold); }
.lg-keep input:checked + i::after { transform: translateX(14px); }
.lg-keep input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.lg-go { position: relative; overflow: hidden; width: 100%; height: 56px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #3a1426; background: linear-gradient(120deg, #ffe3a3, #f5b841 55%, #f08a5d); box-shadow: 0 10px 30px rgb(245 184 65 / .3); transition: transform .15s, filter .2s; }
.lg-go:hover { filter: brightness(1.06); }
.lg-go:active { transform: scale(.985); }
.lg-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lg-go.is-busy span, .lg-go.is-busy svg { opacity: 0; }
.lg-go.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #3a1426; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lg-why { display: flex; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.lg-why svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lg-new { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }
.lg-new a { color: var(--gold-2); font-weight: 500; text-decoration: none; }
.lg-new a:hover { text-decoration: underline; }
.lg-sent { text-align: center; padding: 6px 0 2px; animation: rise .5s var(--ease) both; }
.lg-sent__ico { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: rgb(245 184 65 / .16); color: var(--gold-2); }
.lg-sent__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-sent h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.lg-sent p { margin: 0 0 18px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.lg-sent__btns { display: flex; flex-direction: column; gap: 8px; }
.lg-sent__btns a, .lg-sent__btns button { height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; font-weight: 500; border: 1px solid var(--line); background: rgb(255 255 255 / .06); }
.lg-sent__btns .pri { border: 0; background: linear-gradient(120deg, #ffe3a3, #f5b841 55%, #f08a5d); color: #3a1426; font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* leaving */
.lg-leaving .lg-stage, .lg-leaving .lg-top, .lg-leaving .lg-back { filter: blur(16px); opacity: .4; transform: scale(.985); transition: filter .7s var(--ease), opacity .7s, transform .7s var(--ease); }

@media (max-width: 860px) {
  .lg-stage { grid-template-columns: 1fr; gap: 10px; padding-top: 72px; padding-bottom: 90px; }
  .lg-lamp { height: 40vh; }
  .lg-col { justify-self: center; }
  .lg-win { display: none; }
  .lg-pullbtn { left: 62%; top: 40%; font-size: 13px; }
  .lg-back { display: none; }
  .lg-stage { overflow: clip; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-card, .lg-cone, .lg-warm, .lg-dust, .lg-pool { transition: none; }
  .lg-dust i { animation: none; }
}

/* ---------- right column: live window + card ---------- */
.lg-col { width: min(100%, 460px); justify-self: start; display: flex; flex-direction: column; gap: 18px; }
.lg-win { margin: 0; opacity: .55; transform: translateY(6px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-on .lg-win { opacity: 1; transform: none; }
.lg-win__view { position: relative; height: 150px; border-radius: 20px; overflow: hidden; border: 6px solid #2a1520; box-shadow: 0 0 0 1px rgb(255 236 200 / .14), 0 20px 50px rgb(0 0 0 / .4), inset 0 0 30px rgb(0 0 0 / .35); cursor: crosshair; }
.lg-win__view::before { content: ""; position: absolute; z-index: 6; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: #2a1520; }
.lg-win__view::after { content: ""; position: absolute; z-index: 6; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: #2a1520; }
.lg-win__sky { position: absolute; inset: -10px; transition: background 1.5s; }
.lg-win__stars { position: absolute; inset: 0; transition: opacity 1.5s; }
.lg-win__stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.lg-win__orb { position: absolute; width: 26px; height: 26px; border-radius: 50%; transition: left 1s, top 1s, background .5s, box-shadow .5s; }
.lg-win__clouds i { position: absolute; height: 12px; border-radius: 99px; background: rgb(255 255 255 / .35); filter: blur(3px); animation: cloud linear infinite; }
.lg-win__clouds i:nth-child(1) { width: 70px; top: 22%; animation-duration: 60s; animation-delay: -10s; }
.lg-win__clouds i:nth-child(2) { width: 46px; top: 38%; animation-duration: 85s; animation-delay: -50s; opacity: .7; }
.lg-win__clouds i:nth-child(3) { width: 90px; top: 14%; animation-duration: 110s; animation-delay: -80s; opacity: .5; }
@keyframes cloud { from { transform: translateX(-120px); left: 0; } to { transform: translateX(560px); left: 0; } }
.lg-win__hills { position: absolute; left: -12px; right: -12px; bottom: 0; width: calc(100% + 24px); transition: transform .4s var(--ease); }
.lg-win__hills--far { height: 78%; } .lg-win__hills--near { height: 58%; }
.lg-win__hills--far path { fill: var(--far, #3a2a4a); transition: fill 1.5s; }
.lg-win__hills--near path { fill: var(--near, #22151f); transition: fill 1.5s; }
.lg-win__city { position: absolute; left: 0; right: 0; bottom: 6px; height: 20px; z-index: 3; transition: transform .4s var(--ease); }
.lg-win__city i { position: absolute; bottom: 0; width: 2.5px; height: 2.5px; border-radius: 1px; background: #ffd27a; box-shadow: 0 0 4px #ffb84d; animation: twinkle 4s ease-in-out infinite; }
.lg-win__glass { position: absolute; inset: 0; z-index: 5; background: linear-gradient(120deg, rgb(255 255 255 / .1), transparent 40%, transparent 70%, rgb(255 255 255 / .06)); pointer-events: none; }
.lg-win figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 0 4px; font-size: 15px; color: var(--muted); }
.lg-win figcaption b { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-height: 760px) { .lg-win__view { height: 110px; } }
@media (prefers-reduced-motion: reduce) { .lg-win__clouds i, .lg-win__stars i, .lg-win__city i { animation: none; } }

/* password field */
.lg-pwslot .fld { display: block; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.lg-pwslot .pwf__wrap { margin-top: 9px; }
.lg-pwslot input { width: 100%; height: 56px; padding: 0 50px 0 16px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .14); background: rgb(0 0 0 / .28); color: var(--ink); font: inherit; font-size: 17px; letter-spacing: .02em; transition: border-color .2s, box-shadow .2s; }
.lg-pwslot input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(245 184 65 / .2); }
.lg-pwslot input[aria-invalid="true"] { border-color: #ff9b8a; }
.lg-pwslot .pwf__eye { color: var(--ink); }
.lg-forgot { display: block; margin: 8px 0 0 auto; padding: 4px 2px; border: 0; background: none; color: var(--gold-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.lg-forgot:hover { text-decoration: underline; }
