@font-face{font-family:Arcade;src:url("assets/arcade.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Akiba Signage";src:url("assets/akiba-signage.woff") format("woff");font-weight:700 900;font-style:normal;font-display:swap}
:root{color-scheme:dark;--ivory:#faf3d8;--ink:#233c31;--mint:#a8d7b3;--page:#183c33;--amber:#ffd371;--orange:#fd9045;--pixel:Arcade,ui-monospace,monospace;--jp:"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,system-ui,sans-serif}
*{box-sizing:border-box}html{background:var(--page);min-height:100%;-webkit-text-size-adjust:100%}body{margin:0;min-height:100svh;color:var(--ivory);font-family:var(--jp);background:radial-gradient(ellipse at 50% 38%,#29504455 0%,#12352e30 79%),radial-gradient(circle at 1px 1px,#a5c8a516 .85px,transparent 1.12px);background-size:auto,8px 8px;display:flex;align-items:center;justify-content:center}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #ffbc55;outline-offset:4px}button:disabled{cursor:default}.symbols{display:none}.icon{display:inline-block;width:24px;height:24px;fill:currentColor;flex-shrink:0;vertical-align:middle;shape-rendering:crispEdges}
.machine{width:min(1280px,calc(100% - clamp(32px,7.3vw,120px)));margin:clamp(12px,3.2vh,34px) auto}.mast{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 2px clamp(14px,2.3vh,24px)}.brand,.utilities,.best,.tool,.hud,.hud-info,.readout,.location,.deck,.move-control,.mission,.action-control,.foot,.key-hints,.key-pack,.key-action,.touch-hint,#pause{display:flex;align-items:center}
.brand{gap:16px}.brand-mark{width:72px;height:61px;position:relative;display:grid;place-items:center;color:#ffa15c;filter:drop-shadow(0 4px 0 #0b2a24)}.brand-mark .icon{width:54px;height:53px;transform:skew(-5deg);margin-left:12px}.speed-lines,.speed-lines:before,.speed-lines:after{position:absolute;display:block;content:"";height:4px;background:#efa158;left:0;top:29px;width:14px}.speed-lines:before{width:10px;left:4px;top:-8px}.speed-lines:after{width:9px;left:2px;top:8px}
.brand-title{display:flex;flex-direction:column;gap:7px}.brand-title img{display:block;width:clamp(205px,20.8vw,310px);height:auto}.brand-title span{font-size:.73rem;font-weight:800;letter-spacing:.19em;color:#bed1b1}.utilities{gap:9px}.best{gap:11px;padding-right:25px;margin-right:11px;border-right:1px solid #63827080}.best>.icon{color:#ffd07b;width:27px;height:27px}.micro,.printed,.latin,.deck-label small,.best strong,.digits{font-family:var(--pixel);font-weight:400}.micro{font-size:11px;line-height:1.4;letter-spacing:.06em;display:block}.best .micro{color:#bed6b7;font-size:10px;margin-bottom:2px}.best strong{font-size:20px;line-height:1.25;color:var(--ivory)}.tool{width:44px;height:44px;justify-content:center;border:2px solid #718f74;border-radius:7px;color:#e5e9c9;box-shadow:0 3px 0 #102f29,inset 0 0 0 2px #2c4c3f;background:#315749}.tool .icon{width:19px;height:19px}.tool:hover,#pause:hover{background:#456a55;color:white}.tool:active,#pause:active{transform:translateY(2px)}.tool[aria-pressed="false"]{color:#b7c6b0}
.cabinet{isolation:isolate;position:relative;background:linear-gradient(130deg,#e8e5cb 0,#d9dac0 45%,#d4d6bb 100%);border:2px solid #efedd7;border-bottom:5px solid #a5ad95;border-radius:21px;padding:12px 12px 0;box-shadow:0 4px 0 #6e8471,0 9px 0 #112d26,0 18px 34px #0c271d77}.screen{isolation:isolate;position:relative;overflow:hidden;background:#cabb99;border:5px solid #2c4034;border-top-color:#24382e;box-shadow:0 2px 0 #fbf6db,inset 0 2px 2px #182a20;border-radius:10px;height:clamp(340px,min(44vw,62svh),635px)}#scene{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;z-index:1;inset:16px 17px auto;justify-content:space-between;pointer-events:none;align-items:flex-start}.hud-panel,.location,.minimap{background:#193c30f0;color:var(--ivory);border:1px solid #a5aa856b;box-shadow:0 3px 0 #182d2263,inset 0 1px 0 #e5e2bb29;border-radius:5px}.hud-panel{padding:11px 15px 10px}.hud .micro{color:#d6e5c3;font-size:10px;letter-spacing:.11em;line-height:1.35;margin-bottom:4px}.hud-info,.readout{gap:11px}.digits{display:block;white-space:nowrap;font-size:clamp(21px,2.0vw,30px);line-height:1.12;letter-spacing:.02em}.time-panel{min-width:157px;padding:10px 14px 8px}.timer-icon{color:#ffce6a;width:29px;height:32px}.time-track{height:3px;background:#65735b;margin-top:8px;overflow:hidden}.time-track b{display:block;height:100%;width:100%;background:#f9bc5c;transition:width .3s}.time-panel.urgent{border-color:#fb9467}.urgent .digits{color:#ffab78}.urgent .time-track b{background:#ff8b63}.load-panel{display:flex;gap:17px;padding:12px 17px}.load-panel .digits{font-size:clamp(20px,1.8vw,27px)}.coin-icon{color:#f5cc6b;width:26px;height:26px}.box-icon{color:#b3d4b2;width:24px;height:24px}.item-readout{border-left:1px dashed #82927a;padding-left:17px}.location{position:absolute;left:17px;bottom:16px;gap:9px;line-height:1;padding:10px 12px;font-size:12px;font-weight:700;letter-spacing:.06em}.location .icon{width:13px;height:14px;color:#ffd47e}.location .latin{font-size:12px;letter-spacing:.02em;color:#f6e2a8}.location i{align-self:stretch;width:1px;background:#879c7b66}.minimap{position:absolute;right:17px;bottom:16px;padding:5px 7px;border-color:#eff0c188}.minimap:before{content:"";position:absolute;top:-3px;left:9px;width:17px;height:3px;background:#c5d4a8}#map{display:block;width:53px;height:72px;image-rendering:pixelated}
.deck{position:relative;min-height:122px;padding:12px clamp(30px,4.8vw,83px);gap:24px;justify-content:space-between;color:var(--ink);user-select:none;-webkit-user-select:none}.screw{position:absolute;bottom:13px;width:9px;height:9px;border-radius:50%;background:#b2ba9f;box-shadow:inset 0 1px 2px #839078,0 1px 0 #faf7d8}.screw:after{content:"";position:absolute;height:1.5px;top:4px;left:2px;width:5px;background:#75836b;transform:rotate(-38deg)}.screw-left{left:2px}.screw-right{right:2px}.move-control,.action-control{gap:clamp(12px,1.8vw,27px)}.deck-label{display:flex;flex-direction:column;gap:2px;line-height:1.3;font-size:16px;font-weight:900;white-space:nowrap;letter-spacing:.07em}.deck-label small,.printed{font-size:10px;letter-spacing:.13em;line-height:1.5}.deck-label small{color:#586f58}.dpad{position:relative;width:103px;height:102px;isolation:isolate;background:linear-gradient(150deg,#aeb7a0,#d0d6be 58%,#ececd4);border-radius:50%;box-shadow:inset 0 2px 2px #818b74,0 2px #f7f3d8;touch-action:none;flex:none}.pad-shadow,.pad-face{position:absolute;inset:9px 8px 7px;clip-path:polygon(32% 0,68% 0,68% 31%,100% 31%,100% 68%,68% 68%,68% 100%,32% 100%,32% 68%,0 68%,0 31%,32% 31%);background:#24372c}.pad-face{inset:8px 9px 13px;background:linear-gradient(135deg,#5c7060,#435b4c 55%,#405947);filter:drop-shadow(0 1px 0 #aaa)}.dpad button{background:transparent;padding:0;border:0;position:absolute;z-index:2;display:grid;place-items:center;color:#d8e1c5;touch-action:none}.dpad button[data-dir="up"]{top:0;left:31%;height:37%;width:38%}.dpad button[data-dir="down"]{bottom:2%;left:31%;height:37%;width:38%}.dpad button[data-dir="left"]{left:0;top:30%;width:37%;height:38%}.dpad button[data-dir="right"]{right:0;top:30%;width:37%;height:38%}.dpad button i{display:block;width:13px;height:9px;background:currentColor;clip-path:polygon(38% 0,62% 0,62% 23%,78% 23%,78% 48%,100% 48%,100% 100%,0 100%,0 48%,22% 48%,22% 23%,38% 23%)}.dpad [data-dir="down"] i{transform:rotate(180deg)}.dpad [data-dir="left"] i{transform:rotate(-90deg)}.dpad [data-dir="right"] i{transform:rotate(90deg)}.dpad button.pressed{color:#ffb36e}.pad-center{position:absolute;left:43%;top:40%;height:15%;width:15%;border-radius:50%;background:#3d5546;box-shadow:inset 0 2px 1px #314637,0 1px #71816c}.mission{gap:15px;background:#c9cfb4;border-top:2px solid #b0bba2;border-left:1px solid #b0bba2;border-radius:5px;padding:11px 21px 11px 17px;box-shadow:0 1px 0 #f5f0d9;max-width:45%;position:relative}.mission:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 2px,#777f6606 2px 3px)}.mission-icon{color:#4f684d}.mission-icon .icon{width:28px;height:28px}.printed{color:#52684f}.mission p{margin:1px 0 0;font-size:clamp(13px,1.12vw,17px);font-weight:800;line-height:1.5;letter-spacing:.035em}.action-control{border:0;background:transparent;text-align:right;color:var(--ink);padding:0;touch-action:manipulation;user-select:none}.button-well{width:88px;height:88px;padding:6px;display:grid;place-items:stretch;background:linear-gradient(150deg,#99a38a,#c2c8af 60%,#d6d9bd);box-shadow:inset 0 2px 2px #839178,0 2px 0 #f2efd7;border-radius:50%}.button-cap{display:grid;place-items:center;color:#fff1c7;border:2px solid #a76038;border-top-color:#de8f53;background:linear-gradient(145deg,#ffac60,#f59044 85%);border-radius:50%;box-shadow:inset 0 3px 0 #ffc685,0 5px 0 #a35b37,0 7px 1px #758069;height:calc(100% - 5px);transition:transform .08s,box-shadow .08s}.button-cap .icon{width:30px;height:30px;filter:drop-shadow(0 2px 0 #bd693a)}.action-control:hover .button-cap{background:#ffa357}.action-control:active .button-cap,.action-control.pressed .button-cap{transform:translateY(4px);box-shadow:inset 0 2px #ffc686,0 1px 0 #a35b37}.action-control:disabled{opacity:.62}
.foot{justify-content:space-between;gap:10px;margin:18px 6px 0;color:#c5d3bb;font-size:12px;line-height:1.3;font-weight:600}.key-hints,.key-action,.key-pack{gap:4px}.key-hints>.icon{width:17px;height:17px;margin-right:6px;color:#a9bea3}.key-pack{margin-right:4px}.key-hints .slash{padding:0 3px;color:#92a78b}kbd{font-family:ui-monospace,monospace;font-size:11px;line-height:16px;min-width:17px;border:1px solid #76927c88;border-bottom-width:2px;text-align:center;padding:0 3px;border-radius:3px;color:#d1dcc5;background:#355547;display:inline-block}.key-action{margin-left:13px;gap:7px}.key-action kbd{font-size:10px;letter-spacing:.05em}.touch-hint{display:none}#pause{gap:7px;border:1px solid #728e745c;background:#2d5041;border-radius:5px;font-size:12px;font-weight:700;padding:5px 9px;color:#d3dec6}#pause .icon{width:12px;height:12px}#pause kbd{line-height:14px;margin-left:4px}#pause:disabled{opacity:.5}
#notify{position:absolute;bottom:19px;left:50%;transform:translateX(-50%);padding:8px 15px;background:#224839f0;border:1px solid #c6d9a9;border-radius:5px;color:#fff6d8;white-space:nowrap;box-shadow:0 2px 0 #132c1d88;font-size:14px;font-weight:800}#notify[data-kind="drop"]{background:#784832}
.dialog{position:fixed;inset:0;padding:0;margin:auto;background:#eee9d2;color:var(--ink);width:min(390px,calc(100vw - 38px));max-height:calc(100svh - 24px);border:3px solid #93a590;border-bottom:5px solid #859680;border-radius:12px;box-shadow:0 7px 0 #112e26,0 19px 60px #07191188;text-align:left;color-scheme:light}.dialog::backdrop{background:#102e27a9;backdrop-filter:blur(2px)}.dialog-content{position:relative;padding:27px 26px 24px}.dialog-close{display:flex;align-items:center;justify-content:center;line-height:1;position:absolute;right:12px;top:12px;border:1px solid #98aa90;border-radius:4px;background:#d1d7be;color:#445e47;width:33px;height:33px;padding:8px}.dialog-close .icon{display:block;width:14px;height:14px}.dialog-tag{display:flex;gap:8px;align-items:center;font:11px var(--pixel);letter-spacing:.08em;color:#536c53}.dialog-tag .icon{width:17px;height:17px}.dialog h2{font-size:25px;margin:11px 0 19px;line-height:1.3;letter-spacing:.03em}.dialog h3{margin:0 0 3px;font-size:16px}.dialog p{font-size:14px;line-height:1.65;margin:0}.rules{list-style:none;padding:0;margin:0 0 22px;display:grid;gap:14px}.rules li{display:flex;gap:10px;align-items:flex-start}.rules .step{background:#d2d9bf;color:#4c644d;font:12px var(--pixel);padding:7px 5px;border-radius:3px;min-width:30px;text-align:center}.dialog-btn{width:100%;color:#fff7de;background:#385e48;border:1px solid #254535;box-shadow:0 3px 0 #243c31;border-radius:5px;padding:11px 12px;font-weight:800;margin-top:12px}.dialog-btn:hover{filter:brightness(1.08)}.dialog-btn.secondary{background:transparent;color:#46604b;box-shadow:none;border:1px solid #98aa91}.receipt{padding:12px 0;border-block:1px dashed #9baa90;margin:14px 0}.receipt div{display:flex;justify-content:space-between;align-items:center;margin:4px 0;font-size:14px}.receipt strong{font:23px var(--pixel);color:#3a5841}.receipt .receipt-total{margin-top:12px;padding-top:10px;border-top:1px dotted #a3af96;font-weight:800}.dialog [hidden],[hidden]{display:none!important}
@media(min-width:1600px){.screen{height:min(63svh,635px)}}
@media(max-width:850px){.machine{width:calc(100% - 32px)}.deck{gap:12px;padding:9px 22px;min-height:106px}.dpad{width:89px;height:89px}.button-well{width:76px;height:76px}.mission{padding:8px 12px;gap:8px}.mission-icon .icon{width:22px;height:22px}.brand-mark{width:58px}.brand{gap:10px}.best{padding-right:15px;margin-right:4px}.hud-panel{padding:9px 12px}.time-panel{min-width:142px}.timer-icon{width:24px;height:26px}.load-panel{gap:12px}.item-readout{padding-left:12px}.deck-label{font-size:14px}}
@media(max-width:600px) and (orientation:portrait){body{display:block}.machine{width:100%;margin:0;min-height:100svh;display:flex;flex-direction:column;padding:max(12px,env(safe-area-inset-top)) 8px max(7px,env(safe-area-inset-bottom))}.mast{gap:5px;margin:0 4px 12px}.brand{gap:5px}.brand-mark{width:39px;height:41px}.brand-mark .icon{width:33px;height:34px;margin-left:6px}.speed-lines,.speed-lines:before,.speed-lines:after{height:2px;width:8px;top:21px;left:0}.speed-lines:before{top:-5px;left:3px;width:6px}.speed-lines:after{top:5px;width:5px}.brand-title{gap:4px}.brand-title img{width:clamp(123px,35vw,202px)}.brand-title span{font-size:9px;letter-spacing:.10em}.utilities{gap:5px}.tool{width:34px;height:35px;border-radius:5px}.tool .icon{width:15px;height:15px}.best{border:0;padding:0;margin-right:2px;gap:4px}.best>.icon{width:15px;height:16px}.best .micro{font-size:7px}.best strong{font-size:13px}.cabinet{flex:1;display:flex;flex-direction:column;border-radius:13px;padding:6px 6px 0;border-bottom-width:4px}.screen{flex:1;min-height:270px;height:auto;border-width:3px;border-radius:6px}#scene{position:absolute;inset:0}.hud{inset:8px 7px auto}.hud-panel{border-radius:4px;padding:7px 8px}.hud-info,.readout{gap:6px}.hud .micro{font-size:8px;margin-bottom:3px;letter-spacing:.03em}.digits,.load-panel .digits{font-size:17px}.timer-icon{width:19px;height:22px}.time-panel{min-width:auto}.time-track{height:2px;margin-top:5px}.load-panel{gap:8px}.item-readout{padding-left:8px}.coin-icon,.box-icon{width:16px;height:18px}.location{left:7px;bottom:9px;padding:7px 8px;gap:6px;font-size:10px}.location .latin{font-size:10px}.location .icon{width:10px;height:11px}.minimap{right:7px;bottom:9px;padding:4px}.minimap canvas{width:34px;height:48px}.deck{min-height:142px;display:grid;grid-template-columns:auto 1fr auto;gap:5px;padding:9px 11px 10px}.move-control,.action-control{flex-direction:column;gap:3px}.dpad{width:90px;height:91px}.deck-label{font-size:12px;gap:0;text-align:center;letter-spacing:.04em}.deck-label small{display:none}.mission{max-width:100%;justify-self:center;align-self:center;padding:7px 8px;gap:4px;flex-direction:column;align-items:flex-start;margin:0 4px}.mission-icon{display:none}.printed{font-size:9px}.mission p{font-size:12px;line-height:1.65;max-width:11em}.action-control{flex-direction:column-reverse;align-self:center;margin-top:6px;gap:6px}.button-well{width:70px;height:70px}.button-cap .icon{width:25px;height:25px}.screw{bottom:6px;width:7px;height:7px}.screw:after{top:3px;left:1px}.foot{margin:13px 6px 0;min-height:29px}.key-hints{display:none}.touch-hint{display:flex;gap:7px;font-size:11px}.touch-hint .icon{width:14px;height:14px}#pause{min-height:32px;padding:4px 12px}#pause kbd{display:none}#notify{bottom:70px;font-size:13px}.dialog-content{padding:24px 21px}}
@media(max-height:570px) and (orientation:landscape){body{display:block}.machine{width:min(100%,1200px);margin:0 auto;height:100svh;display:flex;flex-direction:column;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.mast{margin:0 3px 4px}.brand-mark{width:37px;height:32px}.brand-mark .icon{width:29px;height:29px}.speed-lines{transform:scale(.6);top:15px}.brand-title img{width:138px}.brand-title span{display:none}.tool{width:33px;height:30px;border-radius:4px}.tool .icon{width:14px;height:14px}.best{padding-right:10px;gap:6px}.best>.icon{width:16px;height:16px}.best .micro{font-size:7px;margin:0}.best strong{font-size:12px;display:block}.cabinet{flex:1;display:flex;flex-direction:column;border-radius:10px;padding:4px 5px 0;min-height:0;border-bottom-width:2px;box-shadow:0 2px #788d78}.screen{flex:1;height:auto;min-height:0;border-width:2px;border-radius:5px}#scene{position:absolute;inset:0}.deck{padding:3px 8%;min-height:0;height:59px;flex-shrink:0}.dpad{height:56px;width:57px}.pad-shadow{inset:3px}.pad-face{inset:3px 3px 6px}.dpad button i{width:9px;height:7px}.button-well{height:49px;width:49px;padding:3px}.button-cap .icon{width:19px;height:19px}.button-cap{height:calc(100% - 3px);box-shadow:inset 0 2px #ffc685,0 3px #a35b37}.mission{padding:3px 10px}.mission-icon .icon{height:18px;width:18px}.deck-label,.mission p{font-size:12px}.printed,.deck-label small{font-size:8px}.hud{inset:7px 8px auto}.hud-panel{padding:5px 8px}.hud .micro{font-size:7px;margin-bottom:2px}.time-panel{min-width:101px}.digits,.load-panel .digits{font-size:16px}.time-track{height:2px;margin-top:3px}.timer-icon,.coin-icon,.box-icon{width:15px;height:17px}.readout,.hud-info{gap:5px}.location{left:8px;bottom:7px;padding:5px 7px;font-size:9px}.location .latin{font-size:10px}.location .icon{height:10px;width:10px}.minimap{right:8px;bottom:7px;padding:2px 4px}.minimap canvas{width:30px;height:43px}.foot{margin:4px 3px 0;min-height:18px;font-size:10px}.key-hints{display:none}.touch-hint{display:flex;gap:5px}.touch-hint .icon{width:10px;height:10px}#pause{font-size:10px;padding:2px 6px}#pause kbd{display:none}.dialog-content{padding:14px 21px}.dialog h2{margin:6px 0 8px;font-size:19px}.rules{gap:6px;margin-bottom:7px}.rules p{font-size:12px}.dialog-btn{padding:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
@media(max-height:540px) and (max-width:1000px) and (orientation:landscape){
  .cabinet{padding:3px 5px}.screen{margin:0 90px 0}.deck{position:absolute;inset:0;height:auto;padding:0 4px;pointer-events:none}.move-control,.action-control{pointer-events:auto;flex-direction:column;gap:5px}.action-control{flex-direction:column-reverse;margin-right:7px}.dpad{width:84px;height:84px}.pad-shadow{inset:6px 5px 4px}.pad-face{inset:5px 6px 9px}.dpad button i{width:12px;height:8px}.button-well{width:67px;height:67px;padding:5px}.button-cap .icon{width:25px;height:25px}.mission{display:none}.screw{bottom:8px}.screw-left{left:8px}.screw-right{right:8px}.deck-label{text-align:center}.hud-panel{padding:7px 8px}.foot{margin-top:5px}
}
@media(max-height:540px) and (max-width:640px) and (orientation:landscape){.screen{margin:0 69px}.dpad{width:65px;height:65px}.button-well{width:54px;height:54px}.action-control{margin-right:4px}}
#mobile-menu,.stick-field,.stick-knob{display:none}
.minimap{cursor:zoom-in}.minimap:hover{border-color:#e8e9b9}#map{width:70px;height:74px}
.floor-plan{margin:10px 0 13px;padding:8px;background:#244637;border:2px solid #53735b;border-radius:7px;display:flex;justify-content:center}.floor-plan canvas{display:block;width:auto;height:min(36svh,285px);max-width:100%;object-fit:contain}
.map-key{display:flex;flex-wrap:wrap;gap:4px 13px;font-size:12px;font-weight:750;color:#49624e;align-items:center}
.map-key span{display:inline-flex;align-items:center;gap:5px}.map-key i{font-style:normal;width:9px;height:9px;display:inline-block}.key-you{background:#62beaa;clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%)}.key-goods{background:#d3983c;border-radius:50%}.key-rare{background:#d3983c;transform:rotate(45deg)}.key-goal{background:repeating-conic-gradient(#4e7058 0 25%,#f9efc9 0 50%) 0/6px 6px;outline:1px solid #6d886d}
.menu-settings{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.menu-settings button{flex:1;min-height:43px;background:#dce1c7;border:1px solid #a5b29a;border-radius:4px;color:#385640;font-size:13px;font-weight:700;padding:6px 8px}
.dialog-content .menu-score{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px}.menu-score span{font-size:13px}.menu-score strong{font:17px var(--pixel)}.menu-info{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dialog .menu-info button{padding:8px}.map-paused{font-size:12px;color:#5a705b}

#load-plan{pointer-events:none;position:absolute;z-index:4;right:16px;bottom:15px;width:128px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 7px;background:#1d3c32f5;border:1px solid #cfcc9d;border-radius:8px;box-shadow:0 3px 12px #15372955;color:#f9edd4}
#load-plan strong{font-size:12px}#load-map{display:block;width:109px;height:88px}#load-caption{font-size:11px;color:#ffda8c}
@media (pointer: coarse), (max-width: 700px) and (orientation: portrait), (max-height: 540px) and (orientation: landscape) {
  #load-plan{right:var(--game-right);bottom:calc(var(--game-bottom) + var(--action-size) + 39px)}
}
.scene-tools{position:absolute;z-index:2;top:99px;left:17px;display:flex;align-items:center;gap:6px}
.scene-tools button{min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border:1px solid #c6d2aa94;border-radius:5px;background:#203f35f4;box-shadow:inset 0 1px #e9ecd12b,0 2px 3px #172d224d;color:#fff1cb;font-size:13px;font-weight:750;letter-spacing:.025em;touch-action:manipulation;white-space:nowrap}
.scene-tools button:hover,.scene-tools button:focus-visible{background:#3a5b45}
.scene-tools .icon{width:17px;height:17px;color:#eac98a}
#stage-difficulty{border-radius:3px;padding:2px 4px;background:#435b45;font-size:10px;color:#fce8b7}
.scene-tools .stage-short{display:none}
#view-button[aria-pressed="true"] .icon{color:#a4e6bc}
.dialog[data-page="stages"]{width:min(440px,calc(100vw - 32px))}
.stage-list{display:grid;gap:8px}
.stage-option{position:relative;display:grid;grid-template-columns:73px 1fr auto;align-items:center;gap:11px;width:100%;padding:8px 10px 8px 8px;border:1px solid #a6b29b;border-radius:6px;background:#e2e5cc;text-align:left;color:#2b4936;box-shadow:0 1px #c3ccb4}
.stage-option[aria-pressed="true"]{border:2px solid #517156;background:#d5e2c5;padding:7px 9px 7px 7px}
.stage-option canvas{display:block;width:73px;height:58px;background:#244638;border-radius:4px}
.stage-info{display:flex;min-width:0;flex-flow:column;align-items:flex-start;gap:3px}
.stage-meta{display:flex;gap:7px;align-items:center;font-size:12px;color:#4b6352}
.stage-meta b{font-size:11px;border-radius:3px;padding:1px 5px;background:#f5f1d9;border:1px solid #bac4a6}
.stage-info strong{font-size:16px;line-height:1.25}.stage-info small{font-size:12px;line-height:1.4;color:#45634e}
.stage-selector-dot{height:14px;width:14px;border-radius:50%;border:2px solid #90a38f}
.stage-option[aria-pressed="true"] .stage-selector-dot{border-color:#436a50;background:#436a50;box-shadow:inset 0 0 0 2px #dde7cf}
.stage-dialog-note{margin-top:11px!important;color:#53694f;font-size:12px!important}
.dialog .menu-score{gap:10px}
@media(max-width:380px){.stage-option{grid-template-columns:55px 1fr 12px;gap:7px}.stage-option canvas{width:55px;height:48px}.stage-info strong{font-size:15px}}
@media(max-height:540px) and (orientation:landscape){.dialog[data-page="stages"]{width:min(710px,94vw)}.stage-list{grid-template-columns:repeat(3,1fr)}.stage-option,.stage-option[aria-pressed="true"]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}.stage-option canvas{height:42px;width:58px}.stage-info{order:2;width:100%}.stage-info small{font-size:11px}}
.lang-tool{width:auto;min-width:44px;padding:0 8px;font-size:13px;font-weight:750}
html:lang(en) .deck-label small{display:none}
.key-people{background:#5f91b8;border-radius:50% 50% 20% 20%}
.dialog[data-page="stages"]{width:min(510px,calc(100vw - 28px))}
.dialog[data-page="stages"] h2{padding-right:30px}
.stage-option,.stage-option[aria-pressed="true"]{grid-template-columns:84px minmax(0,1fr) 36px 12px;gap:10px}
.shop-art{width:100%;aspect-ratio:240/184;display:block;border-radius:4px;background:var(--shop-accent) url("assets/store-goods.webp") 0 50% / 400% 100% no-repeat}
[data-shop="furniture"] .shop-art{background-position-x:33.3333%}
[data-shop="electronics"] .shop-art{background-position-x:66.6667%}
[data-shop="variety"] .shop-art{background-position-x:100%}
.stage-option canvas{width:36px;height:38px;background:#294738;opacity:.89}
.stage-option[aria-pressed="true"]{background:#d9e3c8;border-color:#4b6a51}
.stage-info strong{overflow-wrap:anywhere}
.stage-meta b{border-left:3px solid var(--shop-accent)}
@media(max-width:450px){
  .stage-option,.stage-option[aria-pressed="true"]{grid-template-columns:68px minmax(0,1fr) 12px;gap:8px}
  .stage-option canvas{display:none}.stage-info small{line-height:1.28}
}
@media(max-height:540px) and (orientation:landscape){
  .dialog[data-page="stages"]{width:min(730px,94vw)}
  .stage-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .stage-option,.stage-option[aria-pressed="true"]{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:7px}
  .stage-option canvas,.stage-selector-dot{display:none}
  .stage-info{order:0}.stage-info small{font-size:11px}.stage-info strong{font-size:14px}
}
.browsing-shelf .mission{display:none}
.shelf-picker{
  display:flex;align-items:stretch;flex:0 1 320px;min-width:0;min-height:58px;
  padding:3px;border:1px solid #687e61;border-radius:7px;background:#354e3d;
  box-shadow:0 2px 0 #29432f,inset 0 1px #8c9c7b;isolation:isolate
}
.shelf-picker button{
  flex:0 0 44px;display:grid;place-items:center;min-width:44px;min-height:44px;
  padding:0;border:0;border-radius:4px;background:#354e3d;color:#fff3d0
}
.shelf-picker button:hover,.shelf-picker button:focus-visible{background:#4b694e}
.shelf-picker button:active{background:#284332}
.shelf-picker button span{width:10px;height:10px;border-top:3px solid currentColor;border-right:3px solid currentColor}
#shelf-prev span{transform:rotate(-135deg)}#shelf-next span{transform:rotate(45deg)}
.shelf-ticket{
  display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;min-width:0;
  border-radius:3px;border-top:3px solid #dfa751;padding:3px 9px 4px;
  background:#fff0ce;color:#263e30;box-shadow:inset 0 -1px #cdbe9f;text-align:left
}
#shelf-level{font-size:10px;font-weight:750;line-height:1.3;letter-spacing:.07em;text-transform:uppercase;color:#586447}
.shelf-item{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
#shelf-name{font-size:15px;line-height:1.18;font-weight:750;overflow-wrap:anywhere}
#shelf-price{flex:none;font:15px var(--pixel);color:#334f39}
body.aiming-load .shelf-picker{visibility:hidden}
[data-shop="outlet"] .shop-art{background-image:url("assets/outlet-shelf.webp");background-size:cover;background-position:center}
[data-shop="akiba"] .shop-art{background-image:url("assets/akiba-denki.webp");background-size:cover;background-position:center}
[data-store="akiba"] .shelf-ticket{background:#fff3bc;border-top-color:#cd3235}
[data-store="akiba"] #shelf-price{color:#ac202c}
[data-page="map"].dialog{width:min(480px,calc(100vw - 24px))}
.map-browser{margin-bottom:14px}
.department-finder{margin-top:14px}
.department-finder .map-focus-status{min-height:1.4em;margin:4px 0 8px;color:#526751;font-size:12px;line-height:1.35}
.department-finder .map-focus-status.is-pinned{color:#79435a;font-weight:700}
.department-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px;max-height:clamp(142px,26svh,250px);overflow:auto;overscroll-behavior:contain;scrollbar-color:#9ca88e transparent;padding:3px;margin:0;list-style:none}
.department-list li{min-width:0}
.department-list button{width:100%;min-height:44px;display:flex;align-items:center;gap:7px;text-align:start;border:1px solid #abb99d;border-radius:5px;background:#f7f2df;color:#264a39;font:650 13px/1.2 system-ui,sans-serif;padding:6px 8px;cursor:pointer}
.department-choice b{display:grid;place-items:center;flex:none;width:22px;height:22px;background:var(--aisle-color);border:1px solid #203e3c55;border-radius:3px;font:700 13px system-ui;color:#182e30}
.department-choice[aria-expanded]::after{content:'⌄';margin-inline-start:auto;color:#476148}
.department-choice[aria-expanded="true"]::after{content:'⌃'}
.department-list button[aria-pressed="true"]{background:#f3d6de;color:#502b3c;border-color:#9b536a;box-shadow:inset 0 0 0 1px #9b536a}
.department-list button:focus-visible{outline:2px solid #304f47;outline-offset:1px}
.department-aisles{grid-column:1/-1}
.department-aisles[hidden]{display:none}
.department-aisles>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:5px;background:#e0e4cf;border-radius:5px}
.department-aisles button{background:#fbf6e4;font-size:12px}
@media(max-height:540px) and (orientation:landscape){
  [data-page="map"].dialog{width:min(820px,calc(100vw - 28px))}
  .map-browser{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:14px}
  .map-browser .floor-plan{margin:0 0 5px;padding:4px}
  .map-browser .floor-plan canvas{height:min(41svh,210px)}
  .department-finder{margin:0}
  .department-list{max-height:clamp(92px,33svh,165px)}
}
