:root{--forest:#2d6a4f;--forest-dark:#1f4f3a;--forest-soft:#e6f1eb;--orange:#f4872b;--orange-dark:#c95f12;--orange-soft:#fff0e2;--cream:#fffaf0;--paper:#fffefa;--ink:#18332a;--muted:#62736c;--line:#cfdcd5;--shadow:0 18px 50px rgb(27 66 50/12%);--font-sans:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}html{background:var(--cream);color:var(--ink);font-family:var(--font-sans)}body{margin:0;min-width:320px;min-height:100vh;background-color:var(--cream)}button{min-height:48px;border:0;font:inherit;touch-action:manipulation}button:not(:disabled){cursor:pointer}button:focus-visible{outline:4px solid rgb(244 135 43/32%);outline-offset:3px}dd,dl,h1,h2,ol,p{margin:0}.app-shell{width:min(100%,1240px);margin:0 auto;padding:22px clamp(16px,3vw,38px) 28px}.answer-heading,.setup-footer,.site-footer,.submit-bar,.summary-actions,.surface-header,.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar{min-height:68px;padding:0 4px 18px}.topbar-start{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.module-back-link{position:fixed;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));z-index:1000;min-height:48px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border:2px solid rgba(11,82,63,.18);border-radius:999px;background:rgba(255,254,249,.96);box-shadow:0 10px 28px rgba(13,68,54,.18);color:var(--forest-dark);font-size:14px;font-weight:900;text-decoration:none;white-space:nowrap;backdrop-filter:blur(12px);transition:background .16s ease,color .16s ease,transform .16s ease}.module-back-link:hover{background:var(--forest-dark);color:white;transform:translateY(-1px)}.module-back-link:focus-visible{border-radius:6px;outline:4px solid rgba(244,135,43,.28);outline-offset:4px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup div{display:grid;gap:2px}.brand-lockup span:not(.robot-mark){color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em}.brand-lockup strong{color:var(--forest-dark);font-size:20px;line-height:1.1}.robot-mark{position:relative;display:grid;width:46px;height:38px;place-items:center;border:3px solid var(--forest-dark);border-radius:12px;background:var(--orange);color:var(--forest-dark)}.robot-mark i{top:-10px;left:20px;width:3px;height:9px}.robot-mark i,.robot-mark i:before{position:absolute;background:var(--forest-dark)}.robot-mark i:before{top:-5px;left:-3px;width:8px;height:8px;border-radius:50%;content:""}.robot-mark b{letter-spacing:5px;transform:translateX(2px)}.construct-tag{padding:8px 12px;border:1px solid #b8d0c3;border-radius:8px;background:var(--forest-soft);color:var(--forest-dark);font-size:13px;font-weight:800}.game-surface{overflow:hidden;border:1px solid #d5e0d9;border-radius:28px;background:var(--paper);box-shadow:var(--shadow)}.surface-header{min-height:108px;padding:24px clamp(20px,4vw,46px);border-bottom:1px solid #e1e9e4;background:#f7fbf8}.surface-header>div{display:grid;gap:6px}.surface-header h1{max-width:850px;color:var(--forest-dark);font-size:clamp(23px,3vw,34px);line-height:1.25}.eyebrow{color:var(--orange-dark);font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.quiet-button,.text-button{padding:8px 12px;background:transparent;color:var(--forest-dark);font-weight:800;text-decoration:underline;text-underline-offset:4px}.phase-track{display:grid;grid-template-columns:repeat(4,1fr);padding:14px clamp(20px,4vw,46px);border-bottom:1px solid #e1e9e4;list-style:none}.phase-track li{display:flex;align-items:center;gap:8px;color:#91a099;font-size:13px;font-weight:800;white-space:nowrap}.phase-track li:after{width:100%;height:2px;margin-right:12px;background:#dce6e0;content:""}.phase-track li:last-child:after{display:none}.phase-track li span{display:grid;flex:0 0 28px;height:28px;place-items:center;border:2px solid #cbd8d1;border-radius:50%;background:white}.phase-track li.is-active{color:var(--forest-dark)}.phase-track li.is-active span{border-color:var(--forest);background:var(--forest);color:white}.phase-track li.is-active:after{background:#80b398}.answer-panel,.play-panel,.ready-panel,.result-panel,.setup-panel,.summary-panel{padding:clamp(24px,4vw,48px)}.hero-copy{display:flex;align-items:center;gap:22px;padding:22px 26px;border-left:6px solid var(--orange);background:var(--orange-soft)}.hero-robot{display:grid;flex:0 0 76px;height:76px;place-items:center;border:2px solid #f2c399;border-radius:22px;background:white;font-size:43px}.hero-copy div,.play-copy,.result-hero div,.setting-heading div,.summary-hero div{display:grid;gap:7px}.answer-heading h2,.hero-copy h2,.result-hero h2,.setting-heading h2,.summary-hero h2{color:var(--forest-dark);font-size:clamp(20px,2.5vw,28px);line-height:1.3}.answer-heading p,.device-note,.hero-copy p,.ready-note,.result-hero p,.setting-heading p,.summary-hero p{color:var(--muted);line-height:1.65}.setting-section{margin-top:30px;padding-bottom:28px;border-bottom:1px solid #dce6e0}.setting-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}.setting-heading>span{display:grid;flex:0 0 34px;height:34px;place-items:center;border-radius:10px;background:var(--forest);color:white;font-weight:900}.setting-heading h2{font-size:20px}.setting-heading p{font-size:14px}.mode-grid,.order-control,.setting-section--split,.summary-grid{display:grid;gap:14px}.mode-grid,.order-control,.setting-section--split{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-card{display:grid;grid-template-columns:52px 1fr;gap:4px 14px;min-height:118px;padding:18px;border:2px solid var(--line);border-radius:16px;background:white;color:var(--ink);text-align:left}.mode-card>span{display:grid;grid-row:span 2;width:52px;height:52px;place-items:center;border-radius:14px;background:var(--forest-soft);color:var(--forest-dark);font-size:27px;font-weight:900}.mode-card strong{align-self:end;font-size:19px}.mode-card small{color:var(--muted);font-size:14px;line-height:1.5}.mode-card.is-selected,.mode-card:hover,.order-control button.is-selected,.segmented-control button.is-selected,.time-control button.is-selected{border-color:var(--forest);background:var(--forest-soft)}.mode-card.is-selected{box-shadow:inset 0 0 0 1px var(--forest)}.setting-section--split>div{min-width:0}.segmented-control,.time-control{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.segmented-control{grid-template-columns:repeat(4,minmax(0,1fr))}.order-control button,.segmented-control button,.time-control button{border:2px solid var(--line);border-radius:12px;background:white;color:var(--ink)}.segmented-control button{display:grid;min-height:82px;place-items:center;padding:8px}.segmented-control b{color:var(--forest-dark);font-size:26px}.segmented-control span{color:var(--muted);font-size:13px}.order-control button{display:grid;min-height:82px;place-items:center;gap:5px;padding:12px}.order-control span{color:var(--orange-dark);font-weight:900}.order-control strong{font-size:15px}.memory-setting{border-bottom:0}.time-control{grid-template-columns:repeat(3,minmax(0,1fr))}.time-control button{min-height:58px;font-weight:900}.time-control.is-disabled{opacity:.48}.setup-footer{align-items:stretch;justify-content:flex-end;margin-top:10px}.listen-button,.primary-button,.secondary-button{min-height:52px;border-radius:12px;font-weight:900}.primary-button{padding:13px 24px;background:var(--forest);color:white;box-shadow:0 8px 18px rgb(45 106 79/18%)}.primary-button:hover:not(:disabled){background:var(--forest-dark)}.primary-button:disabled{background:#a9b9b0;box-shadow:none;color:#f4f7f5}.listen-button,.secondary-button{padding:11px 18px;border:2px solid var(--forest);background:white;color:var(--forest-dark)}.ready-panel{display:grid;max-width:820px;min-height:520px;align-content:center;gap:26px;margin:0 auto}.robot-narrator{display:flex;align-items:center;gap:20px}.robot-character{position:relative;display:grid;flex:0 0 116px;height:134px;place-items:center}.robot-antenna{position:absolute;top:0;left:56px;width:4px;height:21px;border-radius:3px;background:var(--forest-dark)}.robot-antenna:before{position:absolute;top:-7px;left:-4px;width:12px;height:12px;border-radius:50%;background:var(--orange);content:""}.robot-face{position:absolute;top:20px;display:flex;width:104px;height:74px;align-items:center;justify-content:center;gap:26px;border:4px solid var(--forest-dark);border-radius:24px;background:#f8fffb}.robot-face i{width:13px;height:18px;border-radius:50%;background:var(--forest-dark)}.robot-body{position:absolute;bottom:0;display:grid;width:82px;height:52px;place-items:center;border:4px solid var(--forest-dark);border-radius:14px 14px 20px 20px;background:var(--orange);color:#ffe3c6}.is-speaking .robot-face i{animation:robot-blink 1.2s infinite}.speech-bubble{position:relative;display:grid;min-height:108px;align-content:center;gap:8px;flex:1;padding:20px 24px;border:2px solid #c8d9cf;border-radius:18px;background:white}.speech-bubble:before{position:absolute;left:-12px;width:20px;height:20px;border-bottom:2px solid #c8d9cf;border-left:2px solid #c8d9cf;background:white;content:"";transform:rotate(45deg)}.speech-bubble strong{color:var(--forest-dark);font-size:clamp(20px,2.5vw,28px);line-height:1.35}.speech-bubble p{color:var(--muted);line-height:1.55}.ready-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ready-rules div{display:grid;gap:4px;padding:15px;border:1px solid var(--line);background:#f7faf8}.ready-rules span{color:var(--muted);font-size:12px}.ready-rules strong{color:var(--forest-dark)}.ready-panel>.primary-button,.result-panel>.primary-button{justify-self:center;min-width:230px}.ready-note{text-align:center}.answer-layout,.play-layout,.result-layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(400px,1.18fr);align-items:center;gap:clamp(28px,5vw,64px)}.play-copy{align-content:center;gap:18px}.play-copy .robot-narrator{align-items:flex-start;flex-direction:column}.play-copy .robot-character{align-self:center}.play-copy .speech-bubble{width:100%}.play-copy .speech-bubble:before{top:-11px;left:calc(50% - 10px);transform:rotate(135deg)}.presentation-progress{display:flex;gap:7px;width:min(100%,330px)}.presentation-progress span{flex:1;height:7px;border-radius:4px;background:#dce6e0}.presentation-progress span.is-active{background:var(--orange)}.device-note{font-size:13px}.grid-board{width:min(100%,590px);grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1.2vw,12px);justify-self:center;padding:clamp(10px,1.7vw,17px);border:4px solid var(--forest-dark);border-radius:22px;background:#d9e9df;box-shadow:0 14px 30px rgb(31 79 58/14%)}.grid-board,.grid-cell{display:grid;aspect-ratio:1}.grid-cell{position:relative;min-width:0;min-height:0;place-items:center;overflow:hidden;border:2px solid #abc3b6;border-radius:13px;background:#f9fcfa;color:var(--ink)}.grid-cell:disabled{cursor:default;opacity:1}.grid-cell:not(:disabled):hover{border-color:var(--forest);background:#eef7f1}.grid-cell.is-place-target:not(:disabled){border-style:dashed;border-color:#73a88c;background:#f3faf5}.grid-cell.is-place-target:not(:disabled):hover{border-style:solid;border-color:var(--orange);background:var(--orange-soft);transform:translateY(-2px)}.grid-cell.is-current{border-color:var(--orange);box-shadow:inset 0 0 0 3px rgb(244 135 43/25%);animation:current-cell 1s ease-in-out infinite alternate}.grid-cell.is-selected{border-color:var(--forest);background:#e7f3eb}.grid-cell.is-intrusion{border-color:#c4774b;background:#fff1e7}.grid-cell.is-binding-error{border-color:var(--orange-dark);box-shadow:inset 0 0 0 2px rgb(244 135 43/28%)}.grid-item{display:grid;place-items:center;gap:2px}.grid-item>span{font-size:clamp(26px,4.7vw,50px);line-height:1}.grid-item strong{color:var(--forest-dark);font-size:clamp(11px,1.4vw,15px)}.expected-badge,.response-badge{position:absolute;display:grid;place-items:center;font-weight:900}.response-badge{top:50%;left:50%;width:clamp(34px,5vw,48px);height:clamp(34px,5vw,48px);border:3px solid white;border-radius:50%;background:var(--forest-dark);color:white;font-size:clamp(17px,2.4vw,24px);box-shadow:0 4px 12px rgb(20 50 40/24%);transform:translate(-50%,-50%);z-index:2}.grid-cell.has-item .response-badge{top:auto;right:5px;bottom:5px;left:auto;width:30px;height:30px;border-width:2px;font-size:14px;transform:none}.expected-badge{top:5px;left:5px;min-height:24px;padding:3px 6px;border-radius:6px;background:var(--orange);color:#4d2607;font-size:10px;z-index:3}.memory-panel .play-copy{justify-items:start}.countdown{display:flex;align-items:baseline;gap:7px;color:var(--orange-dark)}.countdown strong{font-size:70px;line-height:1}.countdown span{font-weight:900}.answer-heading{align-items:flex-start;margin-bottom:26px}.answer-heading>div{display:grid;gap:7px}.item-tray{display:grid;gap:14px;margin-bottom:16px;padding:18px;border:2px solid var(--line);border-radius:18px;background:#f8fbf9}.tray-heading strong{color:var(--forest-dark);font-size:18px}.item-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px}.item-option{display:grid;min-height:106px;place-items:center;gap:2px;padding:9px 7px;border:2px solid #c6d5cd;border-radius:14px;background:white;color:var(--ink)}.item-option>span{font-size:34px;line-height:1}.item-option strong{color:var(--forest-dark);font-size:14px}.item-option small{color:var(--muted);font-size:11px}.item-option.is-active{border-color:var(--orange);background:var(--orange-soft);box-shadow:inset 0 0 0 1px var(--orange)}.item-option.is-placed{border-color:#91b8a2;background:var(--forest-soft);opacity:.72}.selected-item-banner{display:flex;min-height:54px;align-items:center;justify-content:center;gap:10px;margin-bottom:18px;padding:10px 16px;border-left:5px solid var(--orange);background:var(--orange-soft);color:var(--forest-dark);text-align:center}.selected-item-banner>span{font-size:30px}.answer-layout{grid-template-columns:minmax(420px,1.25fr) minmax(250px,.75fr);align-items:stretch}.answer-queue{display:grid;align-content:start;gap:14px;padding:20px;border:2px solid var(--line);border-radius:16px;background:#f8fbf9}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--forest-dark)}.queue-heading span{color:var(--orange-dark);font-weight:900}.answer-queue ol{display:grid;gap:8px;padding:0;list-style:none}.answer-queue li{display:flex;min-height:46px;align-items:center;gap:10px;padding:8px 10px;border:1px dashed #bdccc4;color:#98a59f}.answer-queue li.is-filled{border-style:solid;border-color:#9fc2af;background:var(--forest-soft);color:var(--forest-dark)}.answer-queue li b{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:white}.answer-queue li span{font-size:13px;font-weight:700}.answer-queue li i{margin-right:5px;font-size:20px;font-style:normal}.text-button:disabled{color:#a8b2ad}.submit-bar{margin-top:26px;padding:16px 18px;border-top:1px solid var(--line);background:#f7faf8}.submit-bar span{color:var(--muted);font-weight:700}.result-hero,.summary-hero{display:flex;align-items:center;gap:18px;margin-bottom:28px;padding:19px 22px;border-left:6px solid var(--orange);background:var(--orange-soft)}.result-hero.is-correct{border-left-color:var(--forest);background:var(--forest-soft)}.result-hero>span,.summary-hero>span{display:grid;flex:0 0 54px;height:54px;place-items:center;border-radius:15px;background:white;color:var(--forest-dark);font-size:28px;font-weight:900}.result-layout{grid-template-columns:minmax(420px,1.08fr) minmax(310px,.92fr);align-items:start}.result-legend{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:10px;color:var(--muted);font-size:12px;font-weight:700}.result-legend span{display:inline-flex;align-items:center;gap:6px}.result-legend i{width:15px;height:15px;border-radius:4px}.legend-response{background:var(--forest-dark)}.legend-expected{background:var(--orange)}.result-details{display:grid;gap:18px}.route-strip{display:grid;gap:11px}.route-strip>strong{color:var(--forest-dark)}.route-strip>div{display:flex;flex-wrap:wrap;gap:7px}.route-stop{position:relative;display:grid;min-width:64px;place-items:center;gap:2px;padding:9px 8px;border:1px solid var(--line);background:white}.route-stop b{position:absolute;top:4px;left:5px;color:var(--orange-dark);font-size:11px}.route-stop i{font-size:28px;font-style:normal}.route-stop small{color:var(--muted);font-size:11px}.route-stop em{color:var(--forest-dark);font-size:9px;font-style:normal;font-weight:700;white-space:nowrap}.error-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.error-summary div{display:grid;gap:4px;padding:14px;border:1px solid var(--line);background:#f7faf8}.error-summary span{color:var(--muted);font-size:12px}.error-summary strong{color:var(--forest-dark);font-size:24px}.feedback-list{display:grid;gap:8px}.feedback-list p{padding:10px 12px;border-left:4px solid #ddad86;background:#fff7f0;color:var(--muted);font-size:13px;line-height:1.5}.feedback-list b{color:var(--ink)}.result-panel>.primary-button{display:block;margin:28px auto 0}.summary-panel{min-height:590px}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid>div{display:grid;align-content:start;gap:7px;min-height:150px;padding:18px;border-top:5px solid var(--forest);background:#f4f8f5}.summary-grid dt{color:var(--muted);font-size:13px;font-weight:800}.summary-grid dd{color:var(--forest-dark);font-size:clamp(25px,3.4vw,38px);font-weight:900}.summary-grid small{color:var(--muted);line-height:1.45}.round-errors{display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:20px;padding:16px 18px;border:1px solid var(--line);background:white}.round-errors strong{color:var(--forest-dark)}.round-errors span{color:var(--muted);font-size:14px}.summary-actions{justify-content:flex-end;margin-top:26px}.site-footer{padding:16px 6px 0;color:#718179;font-size:12px}@keyframes current-cell{0%{transform:scale(.98)}to{transform:scale(1.02)}}@keyframes robot-blink{0%,88%,to{transform:scaleY(1)}92%{transform:scaleY(.15)}}@media (max-width:900px){.answer-layout,.play-layout,.result-layout{grid-template-columns:1fr}.play-copy .robot-narrator{align-items:center;flex-direction:row}.play-copy .speech-bubble:before{top:auto;left:-12px;transform:rotate(45deg)}.play-copy .robot-character{align-self:auto}.play-copy .device-note,.presentation-progress{justify-self:center}.grid-board{width:min(100%,560px)}.answer-queue{grid-template-columns:1fr auto}.answer-queue ol,.queue-heading{grid-column:1/-1}.answer-queue ol{grid-template-columns:repeat(5,minmax(0,1fr))}.answer-queue li{align-items:flex-start;flex-direction:column}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:620px){.app-shell{padding:12px 10px 20px}.topbar{align-items:flex-start}.module-back-link{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-height:44px;padding:0 13px;font-size:12px}.construct-tag{max-width:105px;text-align:center}.game-surface{border-radius:18px}.answer-panel,.play-panel,.ready-panel,.result-panel,.setup-panel,.summary-panel,.surface-header{padding:20px 16px}.answer-heading,.setup-footer,.site-footer,.submit-bar,.summary-actions,.surface-header{align-items:stretch;flex-direction:column}.surface-header .quiet-button{align-self:flex-start}.phase-track{padding:11px 16px}.phase-track li{justify-content:center;font-size:0}.phase-track li:after{margin-right:0}.phase-track li span{font-size:12px}.hero-copy,.result-hero,.summary-hero{align-items:flex-start}.hero-robot,.result-hero>span,.summary-hero>span{flex-basis:48px;width:48px;height:48px;font-size:27px}.mode-grid,.order-control,.ready-rules,.setting-section--split,.summary-grid{grid-template-columns:1fr}.setting-section--split{gap:28px}.time-control{grid-template-columns:repeat(3,1fr)}.segmented-control{grid-template-columns:repeat(2,1fr)}.play-copy .robot-narrator,.robot-narrator{align-items:center;flex-direction:column}.speech-bubble{width:100%}.play-copy .speech-bubble:before,.speech-bubble:before{top:-11px;left:calc(50% - 10px);transform:rotate(135deg)}.robot-character{flex-basis:108px;height:122px}.grid-board{gap:6px;padding:8px;border-width:3px;border-radius:17px}.grid-cell{border-radius:9px}.grid-item strong{display:none}.answer-queue,.answer-queue ol{grid-template-columns:1fr}.answer-queue li{align-items:center;flex-direction:row}.setup-footer .primary-button,.submit-bar .primary-button,.summary-actions button{width:100%}.result-layout{gap:26px}.site-footer{gap:4px}}@media (orientation:landscape) and (max-height:720px) and (min-width:700px){.app-shell{padding-top:10px}.topbar{min-height:52px;padding-bottom:10px}.surface-header{min-height:82px;padding-top:14px;padding-bottom:14px}.answer-panel,.play-panel,.ready-panel,.result-panel,.setup-panel,.summary-panel{padding-top:24px;padding-bottom:24px}.play-layout{grid-template-columns:minmax(300px,.8fr) minmax(400px,1.2fr)}.grid-board{width:min(100%,470px)}.robot-character{flex-basis:92px;height:108px;transform:scale(.82)}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}