/* Original styles. No third-party fonts or network requests. */
:root{--tide-accent:#8eeade;--ink:#eff7f5;--dim:#adbec9;--gold:#f5ce91;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#06121e;color:var(--ink)}
body{font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #a9e9da;outline-offset:4px}
[hidden]{display:none!important}
.experience{position:relative;width:100%;height:100dvh;min-height:540px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 60% 47%,#27556c 0%,#12314c 40%,#06121e 85%)}
#world{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none}
.atmosphere{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,9,21,.52),transparent 65%),radial-gradient(ellipse 68% 40% at 35% 122%,rgba(23,226,215,.13),transparent 72%),linear-gradient(0deg,rgba(3,10,21,.58),transparent 30%,transparent 80%,rgba(3,10,24,.23));z-index:1}
.grain{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.24' filter='url(%23n)'/%3E%3C/svg%3E");mix-blend-mode:soft-light}
.mast{position:absolute;left:0;right:0;top:0;z-index:12;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:27px clamp(24px,4.8vw,86px);border-bottom:1px solid rgba(221,248,249,.14);font-size:10px;font-weight:650;letter-spacing:.19em}
.back{display:inline-flex;align-items:center;gap:15px;width:max-content;color:#d7e9ed;transition:color .2s}.back:hover{color:#fff}
.back-arrow{font-size:23px;line-height:1;font-weight:200}
.identity{display:flex;align-items:center;gap:15px;white-space:nowrap;text-align:left;font-size:11px;letter-spacing:.19em}
.identity small{display:block;margin-top:8px;font-weight:500;font-size:8px;letter-spacing:.2em;color:#b4ced5}
.sigil{font-family:Georgia,serif;font-size:35px;font-weight:normal;color:var(--tide-accent);line-height:1}
.mast-actions{justify-self:end;display:flex;align-items:center;gap:12px}
.icon-button{padding:11px 10px;border:1px solid rgba(205,242,243,.23);border-radius:2px;background:rgba(7,25,38,.24);color:#e8f5f5;font-size:10px;letter-spacing:.13em;min-height:40px}
.icon-button:hover,.secondary:hover{background:rgba(170,242,233,.16)}
#audio-state{color:var(--tide-accent);margin-left:6px}
#fullscreen{font-size:22px;min-width:41px;line-height:12px}
.invitation{position:absolute;z-index:9;left:clamp(30px,11.5vw,210px);top:50%;width:min(680px,79vw);transform:translateY(-46%);text-shadow:0 2px 35px rgba(0,6,19,.4);transition:opacity 1.1s ease,transform 1.1s ease}
.entered .invitation{opacity:0;pointer-events:none;transform:translateY(-39%)}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:10px;font-weight:650;letter-spacing:.27em;color:#b6e8e4}
.line{display:inline-block;width:30px;height:1px;background:#a8eee1}
.invitation h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(58px,8vw,138px);font-weight:400;line-height:.96;letter-spacing:-.065em;margin:30px 0}
.invitation h1 em{font-weight:400;color:#d6f9e7}
.lead{font-size:clamp(14px,1.25vw,18px);line-height:1.84;letter-spacing:.012em;max-width:470px;color:#dfedf0}
.enter-actions{display:flex;align-items:center;gap:30px;margin-top:32px;flex-wrap:wrap}
.primary{min-width:198px;border:1px solid rgba(245,253,246,.68);padding:19px 26px;color:#09212a;background:#b6f3de;font-size:10px;letter-spacing:.17em;font-weight:700;text-transform:uppercase;transition:background .2s,transform .2s}
.primary:not(:disabled):hover{transform:translateY(-2px);background:#e2fff2}
.text-button{border:0;background:none;color:#eef8f4;padding:15px 0;font-size:11px;font-weight:700;letter-spacing:.09em;text-decoration:underline;text-underline-offset:6px}
.text-button span{margin-left:7px}
.hint{margin-top:35px;color:#bfced4;font-size:11px;letter-spacing:.04em;line-height:1.6}
.loading{position:absolute;z-index:6;bottom:27px;left:50%;transform:translateX(-50%);color:rgba(217,242,245,.75);font-size:10px;letter-spacing:.15em;white-space:nowrap}
.loading-dots{display:inline-block;animation:blink 1.3s steps(3,end) infinite}
@keyframes blink{0%,20%{opacity:0}100%{opacity:1}}
.realms{position:absolute;left:clamp(24px,4.8vw,86px);right:clamp(24px,4.8vw,86px);bottom:128px;z-index:10;border-top:1px solid rgba(225,248,247,.24);padding-top:17px;animation:rise .9s ease both}
.realms-label{font-size:9px;letter-spacing:.23em;font-weight:700;color:#b5dedb;display:flex;gap:18px;align-items:center}
.realms-label i{height:1px;width:65px;background:#b6e1da;opacity:.35}
.realm-row{display:flex;gap:clamp(14px,3vw,58px);margin-top:15px;overflow-x:auto;scrollbar-width:none}
.realm-row::-webkit-scrollbar{display:none}
.realm{border:0;border-top:1px solid transparent;background:none;white-space:nowrap;min-width:0;padding:5px 0 0;text-align:left;display:flex;align-items:baseline;gap:10px;color:rgba(220,232,237,.64);transition:color .3s}
.realm small{font-size:9px;letter-spacing:.1em}
.realm span{font-family:Georgia,serif;font-size:clamp(14px,1.35vw,20px);letter-spacing:.012em}
.realm:hover,.realm.active{color:#fff}
.realm.active small{color:var(--tide-accent)}
.hud{position:absolute;bottom:0;left:0;right:0;padding:18px clamp(24px,4.8vw,86px) 26px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(0deg,rgba(3,15,25,.52),transparent)}
.hud-copy{display:flex;flex-direction:column;gap:8px}
.hud-copy span{font-size:9px;letter-spacing:.2em;color:#b0e3da;font-weight:700}
.hud-copy strong{font-family:Georgia,serif;font-size:15px;letter-spacing:.02em;font-weight:normal;color:#e4eceb}
.hud-actions{display:flex;align-items:center;gap:9px}
.secondary{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(212,246,239,.25);padding:12px 16px;min-height:42px;border-radius:2px;background:rgba(6,22,36,.38);backdrop-filter:blur(18px);font-size:10px;letter-spacing:.1em;font-weight:700;color:#e2f3f0}
.spark{font-size:18px;color:var(--tide-accent);font-weight:400;line-height:0}
.secondary.compact{padding:12px}
.arrival{position:absolute;top:32%;left:50%;z-index:6;transform:translate(-50%,12px);width:min(520px,82vw);opacity:0;pointer-events:none;text-align:center;text-shadow:0 2px 28px rgba(0,9,22,.8);transition:opacity 1s ease,transform 1s ease}
.arrival.visible{opacity:1;transform:translate(-50%,0)}
.arrival span{display:block;font-size:10px;color:#b2e5da;letter-spacing:.25em;margin-bottom:18px}
.arrival strong{display:block;font:400 clamp(38px,5vw,82px)/1.08 Georgia,serif;letter-spacing:-.05em}
.arrival p{font-size:14px;line-height:1.7;color:#e2eff1;margin:15px auto;max-width:420px}
.settings{position:absolute;z-index:18;right:clamp(16px,4.8vw,86px);bottom:123px;width:min(375px,calc(100vw - 32px));background:rgba(5,19,31,.91);border:1px solid rgba(152,214,210,.4);backdrop-filter:blur(22px);padding:25px;box-shadow:0 24px 75px #0007;animation:rise .2s ease}
.settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.settings h2{font:400 26px/1.1 Georgia,serif;letter-spacing:-.025em;margin:0}
#settings-close{color:#f2f9f8;font-size:29px;line-height:1;background:none;border:0}
.settings>label:not(.check){display:flex;justify-content:space-between;gap:10px;font-size:11px;letter-spacing:.06em;color:#cfe7e6;margin-top:21px}
.settings output{color:#aaf7df}
.settings input[type=range]{width:100%;margin-top:14px;accent-color:#93e9ce}
.check{display:flex;align-items:center;gap:9px;font-size:12px;color:#d1e4e7;margin-top:24px}
.check input{accent-color:#a7ebdc}
.how{font-size:11px;color:#9bb6bc;line-height:1.7;margin:22px 0 5px}
.paused{position:absolute;z-index:8;top:22%;width:100%;text-align:center;font:italic 28px Georgia,serif;text-shadow:0 2px 22px #000}
.failure,.no-script{position:absolute;inset:0;z-index:35;background:linear-gradient(125deg,#0b1c2b,#143143);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;text-align:center;gap:20px}
.failure h2{font:400 clamp(32px,4vw,64px) Georgia,serif;margin:0}
.failure p{max-width:480px;line-height:1.6}.failure a,.failure button{padding:15px;border:1px solid #9dcfc5;background:none;color:#fff}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){.experience{min-height:420px}.mast{grid-template-columns:1fr auto;padding:18px 19px;gap:10px}.identity{grid-column:1/-1;grid-row:2;justify-self:center;margin-top:10px}.mast-actions{grid-column:2;grid-row:1}.back{grid-column:1;grid-row:1}.sigil{font-size:25px}.identity{font-size:9px}.identity small{font-size:7px;margin-top:5px}.invitation{left:25px;top:48%;width:calc(100% - 45px)}.invitation h1{font-size:clamp(48px,13vw,82px);margin:24px 0}.lead{max-width:320px;font-size:13px;line-height:1.65}.enter-actions{gap:22px;margin-top:22px}.hint{margin-top:21px}.primary{min-width:150px;padding:17px}.realms{left:19px;right:19px;bottom:121px;padding-top:10px}.realm-row{gap:24px}.realm span{font-size:15px}.hud{padding:14px 19px 18px}.hud-copy strong{font-size:12px}.hud-copy span{font-size:8px}.secondary{font-size:9px;padding:11px}.secondary.compact{padding:11px 8px}.settings{right:15px;bottom:100px}.arrival{top:29%}.arrival strong{font-size:clamp(36px,9vw,60px)}}
@media(max-width:420px){#fullscreen{display:none}.secondary.compact{font-size:9px}.hud-copy strong{max-width:130px}.realms{bottom:120px}.realm-row{gap:22px}.realm span{font-size:14px}.invitation h1{font-size:clamp(49px,13vw,68px)}.mast-actions{gap:4px}}
@media(max-height:640px){.invitation{top:55%}.invitation h1{font-size:clamp(42px,7vh,80px);margin:12px 0}.hint{margin-top:10px}.enter-actions{margin-top:12px}.realms{bottom:102px}.hud{padding-bottom:12px}.settings{bottom:105px;max-height:80dvh;overflow:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
