/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.table{display:table}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--navy:#071c32;--blue:#087ee9;--red:#e9262d;--yellow:#ffd849;--ink:#102b44}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--ink);background:#b5c7d0;margin:0;font-family:Hiragino Maru Gothic ProN,Yu Gothic,Meiryo,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.town-shell{background:linear-gradient(#0416260a,#061d3066),url(/action-base-bg.png) 50% 76px/min(1586px,130vw) no-repeat,#acbec7;min-height:100svh;padding:12px clamp(10px,2.3vw,34px) 28px;overflow:hidden}.topbar,.hero,.control-panel,.record-panel,.parent-note,.safety-bar{z-index:2;position:relative}.topbar{color:#fff;background:linear-gradient(135deg,#071929,#133654);border:1px solid #ffffff2b;border-radius:17px;align-items:center;gap:17px;max-width:1440px;min-height:82px;margin:0 auto;padding:10px 17px;display:flex;box-shadow:0 9px 22px #02111e4d,inset 0 1px #ffffff1f}.brand{color:#fff;letter-spacing:.02em;white-space:nowrap;align-items:center;gap:11px;font-size:clamp(1rem,1.9vw,1.62rem);font-weight:900;line-height:1.12;text-decoration:none;display:flex}.brand small{color:#9dc9eb;letter-spacing:.25em;margin-bottom:3px;font-size:.57rem;display:block}.brand-mark{color:#fff;background:linear-gradient(135deg, var(--red) 0 48%, var(--blue) 52%);border:3px solid #fff;border-radius:9px;flex:0 0 51px;place-items:center;width:51px;height:51px;font:italic 1000 1.7rem Arial,sans-serif;display:grid;box-shadow:0 0 16px #43a9ff52}.nav-pills{gap:8px;margin-left:auto;display:flex}.nav-pill{color:#dbe9f4;background:#ffffff12;border:1px solid #ffffff21;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:48px;padding:0 18px;text-decoration:none;display:inline-flex}.nav-pill b{font-size:.95rem;font-weight:900}.nav-pill.active{color:#fff;background:linear-gradient(#168bee,#0965c2);border-color:#278ff1;box-shadow:inset 0 -3px #0000002e}.sound-button{color:#a8bccd;cursor:pointer;background:#0b243b;border:1px solid #43627b;border-radius:10px;flex:0 0 49px;width:49px;height:49px;font-size:1.45rem;font-weight:900}.sound-button.on{color:#fff;border-color:#2d9afb;box-shadow:0 0 13px #1d8ff561}.hero{max-width:1080px;margin:13px auto 0}.hero-copy{color:#fff;text-align:left;text-shadow:0 2px 5px #000;background:linear-gradient(90deg,#05182af0,#0e314bde);border-radius:18px 18px 0 0;justify-content:center;align-items:center;gap:16px;min-height:116px;padding:9px 20px;display:flex}.hero-fleet{flex:0 0 220px;width:220px;height:98px;position:relative}.hero-fleet img{object-fit:contain;filter:drop-shadow(0 8px 8px #0000007a);width:146px;height:94px;animation:1.6s ease-in-out infinite engine-idle;position:absolute}.hero-fleet img:first-child{z-index:2;top:0;left:0}.hero-fleet img:last-child{animation-delay:-.8s;top:9px;right:0}.mission-line{align-items:center;gap:13px;margin-bottom:3px;display:flex}.mission-line>span{border-left:4px solid var(--yellow);color:#ffd86a;letter-spacing:.15em;background:#ffd8491a;padding:4px 8px;font:800 .7rem Arial,sans-serif}.mission-line b{color:#bcd9ec;letter-spacing:.12em;font-size:.75rem}.mission-line i{background:#55ed87;border-radius:50%;width:8px;height:8px;margin-right:5px;display:inline-block;box-shadow:0 0 10px #55ed87}.hero-copy h1{letter-spacing:.055em;margin:0;font-size:clamp(1.55rem,3vw,2.45rem);font-weight:1000}.hero-copy p{color:#dbeaf4;letter-spacing:.08em;margin:3px 0 0;font-size:clamp(.83rem,1.5vw,1.08rem);font-weight:800}.game-card{background:linear-gradient(90deg,#10344c09 1px,#0000 1px) 0 0/18px 18px,linear-gradient(#10344c09 1px,#0000 1px) 0 0/18px 18px,#fcfefffa;border:1px solid #fffc;border-top:5px solid #8fa4b3;border-radius:0 0 25px 25px;min-height:625px;padding:17px clamp(16px,4vw,46px) 20px;box-shadow:0 13px #071c2d2e,0 23px 45px #03172647}.game-card.correct{animation:.38s celebrate}.game-card.wrong{animation:.36s nudge}.game-card-top{grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;display:grid}.mode-badge{color:#fff;background:linear-gradient(#ee3940,#bd1720);border:1px solid #ff6e74;border-radius:7px;justify-self:start;padding:8px 25px;font-size:1rem;font-weight:900;box-shadow:inset 0 -3px #46000433}.mode-badge.subtract{background:linear-gradient(#559b72,#337254);border-color:#71b896}.problem-count{letter-spacing:.08em;font-size:1.05rem}.star-row{color:#cbd4d9;justify-self:end;gap:4px;font-size:clamp(1.3rem,2.4vw,2rem);display:flex}.star-row .earned{color:var(--yellow);filter:drop-shadow(0 2px #b78300);animation:.35s pop}.mission-progress{grid-template-columns:repeat(10,1fr);gap:4px;margin:11px 0 2px;display:grid}.mission-progress span{background:#d7e0e5;border-radius:2px;height:5px}.mission-progress .active{background:linear-gradient(90deg, var(--red), var(--blue))}.equation{color:#09233a;justify-content:center;align-items:center;gap:clamp(13px,3.6vw,46px);margin-top:2px;font:1000 clamp(3.1rem,6.4vw,5.7rem)/1 Arial Rounded MT Bold,Yu Gothic,sans-serif;display:flex}.cars-equation{justify-content:center;align-items:center;gap:16px;min-height:132px;display:flex}.vehicle-group{flex-wrap:wrap;place-content:center;align-items:center;gap:0;width:43%;max-height:155px;display:flex;overflow:hidden}.vehicle-image{object-fit:contain;filter:drop-shadow(0 5px 3px #091c2754);width:clamp(58px,7.7vw,87px);height:clamp(38px,5.2vw,58px);margin:-3px -5px}.cars-operator{color:#4b6070;font-size:2.6rem;font-weight:1000}.leave-zone{width:43%;position:relative}.leave-zone .vehicle-group{opacity:.34;filter:grayscale(.5);width:100%}.leave-zone .vehicle-group:after{content:"➜";color:var(--red);font-size:2.7rem;animation:.8s ease-in-out infinite arrow-run;position:absolute;right:-3px}.leave-zone small{color:#607483;text-align:center;font-weight:900;display:block}.question-copy{text-align:center;letter-spacing:.075em;min-height:33px;margin:3px 0 9px;font-size:clamp(1.08rem,2vw,1.48rem);font-weight:1000}.correct .question-copy{color:#148b46}.wrong .question-copy{color:#d31e27}.answer-grid{grid-template-columns:repeat(4,1fr);gap:clamp(8px,2vw,20px);display:grid}.answer-button{min-height:88px;color:var(--ink);cursor:pointer;background:linear-gradient(#fff,#edf2f5);border:2px solid #aebec8;border-radius:12px;font-size:clamp(2.6rem,4.7vw,4rem);font-weight:1000;transition:transform .14s,border-color .14s;box-shadow:0 6px #a9b8c1,0 9px 15px #0b223226}.answer-button:hover{border-color:#e6a800;transform:translateY(-2px)}.answer-button:focus-visible,.segmented button:focus-visible,.check-button:focus-visible,.sound-button:focus-visible{outline-offset:3px;outline:5px solid #0f81e559}.answer-button.selected{background:linear-gradient(#ffe779,#ffc72f);border:4px solid #df9800;transform:translateY(-2px);box-shadow:0 6px #b17800,0 9px 15px #0b223226}.answer-button.right{background:linear-gradient(#8ee3a5,#4fbb73);border-color:#1d7c45}.check-button{color:#fff;letter-spacing:.09em;text-shadow:0 2px 3px #00000080;cursor:pointer;background:linear-gradient(90deg,#ae121b,#e32931 47%,#126ac3 53%,#074f9a);border:2px solid #fff;border-radius:10px;justify-content:center;align-items:center;gap:24px;min-width:min(480px,91%);min-height:66px;margin:15px auto 0;padding:9px 38px;font-size:clamp(1.24rem,2.5vw,1.65rem);font-weight:1000;display:flex;position:relative;overflow:hidden;box-shadow:0 6px #061a2b,0 10px 17px #04162347}.check-button:disabled{opacity:.4;filter:grayscale(.6);cursor:not-allowed}.check-button:not(:disabled):active{transform:translateY(4px);box-shadow:0 2px #061a2b}.button-light{color:#ff484f;background:currentColor;border-radius:50%;width:16px;height:16px;animation:.45s steps(2,end) infinite light-flash;box-shadow:0 0 14px 5px}.button-light.blue{color:#39a6ff;animation-delay:-.22s}.finish-card{text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}.trophy{font-size:6rem;animation:.6s pop}.finish-kicker{color:#c62029;letter-spacing:.12em;margin:5px 0 0;font-weight:900}.finish-card h2{margin:4px 0;font-size:clamp(2.7rem,7vw,5.3rem);font-weight:1000}.finish-card>p:last-of-type{font-size:1.2rem;font-weight:800}.finish-stars{color:#ffc929;letter-spacing:.14em;filter:drop-shadow(0 3px #b98400);font-size:3.5rem}.control-panel,.record-panel,.parent-note{background:#f8fbfcf7;border:1px solid #fff;border-radius:17px;max-width:1080px;margin:30px auto 0;padding:24px 28px;box-shadow:0 10px 27px #05192733}.control-panel>div:first-child{align-items:center;gap:13px;display:flex}.section-icon{font-size:2.5rem}.eyebrow{color:#176eb5;letter-spacing:.15em;margin:0;font:900 .72rem Arial,sans-serif}.control-panel h2,.record-panel h2,.parent-note h2{margin:2px 0 0;font-size:1.45rem;font-weight:1000}.control-groups{grid-template-columns:1.3fr 1fr;gap:20px;margin-top:18px;display:grid}fieldset{border:0;margin:0;padding:0}legend{margin-bottom:7px;font-weight:900}.segmented{background:#dae5eb;border-radius:11px;grid-template-columns:repeat(3,1fr);gap:6px;padding:6px;display:grid}.control-groups fieldset:last-child .segmented{grid-template-columns:repeat(2,1fr)}.segmented button{min-height:54px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:7px;font-weight:900}.segmented button.active{color:#fff;background:linear-gradient(#2088dd,#0a5ba5);box-shadow:inset 0 -3px #0000002b}.record-panel{grid-template-columns:1.4fr repeat(3,1fr);align-items:center;gap:14px;display:grid}.stat{background:linear-gradient(#f9fcfd,#e2ebef);border:1px solid #cad8df;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:101px;display:flex}.stat strong{font-size:2.35rem;line-height:1}.stat span{margin-top:6px;font-size:.76rem;font-weight:900}.parent-note{align-items:center;gap:18px;margin-bottom:18px;display:flex}.parent-note>span{font-size:2.6rem}.parent-note p{color:#496071;margin:5px 0 0;line-height:1.72}.safety-bar{color:#e5edf3;background:#051b2cf5;border-radius:10px;justify-content:space-between;align-items:center;gap:17px;max-width:1080px;min-height:54px;margin:0 auto;padding:8px 15px 8px 22px;font-size:.86rem;font-weight:800;display:flex}.safety-bar p{margin:0}.safety-bar a{color:#fff;white-space:nowrap;border:1px solid #59aaf0;border-radius:7px;padding:8px 20px;text-decoration:none}.dispatch-overlay{z-index:100;pointer-events:none;background:radial-gradient(circle,#0000 30%,#000a148c);position:fixed;inset:0;overflow:hidden}.strobe{opacity:0;mix-blend-mode:screen;animation:.35s steps(2,end) 4 strobe;position:absolute;inset:-25%}.red-strobe{background:linear-gradient(110deg,#ff0014bf,#0000 40%)}.blue-strobe{background:linear-gradient(290deg,#007cffcc,#0000 42%);animation-delay:-.17s}.bang{z-index:3;color:#fff;-webkit-text-stroke:6px #061a2b;paint-order:stroke fill;text-shadow:8px 8px 0 var(--red);opacity:0;font-size:clamp(4.2rem,11vw,9rem);font-style:italic;font-weight:1000;line-height:.9;animation:.48s cubic-bezier(.2,1.5,.4,1) forwards bang-pop;position:absolute;transform:scale(.2)rotate(-10deg)}.bang-one{top:13%;left:9%}.bang-two{text-shadow:8px 8px 0 var(--blue);animation-delay:.25s;top:36%;right:9%}.bang-three{color:#ffdf4e;font-size:clamp(3rem,8vw,6.8rem);animation-delay:.55s;bottom:10%;left:26%}.dispatch-vehicle{z-index:2;filter:drop-shadow(0 18px 13px #00000094);width:clamp(180px,29vw,440px);animation:1.05s cubic-bezier(.17,.72,.25,1) forwards rapid-dispatch;position:absolute;left:-38vw}.v1{animation-delay:20ms;top:7%}.v2{animation-delay:.13s;top:23%}.v3{animation-delay:.24s;top:39%}.v4{animation-delay:.35s;top:53%}.v5{animation-delay:.46s;top:66%}.v6{animation-delay:.57s;top:78%}@keyframes engine-idle{50%{transform:translateY(-3px)}}@keyframes celebrate{50%{transform:scale(1.009)}}@keyframes nudge{25%{transform:translate(-7px)}60%{transform:translate(7px)}}@keyframes pop{50%{transform:scale(1.16)}}@keyframes arrow-run{50%{opacity:.55;transform:translate(9px)}}@keyframes light-flash{50%{opacity:.15}}@keyframes strobe{50%{opacity:.9}}@keyframes bang-pop{50%{opacity:1;transform:scale(1.12)rotate(3deg)}to{opacity:1;transform:scale(1)rotate(-2deg)}}@keyframes rapid-dispatch{0%{transform:translate(0)scale(.72)}45%{transform:translate(88vw)scale(1)}to{transform:translate(150vw)scale(.76)}}@media (width<=900px){.topbar{min-height:70px;padding:8px 11px}.brand-mark{flex-basis:44px;width:44px;height:44px;font-size:1.4rem}.nav-pill{min-width:43px;padding:0 11px}.nav-pill b{display:none}.sound-button{flex-basis:44px;width:44px;height:44px}.hero-fleet{flex-basis:180px;width:180px}.hero-fleet img{width:120px}.game-card{border-radius:0 0 20px 20px}.record-panel{grid-template-columns:1fr repeat(3,1fr)}}@media (width<=620px){.town-shell{background-position:50%,50% 62px,50%;background-size:auto,auto 590px,auto;padding:7px 7px 14px}.topbar{border-radius:11px;gap:5px}.brand{white-space:normal;font-size:.91rem;line-height:1.08}.brand small{font-size:.46rem}.brand-mark{display:none}.nav-pills{gap:3px}.nav-pill{width:36px;min-width:36px;min-height:37px;padding:0}.sound-button{border-radius:7px;flex-basis:37px;width:37px;height:37px}.hero{margin-top:7px}.hero-copy{border-radius:12px 12px 0 0;gap:5px;min-height:96px;padding:6px 9px}.hero-fleet{flex-basis:112px;width:112px;height:72px}.hero-fleet img{width:80px;height:68px}.hero-copy h1{letter-spacing:.025em;font-size:1.07rem}.hero-copy p{font-size:.64rem}.mission-line{gap:5px}.mission-line>span{font-size:.5rem}.mission-line b{font-size:.56rem}.game-card{border-top-width:4px;border-radius:0 0 16px 16px;min-height:584px;padding:11px 10px 14px}.game-card-top{grid-template-columns:auto 1fr;gap:7px}.problem-count{justify-self:end;font-size:.78rem}.mode-badge{padding:6px 13px;font-size:.76rem}.star-row{grid-column:1/-1;justify-self:center;font-size:1.25rem}.mission-progress{margin-top:6px}.equation{gap:9px;font-size:2.85rem}.cars-equation{gap:5px;min-height:147px}.vehicle-group{width:45%;max-height:150px}.vehicle-image{width:52px;height:37px;margin:-2px -6px}.cars-operator{font-size:1.65rem}.leave-zone{width:45%}.leave-zone .vehicle-group:after{font-size:1.7rem}.leave-zone small{font-size:.63rem}.question-copy{min-height:43px;margin-bottom:5px;font-size:.87rem}.answer-grid{gap:5px}.answer-button{border-radius:8px;min-height:68px;font-size:2.25rem;box-shadow:0 4px #a9b8c1}.answer-button.selected{box-shadow:0 4px #b17800}.check-button{border-radius:8px;gap:13px;min-height:55px;margin-top:10px;padding:7px 15px;font-size:1.03rem}.button-light{width:10px;height:10px}.control-panel,.record-panel,.parent-note{border-radius:13px;margin-top:17px;padding:18px 14px}.control-groups{grid-template-columns:1fr}.record-panel{grid-template-columns:repeat(3,1fr)}.record-panel>div:first-child{grid-column:1/-1}.stat{min-height:88px}.stat strong{font-size:1.9rem}.stat span{text-align:center;font-size:.62rem}.parent-note{align-items:flex-start}.parent-note>span{font-size:1.9rem}.parent-note p{font-size:.79rem}.safety-bar{border-radius:9px;margin-top:10px;padding:8px 9px;font-size:.64rem}.safety-bar a{padding:6px 7px}.bang{-webkit-text-stroke-width:3px;text-shadow:4px 4px 0 var(--red)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
