/* Bounded, device-local experiments: a visible railway and one choice at a time. */
.lab-button{position:absolute;z-index:12;right:calc(var(--safe-right) + 14px);top:calc(var(--safe-top) + 166px);width:58px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;border:2px solid #598c85;border-radius:18px;background:linear-gradient(#e6fff0,#9cd9c5);box-shadow:0 4px 0 #45796c66;color:#2d675b;font-size:11px}.lab-button .pictogram{width:29px;height:29px}.lab-button small{font-size:9px}.panel-open .lab-button,.guide-active .lab-button{display:none}
.lab-menu{text-align:center}.lab-menu>small,.lab-play-heading>small,.lab-result-top small{font-size:11px;font-weight:800;letter-spacing:1px;color:#648b70}.lab-menu-hero{height:115px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#ffdc86,transparent 69%)}.lab-menu-hero>.pictogram{width:93px;height:93px}.lab-mini-stamp{position:absolute;right:13%;top:16%;font-size:13px;rotate:12deg;background:#e0efd1;border:2px solid #81ac83;border-radius:9px;padding:7px;color:#407c58}.lab-menu-links{display:flex;gap:12px;justify-content:center;align-items:center}.lab-menu .primary{width:100%}
dialog[data-kind=lab-play],dialog[data-kind=lab-result]{width:min(720px,calc(100% - var(--safe-left) - var(--safe-right) - 24px));padding:20px 16px 12px}.lab-play-heading{text-align:left;padding-right:38px}.lab-play-heading h2{font-size:21px;text-align:left;margin:5px 0}.lab-play-heading p{margin:4px 0 10px;font-size:12px}.lab-layout{display:grid;gap:10px;min-height:0}.lab-board{border:2px solid #a9c49b;border-radius:20px;overflow:hidden;background:linear-gradient(#e3f0c8,#d6e7b2);position:relative}.lab-board.no-choice::after{content:'列車を えらぶと走るよ ↓';position:absolute;bottom:5px;left:0;right:0;font-size:11px;text-align:center;color:#527951;font-weight:800;background:#f8fce4e8;padding:4px}.lab-map{display:block;width:100%;height:auto;max-height:220px}.lab-river{stroke:#a1d3d7;stroke-width:21;fill:none}.lab-rail{fill:none;stroke:#8e9574;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.lab-rail.bridge{stroke:#a8865f;stroke-width:10}.lab-site circle{fill:#fbf8cf;stroke:#96b382;stroke-width:2}.lab-site text{font-family:inherit;font-size:10px;font-weight:800;fill:#476a44;paint-order:stroke;stroke:#e4efc9;stroke-width:3px}.lab-site text[id]{font-size:9px;fill:#71835b}.lab-vehicle{filter:drop-shadow(0 1px 1px #355a3555)}.lab-console{min-width:0;display:flex;flex-direction:column;gap:5px}.lab-choices{display:flex;gap:8px}.lab-choice{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;border:2px solid #b9c4a5;border-radius:16px;background:#fffeee;padding:8px 5px;color:#658368;box-shadow:0 3px 0 #bbc6a555}.lab-choice.selected{border:3px solid #3e9679;background:#d8efd0;padding:7px 4px;color:#2d6e53;box-shadow:0 3px 0 #589879}.lab-choice>.pictogram{width:35px;height:35px}.lab-choice b{font-size:13px}.lab-choice small{font-size:10px}.lab-choice .icon-count{font-size:13px}.lab-choice .icon-count .pictogram{width:22px;height:22px}.lab-choices.is-chain{gap:5px}.is-chain .lab-choice{display:flex;flex-flow:row wrap;justify-content:center;gap:2px;padding:7px 3px}.is-chain .lab-choice.selected{padding:6px 2px}.is-chain .lab-choice>.pictogram{width:23px;height:23px}.is-chain .lab-choice>.arrow-icon{display:none}.is-chain .lab-choice b,.is-chain .lab-choice small{flex-basis:100%;font-size:9px}.lab-console>.primary{margin:5px 0}.lab-plan-links{display:flex;justify-content:center;gap:20px}.lab-hint{font-size:11px!important;margin:3px 0!important;line-height:1.5!important;background:#e8efd4;border-radius:12px;padding:8px;text-align:center}.lab-progress{display:flex;flex-direction:column;gap:5px;align-items:center;padding:4px}.lab-progress>span{font-size:24px;font-weight:900;color:#538b62}.lab-progress progress{width:100%;height:12px}.lab-parcels{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;min-height:21px}.lab-parcels .pictogram{width:18px;height:18px}.lab-parcels .not-delivered{opacity:.17}.lab-live-stats{display:flex;gap:7px;justify-content:center}.lab-live-stats>span{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:center;border-radius:12px;background:#fffbe8;border:1px solid #e0d9b6;padding:5px;flex:1}.lab-live-stats .pictogram{width:24px;height:24px}.lab-live-stats b{font-size:17px}.lab-live-stats small{font-size:9px}.lab-run-controls{display:flex;gap:7px}.lab-run-controls button{flex:1;margin:0;min-height:42px}
.lab-ticket{position:relative;margin:6px auto 10px;max-width:320px;padding:17px;background:#eeeccc;border:2px dashed #bdc9a8;border-radius:20px;color:#809475;text-align:center}.lab-ticket.earned{background:linear-gradient(130deg,#fffbe6,#ffdfa2);border-color:#bd9450;color:#866635;box-shadow:0 5px 0 #c5a35e44}.lab-ticket>.pictogram{width:74px;height:74px;display:block;margin:8px auto}.lab-ticket>small{font-size:11px}.lab-ticket h3{font-size:16px;margin:5px 0}.lab-ticket>strong{font-size:14px}.lab-ticket p{font-size:12px}.lab-result-top{display:flex;align-items:center;gap:7px;margin-bottom:8px;padding-right:26px}.lab-result-friend{width:65px;height:75px;object-fit:contain;flex-shrink:0}.lab-result-top h2{font-size:20px;margin:3px 0;text-align:left}.lab-result-top p{font-size:11px;margin:2px 0}.lab-result-layout{display:grid;grid-template-columns:1fr;gap:6px;min-height:0}.lab-result-layout .lab-ticket{margin:2px auto 4px;width:100%;padding:9px}.lab-result-layout .lab-ticket>.pictogram{width:55px;height:55px;margin:3px auto}.lab-result-layout .lab-ticket h3{font-size:14px;margin:3px 0}.lab-result-metrics{display:block;font-size:10px;margin-top:7px}.lab-stamp{position:absolute;right:8px;top:16px;border:3px solid #de8759;color:#c47545;background:#fff5dded;border-radius:9px;font-weight:900;font-size:15px;padding:8px 5px;rotate:13deg;animation:lab-stamp-in .6s cubic-bezier(.19,.7,.29,1.2) both}.lab-result-copy{text-align:center}.lab-result-copy p{font-size:12px;line-height:1.6;margin:6px 0}.lab-result-copy .processing-flow{justify-content:center;margin:0}.lab-result-copy .processing-flow>.pictogram{width:32px;height:32px}.lab-result-copy .processing-flow>.arrow-icon{width:17px}.lab-bonus{font-size:10px;display:flex;justify-content:center;align-items:center;gap:3px;color:#977c40}.lab-bonus .pictogram{width:25px;height:25px}.lab-comparison{display:flex;justify-content:center;gap:4px 8px;flex-wrap:wrap;border:1px solid #d5dfba;background:#eff3dc;border-radius:12px;margin-top:6px;padding:6px;font-size:10px}.lab-comparison small{flex-basis:100%;font-size:9px}.lab-unlock{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;width:100%;background:#d9edc6;border:2px solid #7ba875;border-radius:14px;padding:6px;margin:8px 0 0;min-height:51px;font-size:12px;color:#4b7b51;box-shadow:0 3px 0 #91b48666}.lab-unlock>.pictogram{width:25px;height:25px}.lab-unlock small{flex-basis:100%;font-size:9px}.lab-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.lab-result-actions>.primary{grid-column:1/-1;margin:0}.lab-result-actions>.subtle{font-size:11px}.lab-result-actions>.mini-action{margin:0}.lab-decorations{display:grid;grid-template-columns:1fr 1fr;gap:9px}.lab-decorations button{min-height:101px;display:flex;flex-direction:column;align-items:center;gap:6px;background:#fffbed;border:2px solid #bccaa2;border-radius:17px;padding:8px;color:#647b59}.lab-decorations button[aria-pressed=true]{background:#d6edce;border-color:#6ba17e}.lab-decorations b{font-size:12px}.lab-decorations small{font-size:10px}.lab-decoration>.pictogram{width:38px;height:38px}.lab-decoration.leaf{filter:hue-rotate(55deg)}.lab-decoration.festival{filter:hue-rotate(330deg)}.lab-adjust{text-align:center}.lab-adjust>.friend-art{width:120px;height:130px}.lab-adjust p{font-size:13px}
.lab-question{display:block;font-size:10px;color:#547c65;margin:4px 0;font-weight:800}.lab-result-metrics{line-height:1.6}dialog[data-kind=lab-play] .dialog-footer>.primary,dialog[data-kind=lab-result] .dialog-footer>.primary{display:none}dialog[data-kind=lab-play] .dialog-footer,dialog[data-kind=lab-result] .dialog-footer{justify-content:center;flex-direction:row}.lab-result-copy .processing-flow{gap:3px}
@keyframes lab-stamp-in{from{opacity:0;transform:scale(2.5) rotate(-25deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media(min-width:600px) and (min-height:601px){.lab-button{top:187px;right:24px}.lab-layout{grid-template-columns:minmax(0,1fr) 245px;align-items:center}.lab-result-layout{grid-template-columns:220px 1fr;align-items:center}.lab-result-actions{grid-template-columns:2fr 1fr 1fr}.lab-result-actions>.primary{grid-column:auto}.lab-result-layout .lab-ticket{padding:22px 10px}.lab-result-layout .lab-ticket>.pictogram{width:90px;height:90px}}
@media(orientation:portrait) and (max-height:700px){dialog[data-kind=lab-play],dialog[data-kind=lab-result]{padding:14px 12px 9px}.lab-play-heading h2{font-size:18px}.lab-play-heading p{margin-bottom:5px;font-size:11px}.lab-layout{gap:6px}.lab-map{max-height:155px}.lab-choice{padding:5px}.lab-choice.selected{padding:4px}.lab-choice>.pictogram{width:27px;height:27px}.lab-choice b{font-size:11px}.lab-choice small{font-size:9px}.lab-console>.primary{min-height:44px;font-size:15px}.lab-console{gap:3px}.lab-progress>span{font-size:20px}.lab-hint{padding:5px}.lab-result-top{margin-bottom:4px}.lab-result-top h2{font-size:17px}.lab-result-friend{width:48px;height:54px}.lab-result-layout{grid-template-columns:110px 1fr;align-items:center;gap:7px}.lab-result-layout .lab-ticket>.pictogram{width:42px;height:42px}.lab-result-layout .lab-ticket h3{font-size:11px}.lab-result-layout .lab-ticket>strong{font-size:10px}.lab-stamp{font-size:11px;right:1px;padding:5px 3px;top:12px}.lab-result-copy p{font-size:10px}.lab-result-copy .processing-flow>.pictogram{width:24px;height:24px}.lab-result-copy .processing-flow>.arrow-icon{width:12px}.lab-bonus{font-size:9px}.lab-result-metrics{font-size:9px}.lab-unlock{font-size:10px;min-height:45px;margin-top:5px}.lab-result-actions>.primary{min-height:44px;font-size:15px}.lab-menu-hero{height:81px}.lab-menu-hero>.pictogram{width:72px;height:72px}.lab-decorations button{min-height:86px;padding:6px}.lab-decoration>.pictogram{width:30px;height:30px}}
@media(orientation:landscape) and (max-height:600px){.lab-button{top:calc(var(--safe-top) + 146px);min-height:56px;width:56px;font-size:10px}.lab-button .pictogram{width:22px;height:22px}dialog[data-kind=lab-play],dialog[data-kind=lab-result]{padding:10px 15px 7px}.lab-play-heading h2{font-size:17px;margin:2px 0}.lab-play-heading p{font-size:10px;margin:2px 0 5px}.lab-play-heading>small{font-size:9px}.lab-layout{grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:12px}.lab-map{max-height:171px;min-height:140px}.lab-board.no-choice::after{content:'列車を えらぼう →';font-size:9px}.lab-choice{padding:5px 3px;gap:2px}.lab-choice.selected{padding:4px 2px}.lab-choice>.pictogram{width:26px;height:26px}.lab-choice b{font-size:10px}.lab-choice small{font-size:9px}.lab-choice .icon-count{font-size:11px}.lab-choice .icon-count .pictogram{width:18px;height:18px}.lab-console{gap:3px}.lab-console>.primary{min-height:40px;margin:4px 0;font-size:13px}.lab-hint{padding:4px;font-size:9px!important}.lab-plan-links .subtle{min-height:30px;font-size:10px}.lab-plan-links{gap:10px}.lab-progress{padding:0;gap:2px}.lab-progress>span{font-size:19px}.lab-progress progress{height:9px}.lab-parcels .pictogram{width:14px;height:14px}.lab-parcels{min-height:16px}.lab-live-stats{gap:4px}.lab-live-stats>span{padding:3px;gap:3px}.lab-live-stats b{font-size:14px}.lab-live-stats .pictogram{width:19px;height:19px}.lab-live-stats small{font-size:8px}.lab-run-controls button{min-height:35px;font-size:10px}.lab-console>.subtle{font-size:10px;min-height:28px}.lab-menu{display:grid;grid-template-columns:115px 1fr;column-gap:15px;align-items:center}.lab-menu>small{grid-column:2;font-size:9px}.lab-menu-hero{grid-column:1;grid-row:1/5;height:119px}.lab-menu-hero>.pictogram{width:85px;height:85px}.lab-mini-stamp{right:0;top:7%;padding:4px;font-size:10px}.lab-menu h3,.lab-menu p{margin:3px 0}.lab-menu>.primary{margin:4px 0;min-height:39px;font-size:13px}.lab-menu-links{grid-column:1/-1}.lab-menu>.small-print{grid-column:1/-1;margin:2px 0}.lab-ticket{padding:9px;margin:2px auto 5px;max-width:520px}.book-page>.lab-ticket{display:grid;grid-template-columns:80px 1fr;align-items:center;column-gap:15px;padding:10px 20px}.book-page>.lab-ticket>.pictogram{grid-column:1;grid-row:1/5;width:65px;height:65px;margin:0}.book-page>.lab-ticket h3,.book-page>.lab-ticket p{margin:3px 0}.lab-result-top{margin:0 0 3px}.lab-result-friend{width:40px;height:42px}.lab-result-top small{font-size:8px}.lab-result-top h2{font-size:17px;margin:0}.lab-result-top p{font-size:9px;margin:0}.lab-result-layout{grid-template-columns:155px 1fr;align-items:center;gap:12px}.lab-result-layout .lab-ticket{padding:7px}.lab-result-layout .lab-ticket>.pictogram{width:43px;height:43px;margin:0 auto}.lab-result-layout .lab-ticket h3{font-size:12px;margin:3px 0}.lab-result-layout .lab-ticket>strong{font-size:11px}.lab-stamp{font-size:12px;padding:5px;top:6px;right:1px}.lab-result-metrics{font-size:9px;margin-top:5px}.lab-result-copy p{font-size:10px;line-height:1.5;margin:4px 0}.lab-result-copy .processing-flow>.pictogram{width:25px;height:25px}.lab-result-copy .processing-flow>.arrow-icon{width:14px}.lab-bonus{font-size:9px}.lab-bonus .pictogram{width:20px;height:20px}.lab-comparison{font-size:9px;padding:3px;margin:3px 0}.lab-comparison small{font-size:8px}.lab-unlock{min-height:37px;font-size:10px;margin-top:5px;padding:3px}.lab-unlock small{font-size:8px}.lab-result-actions{grid-template-columns:2fr 1fr 1fr;margin-top:6px}.lab-result-actions>.primary{grid-column:auto;min-height:38px;font-size:12px}.lab-result-actions>.mini-action{min-height:38px;font-size:11px}.lab-result-actions>.subtle{font-size:10px}.lab-decorations{grid-template-columns:repeat(4,1fr);gap:6px}.lab-decorations button{min-height:93px;padding:5px}.lab-decorations b{font-size:10px}.lab-decorations small{font-size:9px}.lab-decoration>.pictogram{width:32px;height:32px}.lab-adjust>.friend-art{width:76px;height:80px}.lab-adjust h2{margin:3px}.lab-adjust p{font-size:11px}.lab-adjust>.primary{min-height:38px;font-size:12px}}
@media(orientation:landscape) and (max-height:600px){.is-chain .lab-choice>.pictogram{width:17px;height:17px}.is-chain .lab-choice b{font-size:8px}.lab-result-copy .lab-question{font-size:9px}}
@media(orientation:landscape) and (max-height:360px){.lab-result-copy .lab-question{display:none}.lab-result-copy p{line-height:1.4;margin:3px 0}.lab-result-copy .processing-flow>.pictogram{width:22px;height:22px}.lab-result-copy .processing-flow>.arrow-icon{width:13px}.lab-comparison{gap:2px 4px;line-height:1.2}.lab-unlock{line-height:1.1;min-height:33px}.lab-result-top{margin-bottom:2px}.lab-result-actions{margin-top:4px}.lab-result-actions>.primary,.lab-result-actions>.mini-action{min-height:35px}}
@media(prefers-reduced-motion:reduce){.lab-stamp{animation:none}}
