/* The Pit lives on its own surface. Town inputs are covered, not repurposed. */
.pit-layer[hidden],.pit-choice[hidden]{display:none}
.pit-layer{position:absolute;inset:0;z-index:75;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#100d16;color:#eadfeb;overflow:hidden;isolation:isolate}
.pit-header,.pit-footer{display:flex;gap:.6rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:.55rem .8rem;background:#171421;border-block:1px solid #352c43}
.pit-header strong{font-size:clamp(1.05rem,3.4vw,1.55rem);letter-spacing:.11em;color:#eadbef}
.pit-header small,.pit-footer{color:#bfc4cf}
.pit-header-actions{display:flex;gap:.4rem}
.pit-layer button{background:#242637;border:1px solid #626178;color:#f3e9f2;padding:.38rem .65rem;border-radius:.35rem;font:inherit;font-size:.85rem;min-height:2.25rem;cursor:pointer}
.pit-layer button:focus-visible,.pit-layer canvas:focus-visible{outline:2px solid #7fe3d5;outline-offset:2px}
.pit-layer button:disabled{opacity:.55;cursor:wait}
.pit-stage{min-width:0;min-height:0;position:relative;overflow:hidden;background:#100e18}
#pit-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:manipulation;cursor:crosshair}
.pit-layer canvas:focus-visible{outline-offset:-2px}
.pit-choice{position:absolute;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:center;z-index:1;bottom:.6rem;left:50%;translate:-50% 0;width:max-content;max-width:94%;padding:.45rem .65rem;border:1px solid #6f697b;border-radius:.35rem;background:#211a2bf2;box-shadow:0 8px 20px #000a}
.pit-choice strong{color:#eee2ec}
.pit-footer{font-size:.8rem;min-height:2.35rem}
#pit-message{color:#dcc889}
@media(max-width:600px){.pit-header,.pit-footer{padding:.35rem .45rem}.pit-header small{display:none}.pit-layer button{padding:.32rem .5rem}.pit-choice{font-size:.84rem}}
