*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#2a2328;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif}button,select{font:inherit;color:inherit;border:0;border-radius:8px;background:#eef0f3;min-height:44px;padding:8px 12px;touch-action:manipulation}button:disabled{opacity:.45}button:focus-visible,select:focus-visible{outline:3px solid #235baa;outline-offset:2px}[hidden]{display:none!important}main{max-width:480px;margin:auto;padding:6px 12px 16px}.toolbar{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:8px}.toolbar button{min-height:40px}#play-area{padding:8px;background:#172c43;border-radius:12px;color:white;box-shadow:inset 0 0 0 1px #c4a96a}.queue-label,.bay-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;min-height:25px}.queue-label span,.bay-label span{font-size:11px;color:#d4e2ed}#queue{display:flex;align-items:center;gap:4px;overflow-x:auto;min-height:43px;padding:4px 1px;scrollbar-width:thin}.person{flex:0 0 25px;display:flex;align-items:center;justify-content:center;position:relative;height:30px;border-radius:50% 50% 7px 7px;background:var(--bus);color:#142235;font-size:16px;font-weight:900;box-shadow:inset 0 3px 0 #ffffff70}.person:first-child{outline:2px solid white;outline-offset:1px}.remaining{white-space:nowrap;font-size:11px;min-width:50px}#bays{display:grid;grid-template-columns:repeat(var(--slots,4),1fr);gap:6px;padding:5px 0 8px}.bay{height:52px;border:1px dashed #9aa7b6;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#aab6c6;font-size:12px}.bay.occupied{background:var(--bus);border:2px solid #fff9;color:#142235;flex-direction:column;font-weight:800}.bay small{font-size:11px}.road{background:#2e4257;padding:5px;border-top:2px dashed #ddcc95;border-bottom:2px dashed #ddcc95;text-align:center;font-size:11px;color:#f4e8bf}#board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(4,1fr);gap:7px;padding:10px 4px;background:repeating-linear-gradient(90deg,#354d60 0,#354d60 19.5%,#546a79 19.5%,#546a79 20%);min-height:245px;aspect-ratio:1.3;border-radius:0 0 8px 8px}.cell{min-width:0;display:flex;align-items:center;justify-content:center}.bus{padding:0;width:100%;height:90%;min-height:44px;position:relative;background:linear-gradient(110deg,#fff4,var(--bus) 30%,var(--bus) 70%,#0002);border-radius:10px;border:2px solid #fff8;color:#152a3d;box-shadow:0 3px 0 #0c2035;display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;font-weight:900}.bus::before,.bus::after{content:'';position:absolute;top:28%;bottom:28%;width:3px;background:#13283d;border-radius:2px}.bus::before{left:-4px}.bus::after{right:-4px}.bus .windows{display:block;font-size:10px;line-height:8px;letter-spacing:2px;color:#183b55}.bus .direction{font-size:20px;line-height:21px}.bus .symbol{position:absolute;right:3px;top:2px;font-size:11px}.bus.ready{border-color:#fff;box-shadow:0 3px 0 #0c2035,0 0 0 1px #e9cc77}.bus.suggest{outline:3px solid #ffe78b;outline-offset:3px;animation:glow .7s ease-in-out 2}.tools{display:flex;gap:6px;margin-top:8px}.tools button{flex:1;padding:6px 3px;font-size:12px}.buddy{display:flex;gap:8px;align-items:center;background:#fff;border-radius:10px;margin-top:8px;padding:4px 8px}.buddy img{object-fit:contain;flex-shrink:0}.buddy p{font-size:13px;margin:0;line-height:1.5}#save-status{font-size:11px;color:#765d2c;margin:3px 0;min-height:0}.help{font-size:12px;padding:8px 0}.help summary{min-height:34px;cursor:pointer}.help p{line-height:1.7}.help label{display:flex;align-items:center;gap:8px;min-height:44px}.overlay{position:fixed;z-index:20;inset:0;background:#152434b8;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}.panel{background:#fff;border-radius:12px;padding:16px;width:min(100%,380px);max-height:calc(100dvh - 32px);overflow:auto;text-align:center;box-shadow:0 12px 40px #0015}.cover{width:100%;max-height:220px;object-fit:cover;border-radius:8px}.panel h2{font-size:21px;margin:12px 0 6px}.panel p{font-size:13px;line-height:1.6}.panel>button{width:100%;margin-top:8px}.panel .primary{background:#253f59;color:white;font-weight:800}.panel label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;margin-top:8px}.panel .game-cast-portraits{display:flex;justify-content:center;gap:8px;padding:4px}.cast-choice{position:relative;width:72px;height:90px;padding:0;overflow:hidden;background:#edf0f4;flex-shrink:0}.cast-choice img{width:100%;height:100%;object-fit:cover}.game-title-accessible{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes glow{50%{filter:brightness(1.25)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}body.reduce-motion *{animation:none!important;transition:none!important}@media(max-height:740px){#board{min-height:212px;aspect-ratio:1.6}.cover{max-height:155px}.buddy img{width:52px;height:52px}.toolbar button{min-height:36px}.panel{padding:12px}}
