:root{font-family:system-ui,"Microsoft YaHei","PingFang SC",sans-serif;color:#473931;background:#fff8e9;font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;overscroll-behavior:none}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible{outline:3px solid #356354;outline-offset:3px}
button:disabled{cursor:default}
[hidden]{display:none!important}
h1,h2,p{margin:0}
.game{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:100vh;min-height:100dvh;height:100dvh}
.stage{position:relative;min-height:245px;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,#a6d2e4 0%,#d8eaf1 46%,#eef4df 77%,#d9e7be 100%)}
canvas,.signs{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.signs{pointer-events:none}
.top{position:absolute;z-index:3;top:max(16px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}
.brand{display:flex;gap:11px;align-items:center;padding:9px 17px 10px 10px;background:#fff9ed;border:1px solid #fff;border-radius:21px;box-shadow:0 4px 12px #50766420}
.brand p,.eyebrow{font-size:11px;font-weight:760;letter-spacing:.12em;color:#716151}
.brand h1{font-size:clamp(19px,2.7vw,31px);letter-spacing:.06em;line-height:1.1;margin-top:3px}
.flower{display:grid;place-items:center;width:40px;height:40px;background:#f7e3cc;color:#a75342;border-radius:14px;font-size:28px}
.map-button,.arrow,.venue-sign{background:#fffaf0;border:1px solid #fff;box-shadow:0 3px 10px #4e675429;font-weight:750}
.map-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 14px;border-radius:15px;pointer-events:auto;font-size:14px}
.map-button[aria-pressed="true"]{background:#e6f1e0;border-color:#f7fff5;color:#315849}
.map-button svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.arrow{position:absolute;top:49%;z-index:2;transform:translateY(-50%);width:47px;height:47px;padding:0;border-radius:50%;font-size:31px;line-height:1}
.arrow:disabled{opacity:.35}
.previous{left:max(12px,env(safe-area-inset-left))}
.next{right:max(12px,env(safe-area-inset-right))}
.hint,.fallback{position:absolute;left:50%;transform:translateX(-50%);bottom:11px;pointer-events:none;text-align:center;background:#fff9edec;border:1px solid #fff;padding:5px 12px;border-radius:30px;font-size:12px;color:#59483a;white-space:nowrap}
.fallback{bottom:47%;white-space:normal;width:min(88%,440px);border-radius:14px}
#rabbit{position:absolute;z-index:1;left:0;top:0;transform:translate(-50%,-100%);pointer-events:none;user-select:none;object-fit:contain;filter:drop-shadow(1px 3px 2px #65564655)}
.venue-sign{position:absolute;z-index:2;left:0;top:0;transform:translate(-50%,-50%);min-height:26px;white-space:nowrap;display:block;padding:0;border:0;border-radius:16%;background:transparent;box-shadow:none;pointer-events:auto;user-select:none}
.venue-sign:is(:hover,:focus-visible){box-shadow:0 0 0 2px #fff5d6b3}
.venue-name{position:absolute;top:100%;left:50%;translate:-50% 3px;padding:3px 8px;border:1px solid #fff3d4;border-radius:9px;background:#fff8e6f0;color:#5d4937;font-size:12px;line-height:1.2;opacity:0;pointer-events:none}
.venue-sign:is(:hover,:focus-visible) .venue-name{opacity:1}
.venue-sign svg,.route-button svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.7;fill:none}
.street-door{position:absolute;z-index:2;left:0;top:0;transform:translate(-50%,-50%);min-height:38px;border:1px solid #fff9e5;border-radius:13px;padding:5px 10px;color:#fffaf0;background:#426f57;box-shadow:0 3px 10px #4e67543b;font-weight:790;font-size:13px;white-space:nowrap}
.tray{position:relative;z-index:4;background:#fff8e9;border-top:1px solid #fff;box-shadow:0 -5px 24px #4d62441d;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.5fr);gap:20px;padding:12px max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));align-items:center}
.stop{min-height:77px;display:flex;align-items:center;gap:10px;padding:9px 10px 9px 11px;background:#fffdf6;border:1px solid #eaddc9;border-radius:17px}
.stop>img{width:52px;height:52px;flex:none;object-fit:contain}
.stop-text{min-width:0;flex:1}
.stop h2,.dialog-header h2{font-size:clamp(17px,2.2vw,24px);margin-top:2px;line-height:1.14}
.eyebrow.open{color:#3d7059}
#stop-detail{font-size:12px;color:#685546;margin-top:4px;line-height:1.25}
.visit{flex:none;min-height:44px;background:#426f57;border:0;border-radius:12px;padding:9px 12px;color:#fffdf7;font-size:14px;font-weight:800;box-shadow:0 3px 0 #2d523d}
.visit span{margin-left:3px}
.visit:disabled{background:#f1e8d6;color:#77644d;box-shadow:none;font-size:12px}
.route{min-width:0}
.route-label{display:flex;justify-content:space-between;align-items:center;color:#716151;font-size:11px;font-weight:770;letter-spacing:.08em;margin-bottom:4px}
.route-stops{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.route-button{position:relative;display:grid;justify-items:center;align-content:center;gap:2px;min-height:49px;min-width:0;border:1px solid transparent;border-radius:10px;background:#f4ebd9;font-size:clamp(9px,1.1vw,12px);font-weight:750;white-space:nowrap;padding:3px 0}
.route-button img{width:25px;height:25px;object-fit:contain}
.route-button[aria-current="true"]{background:#dfebd5;border-color:#9cb791;color:#315849}
.route-button.closed img{opacity:.76}
.route-button svg{position:absolute;right:2px;top:3px;width:10px;height:10px;color:#7f6f5e}
dialog{width:min(92vw,950px);max-height:90dvh;padding:0;border:1px solid #fff;border-radius:20px;background:#fff8e9;color:#473931;box-shadow:0 20px 90px #38291d66;overflow:hidden}
dialog::backdrop{background:#263b37b3}
.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px}
dialog>img{display:block;width:100%;max-height:calc(90dvh - 75px);object-fit:contain;background:#e7d0ad}
@media(max-width:730px) and (min-height:501px){.tray{grid-template-columns:1fr;gap:7px;padding:8px 12px max(8px,env(safe-area-inset-bottom));}.stop{min-height:62px}.route-label{display:none}}
@media(max-height:500px) and (orientation:landscape){.stage{min-height:185px}.top{top:8px}.brand{padding:5px 11px 6px 6px;border-radius:14px;gap:6px}.flower{width:31px;height:31px;font-size:21px}.brand h1{font-size:19px}.brand p{font-size:9px}.tray{padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom));gap:9px}.stop{min-height:55px;padding:4px 8px;gap:6px}.stop>img{width:37px;height:37px}.stop h2{font-size:16px}.route-label{display:none}.route-button{min-height:44px}.route-button img{width:22px;height:22px}.hint{bottom:6px}}
@media(max-width:480px){.top{left:9px;right:9px}.arrow{width:40px;height:40px}.previous{left:6px}.next{right:6px}.route-stops{gap:2px}.route-button{font-size:9px}}
