:root{--ink:#183e38;--muted:#66746e;--paper:#f7f6ef;--yellow:#f7c950;--green:#246451;--line:#dde3d9;--blue:#75b4d1}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;color:var(--ink)}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation;transition:background .15s,transform .15s}button:hover{filter:brightness(.96)}button:active{transform:translateY(2px)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d58b00;outline-offset:4px}[hidden]{display:none!important}header{max-width:1240px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}header a{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:22px;font-weight:800;color:var(--ink)}header small{display:block;font-size:11px;font-weight:500;letter-spacing:.05em;margin-top:4px}.brand-icon{background:var(--yellow);border:2px solid var(--ink);border-radius:12px;display:grid;place-items:center;width:46px;height:46px;box-shadow:0 3px 0 var(--ink)}.header-actions{display:flex;gap:8px}.quiet{background:transparent;border:1px solid #cbd5c9;border-radius:12px;padding:12px 18px;color:var(--ink);font-weight:600}main{max-width:1180px;margin:auto;padding:30px 32px}.intro{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:30px;padding:22px 0 40px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:var(--green)}h1{font-size:clamp(36px,4.3vw,58px);line-height:1.12;letter-spacing:-.045em;margin:19px 0}h1 em{font-style:normal;color:var(--green)}.lead{font-size:17px;line-height:1.65;color:#5e7068}.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.tags span{font-size:11px;font-weight:600;border-radius:100px;padding:8px 11px;background:#e9eee4}.hero-art{height:290px;background:#dcece6;border-radius:80px 80px 24px 24px;position:relative;overflow:hidden}.hero-road{position:absolute;bottom:30px;background:#b8c9ba;height:5px;left:0;right:0}.mini-bus{position:absolute;background:var(--yellow);width:70%;height:141px;bottom:56px;left:22%;border:3px solid var(--ink);border-radius:30px 40px 13px 13px;transform:rotate(-3deg);z-index:2;box-shadow:inset 0 -12px #e8ad34}.bus-name{font-size:12px;font-weight:800;padding:9px 18px;display:flex;justify-content:space-between}.mini-windows{background:#f9fbf1;border:2px solid var(--ink);border-radius:10px;margin:0 15px;padding:4px;font-size:32px;letter-spacing:4px;white-space:nowrap;text-align:center}.bus-stripe{height:5px;background:var(--ink);margin-top:13px}.mini-bus i{position:absolute;width:42px;height:42px;background:var(--ink);border:9px solid var(--ink);box-shadow:inset 0 0 0 2px #fff;border-radius:50%;bottom:-23px;left:30px}.mini-bus i:last-child{left:auto;right:30px}.route-sign{position:absolute;left:7%;top:89px;border:3px solid var(--green);width:43px;height:43px;border-radius:50%;background:#fbdb77;text-align:center;font-size:29px;font-weight:800}.route-sign:after{content:'';height:93px;width:4px;background:var(--green);position:absolute;top:40px;left:17px}.route-sign span{display:block;font-size:7px;background:var(--paper);padding:5px;margin-left:-8px;width:54px;position:relative;z-index:1}.math-sticker{position:absolute;right:25px;top:14px;transform:rotate(5deg);font-size:23px;font-weight:800;background:#fffef6;border-radius:10px;padding:12px 20px;z-index:3;box-shadow:0 3px 0 #bdd0c6}.math-sticker span{display:block;font-size:9px;font-weight:500;margin-top:5px}.cloud{position:absolute;width:75px;height:20px;border-radius:30px;background:#f8fbf5;top:42px;left:40px}.c2{left:220px;top:110px}.setup-panel{background:#fffefa;border:1px solid var(--line);border-radius:24px;padding:28px 30px;box-shadow:0 8px 25px #183e3805}.panel-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:23px}.panel-heading h2{margin:0;font-size:22px;letter-spacing:-.03em}.panel-heading span{font-size:12px;color:var(--muted)}.options{display:grid;grid-template-columns:1fr 1fr;gap:26px 32px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:12px;font-weight:700;margin-bottom:11px;color:#52655a}.segmented{display:flex;background:#f0f2eb;border-radius:12px;padding:4px;gap:3px}.segmented button{flex:1;border:0;background:transparent;padding:13px 8px;border-radius:9px;color:var(--ink);font-weight:700;font-size:15px}.segmented button.selected{background:var(--ink);color:white;box-shadow:0 2px 5px #183e3820}.start-row{display:flex;justify-content:space-between;align-items:center;margin-top:27px;padding-top:24px;border-top:1px solid var(--line)}.start-row label{font-size:12px;color:var(--muted)}select{border:1px solid var(--line);background:var(--paper);border-radius:9px;padding:10px;margin-left:9px;color:var(--ink)}.primary{border:0;border-radius:12px;background:var(--yellow);color:var(--ink);font-size:18px;font-weight:800;padding:16px 26px;box-shadow:0 3px 0 #cc9d30}.primary span{margin-left:42px}.bottom-tip{text-align:center;font-size:12px;color:var(--muted);margin-top:22px}footer{max-width:1180px;margin:10px auto 0;padding:22px 32px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}footer a{color:inherit}.game-bar{display:flex;justify-content:space-between;align-items:center;font-weight:700}.progress{height:5px;background:#e0e6db;border-radius:6px;margin:20px 0}.progress>div{height:100%;background:var(--green);border-radius:6px;transition:width .3s}.scene{background:linear-gradient(#e6f1ec 0%,#e6f1ec 80%,#d4dfc5 80%);border-radius:22px;padding:12px 24px 0;overflow:hidden}.scene-top{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}.scene-top #riderCount{margin-left:auto}.stop-sign{border:2px solid var(--green);border-radius:50%;background:var(--yellow);font-weight:800;font-size:23px;width:35px;height:35px;display:grid;place-items:center}.big-bus{margin:20px auto 32px;border:3px solid var(--ink);border-radius:30px 40px 14px 14px;background:var(--yellow);display:flex;max-width:860px;position:relative;padding:15px 20px 20px;box-shadow:inset 0 -9px #e9b139;min-height:145px}.bus-front{width:90px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-right:2px solid #bd8b28;margin-right:16px;padding-right:15px}.bus-front b{font-size:10px;letter-spacing:.1em;text-align:center}.bus-front #driver{font-size:38px;background:#f8fcf5;border:2px solid var(--ink);border-radius:20px 20px 6px 6px;padding:5px}.bus-front>span{font-size:10px;font-weight:700}.rows{flex:1;display:flex;flex-direction:column;gap:9px;min-width:0}.seat-row{display:grid;grid-template-columns:repeat(5,1fr) .16fr repeat(5,1fr);gap:5px}.seat{height:44px;min-width:0;border:2px solid #ad9f64;background:#fff9df;border-radius:9px 9px 5px 5px;display:grid;place-items:center;font-size:clamp(14px,2.8vw,29px);position:relative}.seat.occupied{background:#d7e8ef;border-color:#457a85}.seat.new{background:#d5e8aa;border-color:#5b8039}.seat.leaving{opacity:.38;outline:2px dashed #c56b40}.seat.leaving:after{content:'×';color:#9d341b;position:absolute;font-size:30px;font-weight:bold}.wheel{width:45px;height:45px;position:absolute;bottom:-25px;border:11px solid var(--ink);background:#e6e9dc;border-radius:50%;z-index:2}.wheel.left{left:65px}.wheel.right{right:55px}.street{height:10px;background:repeating-linear-gradient(90deg,#8c9b96 0 35px,#e8ede5 35px 55px);margin:0 -24px}.legend{font-size:11px;text-align:center;background:var(--paper);padding:12px;margin:0 -24px;color:#596b61}.work{text-align:center;padding-top:10px}.prompt{font-size:20px;font-weight:600;margin:13px 0}.equation{font-size:clamp(30px,4vw,48px);font-weight:800;display:flex;gap:14px;align-items:center;justify-content:center}.answer{min-width:66px;display:inline-block;border:2px solid var(--green);border-radius:10px;background:#fffefa;padding:4px 12px;min-height:58px;color:var(--green)}.answer.active{outline:3px solid var(--yellow);outline-offset:3px}.steps{min-height:45px;font-size:21px;font-weight:600;margin:12px 0;line-height:1.8}.step-done{color:var(--green)}#feedback{min-height:27px;font-size:14px;color:var(--green);font-weight:600;margin:5px 0}.keypad{display:flex;gap:7px;justify-content:center;margin:10px auto}.keypad button{flex:1;max-width:70px;height:59px;background:#fffefa;border:1px solid #cbd5c9;border-bottom:3px solid #bcc9bc;border-radius:11px;font-size:26px;font-weight:700;color:var(--ink)}.keypad .confirm{background:var(--green);color:white}.keypad .delete{background:#f0e4d4}.game-actions{display:flex;justify-content:center;gap:15px;margin:15px 0;min-height:50px}.compact .seat{height:29px;font-size:20px}.compact .rows{gap:4px}.compact .seat-row{gap:4px}#finish{text-align:center;background:#fffefa;border:1px solid var(--line);border-radius:25px;padding:60px 20px;max-width:700px;margin:45px auto}.finish-icon{font-size:65px}#finish h1{font-size:48px}#result{font-size:22px}#resultDetail{margin:15px 0 30px;color:var(--muted)}#finish button{margin:6px}dialog{border:1px solid var(--line);border-radius:24px;max-width:540px;padding:32px;color:var(--ink);background:var(--paper);line-height:1.6}dialog::backdrop{background:#132e28aa}.close{float:right;font-size:28px;border:0;background:transparent;color:var(--ink)}@media(min-width:1500px){main{max-width:1350px}.seat{height:54px}.big-bus{max-width:1000px}}@media(max-width:700px){header{padding:17px 18px}header a{font-size:18px}.header-actions button{padding:10px;font-size:12px}.header-actions span{display:none}main{padding:18px}.intro{grid-template-columns:1fr;gap:10px;padding-top:0}h1{font-size:43px}.hero-art{height:230px;max-width:480px;width:100%;margin:auto}.mini-bus{height:130px;bottom:45px}.mini-windows{font-size:28px}.options{grid-template-columns:1fr;gap:20px}.setup-panel{padding:22px 18px}.panel-heading{display:block}.panel-heading span{display:block;margin-top:6px}.start-row{gap:15px;flex-wrap:wrap}.start-row .primary{width:100%}.scene{padding:10px 10px 0}.big-bus{padding:12px 8px 18px;margin-top:14px;border-radius:20px 25px 10px 10px}.bus-front{width:39px;margin-right:7px;padding-right:5px}.bus-front #driver{font-size:20px;padding:2px}.bus-front>span{display:none}.seat-row{gap:2px}.seat{height:27px;border-width:1px;border-radius:5px;font-size:16px}.compact .seat{height:21px;font-size:13px}.compact .seat-row{gap:2px}.wheel{width:34px;height:34px;border-width:8px;bottom:-19px}.scene-top{font-size:11px}.street,.legend{margin-left:-10px;margin-right:-10px}.legend{font-size:10px;padding:10px 5px}.keypad{display:grid;grid-template-columns:repeat(6,1fr);max-width:480px}.keypad button{max-width:none;height:52px}.prompt{font-size:17px}.game-bar{font-size:12px}.game-bar button{font-size:11px;padding:11px}.steps{font-size:18px}.equation{gap:9px}.answer{min-width:49px;min-height:45px;padding:3px 7px}footer{padding:20px}.scene-top #riderCount{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}} 
