:root{color-scheme:dark;font-family:Yu Gothic UI,Meiryo,system-ui,sans-serif;color:#edf1f4;background:#14191e;--panel: #1c242b;--line: #34434d;--muted: #a8b5bd;--copper: #f2bf8d;--blue: #7cb9ff;--green: #8cd9af}*{box-sizing:border-box}body{margin:0;min-width:330px}button,input,textarea,select{font:inherit}button,input,textarea,select{color:inherit;background:#202b34;border:1px solid var(--line);border-radius:.55rem}button{min-height:2.45rem;padding:.48rem .75rem;cursor:pointer}button:hover:enabled{border-color:var(--copper);background-color:#33342f}button:disabled{cursor:default;opacity:.55}:focus-visible{outline:2px solid #f5cd9f;outline-offset:3px}button.primary{background:var(--copper);color:#24190f;border-color:var(--copper);font-weight:700}button.primary:hover:enabled{background:#ffdab7}small,.muted,.label{color:var(--muted)}h1,h2,p{margin:0}h1{font-size:1.4rem;font-weight:750}h2{font-size:1.08rem}.topbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem clamp(.75rem,3vw,1.8rem);border-bottom:1px solid var(--line);background:#192026}.brand{display:flex;align-items:center;gap:.8rem;line-height:1.25;text-align:left;background:transparent;border:0;padding:0;font-weight:750}.brand small{display:block;margin-top:.18rem;font-weight:500}.brand-mark{width:2.32rem;height:2.32rem;display:grid;place-items:center;color:var(--copper);background:#342d26;border:1px solid #6b5239;border-radius:.65rem;font-size:1.5rem}.identity,.actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.identity{justify-content:flex-end;font-size:.85rem;color:var(--muted)}.identity button{min-height:2rem}main{max-width:67rem;margin-inline:auto;padding:.9rem clamp(.65rem,2.5vw,1.4rem) 2.6rem;display:grid;gap:.8rem}.demo-note{color:#d2beaa;font-size:.84rem;padding:.22rem .12rem}.panel{background:var(--panel);border:1px solid var(--line);border-radius:.85rem;padding:.95rem;min-width:0}.intro{padding:clamp(1rem,5vw,2.6rem);display:grid;gap:1rem;justify-items:start}.slot-section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.slot-card{display:grid;text-align:left;align-content:start;gap:.22rem;min-width:0;min-height:4.75rem}.slot-card strong{color:var(--copper)}.slot-card.chosen{border-color:var(--copper);background:#332e29}.slot-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.hint{padding-block:.25rem}.run-head,.checkpoint,.map-toolbar,.map-heading,.map-foot,.join-banner{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.run-head h1{overflow-wrap:anywhere}.label{font-size:.88rem;margin-bottom:.15rem}.checkpoint{border-color:#63503c;background:#252827}.checkpoint h2{color:var(--copper);margin-bottom:.32rem}.checkpoint-note{flex-basis:100%;white-space:pre-wrap;overflow-wrap:anywhere}.map-panel{display:grid;gap:.85rem}.map-heading{padding-inline:.28rem}.map-heading span{color:var(--muted);font-size:.9rem}.floor-tabs{display:flex;gap:.3rem;flex-wrap:wrap}.floor-tabs button{display:grid;justify-items:center;gap:.16rem;min-width:2.7rem;padding:.38rem .32rem;line-height:1.14}.floor-count{color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap}.floor-tabs button[aria-pressed=true] .floor-count{color:#f1d0af}.floor-tabs button[aria-pressed=true],.route-tabs button[aria-pressed=true]{border-color:var(--copper);color:var(--copper);background:#342c26}.board{width:min(100%,36rem);margin:0 auto;position:relative;aspect-ratio:1;background-color:#151e24;border-radius:.6rem}.connections{position:absolute;inset:0;width:100%;height:100%}.connections polyline{fill:none;stroke-linecap:round;stroke-linejoin:round}.map-trap{fill:none;stroke:#f9a594;stroke-width:.3;stroke-linecap:round}.passage{stroke:#71808b;stroke-width:.5}.blue-line{stroke:var(--blue);stroke-width:.68;transform:translate(-.65px,-.6px)}.green-line{stroke:var(--green);stroke-width:.68;transform:translate(.65px,.6px)}.tile{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:.45rem;padding:.1rem;min-height:0;background:#27343d;line-height:1.2}.tile .coordinate{font-weight:740;font-size:clamp(.73rem,2.6vw,1rem)}.tile .feature{font-size:clamp(.57rem,2.15vw,.78rem);max-width:100%;color:#dcb28c;overflow-wrap:anywhere}.tile.route-blue{border-color:#5985a7}.tile.route-green{border-color:#5c9380}.tile.done{background:#2b433b}.tile.faded{opacity:.58}.tile.selected,.tile.next-tile{outline:2px solid var(--copper);outline-offset:1px;opacity:1}.tile.blocked{background:#192228}.tile.blocked .coordinate{text-decoration:line-through;color:var(--muted)}.check,.next-mark{position:absolute;font-weight:800;right:.18rem;top:.08rem;font-size:.75rem;color:var(--green)}.next-mark{top:auto;right:auto;bottom:.1rem;left:.22rem;color:var(--copper)}.tile.save-tile{border-color:#d8bcf5;opacity:1}.save-mark{position:absolute;right:.1rem;bottom:.08rem;padding-inline:.12rem;border-radius:.2rem;color:#241733;background:#d8bcf5;font-size:clamp(.55rem,1.2vw,.7rem);font-weight:750}.map-foot{min-height:2.25rem;font-size:.88rem;color:var(--muted)}.join-banner{padding:.6rem .75rem;color:var(--copper);background:#302b25;border-radius:.5rem}.history{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.notice{background:#3c2924;color:#f0c5b3;border:1px solid #8a5b4f;border-radius:.55rem;padding:.6rem .7rem}.notice button{margin-left:.5rem;min-height:1.8rem;padding:.2rem .5rem}.overlay{position:fixed;z-index:1;inset:0;background:#090d11d6;display:grid;place-items:center;padding:.75rem}.modal{width:min(100%,31rem);max-height:96vh;overflow:auto}.modal form,.pause-panel form{margin-top:.9rem;display:grid;gap:.72rem}.modal label,.pause-panel label{display:grid;gap:.3rem;min-width:0}input,select,textarea{width:100%;min-height:2.45rem;padding:.5rem}@media(max-width:33rem){.topbar{padding:.65rem}.identity{gap:.3rem}.slot-card{padding:.38rem;font-size:.83rem}.map-panel{padding:.52rem}.floor-tabs button{min-width:2.58rem}}.map-content{display:grid;gap:.9rem;align-items:start}.map-content.with-room-records{grid-template-columns:minmax(0,1fr) minmax(13rem,.42fr)}.map-content.with-pause-panel{grid-template-columns:minmax(0,1fr) minmax(17rem,.55fr)}.map-side{display:grid;gap:.9rem;min-width:0}.pause-panel{border-color:#63503c}.pause-panel h2{color:var(--copper)}.pause-hint{font-size:.84rem}.room-records{padding:.9rem;min-width:0;background:#222c33;border:1px solid var(--line);border-radius:.7rem}.room-records h3{margin:0 0 .56rem;font-size:1rem}.room-record-location{margin-bottom:.55rem;color:var(--copper)}.room-records fieldset{display:grid;gap:.55rem;border:0;margin:0;padding:0;min-width:0}.room-records label{display:flex;gap:.5rem;align-items:center;min-height:2rem;cursor:pointer}.room-records input[type=checkbox]{flex:0 0 auto;width:1.15rem;height:1.15rem;min-height:0;margin:0;accent-color:var(--copper)}.objective-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:.08rem;max-width:100%}.objective-badge{color:#c8d5de;background:#172229;border-radius:.22rem;padding-inline:.16rem;font-size:clamp(.55rem,1.65vw,.75rem);font-weight:750;white-space:nowrap}.objective-badge[data-checked=true]{color:#a8ebc4;background:#143e2d}.tile.always-show-objective.faded,.tile.always-show-objective:disabled:not(.blocked){opacity:1}.tile.always-show-objective.faded .coordinate,.tile.always-show-objective.faded .feature{opacity:.72}.tile.always-show-objective .feature{overflow:hidden;max-width:96%;white-space:nowrap;text-overflow:ellipsis}@media(max-width:38rem){.tile.always-show-objective .coordinate{font-size:.66rem}.tile.always-show-objective .feature{font-size:.54rem}}@media(max-width:47rem){.map-content.with-room-records,.map-content.with-pause-panel{grid-template-columns:minmax(0,1fr)}}.countdown{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}.countdown-label{font-size:.75rem;color:var(--muted)}.countdown-time{min-width:3.15rem;text-align:center;font-size:1.15rem;font-variant-numeric:tabular-nums;font-weight:760;color:#f2dac6}.countdown-time[data-ended=true],.countdown-ended{color:#f4b49f}.countdown button{min-height:1.85rem;padding:.25rem .45rem;font-size:.78rem}.countdown-ended:empty{display:none}.countdown-ended{font-size:.75rem}
