.expedition{--light:#ffdfab;--mint:#a5eddb;--dim:#c8bfb8;color:#fff4e5;background:#211e22;border:1px solid #4d4243;border-radius:16px;padding:clamp(14px,2.4vw,28px);margin:1.2rem 0;font:inherit}.expedition *{box-sizing:border-box}.expedition [hidden]{display:none!important}.expedition h2,.expedition h3,.expedition p,.expedition label,.expedition span,.expedition strong,.expedition summary,.expedition b{color:inherit}.exp-head,.map-head,.exp-legend,.commands{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.exp-head,.map-head{justify-content:space-between}.exp-head label{font-size:.78rem;display:block;color:var(--dim);margin-bottom:.2em}.expedition button,.expedition select{font:inherit;color:#fff2dd;background:#393237;border:1px solid #7e7071;border-radius:7px;cursor:pointer;padding:.5rem .8rem;min-height:42px}.expedition select{max-width:100%;font-weight:650}.expedition button:focus-visible,.expedition select:focus-visible,.expedition summary:focus-visible,#board:focus-visible{outline:3px solid #d7fff3;outline-offset:2px}.expedition button:hover:not(:disabled){border-color:var(--light);background:#544445}.expedition button:disabled{opacity:.45;cursor:default}.exp-record{font-size:.82em;color:var(--light)}.expedition h2{margin:.65em 0 .15em;font-size:clamp(1.5rem,3.4vw,2.3rem);line-height:1.13}.expedition #brief{margin:.35rem 0 1rem;max-width:81ch}.exp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#574c4e;border:1px solid #574c4e;border-radius:8px;overflow:hidden;margin-bottom:14px}.exp-stats div{background:#30292d;padding:.5rem .8rem}.exp-stats span,.exp-stats strong{display:block}.exp-stats span{font-size:.73rem;color:var(--dim)}.exp-stats strong{font-size:clamp(.88rem,2vw,1.18rem);font-variant-numeric:tabular-nums}.exp-body{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(215px,1fr);gap:18px}.map-head{padding:.35rem 0 .45rem;font-size:.84rem}.map-head span{color:var(--mint)}#board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:8/5;isolation:isolate;overflow:hidden;border-radius:9px;border:1px solid #97725e;background:linear-gradient(125deg,#905b40,#71412e 42%,#bd845b);background-image:linear-gradient(120deg,#371b1d32,#70402914),url('art/mars-survey.webp'),linear-gradient(120deg,#a56b45,#74412e 55%,#b98159);background-size:cover;background-position:center}
#board button{position:relative;min-width:0;min-height:0;overflow:hidden;aspect-ratio:1;background:#30180e1c;border:0;border-right:1px solid #fff1d339;border-bottom:1px solid #fff1d339;border-radius:0;margin:0;padding:0;color:#fff7e6;text-shadow:0 1px 3px #261b16;display:grid;place-items:center;font:700 clamp(.98rem,3vw,1.75rem)/1 system-ui}#board button:hover{background:#ffefd42b}#board button:focus-visible{outline-offset:-3px}#board button.adjacent:after{content:"";position:absolute;inset:3px;border:2px dashed #aef4ddbb;pointer-events:none}#board .route{background:#123f3e98;box-shadow:inset 0 0 0 2px #a5eddb}#board .route-no{position:absolute;right:3px;bottom:3px;border-radius:20px;background:#b1f1dd;color:#172e29;min-width:14px;padding:2px;font:700 10px/1 system-ui;text-shadow:none}#board .rock{background:linear-gradient(145deg,#553e31a8,#2d2225cc);color:#b8a299}#board .dune{background:repeating-linear-gradient(150deg,#d7a66c42 0 3px,#aa74482b 4px 9px)}#board .poi{border-radius:50%;background:#362929c9;padding:.12em .18em;color:#ffdd8e}#board .rover{width:83%;height:72%;max-width:72px;filter:drop-shadow(0 2px 2px #40261c)}#board .hidden-tile{background:repeating-linear-gradient(45deg,#29393790 0 4px,#37403a88 5px 8px)}#board .explored{box-shadow:inset 0 0 0 2px #b3f3de63}.exp-legend{font-size:.77rem;color:#e8d6c8;margin:.6rem 0;gap:.23rem .7rem}.exp-legend b{color:var(--light)}.exp-console{background:#302a2c;border:1px solid #51464a;border-radius:9px;padding:.9rem;align-self:start}.exp-console h3{margin:0 0 .35rem;font-size:1.06em}.exp-console p{font-size:.88rem;margin:.2em 0 .7em}.exp-console #packet{display:flex;gap:4px}.exp-console #packet span{flex:1;border:1px solid #706363;text-align:center;padding:.23em 0;border-radius:4px;font-weight:700;font-size:1rem}.exp-console #packet .filled{background:#344d47;border-color:#84bea7;color:#d3fbe9}#estimate{font-size:.8rem;color:#cec2b8;margin:.5em 0 .8em}.expedition #send,.expedition #next{color:#322319;background:#ffdaa1;border-color:#ffe8bd;font-weight:750}.expedition #send{width:100%}.expedition .commands button{font-size:.85rem}.expedition #status{margin:.8rem 0 0;font-size:.88rem;color:#b7ebd8}.expedition #outcome{border-top:1px solid #706363;padding-top:.9rem;margin-top:.8rem}.expedition details{padding:.55em 0;border-bottom:1px solid #53494c;font-size:.9rem}.expedition summary{cursor:pointer;font-weight:650}.expedition .exp-reset{margin-top:1rem}.expedition #log{padding-left:1.5rem}.expedition .exp-stats .low{color:#ffb397}@media(max-width:830px){.exp-body{grid-template-columns:1fr;gap:6px}.exp-console{padding:.7rem}.expedition #send{width:auto}.exp-console #packet{max-width:270px}.exp-record{font-size:.75rem}}@media(max-width:500px){.exp-stats div{padding:.4rem}.expedition{padding:10px}.exp-head{align-items:end}.exp-head select{font-size:.88rem}.expedition .exp-record{max-width:94px}.expedition .commands{gap:.35em}.expedition .commands button{padding:.48rem .62rem}.exp-legend{font-size:.73rem}}

#board{position:relative}#board .tracks,#surface-rover{position:absolute;pointer-events:none}#board .tracks{inset:0;width:100%;height:100%;z-index:1}#surface-rover{width:12.5%;height:20%;display:grid;place-items:center;z-index:2;transition:top .28s ease,left .28s ease;filter:drop-shadow(0 0 4px #211a16)}#board .rover{width:88%;height:82%}#board .route-no{z-index:3}#board .poi{box-shadow:0 0 0 1px #e8c29a8c;line-height:1.05}
@media(prefers-reduced-motion:reduce){#surface-rover{transition:none}}

#board{grid-template-rows:repeat(5,minmax(0,1fr))}#board button[data-axis]::before{position:absolute;top:3px;left:4px;content:attr(data-axis);font:650 clamp(8px,1vw,11px)/1 system-ui;color:#fff2d8;text-shadow:0 1px 2px #29190f}
@supports not (aspect-ratio:8/5){#board{height:clamp(180px,39vw,410px)}}
