*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#75b4f6;font:600 14px/1.25 system-ui,'Microsoft YaHei',sans-serif}#game{position:relative;width:100vw;height:100vh;height:100dvh;overflow:hidden;container-type:size;color:white}#art,#board{position:absolute;inset:0;width:100%;height:100%}#art{pointer-events:none;user-select:none}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #ff8a3d;outline-offset:2px}.action{position:absolute;top:79.3%;height:15.5%;width:9.6%;border-radius:48%;background:transparent}.action span,.action b,.piece:after{background:#18365c;color:white;border-radius:8px;padding:2px 6px;font-size:clamp(10px,2.6cqh,16px);white-space:nowrap}.action span{position:absolute;left:50%;bottom:-1%;transform:translateX(-50%)}.action b{position:absolute;right:-1%;bottom:16%;min-width:28%;padding:2px;border-radius:100%}#roll{left:40%;width:15%;height:19%;top:78%}#roll span{background:#964009}#intercept{left:57.7%}#shield{left:68.5%}#boost{left:79.4%}.action:disabled{cursor:default;background:#29394c44}.action:disabled span,.action:disabled b{background:#515866}.action[data-empty]{backdrop-filter:grayscale(1)}.info{position:absolute;pointer-events:none;left:2%;top:81%;width:36%;color:#fff;text-shadow:0 1px 3px #153974;text-align:center}.info strong,.info span{display:block}.info strong{font-size:clamp(14px,3.6cqh,22px)}.info span{font-size:clamp(11px,2.9cqh,17px);margin-top:2px}.piece{position:absolute;transform:translate(-50%,-50%);width:5.6%;height:8.4%;border-radius:50%;background-image:url(images/gen/gptimg_1796040669_look.jpg);background-size:1828.57% 1190.48%;background-position:var(--sprite);box-shadow:0 0 0 2px #fff,0 2px 5px #11416f;transition:left .12s linear,top .12s linear}.piece[aria-current=true]{outline:3px solid #ff8a3d;z-index:2}.piece[data-effect]:after{content:attr(data-effect);position:absolute;bottom:96%;left:50%;transform:translateX(-50%);background:#17498a}.piece[data-protected]{box-shadow:0 0 0 5px #77edff}.piece:before{content:'';position:absolute;min-width:40px;min-height:40px;inset:50% auto auto 50%;transform:translate(-50%,-50%)}@media(orientation:portrait){#game{width:100vh;width:100dvh;height:100vw;transform-origin:top left;transform:translateX(100vw) rotate(90deg)}}@media(prefers-reduced-motion:reduce){.piece{transition:none}}

/* Trim only the sky margins. Artwork, tile coordinates and inputs share a frame. */
#flight-deck{position:absolute;left:0;top:-2.5%;width:100%;height:105%}#board{pointer-events:none}.piece{pointer-events:auto}.action{z-index:3}.action:not(:disabled):active{background:#ff8a3d44}.action span{bottom:3%}#roll:not(:disabled) span{background:#ff8a3d;color:#35200f;font-weight:800}#roll:disabled span{background:#465777}.info{top:82%;background:#163e73dc;border-radius:12px;padding:4px 6px}.piece:before{min-height:44px;min-width:44px}

/* The illustration and all its hit targets use one undistorted coordinate frame. */
#game{background:linear-gradient(110deg,#c9d5f2,#f5eced 65%,#e7e6ee)}
#flight-deck{width:min(100cqw,157.65cqh);height:auto;aspect-ratio:1024/682;left:50%;top:50%;transform:translate(-50%,-50%)}
#art{mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent)}
.piece{width:4.5%;height:7.4%;background-image:url(images/gen/gptimg_1796041384_look.jpg);background-size:var(--crop-size);border:1px solid #fffc;box-shadow:0 2px 4px #624c4940}
.piece[data-home]{background:transparent;border:none;box-shadow:none}.piece[aria-current=true]{outline:2px solid #ed965c;outline-offset:1px}.piece[data-protected]{box-shadow:0 0 0 3px #70c8e3}.piece:focus-visible{outline:3px solid #965125}
.info{top:86%;background:#fff9f1ed;color:#514c56;text-shadow:none;box-shadow:0 2px 6px #74647822}
.action,#roll{top:86%;height:8%;min-height:32px;border-radius:12px;background:#fff8ed;color:#59493d;box-shadow:0 2px 5px #6e586733;display:flex;align-items:center;justify-content:center;gap:3px}
#roll{background:#ff8a3d}.action span,.action b,#roll span{position:static;transform:none;background:none!important;color:inherit!important;padding:0;line-height:1.2}.action b{order:1;min-width:0;font-size:.85em}.action:disabled,#roll:disabled{background:#e5e1e2;color:#706a71}.action:not(:disabled):active{background:#ffd1ab}
