*{box-sizing:border-box} :root{color-scheme:light;--bg:#f4f3ef;--surface:#fff;--ink:#1a1c22;--muted:#555965;--line:#dadce0;--accent:#ff8a55;--hot:#91340f;--nav:calc(70px + env(safe-area-inset-bottom,0px))} :root[data-theme=dark]{color-scheme:dark;--bg:#14161b;--surface:#1f2229;--ink:#faf7f3;--muted:#b9bdc9;--line:#3b3e47;--hot:#ff9f76}
body{margin:0;font:16px system-ui,sans-serif;background:var(--bg);color:var(--ink)} header{display:flex;justify-content:space-between;align-items:center;padding:15px max(5vw,18px);background:var(--surface);border-bottom:1px solid var(--line)} a{color:inherit;text-decoration:none} button,input,textarea,select{font:inherit;color:inherit} button{cursor:pointer} :focus-visible{outline:3px solid #ed6c3a;outline-offset:3px} .brand{font-size:26px;font-style:italic;font-weight:950;letter-spacing:-.07em}.brand span{color:var(--hot)} main{max-width:1040px;margin:auto;padding:24px 18px calc(var(--nav) + 24px)} h1,h2,h3,p{margin:0} h1{font-size:clamp(40px,8vw,76px);line-height:1;letter-spacing:-.067em} h2{letter-spacing:-.04em;font-size:clamp(23px,4vw,34px)} p{line-height:1.5}.muted{color:var(--muted)} .stack{display:grid;gap:18px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.quiet,.cta{display:inline-block;border:1px solid var(--line);border-radius:12px;padding:9px 14px;background:var(--surface);font-weight:650}.cta{background:var(--accent);color:#24140f;border-color:transparent}.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.hero{position:relative;overflow:hidden;padding:clamp(24px,6vw,60px);min-height:275px;display:grid;gap:16px;align-content:center;justify-items:start;border-radius:24px;color:#fff;background:radial-gradient(ellipse at 100% 10%,#953e26,transparent 55%),repeating-radial-gradient(ellipse at 100% 110%,#25212a 0 35px,#3e2b30 36px 37px,#25212a 38px 52px)}.hero p{max-width:42ch;color:#eeebee}.eyebrow{color:#ffad8c;font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:13px}
nav{position:fixed;z-index:5;bottom:0;left:0;right:0;height:var(--nav);padding-bottom:env(safe-area-inset-bottom,0px);display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--surface);border-top:1px solid var(--line)}nav a{display:grid;align-content:center;justify-items:center;gap:5px;color:var(--muted);font-size:clamp(9px,2.6vw,14px);white-space:nowrap} nav svg{width:22px;height:22px}nav [aria-current]{color:var(--hot);font-weight:750;box-shadow:inset 0 2px currentColor}.feed-link{justify-self:center;align-self:center;width:clamp(40px,13vw,53px);aspect-ratio:1;border-radius:50%;background:#b83a10;color:#fff;box-shadow:0 3px 12px #b83a104d}.feed-link[aria-current]{color:#fff;box-shadow:0 0 0 3px var(--accent)}.feed-link svg{width:28px;height:28px}
.map{position:relative;isolation:isolate;min-height:235px;aspect-ratio:2.2;overflow:hidden;border-radius:18px;background:#242e33;color:white}.map.large{min-height:300px}.map svg{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.map-label{position:absolute;color:#bbc9cc;font-size:clamp(10px,2.5vw,14px);letter-spacing:.1em;text-transform:uppercase}.pin{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:6px 9px;display:flex;align-items:center;gap:5px;font-size:clamp(11px,2.4vw,15px);border-radius:20px;background:#151d22;color:#fff;border:1px solid #ff956c;white-space:nowrap}.pin::before{content:'';width:8px;height:8px;background:#ff956c;border-radius:50%}.quiet[aria-pressed=true]{background:var(--ink);color:var(--surface)} .map-caption{font-size:13px}.tunnel-card:hover{border-color:var(--hot)}
form label{display:grid;gap:6px;font-weight:650} input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:10px} textarea{resize:vertical}.profile-hero{display:grid;gap:18px;grid-template-columns:auto 1fr;align-items:start}.avatar{display:grid;place-items:center;width:62px;aspect-ratio:1;border-radius:20px;background:#ffd3bf;color:#7d2605;font-size:26px;font-weight:900}.bio{white-space:pre-wrap;overflow-wrap:anywhere}.post video,.post img{width:100%;max-height:300px;object-fit:contain;border-radius:12px;background:#16181e}.delete{justify-self:start}
.feed-open{overflow:hidden;background:#171b24}.feed-open header{display:none}.feed-open main{max-width:none;padding:0}.feed{height:calc(100dvh - var(--nav));margin:auto;max-width:680px;overflow:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain}.story{min-height:100%;position:relative;scroll-snap-align:start;scroll-snap-stop:always;display:grid;align-content:end;justify-items:start;gap:12px;padding:30px;color:#fff;background:radial-gradient(ellipse at 85% 10%,#8e462e,transparent 65%),#222735}.story:nth-child(2){background:radial-gradient(ellipse at 85% 10%,#4b467b,transparent 65%),#202338}.story:nth-child(3){background:radial-gradient(ellipse at 85% 10%,#992d43,transparent 65%),#312128}.story p{max-width:42ch}.story .sample{position:absolute;top:22px;left:30px;color:#eadbd5;font-size:14px}
.chat{max-width:740px;margin:auto}
.chat a[aria-current]{background:var(--ink);color:var(--surface)}
.chat-log{align-content:start;max-height:38vh;overflow:auto}
.chat-message{justify-self:start;max-width:min(100%,45ch);padding:9px 13px;border-radius:12px;background:var(--bg);overflow-wrap:anywhere}
.chat-message.own{justify-self:end;background:#ff8a55;color:#24140f}
.chat-message strong{font-size:13px}
.chat-message p{white-space:pre-wrap}
.brand{display:inline-flex;align-items:center;gap:7px}
.brand span{margin-left:-7px}
.brand img{background:#b83a10;border-radius:8px;padding:3px}
.feed-link img{width:70%;height:auto}
.notes-layout{display:grid;grid-template-columns:minmax(155px,1fr) minmax(0,2fr);gap:14px;align-items:start}
.note-list{display:grid;gap:5px}
.note-item{display:grid;gap:4px;text-align:left;background:transparent;border:0;border-radius:10px;padding:10px;color:var(--ink);min-width:0}
.note-item[aria-pressed=true]{background:var(--bg);box-shadow:inset 3px 0 var(--accent)}
.note-item strong,.note-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.note-item span{color:var(--muted);font-size:14px}
.note-title{overflow-wrap:anywhere}
.globe-stage{display:grid;justify-items:center;padding:14px 14px 18px;border-radius:22px;background:radial-gradient(ellipse at 50% 45%,#663523,#211923 70%);overflow:hidden}
.globe-stage canvas{width:min(100%,520px);height:auto;display:block;touch-action:none;cursor:grab}
.globe-stage canvas:active{cursor:grabbing}
.globe-actions{justify-content:center}
.tunnel-choice{display:grid;gap:4px;text-align:left}
.tunnel-choice:hover{border-color:var(--hot)}
.visit-tunnel{text-decoration:underline;color:var(--hot)}
.competition>strong{color:var(--hot)}
@media(max-width:540px){.notes-layout{grid-template-columns:1fr}.note-list{display:flex;overflow:auto}.note-item{flex:0 0 155px}}
#zoom-level{min-width:4ch;text-align:center;color:#ffe1c8;font-variant-numeric:tabular-nums}
.globe-actions button:disabled{opacity:.55;cursor:default}
#street-map{height:clamp(300px,55vw,550px);border-radius:13px;background:#2d2426;isolation:isolate}
#tiles-status:empty{display:none}
.directory-stats,.directory-filters{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.directory-stats .card{display:grid;gap:3px}
.directory-stats strong{font-size:24px;color:var(--hot)}
.directory-filters label{display:grid;gap:5px;font-weight:650}
.directory-scroll{overflow:auto;border:1px solid var(--line);border-radius:15px;background:var(--surface);max-height:36rem}
.directory-table{border-collapse:collapse;width:100%;text-align:left}
.directory-table th,.directory-table td{padding:11px 13px;border-bottom:1px solid var(--line)}
.directory-table thead{position:sticky;top:0;background:var(--surface);z-index:1}
.directory-table th button{font-weight:750;border:0;padding:0;background:none;text-align:left}
.directory-table td:first-child{min-width:170px}.directory-table td:first-child span{display:block;font-size:14px}
.directory-table td:last-child,.directory-table th{white-space:nowrap}
.directory-table td a,.lesson-source{text-decoration:underline;text-underline-offset:3px}
#profile-logbook{border-top:1px solid var(--line);padding-top:18px;scroll-margin-top:14px}
.lesson-video{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:var(--bg)}
.lesson-card{max-width:740px}
.directory-table td.lesson-skills{white-space:normal;min-width:180px}
.note-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
.note-actions{position:relative}
.note-actions summary{list-style:none;cursor:pointer;padding:7px 10px;border:1px solid var(--line);border-radius:10px;font-weight:800;line-height:1.1}
.note-actions summary::-webkit-details-marker{display:none}
.note-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:2;min-width:155px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 15px #0002}
.note-menu button{display:block;width:100%;text-align:left;white-space:nowrap;padding:8px;border:0;background:transparent;border-radius:7px}
.note-menu button:hover,.note-menu button:focus-visible{background:var(--bg)}
.note-menu [data-action=delete]{color:var(--hot)}
.home-world-map{overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#352830,#1e202b);border-radius:16px;color:#ffe5d5}
.home-world-map svg{display:block;width:100%;height:auto}
.world-grid,.world-borders{fill:none;stroke:#e49b7a48;stroke-width:.8}
.world-land{fill:#885342;stroke:#c28364;stroke-width:.8}
.home-world-map circle{fill:#ffc299;stroke:#6e3927;stroke-width:.75}
.home-world-map a:hover circle,.home-world-map a:focus-visible circle{fill:#fff;r:5}
.inbox-list{padding:0}
.inbox-person{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center;padding:13px 16px}
.inbox-person+.inbox-person{border-top:1px solid var(--line)}
.inbox-person:hover{background:var(--bg)}
.inbox-person .avatar{width:42px;border-radius:50%;font-size:18px}
.inbox-person .muted{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat h1{overflow-wrap:anywhere}
.profile-avatar{position:relative;border:0;padding:0;cursor:pointer}
.profile-avatar img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;border-radius:inherit}
.avatar-add{position:absolute;bottom:-4px;right:-4px;width:24px;height:24px;display:grid;place-items:center;border:2px solid var(--surface);border-radius:50%;background:#b83a10;color:#fff;font-size:18px;line-height:1}
@media(hover:hover){.profile-avatar .avatar-add{opacity:0}.profile-avatar:hover .avatar-add,.profile-avatar:focus-visible .avatar-add{opacity:1}}
#photo-status:empty{display:none}

.group-members{overflow-wrap:anywhere;min-width:0}
.welcome-open header,.welcome-open nav{display:none}
.welcome-open main{max-width:none;padding:0}
.welcome-splash{min-height:100dvh;position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 68%,#49211a,#17161d 62%);color:#fff;padding:28px}
.welcome-type{justify-items:center;text-align:center;gap:24px;animation:welcome-in .85s ease-out both}
.welcome-type>p{font-weight:650;letter-spacing:.14em;text-transform:uppercase}
.welcome-type h1{font-style:italic;font-weight:950;font-size:clamp(60px,17vw,170px);line-height:.9}
.welcome-type h1 span{color:var(--accent)}
.welcome-type .row{justify-content:center}
.welcome-skip{border:1px solid #f5b59975;background:transparent;color:#fff;padding:9px 14px;border-radius:12px}
.welcome-stripes{position:absolute;inset:0;pointer-events:none;z-index:-1}
.welcome-stripes i{position:absolute;top:-20%;left:5%;width:clamp(5px,1.1vw,15px);height:140%;background:repeating-linear-gradient(0deg,transparent 0 55px,#ff8248 56px 160px,transparent 162px 226px);opacity:.48;transform:skew(-10deg);animation:welcome-stripe 3.2s linear infinite}
.welcome-stripes i+i{left:auto;right:5%;animation-direction:reverse}
.welcome-form{width:min(560px,calc(100% - 32px));margin:30px auto;padding:clamp(18px,5vw,34px)}
.welcome-form h1{font-size:clamp(32px,8vw,52px)}
.welcome-form [role=status]:empty{display:none}
@keyframes welcome-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes welcome-stripe{to{background-position:0 226px}}
@media(prefers-reduced-motion:reduce){.welcome-type,.welcome-stripes i{animation:none}}
.interest-grid{display:flex;flex-wrap:wrap;gap:8px}
.interest-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:20px;cursor:pointer}
.interest-chip:has(input:checked){border-color:var(--hot);color:var(--hot);background:#ff8a551c}
.interest-chip input,.viewing-toggle input{width:auto;margin:0;accent-color:#b83a10}
#feed-settings{position:fixed;right:16px;top:15px;z-index:2}
.feed-dialog{width:min(560px,calc(100% - 24px));max-height:85dvh;color:var(--ink)}
.feed-dialog::backdrop{background:#17161dc0}
.viewing-toggle{display:flex;align-items:center;gap:10px}
.story-tags{color:#ffd0b5;font-size:14px}
.guest-profile{max-width:680px;padding:clamp(22px,5vw,42px)}
.guest-profile .cta{justify-self:start;padding:13px 20px;font-size:1.1rem}
.fly-loading{display:inline-flex;gap:.65rem;align-items:center}
.fly-loading svg{width:30px;height:30px;flex:none;animation:fly-loading-spin 2s linear infinite}
.fly-loading circle{fill:none;stroke:#ff8755;stroke-width:3.2;stroke-linecap:round;stroke-dasharray:11 1.5;animation:fly-loading-shape 1.8s ease-in-out infinite}
.home-world-map>.fly-loading{padding:18px}
@keyframes fly-loading-spin{to{transform:rotate(360deg)}}
@keyframes fly-loading-shape{0%,100%{stroke-dasharray:11 1.5}50%{stroke-dasharray:.15 12.35}}
@media(prefers-reduced-motion:reduce){.fly-loading svg,.fly-loading circle{animation:none}.fly-loading circle{stroke-dasharray:none}}
#settings-gear{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%}
#settings-gear:hover{color:var(--hot);border-color:currentColor}
.settings-page{max-width:720px;margin:auto}
.settings-page select{max-width:240px}
.settings-delete{color:var(--ink);max-width:min(440px,calc(100% - 28px))}
.settings-delete::backdrop{background:#17161dc0}
.danger-button{color:var(--hot);border-color:currentColor}
.profile-avatar{background:#ff9b62;color:#48200e}
.log-counters,.log-filters{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.log-counters .card{display:grid;gap:5px}.log-counters span{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.log-counters strong{font-size:2rem}.log-minutes{background:#ff8a5518;color:var(--hot)}
.log-filters{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.log-filters label{display:grid;gap:5px}
#session-form[hidden],#log-status:empty{display:none}
#log-notes{border-top:1px solid var(--line);padding-top:18px}
#log-notes h4{margin:0}

#past-form[hidden]{display:none}
.tunnels-page{gap:clamp(18px,3vw,30px)}
.tunnels-page>h1{margin-bottom:-8px}
.tunnels-page #directory-map{padding:clamp(16px,2.5vw,28px);gap:18px}
.tunnels-page #world-directory{gap:18px;padding-top:24px;border-top:1px solid var(--line)}
.tunnels-page .directory-stats,.tunnels-page .directory-filters{gap:14px}
.tunnels-page .directory-filters label{min-width:0}
.tunnels-page .directory-filters :is(input,select){min-width:0}
.tunnels-page .directory-table :is(th,td){padding:14px 16px}
#guide-launch,#fly-guide{position:fixed;right:max(16px,env(safe-area-inset-right));z-index:10}
#guide-launch{bottom:calc(var(--nav, 70px) + 18px);width:54px;height:54px;display:grid;place-items:center;border-radius:50%;color:#401405;border:1px solid #ffcfac;background:linear-gradient(145deg,#ffd3aeeb,#ff8549ed 65%,#f6662df2);box-shadow:inset 0 1px 1px #fff8,0 8px 24px #70301933;backdrop-filter:blur(14px)}
#fly-guide{bottom:calc(var(--nav, 70px) + 82px);width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 160px);overflow:auto;padding:14px;display:grid;gap:12px;background:var(--surface);background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 48px #1510193d;backdrop-filter:blur(20px) saturate(135%)}
#fly-guide[hidden],.welcome-open #guide-launch,.welcome-open #fly-guide{display:none}
.guide-head,#guide-form{display:flex;align-items:center;justify-content:space-between;gap:8px}
.guide-head h2,.guide-head p{margin:0}.guide-head h2{font-size:1rem}
#guide-close,.guide-prompts button{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:6px 9px}
#guide-close{font-size:1.15rem;min-width:36px}
#guide-messages{max-height:170px;overflow:auto;display:grid;gap:7px;font-size:.88rem}
#guide-messages p{margin:0;padding:8px 10px;border-radius:12px;background:var(--surface);overflow-wrap:anywhere}
#guide-messages .guide-user{justify-self:end;background:#ff9a6530}
#guide-messages a{color:var(--hot);text-decoration:underline}
.guide-prompts{display:flex;gap:5px;flex-wrap:wrap}.guide-prompts button{font-size:.78rem}
#guide-form input{min-width:0;flex:1}
#fly-guide{padding:16px;gap:14px;border-radius:25px;border-color:color-mix(in srgb,var(--line) 75%,#ffb18a);background:color-mix(in srgb,var(--surface) 52%,transparent);backdrop-filter:blur(25px) saturate(155%);-webkit-backdrop-filter:blur(25px) saturate(155%);box-shadow:inset 0 1px 1px #fff7,0 16px 46px #17101938}
.guide-identity{display:flex;align-items:center;gap:9px}
.guide-mark,.guide-send{display:grid;place-items:center;border:1px solid #ffd0b0;border-radius:50%;width:34px;height:34px;flex:none;color:#491b0c;background:linear-gradient(145deg,#ffe1c8,#ff9e63 68%,#f77c47);box-shadow:inset 0 1px 1px #fff8}
.guide-head .muted{font-size:.75rem}
#guide-messages p{justify-self:start;background:color-mix(in srgb,var(--surface) 65%,transparent);border:1px solid color-mix(in srgb,var(--line) 65%,transparent);max-width:95%}
#guide-messages .guide-user{justify-self:end;background:color-mix(in srgb,var(--surface) 75%,#ff985e)}
#guide-close,.guide-prompts button{background:color-mix(in srgb,var(--surface) 54%,transparent);border-radius:999px}
#guide-form{background:color-mix(in srgb,var(--surface) 67%,transparent);border:1px solid var(--line);border-radius:999px;padding:4px 5px 4px 10px}
#guide-form input{background:transparent;border:0;padding:6px;font:inherit}
#guide-form input:focus-visible{outline:none}
#guide-form:focus-within{border-color:var(--hot)}
@media(prefers-reduced-transparency:reduce){#fly-guide{background:var(--surface)}}
#guide-launch{padding:0;border:0;background:none;backdrop-filter:none;box-shadow:0 8px 24px #70301933}
#guide-launch .guide-mark{width:100%;height:100%;font-size:26px}
#guide-messages .guide-typing{display:flex;align-items:center;gap:5px;padding:12px}
.guide-typing span{width:6px;height:6px;border-radius:50%;background:var(--hot);animation:guide-dot .65s ease-in-out infinite}
.guide-typing span:nth-child(2){animation-delay:.1s}
.guide-typing span:nth-child(3){animation-delay:.2s}
@keyframes guide-dot{0%,60%,100%{transform:translateY(0);opacity:.65}30%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.guide-typing span{animation:none}}
