@font-face { font-family: Geist; src: url('/assets/Geist-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/GeistMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #080909;
  color: #e7e8e3;
  --muted: #8b8e87;
  --mono: 'Geist Mono', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; overflow-x: hidden; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
::selection { background: #d7e7c5; color: #080909; }
:focus-visible { outline: 2px solid #b5c5a2; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.landscape { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
#terrain { width: 100%; height: 100%; display: block; opacity: .85; }
.landscape-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, transparent 10%, #08090918 45%, #08090988 100%), linear-gradient(#08090900 65%, #080909d9 100%); }
.horizon-light { position: absolute; inset: 15% -25% -40%; background: radial-gradient(ellipse at center, #d4e5bd0d, transparent 65%); opacity: 0; transition: opacity 1800ms var(--ease-out); }
.masthead { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 37px 48px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark span { font-size: 25px; letter-spacing: -1.5px; line-height: 1; }
.island-mark { width: 23px; height: 23px; }
.edition, .footer { font: 10px/1.5 var(--mono); letter-spacing: 1.5px; color: #9b9f95; }
.edition { display: inline-flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #b3c6a0; box-shadow: 0 0 9px #b3c6a025; }
main { min-height: calc(100svh - 178px); display: grid; place-items: center; padding: 16px 24px 100px; position: relative; z-index: 1; }
.portal { text-align: center; width: min(100%, 590px); }
.portal-symbol { width: 43px; height: 48px; margin: 0 auto 32px; color: #8b9283; display: grid; place-items: center; }
.portal-symbol svg { width: 25px; height: 28px; overflow: visible; transition: opacity 200ms ease, transform 800ms var(--ease-out); }
.lock-shackle { transform-origin: 24px 12px; transition: transform 600ms var(--ease-out); }
.portal-stage { display: grid; }
.invite, .download { grid-area: 1 / 1; min-width: 0; }
.eyebrow { font: 9px/1.5 var(--mono); letter-spacing: 2.1px; color: #a0aa95; margin: 0 0 17px; }
h1, h2 { font-weight: 400; letter-spacing: -2.2px; font-size: clamp(32px, 4.1vw, 54px); line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 47px); }
.intro { font-size: 14px; line-height: 1.6; color: #9b9e96; margin: 17px 0 34px; }
form { max-width: 365px; margin: 0 auto; }
.code-field { height: 57px; display: flex; align-items: center; padding: 7px; border: 1px solid #383c34; border-radius: 8px; background: #10120fe8; box-shadow: 0 4px 30px #00000014; transition: border-color 180ms ease, background-color 180ms ease; }
.code-field:focus-within { border-color: #838e75; background: #11140f; }
.prompt-character { margin: 0 13px 0 10px; font: 16px var(--mono); color: #8d9a80; }
input { width: 100%; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: none; font: 11px var(--mono); letter-spacing: .3px; color: #e7e8e3; }
input::placeholder { color: #8d9187; opacity: 1; }
input:focus-visible { outline: none; }
.enter-button { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #3c4335; border-radius: 5px; background: #242b1f; color: #c1d1b1; transition: background-color 180ms ease, transform 120ms var(--ease-out); }
.enter-button svg { width: 19px; height: 19px; transition: transform 180ms var(--ease-out); }
.enter-button:active { transform: scale(.95); }
.enter-button:disabled { cursor: wait; }
.form-status { font: 10px/1.6 var(--mono); min-height: 32px; margin: 15px -20px 0; color: #8d9287; letter-spacing: -.2px; }
input[aria-invalid="true"] ~ button { border-color: #745947; }
body[data-state="error"] .code-field { border-color: #96725a; }
body[data-state="error"] .form-status { color: #d4a98d; }
.invite { transition: opacity 400ms ease, transform 700ms var(--ease-out); }
.download { opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 55px; padding: 0 24px; background: #e0e8d6; border: 1px solid #edf3e6; border-radius: 8px; font-size: 13px; color: #1a2115; box-shadow: 0 0 35px #cedcb510, 0 5px 20px #0002; transition: background-color 180ms ease, transform 120ms var(--ease-out); }
.download-button > svg { width: 16px; height: 18px; }
.download-button .download-arrow { width: 17px; margin-left: 15px; }
.download-button:active { transform: scale(.97); }
.download-meta { margin: 18px 0 0; font: 9px/1.8 var(--mono); color: #92998a; }
.download-meta span { margin: 0 7px; }
.download-status { margin: 12px 0 0; min-height: 15px; font: 10px/1.5 var(--mono); color: #a5b19a; }
body[data-state="revealing"] .lock-shackle, body[data-state="unlocked"] .lock-shackle { transform: translateY(-4px) rotate(-28deg); }
body[data-state="revealing"] .invite, body[data-state="unlocked"] .invite { opacity: 0; transform: translateY(-16px); pointer-events: none; }
body[data-state="unlocked"] .download { opacity: 1; transform: translateY(0); pointer-events: auto; }
body[data-state="unlocked"] .horizon-light { opacity: 1; }
body[data-state="unlocked"] .portal-symbol svg { transform: translateY(-2px); }
.footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 48px 30px; font-size: 10px; letter-spacing: .1px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { padding-block: 6px; text-underline-offset: 4px; transition: color 180ms ease; }
.footer-links a[aria-current="page"] { color: #d4dfc8; text-decoration: underline; }
.legal-page { display: flex; flex-direction: column; }
.legal-back { font: 11px/1.5 var(--mono); color: #a6ae9d; padding-block: 8px; text-underline-offset: 4px; }
.legal-main { display: block; flex: 1; min-height: 0; width: 100%; max-width: 760px; padding: 55px 28px 100px; margin: 0 auto; }
.legal-document h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -1.5px; }
.legal-date { font: 10px/1.6 var(--mono); color: #8d9684; margin: 18px 0 32px; }
.legal-lead { font-size: 18px; line-height: 1.6; color: #d7ded0; padding-bottom: 28px; margin: 0 0 34px; border-bottom: 1px solid #292e25; }
.legal-document h2 { font-size: 17px; line-height: 1.5; letter-spacing: -.25px; margin: 34px 0 12px; }
.legal-document section p, .legal-document li { font-size: 14px; line-height: 1.85; color: #b3bbac; }
.legal-document section p { margin: 0 0 14px; }
.legal-document ul { padding-left: 20px; margin: 0 0 18px; }
.legal-document li { margin-bottom: 8px; padding-left: 3px; }
.legal-document a { color: #d4dfc8; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-document strong { color: #d7ded0; font-weight: 600; }
.no-script { position: fixed; bottom: 80px; left: 20px; right: 20px; padding: 20px; text-align: center; background: #181a16; z-index: 5; }
@media (hover: hover) and (pointer: fine) {
  .enter-button:hover { background: #38462c; }
  .enter-button:hover svg { transform: translateX(2px); }
  .download-button:hover { background: #f0f4e9; transform: translateY(-2px); }
  .footer-links a:hover, .legal-back:hover { color: #e7e8e3; text-decoration: underline; }
}
@media (max-width: 600px) {
  .masthead { padding: 27px 24px; }
  .wordmark span { font-size: 23px; }
  .edition { font-size: 8px; letter-spacing: 1px; }
  main { min-height: calc(100svh - 150px); padding-bottom: 80px; }
  .portal-symbol { margin-bottom: 28px; }
  h1, h2 { letter-spacing: -1.4px; }
  .intro { font-size: 13px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .footer { padding: 20px 24px 28px; flex-direction: column; align-items: center; gap: 8px; font-size: 9px; }
  .footer-links { justify-content: center; gap: 18px; }
  .legal-main { padding: 30px 24px 60px; }
  .legal-lead { font-size: 16px; }
  .form-status { margin-left: 0; margin-right: 0; font-size: 9px; }
  .download-meta { font-size: 8px; }
}
@media (max-height: 650px) { main { padding-bottom: 22px; } .portal-symbol { margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 150ms !important; }
  .invite, .download, .portal-symbol svg, .lock-shackle, .download-button, .enter-button, .enter-button svg { transform: none !important; }
}
