.mobile-only,.mobile-budget,.touch-mark{display:none}.mobile-game .shell{width:auto;margin-inline:max(6px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-right))}.mobile-game .top-inner{min-height:49px;height:auto;padding-block:4px}.mobile-game .brand{gap:7px}.mobile-game .brand-mark{width:35px;height:35px;flex:0 0 35px}.mobile-game .brand-sub,.mobile-game .edition,.mobile-game .spec,.mobile-game .heading p{display:none}.mobile-game .top-right,.mobile-game .edition-select{min-width:0}.mobile-game .edition-select select{width:100%;max-width:min(52vw,440px);min-height:44px;padding:5px 9px;font-size:.875rem}.mobile-game .heading{margin:9px 5px 8px}.mobile-game .heading h1{font-size:clamp(1.68rem,5.5vw,2.5rem);margin:3px 0 0}.mobile-game .heading .kicker{font-size:.65rem}.mobile-game .layout,.mobile-game .rail{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.mobile-game .workspace{position:relative;overflow:visible}.mobile-game .workspace-head{min-height:44px;padding:0 6px;gap:4px}.mobile-game .workspace-title,.mobile-game #joint-count,.mobile-game .rail .budget-card,.mobile-game .view-label,.mobile-game .toolbar .divider{display:none}.mobile-game .mobile-budget{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;color:#324e3a;line-height:1.25}.mobile-budget small{font:700 .63rem var(--mono)}.mobile-budget strong{font-size:.98rem}.mobile-budget>span{font-size:.75rem;font-weight:650}.mobile-budget.over strong{color:#a04333}.mobile-game .workspace-actions{flex-wrap:nowrap;gap:4px}.mobile-game .mode{padding:4px;font-size:.58rem;white-space:nowrap}.mobile-game .mode .status-dot{width:5px;height:5px}.mobile-game .mobile-only{display:block}.mobile-game .workspace-actions .quiet-button,.mobile-options summary{min-height:44px;padding:4px 7px;font-size:.75rem}.mobile-game .workspace-actions:has(#mobile-cancel:not([hidden])) :is(.mode,#mobile-results){display:none}.mobile-options summary{display:grid;place-items:center;cursor:pointer;list-style:none;color:#355740;font-weight:700}.mobile-options summary::-webkit-details-marker{display:none}.mobile-options[open] summary{background:#e4edda}.mobile-option-panel{position:absolute;z-index:5;inset:44px 4px auto auto;width:min(275px,calc(100% - 8px));max-height:65dvh;overflow:auto;background:#fffef8;color:#3b5140;border:1px solid #cfdbc6;border-radius:8px;padding:8px;box-shadow:0 8px 17px #233c3240}.mobile-option-panel p{font-size:.875rem;line-height:1.35;margin-top:7px}#mobile-site-spec{font-weight:650}#mobile-option-controls{display:flex;flex-wrap:wrap;gap:4px}.mobile-game .mobile-option-panel .tool,.mobile-game .mobile-option-panel #open-lesson{padding-inline:7px;border-color:#dde4d6;min-height:44px}.mobile-game .mobile-option-panel .tool{margin:0}.mobile-game .viewport{height:clamp(248px,min(52dvh,108vw),580px);touch-action:none;-webkit-user-select:none;user-select:none;overscroll-behavior:contain;-webkit-touch-callout:none}.mobile-game .viewport .legend{top:4px;right:5px;padding:4px 6px}.mobile-game .map-pin{padding:3px 4px}.mobile-game .editor-controls{min-width:0;background:#fffef8;border-radius:0 0 12px 12px}.mobile-game .materials-card{margin:0;padding:0;border:0;box-shadow:none;background:transparent}.mobile-game .materials-card>.rail-title{display:none}.mobile-game .material-list{display:flex;gap:4px;margin:0;padding:4px 5px;border-bottom:1px solid #e1e5d7}.mobile-game .material{flex:1 1 0;min-width:0;min-height:44px;display:flex;flex-wrap:wrap;justify-content:flex-start;font-size:.875rem;gap:2px 5px;padding:4px 5px;text-align:left}.mobile-game .material strong{font-size:.875rem}.mobile-game .material small{display:none}.mobile-game .material-price{font-size:.68rem}.mobile-game .material-price:after{content:"/m";font-weight:400}.mobile-game .swatch{flex:0 0 20px;width:20px;height:20px}.mobile-game .swatch:before{width:12px}.mobile-game .toolbar{display:grid;grid-template-columns:repeat(4,minmax(44px,.85fr)) minmax(98px,1.6fr);gap:3px;padding:4px 5px;min-height:0}.mobile-game .toolbar .tool-group{display:contents}.mobile-game .toolbar .tool{width:auto;min-height:44px;padding-inline:2px;font-size:.79rem;border-color:#e5e9df}.mobile-game .toolbar .tool-icon,.mobile-game #undo>span{display:none}.mobile-game #undo:before{content:"Undo"}.mobile-game .primary.mobile-test{display:block;margin:0;width:100%;min-height:44px;padding:3px 5px;font-size:.79rem}.mobile-game .editor-controls button,.mobile-game .workspace-actions button{touch-action:manipulation}.mobile-game .instruction{min-height:36px;padding:3px 7px;gap:5px;line-height:1.25;border-radius:0 0 10px 10px;font-size:.75rem}.mobile-game .instruction>span:first-child{display:none}.mobile-game #mobile-cancel{flex:0 0 auto}.mobile-game .lesson-banner{padding:5px 7px;gap:8px}.mobile-game .lesson-banner p{font-size:.78rem}.mobile-game .lesson-banner button,.mobile-game .result-actions button,.mobile-game .test-report button{min-height:44px}.mobile-game #result{scroll-margin-top:8px}.mobile-game .field-note summary{min-height:44px}.mobile-game .field-note{padding-block:0}.mobile-game .field-note[open]{padding-bottom:9px}.touch-mark{position:absolute;z-index:2;pointer-events:none;width:31px;height:31px;border-radius:50%;transform:translate(-50%,-50%);border:2px solid #f8edb4;box-shadow:0 0 0 1px #243f36cc}.touch-mark:not([hidden]){display:block}.touch-origin{border-color:#a1f7b7;width:26px;height:26px}.touch-target.invalid{border-color:#ff9d71;border-style:dashed}.touch-mark:before{content:"";position:absolute;inset:-4px 50%;border-left:1px solid #fffae0bb}.pointer-info{z-index:3}@media(max-width:365px){.mobile-game .mode .status-dot{display:none}.mobile-game .workspace-actions{gap:1px}.mobile-game .mobile-budget small{width:100%}.mobile-game .workspace-actions:has(#mobile-results:not([hidden])) .mode{display:none}}@media(orientation:portrait)and (max-height:700px){.mobile-game .workspace:has(#lesson-banner:not([hidden])) .viewport{height:clamp(212px,min(41dvh,108vw),480px)}}@media(orientation:landscape)and (max-height:600px){.mobile-game .top-inner{min-height:44px;padding-block:0}.mobile-game .edition-select select{max-width:min(36vw,340px)}.mobile-game .heading{position:absolute;top:0;left:max(150px,calc(env(safe-area-inset-left) + 144px));right:max(calc(min(36vw,340px) + 14px),env(safe-area-inset-right));height:44px;margin:0;display:flex;align-items:center}.mobile-game .heading>div{min-width:0;max-width:100%}.mobile-game .heading .kicker{display:none}.mobile-game .heading h1{font-size:clamp(1rem,4.4vh,1.6rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-game .workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(148px,24vw,211px);align-items:start}.mobile-game .workspace-head,.mobile-game .lesson-banner{grid-column:1 / -1}.mobile-game .viewport{height:max(180px,calc(100dvh - 94px));align-self:stretch}.mobile-game .workspace:has(#lesson-banner:not([hidden])) .viewport{height:max(164px,calc(100dvh - 150px))}.mobile-game .editor-controls{align-self:stretch;border-left:1px solid #dae2d1}.mobile-game .material{flex-direction:column;align-items:center;justify-content:center;padding-inline:1px}.mobile-game .material strong{font-size:.72rem}.mobile-game .material-price{font-size:.64rem}.mobile-game .swatch{width:16px;height:8px;flex:none}.mobile-game .swatch:before{height:4px;width:9px}.mobile-game .toolbar{grid-template-columns:repeat(3,minmax(44px,1fr))}.mobile-game .primary.mobile-test{grid-column:span 2}.mobile-game .instruction{align-items:flex-start;flex-direction:column;min-height:0}}
