*{box-sizing:border-box}html,body{color:#e8f6ff;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#021a28;height:100%;margin:0;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#app,#app canvas{width:100%;height:100%;display:block;position:fixed;inset:0}#labels{pointer-events:none;position:fixed;inset:0;overflow:hidden}.nametag{white-space:nowrap;will-change:transform, opacity;pointer-events:none;background:#00141e8c;border-radius:8px;padding:1px 6px;font-size:10px;font-weight:600;line-height:1.4;transition:opacity .2s;position:absolute;top:0;left:0}.dim{opacity:.7}#hud{pointer-events:none;position:fixed;inset:0}.hud-right{display:contents}.hud-tl{left:max(12px, env(safe-area-inset-left));top:max(10px, env(safe-area-inset-top));text-shadow:0 1px 3px #0008;position:absolute}#hud-region{font-size:16px;font-weight:600}#hud-depth{font-variant-numeric:tabular-nums}.hud-tr{right:max(12px, env(safe-area-inset-right));top:max(10px, env(safe-area-inset-top));text-align:right;position:absolute}.bar{text-shadow:0 1px 2px #000a;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:5px;font-size:11px;display:flex}.bar .track{background:#fff2;border-radius:4px;width:120px;height:7px;overflow:hidden}.bar .track>div{width:100%;height:100%;transition:width .25s}.bar.food .track>div{background:linear-gradient(90deg,#ffb347,#ffe08a)}.bar.health .track>div{background:linear-gradient(90deg,#ff5d5d,#ffa3a3)}.bar.stamina .track>div{background:linear-gradient(90deg,#4fd1ff,#b9f3ff)}.bar .track.low{animation:.8s infinite alternate pulse}@keyframes pulse{0%{box-shadow:0 0 #ff4d4d00}to{box-shadow:0 0 0 2px #ff4d4dcc}}#hud-life{font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #000a;margin-top:2px;font-size:12px}#hud-status{top:max(12px, env(safe-area-inset-top));text-align:center;text-shadow:0 1px 3px #000c;max-width:60vw;font-size:13px;font-weight:600;position:absolute;left:50%;transform:translate(-50%)}#hud-status.danger{color:#ff8a7a;animation:.5s infinite alternate blink}#hud-status.safe{color:#a8f0c0}@keyframes blink{to{opacity:.55}}#toast{opacity:0;background:#3a0c0cc0;border-radius:12px;padding:6px 14px;font-weight:600;transition:opacity .25s;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}#toast.show{opacity:1}#toast.good{background:#0c3a1ec8}#toast.info{background:#0c2a3ac8}#hud-role{margin-top:4px;font-size:12px;font-weight:600}.role-female{color:#ff9ad0}.role-male{color:#8fd0ff}#hud-colony{opacity:.85;text-shadow:0 1px 2px #000a;max-width:46vw;margin-top:3px;font-size:11px}#hud-family{opacity:.85;text-shadow:0 1px 2px #000a;max-width:46vw;margin-top:2px;font-size:11px}#hud-family.on{color:#a8f0c0;opacity:1;font-weight:600}#court-wrap{left:50%;bottom:calc(64px + env(safe-area-inset-bottom));text-align:center;position:absolute;transform:translate(-50%)}#court-btn{pointer-events:auto;color:#fff;background:linear-gradient(#ff7eb3,#e0457b);border:0;border-radius:26px;padding:12px 26px;font:600 16px system-ui;animation:1.2s infinite alternate glow;box-shadow:0 4px 18px #e0457b66}#court-btn:disabled{opacity:.7;animation:none}@keyframes glow{to{box-shadow:0 4px 26px #ff7eb3cc}}#court-hint{opacity:.8;text-shadow:0 1px 2px #000c;margin-top:4px;font-size:12px}.nametag.colony{background:#280a1e73;font-size:11px}img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.tbtn img{pointer-events:none;width:60%;height:60%}#btn-dash img{width:54%;height:54%}.goal-hide img,.map-close img{width:16px;height:16px;display:block}.map-close img{width:22px;height:22px}#hud-status{justify-content:center;align-items:center;gap:6px;display:flex}#hud-status-icon{filter:drop-shadow(0 1px 2px #000a);width:30px;height:30px}#hud-status-icon[hidden]{display:none}#court-btn{align-items:center;gap:8px;display:inline-flex}#court-btn[hidden]{display:none}#court-btn img{width:34px;height:34px;margin:-6px 0}#pact-btn{pointer-events:auto;color:#fff;background:linear-gradient(#4fd1c5,#1f8f9a);border:0;border-radius:26px;align-items:center;gap:8px;margin:0 4px;padding:12px 22px;font:600 16px system-ui;display:inline-flex;box-shadow:0 4px 18px #1f8f9a66}#pact-btn[hidden]{display:none}#pact-btn img{width:34px;height:34px;margin:-6px 0}#hud-pact{text-shadow:0 1px 2px #000a;color:#8ff0e4;max-width:46vw;margin-top:3px;font-size:11px}#hud-pact[hidden]{display:none}#pact-leave{pointer-events:auto;color:#9fdcff;cursor:pointer;background:0 0;border:0;padding:2px 4px;font-size:11px;text-decoration:underline}.inline-icon{vertical-align:middle;background:#fff2;border-radius:50%;width:20px;height:20px;margin-right:2px;padding:2px}#goals{pointer-events:auto;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);width:min(300px,42vw);text-shadow:none;background:#0214208c;border:1px solid #ffffff1f;border-radius:12px;margin-top:10px;padding:8px 10px}#goals[hidden]{display:none}#goals.flash{animation:1.5s goalflash}@keyframes goalflash{0%{background:#145a32cc;box-shadow:0 0 #7dffb0}to{box-shadow:0 0 #0000}}.goal-head{opacity:.7;text-transform:uppercase;letter-spacing:.5px;justify-content:space-between;font-size:10px;display:flex}.goal-hide{color:#fff;cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}.goal-title{margin:2px 0;font-size:14px;font-weight:700}.goal-detail{opacity:.85;font-size:12px;line-height:1.35}.goal-bar{background:#fff2;border-radius:2px;height:4px;margin-top:6px;overflow:hidden}.goal-bar[hidden]{display:none}.goal-bar>div{background:#7dffb0;width:0;height:100%;transition:width .3s}#markers{pointer-events:none;position:fixed;inset:0;overflow:hidden}.marker{white-space:nowrap;text-shadow:0 1px 2px #000c;will-change:transform;align-items:center;gap:4px;font-size:11px;font-weight:600;display:flex;position:absolute;top:0;left:0}.mk-icon,.marker-dot{width:34px;height:34px;box-shadow:0 0 0 2px var(--ring,#fff), 0 2px 6px #0008;border-radius:50%;place-items:center;display:inline-grid;background:#021824b8!important}.mk-icon img,.marker-dot img{width:30px;height:30px;display:block}.mk-text{background:#00000059;border-radius:8px;padding:1px 6px}.marker.edge{flex-direction:column;gap:2px}.marker.edge .mk-text{padding:0 4px;font-size:10px}@media (max-height:500px){#goals{width:min(250px,36vw);margin-top:6px;padding:6px 8px}.goal-title{font-size:12px}.goal-detail{font-size:10.5px}#hud-colony{display:none}}.mk-arrow{border-left:9px solid var(--ring,#fff);transform-origin:-19px 6px;border-top:6px solid #0000;border-bottom:6px solid #0000;width:0;height:0;margin:-6px 0 0 19px;display:none;position:absolute;top:17px;left:50%}.marker.edge .mk-arrow{display:block}.mk-home{--ring:#ff6fa8}.mk-food,.mk-eggs{--ring:#ffae4a}.mk-mate{--ring:#b08cff}.mk-station{--ring:#4fc0ff}.mk-predator{--ring:#ff3b3b}.mk-predator .mk-icon{animation:.5s infinite alternate blink}.mk-predator .mk-text{background:#7800008c}.help-card{pointer-events:auto;background:#031a28f5;border:1px solid #ffffff1f;border-radius:16px;width:min(960px,100%);max-height:calc(100vh - 24px);padding:18px 20px;overflow:auto}.help-card h2{margin:0 0 6px}.help-card h3{color:#9fe3ff;margin:10px 0 4px;font-size:14px}.help-card p,.help-card li{font-size:13px;line-height:1.45}.help-card .small{opacity:.85;font-size:12px}.help-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 20px;display:grid}.help-card ol,.help-card ul{margin:0;padding-left:18px}.help-legend{list-style:none;padding:0!important}.help-legend li{margin:3px 0}.help-legend .marker-dot{vertical-align:middle;width:30px;height:30px;margin-right:8px}.help-legend .marker-dot img{width:26px;height:26px}.help-legend li{align-items:center;display:flex}.help-keys{list-style:none;padding:0!important}.help-keys[hidden]{display:none}.settings-card{width:min(380px,100%)}.set-row{flex-direction:column;gap:6px;margin:14px 0;font-size:14px;display:flex}.set-row:has(input[type=checkbox]){flex-direction:row;justify-content:space-between;align-items:center}.set-row b{color:#9fe3ff;font-weight:600}.set-row input[type=range]{accent-color:#ff9a3c;width:100%}.set-row input[type=checkbox]{accent-color:#ff9a3c;width:22px;height:22px}#settings-close,#help-close{color:#fff;cursor:pointer;background:linear-gradient(#ff9a3c,#f0641c);border:0;border-radius:12px;width:100%;margin-top:14px;padding:12px;font:600 16px system-ui;display:block}#map-btn,#settings-btn,#help-btn,#switch-btn,#goals-show{pointer-events:auto;color:#fff;cursor:pointer;background:#00000040;border:1px solid #ffffff40;border-radius:14px;margin-top:8px;padding:6px 12px;font:600 12px system-ui}#current{pointer-events:none;opacity:0;place-items:center;display:grid;position:fixed;inset:0}#current.go{background:radial-gradient(#0a5c7acc,#032536f0);animation:2.6s ease-in-out forwards current}#current span{letter-spacing:.5px;text-shadow:0 2px 6px #000a;font-size:18px;font-weight:600}@keyframes current{0%{opacity:0}30%,70%{opacity:1}to{opacity:0}}.map-card{pointer-events:auto;background:#031a28f0;border:1px solid #ffffff1f;border-radius:16px;width:min(980px,100%);max-height:calc(100vh - 24px);padding:14px 16px;overflow:auto}.map-head{justify-content:space-between;align-items:center;display:flex}.map-head h2{margin:0;font-size:20px}.map-close{color:#fff;cursor:pointer;background:0 0;border:0;font-size:20px}.map-body{flex-wrap:wrap;gap:16px;margin-top:10px;display:flex}.map-left{flex:360px;min-width:260px}.map-right{flex:280px;min-width:240px;font-size:13px}.map-grid{aspect-ratio:1;border-radius:10px;gap:2px;display:grid;position:relative;overflow:hidden}.map-tile{color:#ffffffd0;padding:4px 5px;font-size:10px;line-height:1.2;position:relative}.map-tile small{opacity:.7;display:block}.map-dot{border-radius:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;display:inline-block;position:absolute}.map-legend .map-dot{margin:0 4px 0 10px;position:relative}.map-dot.colony{cursor:pointer;background:#ffb36b;box-shadow:0 0 0 2px #0006}.map-dot.colony.sel{background:#fff;transform:scale(1.5)}.map-dot.home{cursor:pointer;background:#ff6fa8;box-shadow:0 0 0 2px #fff}.map-dot.pact{box-shadow:0 0 0 3px #4fd1c5,0 0 0 5px #0006}.map-dot.me{background:#6fe3ff;animation:1s infinite alternate pulse2;box-shadow:0 0 0 3px #6fe3ff66}@keyframes pulse2{to{box-shadow:0 0 0 7px #6fe3ff22}}.map-legend{margin-top:8px;font-size:12px}.map-info h3{margin:0 0 4px}.map-go{color:#fff;cursor:pointer;background:linear-gradient(#2bb3d6,#13789a);border:0;border-radius:10px;width:100%;margin:8px 0 0;padding:10px;font:600 14px system-ui;display:block}.map-tabs{gap:6px;margin:14px 0 6px;display:flex}.map-tabs button{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff30;border-radius:8px;flex:1;padding:6px}.map-tabs button.on{background:#fff2}.map-boards table{border-collapse:collapse;width:100%}.map-boards th,.map-boards td{text-align:left;padding:3px 4px}.map-boards th{opacity:.7;font-size:11px;font-weight:600}.map-boards tr.me td{color:#ff9ad0;font-weight:600}.nametag.colony.mine{background:#78284699}#vignette{pointer-events:none;opacity:0;position:fixed;inset:0}#lowhp{pointer-events:none;background:radial-gradient(#0000 50%,#a0000088 125%);animation:1.1s ease-in-out infinite lowhp;position:fixed;inset:0}#lowhp[hidden]{display:none}@keyframes lowhp{0%,to{opacity:.35}15%{opacity:1}35%{opacity:.55}50%{opacity:.9}}@media (prefers-reduced-motion:reduce){#lowhp{opacity:.6;animation:none}}#vignette.hurt{background:radial-gradient(#0000 45%,#ff1a1a 120%);animation:.7s ease-out forwards vfade}#vignette.fed{background:radial-gradient(#0000 60%,#ffd27a 140%);animation:.4s ease-out forwards vfade}@keyframes vfade{0%{opacity:1}to{opacity:0}}.modal{z-index:10;background:#020a1299;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal[hidden]{display:none}.modal h2{margin:0 0 8px}.modal .small{font-size:12px}.modal .card button{color:#fff;cursor:pointer;background:linear-gradient(#ff9a3c,#f0641c);border:0;border-radius:12px;width:100%;margin-top:12px;padding:12px;font-size:16px;font-weight:600}.hud-help{text-align:center;text-shadow:0 1px 3px #000a;font-size:12px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}#touch{pointer-events:none;position:fixed;inset:0}#stick-base{background:#ffffff10;border:2px solid #ffffff40;border-radius:50%;width:120px;height:120px;margin:-60px 0 0 -60px;display:none;position:fixed}#stick-knob{background:#fff5;border-radius:50%;width:52px;height:52px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tbtn{pointer-events:auto;color:#fff;touch-action:none;background:#ffffff18;border:2px solid #ffffff50;border-radius:50%;font:600 15px system-ui;position:fixed}.tbtn.on{background:#ffffff45}#btn-dash{width:84px;height:84px;right:calc(24px + env(safe-area-inset-right));bottom:calc(28px + env(safe-area-inset-bottom))}#btn-act{width:72px;height:72px;right:calc(30px + env(safe-area-inset-right));bottom:calc(126px + env(safe-area-inset-bottom))}#btn-act img{width:78%;height:78%}.tbtn.small{width:56px;height:56px;right:calc(120px + env(safe-area-inset-right));font-size:18px}#btn-up{bottom:calc(96px + env(safe-area-inset-bottom))}#btn-down{bottom:calc(28px + env(safe-area-inset-bottom))}#btn-family{bottom:calc(158px + env(safe-area-inset-bottom))}#btn-family img{width:76%;height:76%}#start{background:radial-gradient(at 50% 0,#1b6f8a 0%,#063a55 45%,#021622 100%);place-items:center;padding:16px;display:grid;position:fixed;inset:0}#start.overlay{background:#0216228c}.card{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#031e2dbf;border:1px solid #ffffff1f;border-radius:16px;width:min(420px,100%);padding:24px;box-shadow:0 20px 60px #0008}.card h1{letter-spacing:.5px;margin:0 0 4px;font-size:28px}.card .sub{opacity:.8;margin:0 0 18px}.card label{opacity:.9;margin:10px 0;font-size:13px;display:block}.card input,.card select{color:#fff;-webkit-user-select:text;user-select:text;background:#00000040;border:1px solid #ffffff2a;border-radius:10px;width:100%;margin-top:4px;padding:10px 12px;font-size:16px;display:block}.card button.primary{color:#fff;cursor:pointer;background:linear-gradient(#ff9a3c,#f0641c);border:0;border-radius:12px;width:100%;margin-top:14px;padding:14px;font-size:17px;font-weight:600}.card button:disabled{opacity:.5;cursor:default}.card button.ghost{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff35;border-radius:10px;padding:10px 14px;font-size:14px}.card button.link{color:#9fdcff;cursor:pointer;background:0 0;border:0;padding:4px;font-size:13px;text-decoration:underline}.card .small{font-size:12px}.card h3{margin:4px 0 6px;font-size:16px}#start .card{max-height:calc(100dvh - 32px);overflow-y:auto}.tabs,.seg{gap:6px;margin:0 0 12px;display:flex}.tabs button,.seg button{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff30;border-radius:10px;flex:1;padding:9px 6px;font-size:14px}.seg button{padding:6px;font-size:13px}.tabs button.on,.seg button.on{background:#fff2;border-color:#ffffff60;font-weight:600}.warn{color:#ffe2b0;background:#ffb02e1f;border:1px solid #ffb02e80;border-radius:10px;margin:10px 0;padding:10px 12px;font-size:13px;line-height:1.4}.warn b{color:#ffc85a;margin-bottom:2px;display:block}.warn.strong{background:#ff6a2e2e;border-color:#ff8a3c}.card label.check{align-items:flex-start;gap:8px;font-size:13px;display:flex}.card label.check input{flex:none;width:auto;margin:2px 0 0;display:inline}.error{color:#ff9a8a;min-height:1em;margin:8px 0 0;font-size:13px}.error:empty{display:none}.card button.hub{color:#fff;cursor:pointer;background:linear-gradient(#1a8fc2,#0b6e99);border:0;border-radius:12px;width:100%;padding:14px;font-size:17px;font-weight:600}#hub-signin .small{text-align:center;margin:6px 0 0}#hub-back{text-align:center;margin:10px 0 0}#hub-back a{color:#9fdcff}#slots{gap:8px;margin:8px 0;display:grid}#slots[hidden]{display:none}.slot{background:#00000035;border:1px solid #fff2;border-radius:12px;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:10px 12px;display:grid}.slot.empty{background:0 0;border-style:dashed;padding:0;display:block}.slot-name{overflow-wrap:anywhere;font-size:16px;font-weight:600}.slot-sub{margin-top:2px}.card button.slot-play{width:auto;margin:0;padding:10px 16px;font-size:15px}.card button.slot-del{padding:8px 10px;font-size:12px}.slot-new{color:#ffffffb0;cursor:pointer;background:0 0;border:0;width:100%;padding:14px;font-size:14px}.slot-new:hover{color:#fff;background:#ffffff10;border-radius:12px}@media (max-width:380px){.slot{grid-template-columns:1fr auto}.slot-meta{grid-column:1/-1}}#start [hidden]{display:none!important}#acct-foot{text-align:center;margin:4px 0 0}#acct-foot button.link{color:#9fdcffb0;font-size:12px}#start .card.creating{width:min(1000px,100%);padding:18px 20px}#start .card.creating h1{margin-bottom:10px;font-size:22px}#start .card.creating .sub,#start .card.creating #hub-back{display:none}#new-slot{grid-template-columns:minmax(0,1fr);grid-template-areas:"view""species""side";gap:12px;display:grid}#new-slot .preview-stage{grid-area:view}#new-slot .species-grid{grid-area:species}#new-slot .new-side{grid-area:side;min-width:0}@media (min-width:820px){#new-slot{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);grid-template-areas:"view side""species side";gap:12px 20px}}.preview-stage{background:radial-gradient(at 50% 30%,#1f7a99,#06354a 70%,#04263a);border:1px solid #ffffff1a;border-radius:14px;height:clamp(220px,45vh,460px);position:relative;overflow:hidden}.preview-stage>img.fallback{object-fit:contain;filter:drop-shadow(0 6px 12px #0009);width:60%;height:76%;position:absolute;inset:12% 20%}.fish-preview{cursor:grab;touch-action:pan-y;width:100%;height:100%;display:block;position:absolute;inset:0}.fish-preview:active{cursor:grabbing}.preview-bar{pointer-events:none;background:linear-gradient(#0000,#021a28c0);justify-content:space-between;align-items:center;gap:8px;padding:18px 10px 10px;display:flex;position:absolute;bottom:0;left:0;right:0}.preview-bar>*{pointer-events:auto}#new-look-desc{text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 3px #000a;min-width:0;overflow:hidden}.card .preview-bar button.ghost{background:#02202ecc;flex:none;padding:7px 12px;font-size:13px}.species-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;display:grid}.sp-card{color:#fff;cursor:pointer;min-width:0;font:inherit;background:#00000030;border:1px solid #ffffff24;border-radius:10px;flex-direction:column;align-items:center;gap:2px;padding:6px 4px 5px;display:flex}.sp-card img{object-fit:contain;filter:drop-shadow(0 2px 4px #0008);width:40px;height:40px}.sp-card span{text-align:center;overflow-wrap:anywhere;font-size:11px;line-height:1.15}.sp-card:hover{background:#ffffff14}.sp-card[aria-checked=true]{background:#ff9a3c2e;border-color:#ffb066;box-shadow:inset 0 0 0 1px #ffb066}.sp-card:focus-visible{outline-offset:2px;outline:2px solid #9fdcff}#species-info h3{margin:0;font-size:18px}#si-sci{margin:0;font-style:italic}.si-role{background:#ffffff1a;border-radius:999px;margin:8px 0 6px;padding:3px 9px;font-size:12px;font-weight:600;display:inline-block}.si-role[data-level=Easy]{color:#a8f0c8;background:#3fbf7f33}.si-role[data-level=Medium]{color:#ffe2a0;background:#ffc85a2e}.si-role[data-level=Hard]{color:#ffb8a8;background:#ff6a4a33}.chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0;display:grid}.chips div{background:#00000035;border:1px solid #ffffff14;border-radius:8px;min-width:0;padding:4px 8px}.chips dt{text-transform:uppercase;letter-spacing:.06em;opacity:.6;font-size:10px}.chips dd{overflow-wrap:anywhere;margin:0;font-size:12.5px}.si-fact{opacity:.8;margin:8px 0 0;font-style:italic}.new-side label{margin:10px 0 0}#new-sex{margin-top:10px}#new-sex .seg{margin:0}#new-slot .row{align-items:stretch;gap:8px;display:flex}#new-slot .row button{margin-top:12px}#new-slot .row .primary{flex:1}@media (max-width:819px){.species-grid{scroll-snap-type:x proximity;grid-template-columns:none;grid-auto-columns:74px;grid-auto-flow:column;padding:0 10px 4px;scroll-padding:0 28px;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#0000,#000 14px calc(100% - 14px),#0000);mask-image:linear-gradient(90deg,#0000,#000 14px calc(100% - 14px),#0000)}.sp-card{scroll-snap-align:start}.preview-stage{height:clamp(200px,34vh,320px)}}.quality-row{justify-content:flex-end;align-items:center;gap:8px;opacity:.6!important;margin:12px 0 0!important;font-size:12px!important;display:flex!important}.card .quality-row select{border-radius:8px;width:auto;margin:0;padding:3px 8px;font-size:12px;display:inline-block}#update{z-index:50;top:calc(10px + env(safe-area-inset-top));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;background:#03283aeb;border:1px solid #7fd8ff80;border-radius:14px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 20px);padding:10px 14px;font-size:14px;animation:.35s ease-out update-in;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0008}#update[hidden]{display:none}#update b{color:#9fe8ff}#update button{cursor:pointer;border:0;border-radius:10px;padding:7px 14px;font:600 13px system-ui}#update .update-reload{color:#fff;background:linear-gradient(#ff9a3c,#f0641c)}#update .update-later{color:#fff;background:0 0;border:1px solid #ffffff40}@keyframes update-in{0%{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%)}}#chat-btn{pointer-events:auto;color:#fff;cursor:pointer;background:#00000040;border:1px solid #ffffff40;border-radius:14px;align-items:center;gap:4px;margin-top:8px;padding:4px 12px 4px 6px;font:600 12px system-ui;display:inline-flex}#chat-btn img{width:22px;height:22px;margin:-3px 0}#chat{left:max(12px, env(safe-area-inset-left));bottom:calc(36px + env(safe-area-inset-bottom));pointer-events:none;width:min(380px,70vw);position:absolute}#chat-log{flex-direction:column;gap:2px;max-height:30vh;display:flex;overflow:hidden}.chat-line{overflow-wrap:anywhere;text-shadow:0 1px 2px #000a;background:#00141ea0;border-radius:8px;align-self:flex-start;max-width:100%;padding:2px 8px;font-size:13px;transition:opacity 1s}.chat-line b{color:#9fe3ff}.chat-line.mine b{color:#ffd27a}.chat-line.sys{color:#ffc9a8;font-style:italic}.chat-tag{color:#d9ecff;letter-spacing:.03em;text-transform:uppercase;vertical-align:1px;background:#3d7bd680;border-radius:6px;margin-right:2px;padding:0 5px;font:700 10px/15px system-ui;display:inline-block}.chat-where{color:#ffffffa0;font-size:11px}#chat-tabs{pointer-events:auto;gap:4px;margin-bottom:6px;display:flex}#chat-tabs[hidden]{display:none}#chat-tabs button{color:#ffffffc0;cursor:pointer;background:#00000060;border:1px solid #ffffff40;border-radius:10px;padding:4px 14px;font:600 12px system-ui;position:relative}#chat-tabs button.on{color:#fff;background:linear-gradient(#2bb3d6,#13789a);border-color:#0000}#chat-tabs button.unread:after{content:"";background:#ffd27a;border-radius:50%;width:6px;height:6px;position:absolute;top:3px;right:4px}#chat.open.tab-reef .chat-line.world,#chat.open.tab-world .chat-line:not(.world){display:none}.chat-line.old{opacity:0}#chat.open .chat-line.old{opacity:.85}#chat.open #chat-log{pointer-events:auto;max-height:34vh;overflow-y:auto}#chat-form{pointer-events:auto;gap:6px;margin-top:6px;display:flex}#chat-form[hidden]{display:none}#chat-input{color:#fff;-webkit-user-select:text;user-select:text;touch-action:manipulation;background:#021a28e0;border:1px solid #ffffff40;border-radius:10px;flex:1;min-width:0;padding:8px 10px;font:14px system-ui}#chat-input:focus{outline:2px solid #6fe3ff80}#chat-send,#chat-close{color:#fff;cursor:pointer;background:linear-gradient(#2bb3d6,#13789a);border:0;border-radius:10px;padding:6px 12px;font:600 13px system-ui}#chat-close{background:#00000060;padding:6px 8px}#chat-close img{width:16px;height:16px;display:block}@media (pointer:coarse){#chat{width:min(320px,60vw);top:42vh;bottom:auto}#chat-log{max-height:22vh}#chat.open{top:max(8px, env(safe-area-inset-top));z-index:5;width:min(520px,94vw);position:fixed;left:50%;transform:translate(-50%)}#chat.open #chat-log{max-height:26vh}}.map-boards h4{margin:10px 0 4px;font-size:13px}.online-list{columns:2;margin:0 0 6px;padding:0;font-size:13px;list-style:none}.online-list li.me{color:#ff9ad0;font-weight:600}.online-names{opacity:.8;font-size:11px}@media (max-width:600px){#hud:not([hidden]){padding:max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));grid-template-rows:auto auto 1fr;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;column-gap:10px;display:grid}.hud-tl,.hud-tr,#hud-status{position:static;transform:none}.hud-tl{grid-area:1/1;min-width:0}#chat:not(.open){grid-area:2/1;width:auto;min-width:0;margin-top:8px;position:static}.hud-right{grid-area:1/2/span 3;min-width:0;display:block}.hud-tr{min-width:0}#hud-status{text-align:right;justify-content:flex-end;max-width:none;margin-top:6px;font-size:12px}#hud-status-icon{flex:none;width:24px;height:24px}#map-btn,#settings-btn,#help-btn,#switch-btn,#goals-show,#chat-btn{margin-top:6px;padding:5px 10px;font-size:11.5px}#goals{box-sizing:border-box;width:100%}.bar{gap:6px}.bar .track{width:min(90px,22vw)}#hud-colony,#hud-family{max-width:none}#court-wrap{bottom:calc(214px + env(safe-area-inset-bottom));white-space:nowrap;max-width:62vw}#court-btn,#pact-btn{gap:5px;margin:0 2px;padding:8px 12px;font-size:14px}#court-btn img,#pact-btn img{width:26px;height:26px}#court-hint{white-space:normal}#hud-pact{max-width:none}.hud-help{bottom:calc(214px + env(safe-area-inset-bottom));width:70vw}#toast{box-sizing:border-box;text-align:center;width:max-content;max-width:80vw;top:62%}#chat.open{box-sizing:border-box;background:#021420eb;border-radius:12px;padding:8px}}.bar-label{white-space:nowrap}.bar-label b{font-variant-numeric:tabular-nums;opacity:.9;font-weight:600}.bar.growth .track>div{background:linear-gradient(90deg,#4fd67a,#b8f5a0)}.bar.growth.stalled .bar-label{color:#ffb15c;font-weight:700}.bar.growth.stalled .track>div{background:linear-gradient(90deg,#c77a2a,#ffb15c)}.bar.growth.stalled .track{animation:.9s infinite alternate pulse-o}@keyframes pulse-o{0%{box-shadow:0 0 #ffb15c00}to{box-shadow:0 0 0 2px #ffb15ccc}}.bar.food.burn .track>div{background:repeating-linear-gradient(-45deg,#ffb347 0 6px,#ff7a3c 6px 12px) 0 0/17px 100%;animation:.5s linear infinite burn}@keyframes burn{to{background-position:17px 0}}.bar.food.burn .bar-label b{color:#ffb15c}#hud-stages{justify-content:flex-end;gap:3px;margin:4px 0 2px;display:flex}#hud-stages span{color:#ffffff80;text-shadow:none;background:#00000040;border:1px solid #ffffff20;border-radius:8px;padding:1px 6px;font-size:10.5px;font-weight:600}#hud-stages span.done{color:#a8f0c0b0;border-color:#a8f0c050}#hud-stages span.on{color:#04263a;background:#a8f0c0;border-color:#a8f0c0}#hud-needs{text-shadow:0 1px 2px #000c;margin:2px 0 0;padding:0;font-size:11.5px;list-style:none}#hud-needs li{justify-content:flex-end;align-items:center;gap:5px;line-height:1.45;display:flex}#hud-needs li:after{content:"";box-sizing:border-box;border:1.5px solid #ffffffb0;border-radius:2px;flex:none;width:8px;height:8px}#hud-needs li.done{opacity:.6}#hud-needs li.done:after{background:#a8f0c0;border-color:#a8f0c0}#hud-needs li.alert{color:#ffb15c;font-weight:600}#hud-needs li.alert:after{border-color:#ffb15c}#hud-log{flex-direction:column;align-items:flex-end;gap:2px;margin-top:6px;display:flex}.log-line{text-shadow:0 1px 2px #000a;background:#00141e99;border-radius:7px;max-width:100%;padding:1px 7px;font-size:11.5px;transition:opacity 1.2s}.log-line.good{color:#c6f5d4}.log-line.bad{color:#ffb0a4}.log-line.fade{opacity:0}#hud-status{flex-direction:column;gap:4px}#hud-calm{justify-content:center;align-items:center;gap:6px;display:flex}#hud-calm[hidden],#hud-warn:empty{display:none}#hud-warn{flex-direction:column;align-items:center;gap:4px;display:flex}.warn{text-shadow:0 1px 2px #0008;border-radius:14px;align-items:center;gap:6px;padding:3px 12px 3px 5px;font-size:13px;font-weight:700;display:inline-flex}.warn img{flex:none;width:24px;height:24px}.warn.w-danger{color:#fff;background:#7a0d0dd8;animation:.6s infinite alternate warnpulse;box-shadow:0 0 0 1px #ff6b5a}.warn.w-warn{color:#ffe2b0;background:#6a4208d8;box-shadow:0 0 0 1px #ffb15c80}.warn.w-info{color:#cfeeff;background:#0c3550d0;box-shadow:0 0 0 1px #6fc8ff60}@keyframes warnpulse{to{box-shadow:0 0 0 3px #ff6b5a90}}@media (prefers-reduced-motion:reduce){.warn.w-danger,.bar.food.burn .track>div{animation:none}}@media (max-width:600px){.bar{font-size:10.5px}#hud-stages{flex-wrap:wrap;gap:2px}#hud-stages span{padding:0 4px;font-size:9.5px}#hud-needs,.log-line{font-size:10.5px}#hud-status,#hud-warn{align-items:flex-end}.warn{text-align:right;padding:2px 8px 2px 3px;font-size:11.5px}.warn img{width:20px;height:20px}#hud-calm{justify-content:flex-end}}@media (max-height:500px){#hud-needs,#hud-log{display:none}}#hud-status.alert #hud-calm{color:#ffb0a4}@media (max-width:600px){#hud-role{font-size:11px}}
