/* EvyShell (doc 54 A2): one bottom nav + one masthead look for the Earth home and the world pages */
:root{--evynav:64px}
.evynav{position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;display:flex;gap:2px;padding:5px;border-radius:22px;
 background:rgba(8,11,20,.78);border:1px solid rgba(243,238,230,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 40px rgba(0,0,0,.45);font-family:'DM Sans',system-ui,sans-serif}
.evynav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:64px;min-height:48px;padding:4px 10px;border-radius:17px;color:rgba(226,232,244,.66);text-decoration:none;font-size:11px;font-weight:500;letter-spacing:.04em;transition:background .2s,color .2s}
.evynav a svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.evynav a:hover{color:#fff;background:rgba(255,255,255,.05)}
.evynav a.on{color:#fff;background:linear-gradient(180deg,rgba(255,138,112,.22),rgba(255,138,112,.08));box-shadow:inset 0 0 0 1px rgba(255,138,112,.35)}
.evynav a.on svg{stroke:#ffb09c}
.evynav a:focus-visible{outline:2px solid #ffb09c;outline-offset:2px}
@media(max-width:600px){.evynav{left:8px;right:8px;transform:none;justify-content:space-between;border-radius:20px}.evynav a{min-width:0;flex:1;padding:4px 2px}}
/* hidden while the game runs, while the gate or a full-screen sheet is up */
body.playing.instage.evyshell-app .evynav,body.evyshell-app:has(#gate:not(.off)) .evynav,body.reading .evynav{display:none}
/* Earth home: lift the bottom furniture above the nav */
.evyshell-app #doors{bottom:calc(max(30px,env(safe-area-inset-bottom) + 18px) + var(--evynav))}
.evyshell-app #clock{bottom:calc(max(6px,env(safe-area-inset-bottom)) + var(--evynav))}
.evyshell-app .sheet{padding-bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--evynav))}
@media(max-width:760px){.evyshell-app #rail{bottom:calc(max(30px,env(safe-area-inset-bottom) + 18px) + 80px + var(--evynav))}}
/* world pages: no second gate, no second home; same mark top-left */
.evyshell-world #gate,.evyshell-world .tabs,.evyshell-world #skip,.evyshell-world .arena-ui{display:none!important}
.evyshell-world #homeLink{display:flex!important}
.evyshell-world #page,.evyshell-world .pwrap{padding-bottom:calc(var(--evynav) + 28px)}

/* Ship checklist (owner 30 Nov) */
.ship .shipbar{height:8px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden;margin:4px 0 8px}.ship .shipbar i{display:block;height:100%;background:linear-gradient(90deg,#5fe0c8,#ffb36b)}
.ship .shiplist{list-style:none;margin:0;padding:0;display:grid;gap:6px}.ship .shiplist li{font-size:14px}.ship .shiplist li.ok{color:var(--mute)}.ship .shiplist small{color:#ffb36b;margin-left:6px}

/* Together feed tiles (30 Nov) */
.zh{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);margin:18px 0 10px}.zfeed{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.ztile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;aspect-ratio:4/5;padding:14px;border-radius:20px;text-decoration:none;color:#fff;background:radial-gradient(120% 90% at 30% 20%,color-mix(in srgb,var(--zc) 90%,#fff 10%),var(--zc) 55%,#0b1222);border:1px solid rgba(255,255,255,.1);overflow:hidden;transition:transform .2s}.ztile:hover{transform:translateY(-3px)}
.ztile .zic{position:absolute;top:12px;left:12px;font-size:34px;line-height:1}.ztile b{font-size:16px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ztile small{font-size:12px;color:rgba(255,255,255,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ztile .zlive{position:absolute;top:14px;right:12px;font-size:10px;letter-spacing:.1em;color:#ff8a7a;background:rgba(0,0,0,.35);padding:3px 7px;border-radius:10px}.ztile.zcta{--zc:#2a3550;border-style:dashed}

/* nav tap feedback (owner 30 Nov) */
body.evygo::after{content:'';position:fixed;left:0;top:0;height:3px;width:100%;z-index:999;background:linear-gradient(90deg,transparent,#ffb36b,transparent);background-size:50% 100%;background-repeat:no-repeat;animation:evygo 1s linear infinite}@keyframes evygo{from{background-position:-50% 0}to{background-position:150% 0}}
body.intro .evynav{display:none}

/* 2 Dec feedback: "Who can join" and consent tick boxes sit aligned with their labels, with clear touch-size ticks */
.tgl input[type=radio],input[name=agree][type=checkbox]{width:20px;height:20px;min-width:20px;flex:0 0 20px;accent-color:#3fd3c6;margin:2px 0 0!important}
.tgl>span,label:has(input[name=agree])>span{flex:1;line-height:1.4}
.say-name{display:inline-block;margin:0 0 12px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,210,138,.5);background:transparent;color:#ffd28a;font:600 13px/1.2 "DM Sans",system-ui,sans-serif;cursor:pointer}
.pcard .pt.big{text-align:center}

/* 2 Dec feedback: Syzy chat as a chat app: messages in one sequence, the box sits at the bottom, photo label stays inside its button */
.box.chat{display:flex;flex-direction:column}
.box.chat #msgs{order:1;display:flex;flex-direction:column;gap:8px;max-height:58vh;overflow:auto;padding:4px 2px}
.box.chat form[data-form=chat]{order:2;display:flex;gap:8px;align-items:center;margin:10px 0 0!important;position:sticky;bottom:0}
.box.chat form[data-form=chat] input[name=m]{flex:1;min-width:0}
.bub{max-width:82%;padding:8px 12px;border-radius:16px;background:rgba(255,255,255,.07);align-self:flex-start;border:1px solid rgba(255,255,255,.1)}
.bub.me{align-self:flex-end;background:rgba(63,211,198,.16);border-color:rgba(63,211,198,.35)}
.bub small{display:block;color:var(--mute);font-size:11px;margin-bottom:2px}
.bub p{margin:0;overflow-wrap:anywhere}
.bub .bimg{display:block;max-width:100%;border-radius:12px;margin-top:6px}
.bub .bact{margin-top:4px;background:none;border:0;color:#9fd8d0;font-size:12px;padding:0;cursor:pointer}
form[data-form=photo] label,form[data-form=photo] .btn{white-space:nowrap;width:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* 9.9.0 Together: chat gestures, warm, reply chip, Sky Post, feed tabs, alerts, craft badges, live ping */
.bub{touch-action:pan-y;transition:transform .15s;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.bub p{user-select:text;-webkit-user-select:text}
.bub.warmed{box-shadow:0 0 0 2px rgba(255,90,60,.6)}
.bub .bacts{display:flex;gap:12px;flex-wrap:wrap;margin-top:2px}
.bub .bact{min-height:28px}
.bub .bact.on{color:#ff8a6e}
.bub .bq{display:block;font-size:12px;color:var(--mute);border-left:2px solid rgba(63,211,198,.5);padding-left:6px;margin:2px 0 4px;overflow-wrap:anywhere}
.bub .bnote{font-size:12px!important;color:var(--mute)}
.bhint{order:9;margin:6px 0 0;font-size:11.5px;color:var(--mute);text-align:center}
.rchip{order:1;font-size:12.5px;color:#9fd8d0;white-space:nowrap;max-width:40%;overflow:hidden;text-overflow:ellipsis}
.rchip button{background:none;border:0;color:var(--mute);cursor:pointer;min-width:28px;min-height:28px}
.box.chat form[data-form=chat] .rchip{order:0}
.sky{position:relative;width:100%;aspect-ratio:1/1;max-height:58vh;border-radius:50%;background:radial-gradient(circle at 50% 50%,#1b2350 0,#0a0e24 55%,#04050a 100%);overflow:hidden;margin:0 auto}
.sky .star{position:absolute;width:var(--s);height:var(--s);transform:translate(-50%,-50%);border-radius:50%;border:0;padding:0;cursor:pointer;background:hsl(var(--h),90%,80%);box-shadow:0 0 calc(var(--s)*1.4) hsl(var(--h),90%,70%)}
.sky .star::after{content:"";position:absolute;inset:-10px}
.sky .skyc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;color:var(--mute)}
.sky .skyt{position:absolute;left:8%;right:8%;bottom:6%;margin:0;text-align:center;font-size:13px;color:#e8e3da;background:rgba(4,5,10,.6);border-radius:12px;padding:6px 10px}
.ztabs{display:flex;gap:8px;overflow-x:auto;margin:6px 0 14px;padding-bottom:2px;scrollbar-width:none}
.ztabs a{flex:0 0 auto;padding:8px 14px;border-radius:999px;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:14px;min-height:40px;display:inline-flex;align-items:center}
.ztabs a.on{background:rgba(63,211,198,.18);border-color:rgba(63,211,198,.55)}
.zpts{display:inline-block;margin:0 0 8px;font-size:13px;color:#ffd28a;text-decoration:none}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.cbadge{display:flex;flex-direction:column;padding:8px 12px;border-radius:14px;border:1px dashed var(--line);opacity:.75;min-width:120px}
.cbadge.won{border-style:solid;border-color:#ffd28a;opacity:1;background:rgba(255,210,138,.08)}
.cbadge small{color:var(--mute);font-size:11.5px}
.pcard.note.unread{border-color:rgba(63,211,198,.5)}
.modimg{display:block;max-width:180px;max-height:180px;border-radius:10px;margin:6px 0;filter:none}
.nav-i .dot.on:not(:empty){width:auto;min-width:16px;height:16px;padding:0 4px;top:4px;right:4px;border-radius:99px;font:700 10px/16px 'DM Sans',sans-serif;color:#fff;text-align:center;font-style:normal}
.ping{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;z-index:9999;max-width:min(92vw,480px);padding:10px 16px;border-radius:14px;background:rgba(16,20,36,.96);border:1px solid rgba(63,211,198,.45);color:#f3eee6;font:500 14px 'DM Sans',sans-serif;text-decoration:none;transition:.3s;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.ping.on{opacity:1;transform:translate(-50%,0)}
#alertsBox,#safetyBox{scroll-margin-top:84px}
form[data-form=photo]{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
form[data-form=photo] label.btn{flex:0 0 auto}
form[data-form=photo] small{flex:1 1 200px}
.box.chat form[data-form=chat]{background:rgba(10,12,22,.94);padding:6px;border-radius:999px;z-index:2}
.ts{min-height:0;margin:4px 0 10px}
.ts iframe{max-width:100%}
/* 9.13.0 Evy Emoji (doc 83) */
.btn.evy-in{display:inline-flex;align-items:center;justify-content:center;padding:0;min-width:40px;min-height:40px}.btn.evy-in svg{width:22px;height:22px}
.evy-e{display:inline-flex;vertical-align:-.28em;line-height:0}.bub p .evy-e svg,.post p .evy-e svg{width:20px;height:20px}.evy-jumbo .evy-e svg{width:44px!important;height:44px!important}
.floaty svg{width:34px;height:34px;display:block}
/* 9.14.3 Layout rules (owner 3 Dec): nothing overlaps, every element has its own place */
/* top band: the logo and top buttons sit on a solid strip, page content never shows through them */
body.paging::before{content:"";position:fixed;left:0;right:0;top:0;height:calc(max(14px,env(safe-area-inset-top)) + 58px);z-index:19;background:linear-gradient(180deg,rgba(4,5,10,.97),rgba(4,5,10,.9));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06);pointer-events:none}
html.reading body.paging::before{display:none}
/* bottom: a soft strip under the nav so page text never runs under it */
body.paging.evyshell-world::after{content:"";position:fixed;left:0;right:0;bottom:0;height:calc(max(10px,env(safe-area-inset-bottom)) + var(--evynav) + 14px);z-index:15;background:linear-gradient(0deg,rgba(4,5,10,.96) 55%,rgba(4,5,10,0));pointer-events:none}
.two{align-items:start}
/* Syzy chat (legacy layout): messages, then the composer; the box is as tall as what is in it */
.chat{height:auto}
.box.chat{gap:0}
.box.chat>h2{margin:0 0 2px}
.chat-sub{margin:0 0 10px;font-size:12.5px;color:var(--mute)}
.box.chat #msgs{flex:1 1 auto;min-height:0;max-height:min(56vh,540px);gap:4px;padding:2px}
.box.chat form[data-form=chat]{position:static;flex:none;display:flex;align-items:flex-end;gap:6px;margin:8px 0 0!important;padding:5px;border-radius:24px;border:1px solid var(--line);background:rgba(10,12,22,.94)}
.box.chat form[data-form=chat]>.btn{flex:none;min-height:44px}
.box.chat form[data-form=chat] .rchip:not([hidden]){flex-basis:100%}
.box.chat form[data-form=chat]{flex-wrap:wrap}.box.chat form[data-form=chat] .evy-rich{flex:1 1 0;border:0;background:transparent;padding:11px 8px}
.box.chat form[data-form=chat]:focus-within{border-color:rgba(63,211,198,.6)}
/* thin message lines: text and time on one line; actions show on hover or tap */
.bub:not(.ch-b){display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:1px;padding:4px 10px;border-radius:12px;max-width:86%}
.bub:not(.ch-b)>.bmeta{display:inline;order:2;margin:0 0 0 auto;font-size:10.5px;line-height:1.3;white-space:nowrap}
.bub:not(.ch-b).them>.bmeta{order:0;margin:0}.bub:not(.ch-b)>.bmeta b{font-weight:600;color:#cfd6e4}
.bub:not(.ch-b)>.bq{order:0;flex-basis:100%;margin:1px 0 2px}
.bub:not(.ch-b)>p{order:1;flex:0 1 auto;min-width:0;margin:0;line-height:1.38}
.bub:not(.ch-b)>.bimg,.bub:not(.ch-b)>.bnote{order:1;flex-basis:100%}
.bub:not(.ch-b)>.bacts{order:3;flex-basis:100%;gap:12px;margin:0}
.bub:not(.ch-b) .bact{min-height:24px;margin:0;font-size:11.5px}
.bub:not(.ch-b):not(.open) .bacts>:not(.has){display:none}
.bub:not(.ch-b):not(.open) .bacts:not(:has(.has)){display:none}
@media (hover:hover) and (pointer:fine){.bub:not(.ch-b):hover .bacts{display:flex!important}.bub:not(.ch-b):hover .bacts>*{display:inline-flex!important}}
.bub:not(.ch-b):focus-visible{outline:2px solid #3fd3c6;outline-offset:1px}
.bub:not(.ch-b):focus-visible .bacts{display:flex!important}.bub:not(.ch-b):focus-visible .bacts>*{display:inline-flex!important}
.bub:not(.ch-b).open{box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.bhint{margin:4px 0 0;font-size:10.5px}
.ch-b{padding:5px 30px 5px 10px;border-radius:12px}.ch-list{gap:3px}.ch-meta{font-size:10.5px;margin-bottom:0}.ch-foot{margin-top:2px}
/* "Send a feeling" row under the live box */
.jstage{position:relative;overflow:hidden}
.jfeel{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px}
.jfeel-l{flex-basis:100%;font-size:12.5px;color:var(--mute)}
.jfeel-b{display:flex;flex-wrap:wrap;gap:6px}
.jfeel-inv{margin-left:auto}
.jfeel .btn.evy-in:disabled{opacity:.5}
/* EvyRich: the message box shows emoji as pictures and grows with the text */
.evy-rich-src{display:none!important}
.evy-rich{flex:1 1 auto;min-width:0;min-height:44px;max-height:min(40vh,240px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:11px 14px;border-radius:20px;border:1px solid var(--line,rgba(255,255,255,.18));background:rgba(255,255,255,.05);color:var(--ink,#fff);font:16px/1.4 'DM Sans',system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-align:left;outline:none;cursor:text;-webkit-user-select:text;user-select:text}
.evy-rich:focus{border-color:rgba(63,211,198,.7)}
.evy-rich.empty::before{content:attr(data-ph);color:var(--mute,#9aa3b5);pointer-events:none}
.evy-rich .evy-tok{display:inline-flex;vertical-align:-.32em;line-height:0;margin:0 1px}
.evy-rich .evy-tok svg{width:1.4em;height:1.4em}
.field .evy-rich{min-height:110px;border-radius:12px}
.ch-comp .evy-rich{min-height:46px;border-radius:22px;padding:12px 16px}
/* return trail: "← Back to …" after jumping to the other page */
.evy-trail{position:fixed;z-index:62;display:flex;align-items:center;gap:2px;padding:3px;border-radius:99px;background:rgba(10,13,24,.96);border:1px solid rgba(255,176,156,.45);box-shadow:0 8px 24px rgba(0,0,0,.45);max-width:calc(100vw - 28px)}
.evy-trail.app{left:max(14px,env(safe-area-inset-left));top:calc(max(14px,env(safe-area-inset-top)) + 58px)}
.evy-trail.world{left:50%;transform:translateX(-50%);top:calc(max(14px,env(safe-area-inset-top)) + 66px)}
.evy-trail a{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 12px 0 8px;color:#fff;text-decoration:none;font:500 14px 'DM Sans',system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evy-trail a span{overflow:hidden;text-overflow:ellipsis}
.evy-trail svg{width:18px;height:18px;flex:none;fill:none;stroke:#ffb09c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.evy-trail button{flex:none;width:34px;height:34px;border-radius:99px;border:0;background:rgba(255,255,255,.06);color:var(--mute,#9aa3b5);cursor:pointer}
body.paging.evyshell-world:has(#evyTrail) #page{padding-top:calc(max(76px,calc(env(safe-area-inset-top) + 64px)) + 50px)}
body.paging:has(#evyTrail.world)::before{height:calc(max(14px,env(safe-area-inset-top)) + 108px)}
.evy-trail.world{top:calc(max(14px,env(safe-area-inset-top)) + 60px)}
.box.chat{height:auto;min-height:0}
.bub:not(.ch-b)>p{white-space:pre-wrap}
.evyshell-world .pwrap{padding-bottom:0}
.evyshell-world #page{padding-bottom:calc(var(--evynav) + max(10px,env(safe-area-inset-bottom)) + 24px)}
/* 9.16 QA (doc 94): readable small text (≥11px), 44px touch targets, plain-word helper lines */
.ztile .zlive{font-size:11px}
.plain{display:block;margin:2px 0 10px;font:400 13px/1.45 'DM Sans',sans-serif;color:var(--mute,#9aa3b2);letter-spacing:0;text-transform:none}
h2 .plain{display:inline;margin:0 0 0 6px;font-size:13px}
@media (pointer:coarse){.skybar button,.skybar .pillb{min-height:44px}.rbrand{min-height:44px;display:inline-flex;flex-direction:column;justify-content:center}}
