:root{font-family:"PingFang SC",system-ui,sans-serif;color:#304b3c;background:#f3f5ee;font-size:15px;line-height:1.65}*{box-sizing:border-box;letter-spacing:0}body{margin:0}button,a{color:inherit;touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #71996d;outline-offset:4px}button svg{width:18px;height:18px}header{height:54px;padding:0 28px;border-bottom:1px solid #dce3d6;display:flex;align-items:center;gap:20px}header a{font:600 21px Georgia,serif;text-decoration:none}header span{font-size:12px;color:#70846c}header button,.icon{border:1px solid #cdd8c8;background:#f6f8f1;border-radius:6px;min-width:40px;min-height:40px;display:inline-grid;place-items:center;padding:8px}header button{margin-left:auto}#stage{height:calc(100svh - 54px);min-height:570px;position:relative;isolation:isolate;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#f3f5ee;z-index:8}.intro{position:absolute;left:max(28px,calc((100% - 1180px)/2));top:24px;pointer-events:none}.intro p{font-size:11px;color:#7d8d72;margin:0 0 4px}h1{font:600 28px/1.4 "Songti SC",serif;margin:0 0 8px}.intro span{font-size:13px;color:#718169}#hotspots{position:absolute;inset:0;pointer-events:none}.spot{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #b8c9ad;background:#f9fbf3e8;color:#46623d;border-radius:6px;padding:7px 10px;min-height:38px;font-size:12px;pointer-events:auto;box-shadow:0 3px 12px #52684c0b}.spot::before{content:"";width:7px;height:7px;background:#78965c;border-radius:50%;box-shadow:0 0 0 4px #a9bc8b30}.spot:hover,.spot[aria-expanded=true]{background:#e3ecd7;border-color:#7e9f69}.spot.visited::before{background:#a3b18c;box-shadow:none}.bottom-line{position:absolute;bottom:14px;left:24px;right:24px;display:flex;align-items:center;justify-content:center;gap:12px;pointer-events:none}.bottom-line span{font-size:12px;color:#6c7d63;padding:6px 10px;background:#f3f5eee8}.bottom-line button{pointer-events:auto;border:0;background:transparent;padding:8px;display:grid;place-items:center;min-width:36px;min-height:36px;color:#6c7d63}#explanation{position:absolute;z-index:5;right:28px;bottom:66px;width:355px;max-height:calc(100% - 180px);overflow:auto;padding:22px;background:#fafcf5f5;border:1px solid #cad7bd;border-radius:8px;box-shadow:0 12px 38px #354a2c14;backdrop-filter:blur(10px)}#close{position:absolute;right:10px;top:10px;min-width:34px;min-height:34px;border:0;background:transparent}#info-kicker{margin:0 34px 7px 0;color:#8b9b7b;font-size:11px}h2{font:600 21px/1.5 "Songti SC",serif;margin:0 32px 12px 0}#info-body p{font-size:14px;margin:10px 0;line-height:1.9}#info-body .lead{font-size:15px;color:#3b5b37}#info-body small{display:block;color:#7b8871;font-size:11px;line-height:1.7}#info-body details{margin-top:14px;border-top:1px solid #dce4d2;padding-top:10px;font-size:12px}summary{cursor:pointer;min-height:32px}#info-body details p{font-size:12px}a{text-underline-offset:3px}.route{display:flex;align-items:center;gap:5px;margin:14px 0;padding:12px 0;border-top:1px solid #e0e6d7;border-bottom:1px solid #e0e6d7}.route span{flex:1;text-align:center;font-size:12px}.route b{color:#98ab82;font-weight:400}.blood{height:76px;position:relative;background:#e8eee0;border-radius:6px;overflow:hidden;margin:14px 0}.cell{position:absolute;width:38px;height:23px;border-radius:50%;background:#c4988c;box-shadow:inset 0 0 0 7px #b98279;left:18px;top:28px}.cell:nth-child(2){left:105px;top:18px}.cell:nth-child(3){left:210px;top:34px}.oxygen-dot{position:absolute;left:-10px;top:var(--y);width:7px;height:7px;border-radius:50%;background:#6c9da6;animation:flow 5s linear infinite;animation-delay:var(--delay)}@keyframes flow{to{transform:translateX(340px)}}.evidence{color:#5e7552;border-left:2px solid #a9be92;padding-left:11px}dialog{width:min(600px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:26px;border:1px solid #cad7bd;border-radius:8px;color:#304b3c;background:#fafcf5}dialog::backdrop{background:#283b2760;backdrop-filter:blur(4px)}dialog>.icon{position:absolute;right:12px;top:12px}dialog p,dialog li{font-size:14px;line-height:1.9}dialog li{margin:10px 0}[hidden]{display:none!important}
@media(max-width:700px){header{height:48px;padding:0 16px}header span{display:none}#stage{height:calc(100svh - 48px);min-height:610px}.intro{left:18px;top:18px}.intro p{font-size:10px}h1{font-size:23px}.intro span{font-size:12px}.spot{font-size:11px;min-height:36px;padding:6px 8px;gap:6px}#explanation{left:12px;right:12px;width:auto;bottom:55px;max-height:34svh;padding:17px 18px}#info-body p{font-size:13px}#info-body .lead{font-size:14px}h2{font-size:19px}.bottom-line{left:8px;right:8px;bottom:8px}.bottom-line span{font-size:11px;max-width:calc(100% - 40px)}.route{margin:10px 0;padding:8px 0}.blood{height:64px;margin:10px 0}}
@media(prefers-reduced-motion:reduce){.oxygen-dot{animation:none;left:45%}}
.mode-switch{margin-left:auto;display:flex;padding:3px;background:#e7ecdf;border-radius:7px;gap:3px}.mode-switch button{margin:0;display:flex;align-items:center;gap:7px;min-height:36px;border:0;background:transparent;padding:6px 12px;font-size:12px;color:#718169}.mode-switch button[aria-pressed=true]{background:#fafcf5;color:#375b39;box-shadow:0 1px 4px #3c54241a}header>#reset{margin-left:0}
#placement-slots{position:absolute;inset:0;pointer-events:none}.placement-slot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;min-height:40px;padding:7px 12px;display:flex;align-items:center;gap:6px;border:1px dashed #a7b49b;border-radius:6px;background:#f6f8f0e8;color:#7c8a71;font-size:12px}.placement-slot.ready{border:2px solid #6b8f51;background:#e5efd8;color:#3e6333;box-shadow:0 0 0 5px #97ae7720}.placement-slot svg{width:16px;height:16px}
#build-tray{position:absolute;z-index:4;bottom:53px;left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 32px));padding:12px 18px;background:#fafcf5f2;border:1px solid #d1dbc5;border-radius:8px;box-shadow:0 8px 30px #354a2c0b}.tray-heading{display:flex;align-items:center;gap:14px;font-size:13px}.tray-heading strong{font-weight:600}.tray-heading span{font-size:12px;font-variant-numeric:tabular-nums;color:#718763}.tray-heading button{margin-left:auto;display:grid;place-items:center;border:0;background:transparent;color:#6b805f;min-height:30px;min-width:30px}#build-feedback{font-size:12px;color:#6e8161;margin:2px 0 10px;min-height:20px}#build-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.build-item{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:8px;border:1px solid #d4ddca;border-radius:6px;background:#f0f4e9;color:#516e43;font-size:13px;touch-action:none;user-select:none;cursor:grab}.build-item>svg:first-child{width:24px;height:24px}.build-item[aria-pressed=true]{background:#dfeace;border-color:#739356}.build-item .placed-check{display:none}.build-item.placed{opacity:.48;cursor:default}.build-item.placed .placed-check{display:block;width:13px;height:13px}.build-item.placed>svg:first-child{display:none}#claim-coupon{width:100%;margin-top:9px;min-height:40px;border:0;border-radius:5px;background:#496c3d;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px}#drag-token{position:fixed;z-index:1000;transform:translate(-50%,-140%);pointer-events:none;padding:9px 16px;background:#496c3d;color:#fff;border-radius:6px;box-shadow:0 5px 18px #354a2c30;font-size:13px}
#coupon-dialog{width:min(520px,calc(100% - 30px));padding:28px 24px}.reward-kicker{font-size:12px;color:#75836b;margin:18px 0}.coupon{position:relative;display:flex;border-radius:8px;background:#e6eddb;border:1px solid #c0d0ad;min-height:156px;overflow:hidden}.coupon::before,.coupon::after{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#fafcf5;left:calc(34% - 11px)}.coupon::before{top:-11px}.coupon::after{bottom:-11px}.coupon-value{width:34%;flex:none;border-right:1px dashed #a8bc91;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;color:#48633b;padding:16px 8px}.coupon-value>span{font-size:21px;align-self:center}.coupon-value strong{font:600 49px/1.2 Georgia,serif}.coupon-value small{width:100%;text-align:center;font-size:11px;margin-top:6px}.coupon-copy{padding:24px 18px;display:flex;flex-direction:column;justify-content:center}.coupon-copy p{font-size:11px;margin:0 0 6px;color:#728161}.coupon-copy h2{font-size:19px;margin:0 0 12px}.coupon-copy>span{font-size:11px;color:#7d8b70}.coupon-note{font-size:12px!important;color:#78836e;line-height:1.8!important;margin:18px 0}#coupon-done{border:0;border-radius:6px;background:#496c3d;color:white;min-height:44px;width:100%;font-size:14px}
@media(max-width:700px){header{height:96px;flex-wrap:wrap;gap:2px 12px;padding-top:5px;padding-bottom:5px}header>a{font-size:19px}.mode-switch{order:3;width:100%;justify-content:center;padding:2px}.mode-switch button{flex:1;font-size:12px;min-height:32px;justify-content:center}header>#reset{margin-left:auto;min-height:34px;min-width:34px}#stage{height:calc(100svh - 96px)}body[data-mode=build] .intro p{display:none}body[data-mode=build] h1{font-size:21px}body[data-mode=build] .intro span{font-size:11px}#build-tray{bottom:48px;padding:10px 12px;width:calc(100% - 20px)}.tray-heading{font-size:12px}#build-feedback{font-size:11px;line-height:1.5;min-height:33px;margin-bottom:7px}.build-item{flex-direction:column;gap:4px;font-size:10px;min-height:64px;padding:5px 2px}.build-item>svg:first-child{width:21px;height:21px}#build-items{gap:5px}.placement-slot{font-size:11px;min-height:37px;padding:6px 9px}.coupon-copy{padding:20px 12px}.coupon-copy h2{font-size:16px}.coupon-value strong{font-size:40px}}
#placement-slots .prop-caption{position:absolute;transform:translate(-50%,0);pointer-events:none;font-size:11px;color:#687e5e;white-space:nowrap;background:#f3f5eecf;padding:2px 5px;border-radius:3px}
body[data-mode=build] #build-tray{left:24px;bottom:55px;transform:none;width:auto;max-width:calc(100% - 48px);padding:0;border:0;background:transparent;box-shadow:none}
body[data-mode=build] .tray-heading strong{display:none}
body[data-mode=build] .tray-heading{justify-content:flex-start;gap:12px;width:110px}
body[data-mode=build] .tray-heading button{margin-left:0}
body[data-mode=build] #build-feedback{margin:3px 0;max-width:380px;font-size:12px;min-height:20px}
body[data-mode=build] #claim-coupon{padding:8px 14px;width:auto}
#stage.drop-ready canvas{outline:2px solid #a6bc90;outline-offset:-8px}
@media(max-width:700px){
 .intro{top:12px;left:16px;right:16px}.intro h1,body[data-mode=build] .intro h1{font-size:19px;margin-bottom:4px}.intro span{font-size:11px}.intro p{margin-bottom:2px}
 .spot{font-size:10px;min-height:30px;padding:4px 6px;gap:5px;background:#f9fbf3d9}.spot svg{width:14px;height:14px}.spot::before{width:5px;height:5px;box-shadow:none}
 #explanation{left:10px;right:10px;bottom:45px;max-height:27svh;padding:12px 14px;background:#fafcf5ed}
 #explanation h2{font-size:17px;line-height:1.4;margin-bottom:7px}#info-kicker{font-size:10px;margin-bottom:4px}#info-body p,#info-body .lead{font-size:12px;line-height:1.7;margin:7px 0}#info-body small{font-size:10px}#close{right:4px;top:4px;min-width:32px;min-height:32px}
 body[data-mode=build] #build-tray{left:16px;bottom:44px;max-width:calc(100% - 32px)}body[data-mode=build] #build-feedback{font-size:10px;max-width:290px;line-height:1.5}.bottom-line span{font-size:10px;padding:3px 6px}#placement-slots .prop-caption{font-size:10px;padding:1px 3px}
}
