@font-face{font-family:Cloud;src:url('assets/Cloud-Light.otf') format('opentype');font-weight:300 500;font-display:swap}
@font-face{font-family:Cloud;src:url('assets/Cloud-Bold.otf') format('opentype');font-weight:600 900;font-display:swap}
:root{color-scheme:light;--ink:#193f36;--dark:#153c34;--light:#fffae6;--yellow:#ffd15a;--green:#306c43;font:18px/1.28 Cloud,system-ui,sans-serif;color:var(--ink);background:var(--dark)}
*{box-sizing:border-box}
body{margin:0}button,input,select{font:inherit}button,summary{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.55}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e7931f;outline-offset:3px}
.icon{width:1.12em;height:1.12em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
#gameScreen{height:100svh;min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.gamebar,.dock{background:linear-gradient(120deg,#21483d,#14372f 65%,#25493a);color:var(--light);display:flex;align-items:center;z-index:3}
.gamebar{padding:10px clamp(14px,3vw,52px);gap:clamp(12px,2.4vw,44px);border-bottom:4px solid #103b30;box-shadow:0 3px 0 #eef5b9a8;position:relative}
.logo{display:flex;align-items:center;gap:9px;margin:0;color:#fff9d6;font:bold italic 22px/.84 Cloud,sans-serif;letter-spacing:.25px;transform:rotate(-2deg);text-shadow:1px 2px #172c23}
.logo img{width:57px;height:51px}.logo span{font-size:26px}
.stagebadge{display:flex;align-items:center;gap:7px;border:1px solid #8ca974;border-radius:8px;padding:5px 10px;background:#365643;color:#e6f7b7;box-shadow:inset 0 1px #ffffff26;font:700 12px/1.2 system-ui;letter-spacing:1px}.stagebadge b{font:800 20px Cloud;max-width:13ch;overflow:hidden;text-overflow:ellipsis}.stagebadge .icon{width:14px}
.resources,.headbuttons,.resources>span,.actions,#team,.botchip,.camera,.roundbadge,.questlabel,.manifest summary,.manifest li,.manifest button,.weather,.weather label,.plan,.go{display:flex;align-items:center}
.resources{margin-left:auto;gap:clamp(12px,2vw,30px)}.resources>span{gap:7px}.resources b{font:bold 21px/1 Cloud;letter-spacing:.4px}.resources small{font-size:15px;color:#d0dfc6}.resources .icon{color:#f4cf67}.resources>span:nth-child(2) .icon{color:#b7e67f}.resources>span:nth-child(3) .icon{color:#a5d9dc}
.headbuttons{gap:7px}.headbuttons button{width:37px;height:37px;border-radius:10px;background:#f8ffe811;color:#f1f6d8;border:1px solid #8ea48a;box-shadow:inset 0 1px #fff2}
#arena{position:relative;isolation:isolate;min-height:0;overflow:hidden;background:#bee2cf url('assets/sky.svg') center/100% 100% no-repeat}
#arena>#world{position:absolute;inset:0;background:transparent}
.hud,.camera,.roundbadge{background:linear-gradient(145deg,#fffcecfa,#f7f3dce8);border:2px solid #365948;box-shadow:0 3px 0 #36594861,inset 0 2px #fff;backdrop-filter:blur(12px);color:var(--ink)}
.hud{position:absolute;border-radius:14px}.quest{left:clamp(12px,2.1vw,36px);top:22px;padding:13px 17px;min-width:228px;max-width:300px;pointer-events:none}.questlabel{gap:6px;color:#396743;font-size:14px;font-weight:bold}.questlabel .icon{width:15px}.questlabel span{margin-left:auto;border:1px solid #9fbd87;background:#e5efbb;color:#4b642e;border-radius:20px;padding:1px 8px;font-size:13px}.quest h2{font-weight:700;line-height:1.07;font-size:31px;margin:7px 0 4px}.quest #objective{font-size:16px}.goaltrack{display:flex;gap:4px;margin-top:8px}.goaltrack i{height:5px;flex:1;background:#dbe3c7;border-radius:3px}.goaltrack i.filled{background:#509659}
.manifest{right:clamp(12px,2.1vw,36px);top:22px;width:clamp(190px,16vw,250px);background:linear-gradient(125deg,#fffcecfa,#f8f1dfea)}.manifest summary{list-style:none;gap:7px;padding:9px 12px}.manifest summary::-webkit-details-marker{display:none}.clipboard{color:#965e27}.manifest summary b{font-size:19px}#jobcount{margin-left:auto;font:bold 15px Cloud}.caret{font:bold 16px system-ui}.manifest[open] .caret{transform:rotate(180deg)}.manifest ul{margin:0 11px;padding:0;list-style:none;max-height:20vh;overflow:auto}.manifest li{gap:8px;border-top:1px dashed #c8d0b4;padding:6px 1px}.ordericon{width:26px;height:26px;border-radius:7px;background:#eddcb3;color:#90693a;display:grid;place-items:center}.manifest li b,.manifest li small{display:block}.manifest li b{font-size:16px}.manifest li small{font-size:14px;color:#5f735b}.manifest button{background:#eaf0d8;border:0;border-top:1px solid #c7d4b7;border-radius:0 0 12px 12px;width:100%;justify-content:center;color:#3f6749;padding:6px;gap:6px;font-size:16px;font-weight:bold}
.camera{position:absolute;right:clamp(12px,2.1vw,36px);bottom:18px;border-radius:10px;overflow:hidden}.camera button{width:37px;height:34px;font:600 19px/1 system-ui;color:var(--ink);background:transparent;border:0}.camera button+button{border-left:1px solid #bfd0b7}.camera .icon{width:17px}.roundbadge{position:absolute;bottom:18px;left:clamp(12px,2.1vw,36px);border-radius:20px;padding:4px 12px;gap:7px;font-size:15px}.roundbadge .icon{width:15px}
#livebar{left:50%;bottom:14px;transform:translateX(-50%);padding:9px 14px;width:min(440px,50%);font-size:16px;text-align:center}.weather,.weather label{gap:7px;justify-content:center;flex-wrap:wrap}.weather{gap:15px}.weather input{accent-color:#387b51}.weather input[type=range]{width:82px}
.dock{justify-content:space-between;gap:22px;padding:14px clamp(14px,3vw,52px) max(15px,env(safe-area-inset-bottom));border-top:4px solid #496b46;box-shadow:0 -2px 0 #f7f1bc;position:relative}.docklabel{color:#c2d9b1;font-size:15px;font-weight:700;margin-bottom:4px}.contract{margin-right:auto}.contract strong{font:700 19px Cloud}.contract .icon{color:#bce883;width:18px}#team{gap:9px}.botchip{gap:6px;border:1px solid #8fa68d;border-radius:9px;background:#ffffff10;padding:2px 8px 2px 3px;color:#f7f4d9;font-size:17px;font-weight:bold}.botchip svg{width:33px;height:30px}.actions{gap:11px}.plan,.go,.guide button{border:2px solid #122e25;border-radius:12px;font-weight:700;gap:9px;justify-content:center;transition:transform .1s}.plan,.go{min-height:51px;padding:8px clamp(14px,2vw,36px)}.plan{background:#f4f2dc;color:#234d36;box-shadow:0 4px #0c2a23,inset 0 2px white}.go,.guide button{background:linear-gradient(#ffdf70,#ffc345);color:#3d341a;box-shadow:0 4px #775821,inset 0 2px #fff3b4;font-size:23px}.go .icon{width:19px;fill:currentColor}.go:hover:enabled,.plan:hover:enabled,.headbuttons button:hover,.camera button:hover{filter:brightness(1.07)}.go:active:enabled,.plan:active:enabled{transform:translateY(2px)}
:is(#modal,#settings){width:min(660px,94vw);max-height:90dvh;border:2px solid #324d37;border-radius:18px;background:#fcfae9;color:var(--ink);padding:0;box-shadow:0 7px 0 #193d3299,0 18px 65px #11332244}:is(#modal,#settings)::backdrop{background:#0d352d69;backdrop-filter:blur(5px)}.guide{padding:22px}.guide h2{margin:0}.guide li{margin:.65em 0}.guide button{padding:6px 18px}
@media(max-width:900px){.gamebar,.dock{gap:12px}.contract{display:none}.manifest{width:185px}.quest{min-width:195px}.quest h2{font-size:26px}.quest,.manifest{top:12px}.resources small{display:none}}
@media(max-width:620px){#gameScreen{min-height:560px}.gamebar{padding:7px 9px;gap:7px;flex-wrap:wrap}.logo img{width:39px;height:36px}.logo{gap:3px}.logo span{font-size:18px}.stagebadge{padding:4px 6px;gap:4px}.stagebadge>span{display:none}.stagebadge b{font-size:18px}.resources{gap:8px}.resources>span{gap:2px}.resources b{font-size:16px}.resources .icon{width:14px}.headbuttons{gap:3px;margin-left:auto}.headbuttons button{width:29px;height:30px;border-radius:7px;padding:3px}.quest{left:9px;top:9px;padding:7px 10px;max-width:57%;min-width:0}.questlabel{font-size:12px;gap:4px}.questlabel span{font-size:11px}.quest h2{font-size:22px}.quest #objective{font-size:14px}.manifest{right:9px;top:9px;width:35%;min-width:118px;z-index:2}.manifest summary{padding:6px;gap:4px}.manifest summary b{font-size:15px}.manifest li small{font-size:13px}.manifest[open]{width:175px}.camera{bottom:9px;right:9px}.camera button{width:29px;height:29px}.roundbadge{bottom:9px;left:9px;font-size:13px}.dock{padding:6px 10px 10px;display:grid;grid-template-columns:1fr;gap:7px}.fleet{display:flex;align-items:center;gap:9px}.docklabel{font-size:13px;margin:0}.botchip{font-size:15px}.botchip svg{width:24px;height:22px}.actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}.plan,.go{min-height:40px;padding:4px 8px}.go{font-size:20px}#livebar{width:94%;bottom:47px;font-size:14px}.weather label{gap:3px}}
@media(max-height:590px) and (min-width:621px){#gameScreen{min-height:450px}.gamebar{padding-block:4px}.dock{padding-block:7px}.quest{padding:8px 12px}.manifest ul{max-height:18vh}}
#gameScreen.mapOnly{grid-template-rows:1fr;height:100dvh}#gameScreen.mapOnly>:is(.dock,.gamebar){display:none}
#world{--world-left:65px;--world-right:65px;--world-top:55px;--world-bottom:32px}
@media(max-width:700px){#world{--world-left:4px;--world-right:4px;--world-top:75px;--world-bottom:26px}}
body.cx-remote{background:#e9f4e8;min-height:100dvh}
.cx-panel{padding:16px}
@media(max-width:620px){
  .gamebar{display:grid;grid-template-columns:auto auto 1fr auto;row-gap:5px}
  .resources{grid-column:1/-1;grid-row:2;justify-content:center;gap:26px;margin:0;border-top:1px solid #ffffff21;padding-top:4px}
  .resources small{display:inline;font-size:12px}.headbuttons{grid-column:4;grid-row:1}
  #arena{background-size:auto 100%}.manifest summary b{white-space:nowrap}.manifest summary .clipboard{display:none}
}
