/* Student debugging paper, second iteration. Keep the full game in one viewport. */
.game-mode-options,.letter-tabs{display:flex;gap:6px;flex-wrap:wrap}
.game-mode-options button,.letter-tabs button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px 10px;font:600 14px var(--font);white-space:nowrap}
.game-mode-options button[aria-pressed=true],.letter-tabs button[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.letter-tabs{padding-right:38px;margin-bottom:24px}
.recipe-drink .recipe-name{font-size:clamp(27px,2.5vw,40px);margin:8px 0 18px;line-height:1.3;color:var(--blue);word-break:keep-all}
.recipe-label{font-size:13px;color:var(--muted);margin:0 0 9px}
.recipe-list{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:0}
.recipe-list li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:18px}
.recipe-list strong{font-family:Arial,var(--font);font-size:25px;white-space:nowrap;font-variant-numeric:tabular-nums}
.recipe-list small{font-size:13px;font-weight:500;color:var(--muted)}
.change-order{background:#e7efcd;border-left:3px solid var(--blue);padding:12px;font-size:17px;line-height:1.6;margin:0 0 18px;word-break:keep-all}
.recipe-drink .tray-label{align-self:stretch;font-size:13px;color:var(--muted);flex:none}
.recipe-drink .ingredient-tray{grid-template-columns:repeat(3,minmax(0,1fr))}
.recipe-drink .ingredient strong small{font-size:11px;font-weight:400;color:var(--muted)}
.recipe-drink .raw-ingredient{border-radius:50%;position:relative}
.recipe-drink .raw-water,.recipe-drink .raw-sparkling{border-radius:4px 4px 10px 10px}
.recipe-drink .raw-ice{border-radius:3px;transform:rotate(-12deg)}
.recipe-drink .raw-carrot{border-radius:30% 30% 70% 70%;transform:rotate(-12deg)}
.recipe-drink .mix-part{display:flex;flex-direction:column;align-items:center;font-variant-numeric:tabular-nums}
.recipe-drink .mix-part small{font-size:11px;line-height:1.4;color:var(--muted)}
.recipe-drink .mix-receipt{width:185px;flex:0 1 185px;overflow:auto}
.recipe-drink .mix-equation{align-items:center}
.recipe-drink .mix-total{white-space:nowrap;font-size:27px}
.recipe-drink .reduce-button{font-size:14px;padding:10px 5px;min-height:44px}
.recipe-drink .reduce-button[aria-pressed=true]{border-color:var(--blue);background:#e8edfa}
.serve-panel{display:flex;flex-direction:column;gap:14px}
.served-name{font-size:25px;font-weight:800;color:var(--blue)}
.serve-panel>p:not(.served-name){color:var(--muted);font-size:15px}
.recipe-drink .tool-panel>.feedback{font-size:14px}
.difficulty-options{border:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.difficulty-options legend{font-size:15px;margin-bottom:8px}
.difficulty-options button{flex:1;min-height:52px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:15px;padding:8px 4px}
.difficulty-options button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
.difficulty-options small{display:block;font-size:12px;margin-top:3px}
.game-pop .aligned-problem{width:max-content;max-width:100%;font-family:Arial,var(--font);letter-spacing:0;font-variant-numeric:tabular-nums}
.aligned-problem>div{display:grid;grid-template-columns:1em 1fr;gap:8px;text-align:right}
.aligned-problem>div:last-child{border-bottom:2px solid var(--ink);padding-bottom:8px}
.game-pop .pop-grid{grid-template-rows:repeat(var(--tile-rows),minmax(0,1fr));max-height:calc(100% - 98px);flex:0 1 360px;gap:7px}
.game-pop .number-tile{aspect-ratio:auto;min-height:44px;font-size:clamp(19px,2.1vw,33px)}
.falling-question{position:absolute;z-index:3;padding:9px 14px;border:2px solid var(--ink);border-radius:8px;background:var(--lime);font-size:17px;font-weight:800;white-space:nowrap;pointer-events:none;box-shadow:0 4px 0 #20282022}
.pop-burst{position:relative;background:#e7efcd!important}
.pop-burst:before,.pop-burst:after{content:'✦';display:inline-block;margin:0 18px;color:var(--blue);animation:pop-burst .55s ease-out}
@keyframes pop-burst{from{transform:scale(.1) rotate(-40deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
.game-blocks .all-pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex:none}
.game-blocks .all-pieces .piece-button{display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-height:76px;height:76px;padding:5px;gap:4px}
.game-blocks .all-pieces .piece-button.selected{padding:4px}
.game-blocks .all-pieces .piece-grid{grid-template-columns:repeat(var(--piece-w),12px);grid-template-rows:repeat(var(--piece-h),12px);gap:2px}
.game-blocks .all-pieces .piece-cell{width:12px;height:12px;border-radius:2px}
.game-blocks .all-pieces .piece-label{flex-direction:row;gap:5px}
.game-blocks .all-pieces .piece-label strong{font-size:19px;letter-spacing:0}
.game-blocks .all-pieces .piece-label kbd{font-size:9px;padding:1px 3px}
.game-blocks .tool-panel{gap:7px;padding:0}
.game-blocks .tool-panel>.eyebrow{margin:0;font-size:10px}
.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-height:42px;padding:8px 10px;font-size:15px}
.game-blocks .tool-note{font-size:11px;line-height:1.4;margin:0}
.board-cell.blocked{background:#87917d;box-shadow:inset 0 0 0 2px #6c7763;cursor:not-allowed}
.board-cell.blocked:after{content:'';width:45%;height:45%;border:1px solid #f5f3ea55;border-radius:3px}
.mix-answer-form{display:flex;flex-direction:column;gap:9px}
.mix-answer-form label{font-size:16px;font-weight:700}
.mix-answer-form input{min-height:56px;width:100%;padding:8px 12px;border:1.5px solid var(--ink);border-radius:10px;font:700 28px Arial,var(--font);background:var(--surface)}
.drink-edit-actions{display:flex;gap:7px}
.drink-edit-actions button{flex:1;padding:10px 6px;white-space:nowrap;font-size:15px}
.game-drink .drink-workbench{gap:18px}
.drink-customer{width:80px;flex:none;align-self:center;text-align:center;font-size:12px;color:var(--muted)}
.customer-head{width:64px;height:76px;border-radius:45% 45% 40% 40%;background:#eddbc1;border:2px solid var(--ink);border-top-width:15px;position:relative;margin:0 auto 12px}
.customer-head>i{position:absolute;top:21px;width:4px;height:5px;background:var(--ink);border-radius:50%;left:15px}
.customer-head>i+i{left:auto;right:15px}
.customer-head>b{position:absolute;left:22px;top:35px;width:17px;height:8px;border-bottom:2px solid var(--ink);border-radius:50%}
.drink-field .cafe-vessel{width:145px;aspect-ratio:145/190;position:relative;justify-content:flex-end;overflow:visible}
.cafe-cup{position:relative;width:85%;height:80%;border:2px solid var(--ink);border-radius:8px 8px 32px 32px;overflow:hidden;background:#fffdf5}
.cafe-cup:after{content:'';position:absolute;left:15px;top:15%;height:65%;width:7px;background:#ffffff70;border-radius:8px}
.cup-liquid{position:absolute;bottom:0;left:0;right:0;height:var(--fill);background:var(--liquid);border-top:2px solid #20282015;transition:height .2s}
.cup-straw{position:absolute;width:8px;height:75%;right:31%;top:0;background:var(--ink);transform:rotate(12deg);border-radius:5px}
.cup-toppings{position:absolute;top:18%;left:16%;right:16%;display:flex;gap:5px;flex-wrap:wrap}
.topping-dot{width:15px;height:15px;border-radius:50%;border:1px solid var(--ink)}
.topping-0{background:#8a83b8}.topping-1{background:#e9877c}.topping-2{background:#f7f2e4}
.topping-sample{width:30px;height:30px;display:block;border-radius:50%;border:1px solid var(--ink)}
.tabletop{background:#e9e0cd;padding:9px;border:1px solid #c6baa3;border-bottom:6px solid #b6a58d;border-radius:12px}
.drink-field .tabletop .ingredient{min-height:76px;background:#fcfcf3cc;border-color:#d6ccb9}
.drink-field .ingredient-color{border:1px solid #20282080;border-radius:5px 5px 9px 9px}
.drink-field .ingredient-kind-2{border-radius:30% 30% 70% 70%;transform:rotate(-12deg)}
.drink-field .ingredient-kind-4{border-radius:50%}
.drink-field .ingredient-kind-6{border:5px solid var(--liquid);background:transparent;border-radius:50%}
.drink-field .topping-tray{grid-template-columns:repeat(3,minmax(0,1fr))}
.drink-field .mix-total{font-size:28px}
.estimate-rule{font-size:17px;line-height:1.6;color:var(--muted)}
.burger-side .answer-area{gap:8px}
.burger-side .answer-choices .choice-button{min-height:58px}
.game-blocks:has([data-start]) .tool-panel>[data-rotate],.game-blocks:has([data-start]) .tool-panel>[data-undo],.game-blocks:has([data-start]) .tool-panel>[data-submit],.game-blocks:has([data-start]) .tool-panel>[data-clear],.game-blocks:has([data-start]) .tool-note{display:none}
.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-width:0;width:100%}
@media(min-width:641px){.burger-side>.side-row{padding:6px 0}.burger-side>.side-row strong{font-size:26px}.burger-side>.side-row.small strong{font-size:20px}.burger-side .answer-area{min-height:190px}.burger-side .answer-form input{height:52px}.burger-side .answer-form .primary-button{min-height:44px;padding:10px}.burger-side .feedback{padding:7px 10px;font-size:13px;line-height:1.5}.burger-side .time-box{padding:7px 0}.burger-side .time-label strong{font-size:27px}}
.speech.waiter{font-size:clamp(18px,1.7vw,26px)}
@media(min-width:1600px){
 .game-blocks .all-pieces .piece-button{height:112px}.game-blocks .all-pieces .piece-grid{grid-template-columns:repeat(var(--piece-w),19px);grid-template-rows:repeat(var(--piece-h),19px)}.game-blocks .all-pieces .piece-cell{width:19px;height:19px}.game-blocks .all-pieces .piece-label strong{font-size:26px}.game-blocks .tool-panel{gap:12px}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-height:48px;font-size:19px}.game-pop .pop-grid{flex-basis:550px}.drink-field .cafe-vessel{width:205px}.drink-customer{width:115px;font-size:17px}.customer-head{transform:scale(1.25);margin-bottom:27px}.mix-answer-form label{font-size:22px}.mix-answer-form input{min-height:70px;font-size:36px}
}
@media(max-width:900px){
 .game-pop .tool-panel{flex-wrap:wrap}.difficulty-options{flex-basis:100%;flex-wrap:nowrap;align-items:center}.difficulty-options legend{float:left;margin:0 10px 0 0}.difficulty-options button{min-height:44px}.difficulty-options small{display:inline;margin-left:5px}.game-pop .pop-grid{flex:1;max-height:calc(100% - 62px)}
 .game-blocks .tool-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.game-blocks .game-mode-options{grid-column:1/-1}.game-blocks .all-pieces{grid-column:1/-1;grid-template-columns:repeat(9,minmax(0,1fr))}.game-blocks .all-pieces .piece-button{height:70px;min-height:70px}.game-blocks .tool-panel>[data-start]{grid-column:1/-1}.game-blocks .block-board{width:min(100%,calc(100dvh - 380px))}
 .game-drink .tool-panel{gap:6px}.mix-answer-form{display:grid;grid-template-columns:1fr 1fr;flex-basis:100%;gap:6px}.mix-answer-form label{grid-column:1/-1;font-size:13px}.mix-answer-form input{min-height:44px;height:44px;font-size:24px}.mix-answer-form button{min-height:44px}.drink-edit-actions{flex:1}.drink-edit-actions button{min-height:44px}.game-drink .tool-panel>.feedback{order:0;min-height:0;padding:7px 10px}.game-drink .tool-panel>.primary-button:last-child{margin:0;flex:1}
}
@media(max-width:640px){
 .game-pop .aligned-problem{margin:0;font-size:25px}.aligned-problem>div{gap:3px}.game-pop .mission-panel .problem span{margin:0}.game-pop .pop-grid{gap:4px}.game-pop .number-tile{font-size:16px;min-height:38px;border-radius:6px}.game-pop .pop-field{justify-content:flex-start}.game-pop .tool-panel .control-pad{grid-template-columns:repeat(3,44px)}.game-pop .tool-panel .tool-section{justify-content:center}.falling-question{font-size:12px;padding:6px 8px}
 .game-blocks .all-pieces{grid-template-columns:repeat(3,minmax(0,1fr))}.game-blocks .all-pieces .piece-button{height:48px;min-height:48px;flex-direction:row;justify-content:space-evenly;padding:4px}.game-blocks .all-pieces .piece-grid{grid-template-columns:repeat(var(--piece-w),10px);grid-template-rows:repeat(var(--piece-h),10px);gap:1px}.game-blocks .all-pieces .piece-cell{width:10px;height:10px}.game-blocks .all-pieces .piece-label strong{font-size:18px}.game-blocks .all-pieces .piece-label kbd{display:none}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-height:44px;font-size:12px;padding:5px 2px}.game-blocks .tool-panel>.primary-button kbd,.game-blocks .tool-panel>.secondary-button kbd{display:none}.game-blocks .block-board{width:min(100%,calc(100dvh - 485px));min-width:145px}.game-blocks .game-mode-options button{min-height:36px;font-size:12px;padding:6px}
 .game-drink .drink-workbench{padding:0;gap:10px;justify-content:space-between;min-height:96px}.drink-customer{width:53px;font-size:9px}.customer-head{width:40px;height:49px;border-top-width:10px;margin-bottom:5px}.customer-head>i{top:12px;left:8px;width:3px;height:3px}.customer-head>i+i{right:8px}.customer-head>b{left:12px;top:20px;width:12px;height:5px}.drink-field .cafe-vessel{width:80px;max-height:130px;min-height:90px}.cafe-cup{border-radius:5px 5px 20px 20px}.cup-straw{width:5px}.cup-toppings{gap:2px}.topping-dot{width:9px;height:9px}.mix-receipt{width:110px}.mix-receipt .mix-equation{font-size:15px}.drink-field .mix-total{font-size:22px;margin-top:4px}.tabletop{padding:5px;border-bottom-width:4px}.drink-field .tabletop .ingredient{min-height:57px;padding:4px 2px;gap:1px}.drink-field .ingredient-color{height:14px;width:15px;margin:0}.drink-field .ingredient>span:nth-child(2){font-size:10px}.drink-field .ingredient strong{font-size:16px}.ingredient-tabs button{min-height:32px}.game-drink .mission-panel .instruction{font-size:11px}.game-drink .mission-panel .stat-row{padding:4px 0}.game-drink .tool-panel>.feedback{font-size:11px}.drink-edit-actions button{font-size:12px}.mix-answer-form label{font-size:12px}.mix-answer-form input{font-size:22px}.mix-answer-form .primary-button{font-size:14px}
 .burger-layout{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto;gap:10px}.burger-scene{padding:10px 12px 0;column-gap:12px;grid-template-columns:70px minmax(0,1fr)}.speech,.speech.waiter{font-size:15px;padding:8px 10px;line-height:1.4}.counter{margin:0 -12px;padding:4px 12px 0}.burger-art{width:160px;max-height:165px}.burger-kcal{right:5px;bottom:4px;font-size:10px;padding:3px 5px}.burger-kcal strong{font-size:20px}.customer-tag{font-size:10px;padding-bottom:5px}.ing-table{gap:4px}.ing-tile{padding:6px;grid-template-columns:1fr}.ing-kcal{font-size:20px}.ing-kcal small{font-size:9px}.ing-name{font-size:12px}.burger-stage{gap:6px}.burger-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}.burger-side>.side-row{font-size:11px;padding:5px 0;display:block}.burger-side .side-row strong{font-size:22px;display:block}.burger-side .side-row strong small{font-size:10px}.burger-side .time-box{grid-column:1/-1;padding:4px 0}.time-label{font-size:12px}.time-label strong{font-size:20px}.time-track{height:6px;margin-top:3px}.burger-side .answer-area{grid-column:1/-1;padding:4px 0;gap:5px}.answer-form{display:grid;grid-template-columns:1fr 1fr;gap:5px}.answer-form label{grid-column:1/-1;font-size:12px}.answer-form input{height:44px;font-size:24px}.answer-form .primary-button{font-size:15px;min-height:44px}.burger-side .feedback{font-size:12px;padding:6px 8px;min-height:0}.burger-side .feedback strong{font-size:15px}.burger-side .side-row.small{grid-column:auto;display:flex;align-items:center}.burger-side .side-row.small strong{font-size:18px}.mode-card{padding:14px;gap:10px}.mode-card h2{font-size:23px}.mode-card .instruction{font-size:13px}.mode-card .eyebrow{font-size:9px;margin:0}.mode-card .game-mode-options button{font-size:12px}.mode-card>.primary-button{font-size:14px;min-height:44px}.estimate-rule{font-size:12px;line-height:1.4}.answer-choices{grid-template-columns:repeat(4,1fr);gap:5px}.burger-side .answer-choices .choice-button{min-height:48px;font-size:22px}.choice-button kbd{font-size:8px;left:4px;top:2px}
}
@media(max-height:710px) and (max-width:640px){
 .game-blocks .all-pieces .piece-button{height:44px;min-height:44px}.game-blocks .block-board{width:145px}.game-blocks .blocks-field{padding:24px 8px 5px}.game-blocks .blocks-field>.feedback{font-size:9px;padding:3px 5px;margin-top:4px}.game-blocks .board-sum{margin-top:3px}.game-blocks .board-sum strong{font-size:19px}.game-blocks .mission-panel .timer-readout{font-size:20px}.game-blocks .tool-panel{gap:4px}.game-blocks .all-pieces{gap:4px}.game-blocks .game-mode-options button{min-height:32px}.game-blocks .tool-panel>[data-start]{min-height:36px}
 .drink-field .cafe-vessel{width:57px;min-height:66px;max-height:80px}.game-drink .drink-workbench{min-height:70px}.drink-field .tabletop .ingredient{min-height:49px}.drink-field .ingredient-color{height:10px}.drink-field .ingredient strong{font-size:14px}.game-drink .tool-panel>.feedback{font-size:10px;padding:4px 7px}.mix-answer-form{gap:3px}.ingredient-tabs button{min-height:28px}.game-drink .drink-field{gap:4px}.game-drink:has([data-start]) .mix-answer-form,.game-drink:has([data-start]) .drink-edit-actions{display:none}.burger-layout{grid-template-rows:minmax(140px,1fr) auto}.burger-art{max-height:110px}.burger-scene{grid-template-columns:55px minmax(0,1fr)}.mode-card{gap:7px}.mode-card h2{font-size:20px}.mode-card .instruction{display:none}.side-row.small{padding:2px 0}.speech,.speech.waiter{font-size:13px}
}
/* Recipe orders keep ingredient names, quantities and subtraction requests visible. */
@media(min-width:1600px){.recipe-drink .recipe-name{font-size:42px}.recipe-list li{font-size:23px;padding:17px 0}.recipe-list strong{font-size:32px}.recipe-list small{font-size:17px}.recipe-label,.recipe-drink .tray-label{font-size:17px}.change-order{font-size:22px}.recipe-drink .mix-receipt{width:230px;flex-basis:230px}.recipe-drink .mix-part small{font-size:15px}.recipe-drink .mix-total{font-size:35px}.recipe-drink .tool-panel>.feedback{font-size:19px}}
@media(max-width:900px){.recipe-drink .mission-panel{position:relative;display:block;padding:0}.recipe-drink .mission-panel>.eyebrow{display:none}.recipe-drink .recipe-name{font-size:25px;margin:0 95px 6px 0}.recipe-drink .recipe-label{font-size:12px;margin:0 0 5px}.recipe-drink .recipe-list{display:flex;flex-direction:row;gap:7px;margin:0}.recipe-drink .recipe-list li{flex:1;display:flex;flex-direction:column;gap:3px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:var(--surface)}.recipe-drink .recipe-list strong{font-size:20px}.recipe-drink .recipe-list small{font-size:11px}.recipe-drink .recipe-progress{position:absolute;top:0;right:0;margin:0;padding:0;border:0;gap:5px;font-size:12px}.recipe-drink .recipe-progress strong{font-size:22px}.recipe-drink .mission-panel>.tool-note{display:none}.recipe-drink .change-order{font-size:13px;padding:5px 8px;margin:6px 0 0}.recipe-drink .tool-panel>.reduce-button{flex-basis:100%;width:100%;min-height:38px;padding:6px;font-size:12px}.recipe-drink .serve-panel{display:grid;grid-template-columns:1fr auto;width:100%;gap:8px;align-items:center}.recipe-drink .served-name{font-size:19px}.recipe-drink .serve-panel>.tool-note{grid-column:1/-1;font-size:11px}.recipe-drink .serve-panel>p:nth-child(2){display:none}.recipe-drink .serve-panel>.primary-button{min-height:44px;font-size:15px;padding:8px 12px}.recipe-drink .tool-panel>.feedback{font-size:12px;padding:7px 10px}}
@media(max-width:640px){.recipe-drink .recipe-name{font-size:22px}.recipe-drink .recipe-list li{padding:5px 7px;font-size:12px}.recipe-drink .recipe-list strong{font-size:18px}.recipe-drink .recipe-list small{font-size:10px}.recipe-drink .recipe-label{font-size:11px}.recipe-drink .recipe-progress{font-size:11px}.recipe-drink .recipe-progress strong{font-size:20px}.recipe-drink .recipe-progress strong small{font-size:12px}.recipe-drink .drink-workbench{gap:7px}.recipe-drink .mix-receipt{width:130px;flex:0 1 130px;padding:6px 0}.recipe-drink .mix-equation{gap:3px;font-size:14px}.recipe-drink .mix-part small{font-size:9px}.recipe-drink .mix-total{font-size:20px}.recipe-drink .tray-label{font-size:11px}.recipe-drink .ingredient strong small{font-size:9px}.recipe-drink .ingredient>span:nth-child(2){font-size:12px}.recipe-drink .tool-panel>.feedback{font-size:11px}.recipe-drink .drink-customer{font-size:10px;word-break:keep-all}}
@media(max-width:640px) and (max-height:710px){.recipe-drink .recipe-name{font-size:20px;margin-bottom:3px}.recipe-drink .recipe-list li{padding:4px 6px;gap:1px}.recipe-drink .recipe-list strong{font-size:16px}.recipe-drink .change-order{font-size:12px;margin-top:4px;padding:4px 7px}.recipe-drink .recipe-label{font-size:10px;margin-bottom:4px}.recipe-drink .drink-workbench{min-height:66px}.recipe-drink .mix-receipt{padding:3px 0;max-height:90px}.recipe-drink .mix-receipt>.eyebrow{font-size:8px;margin-bottom:2px}.recipe-drink .mix-equation{font-size:12px;gap:2px}.recipe-drink .mix-part small{font-size:8px}.recipe-drink .mix-total{font-size:17px}.recipe-drink .tabletop .ingredient{min-height:44px}.recipe-drink .tabletop .ingredient-color{display:none}.recipe-drink .tabletop .ingredient>span:nth-child(2){font-size:12px}.recipe-drink .tabletop .ingredient strong{font-size:15px}.recipe-drink .tray-label{font-size:10px}.recipe-drink .tool-panel>.feedback{font-size:10px;padding:4px 7px}.recipe-drink .reduce-button{min-height:32px!important}.recipe-drink .mix-answer-form label{font-size:11px}.recipe-drink .mix-answer-form input,.recipe-drink .mix-answer-form>.primary-button{min-height:40px;height:40px}.recipe-drink .drink-edit-actions>.secondary-button{min-height:36px;padding:5px}.recipe-drink .tool-panel{gap:4px}}
/* A visible marble falls onto physical balloon targets. */
.balloon-game .balloon-field{padding:42px 20px 16px;justify-content:flex-start;gap:0}
.balloon-game .drop-station{height:94px;flex:0 0 94px;width:100%;border-bottom:1px dashed #c7d2da;position:relative;margin-bottom:12px}
.drop-station>span{position:absolute;right:0;top:0;font-size:11px;color:var(--muted)}
.balloon-game .calculation-ball{position:absolute;z-index:3;top:43px;left:50%;transform:translateX(-50%);width:76px;height:76px;display:flex;flex-direction:column;justify-content:center;text-align:right;align-items:center;border-radius:50%;border:2px solid #64717e;background:radial-gradient(circle at 30% 25%,#fff 0,#e6ebed 45%,#a6b3bc 100%);box-shadow:inset -4px -6px 0 #63798b22,0 3px 4px #20282020;color:#202820;font:700 19px/1.25 Arial,var(--font);pointer-events:none}
.calculation-ball>span{display:block;min-width:60%;text-align:right;padding-right:4px}
.balloon-game .pop-grid{flex:1 1 auto;max-height:none;min-height:0;gap:12px 6px}
.balloon-game .number-tile{background:transparent!important;border:0!important;box-shadow:none!important;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;overflow:visible;transition:none;opacity:1}
.balloon-game .balloon-shell{display:flex;align-items:center;justify-content:center;position:relative;height:calc(100% - 14px);max-height:106px;aspect-ratio:.88;max-width:95%;border:1.5px solid #20282077;border-radius:50% 50% 46% 46%;box-shadow:inset -5px -6px 0 #20282012;background:var(--balloon-color);color:#202820;font-family:Arial,var(--font);font-size:clamp(18px,2vw,29px);font-variant-numeric:tabular-nums;letter-spacing:-.04em;z-index:1}
.balloon-shell:before{content:'';position:absolute;left:17%;top:15%;width:13%;height:26%;border-radius:50%;transform:rotate(30deg);background:#ffffff8a}
.balloon-shell:after{content:'';position:absolute;left:calc(50% - 5px);bottom:-7px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:7px solid var(--balloon-color)}
.balloon-string{height:12px;width:1px;background:#9daaa3;position:relative;top:4px}
.balloon-color-0{--balloon-color:#F1B2A6}.balloon-color-1{--balloon-color:#B5CFEC}.balloon-color-2{--balloon-color:#E4D88A}.balloon-color-3{--balloon-color:#A8D6C4}
.balloon-game .number-tile.selected .balloon-shell{outline:3px solid var(--blue);outline-offset:3px}
.balloon-game .number-tile:disabled{opacity:1}
.balloon-game .balloon-wrong .balloon-shell{animation:balloon-wobble .35s ease-in-out}
@keyframes balloon-wobble{25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
.balloon-fragments{position:absolute;z-index:5;pointer-events:none;width:0;height:0}
.balloon-fragments>i{display:block;position:absolute;width:10px;height:17px;border-radius:60% 0 60% 0;background:#ed9a88;animation:balloon-shard .5s ease-out both}
.balloon-fragments>i:nth-child(even){background:#8da9db}
@keyframes balloon-shard{from{transform:translate(0,0) scale(1);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.2);opacity:0}}
.balloon-game .pop-field>.feedback{margin-top:12px}
@media(min-width:1600px){.balloon-game .drop-station{height:120px;flex-basis:120px}.balloon-game .calculation-ball{width:100px;height:100px;font-size:25px}.balloon-game .balloon-shell{max-height:160px;font-size:36px}.balloon-game .pop-grid{gap:18px 10px}}
@media(max-width:640px){.balloon-game .balloon-field{padding:28px 10px 10px}.balloon-game .drop-station{height:65px;flex-basis:65px;margin-bottom:9px}.drop-station>span{font-size:8px}.balloon-game .calculation-ball{top:29px;width:49px;height:49px;font-size:13px}.balloon-game .pop-grid{gap:8px 3px}.balloon-game .balloon-shell{font-size:15px;max-height:90px;max-width:94%;height:calc(100% - 10px);box-shadow:inset -3px -4px 0 #20282012}.balloon-game .balloon-string{height:8px}.balloon-game .number-tile.selected .balloon-shell{outline-width:2px;outline-offset:2px}.balloon-game .number-tile{min-height:40px}.balloon-game .pop-field>.feedback{margin-top:9px;font-size:11px;padding:7px}}
/* A 5 × 5 enlargement of one quarter of the 100-cell whole. */
.cumulative-blocks .decimal-model{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted)}
.hundred-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:1px;width:81px;height:81px;flex:none;background:#b3bdae;border:1px solid #87967c}
.hundred-grid i{background:#fcfcf8}.hundred-grid i.zoom-area{background:#aac27d}
.decimal-model>div:last-child{display:flex;flex-direction:column;gap:5px;font-size:11px;line-height:1.5}.decimal-model strong{font-size:14px;color:var(--ink)}
.block-equation{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-top:1px solid var(--line)}
.block-equation>span{font-size:13px;color:var(--muted)}.block-equation strong{font-size:33px;font-variant-numeric:tabular-nums;white-space:nowrap}.block-equation>b{font-size:27px;color:var(--blue)}
.cumulative-blocks .timer-readout{padding-top:6px;margin:0}
.run-stats{display:flex;flex-direction:column;gap:9px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}.run-stats>span{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}.run-stats b{font-size:19px;color:var(--ink)}
.cumulative-blocks .piece-label{white-space:nowrap;gap:3px!important}.cumulative-blocks .all-pieces .piece-label strong{font-size:17px}.cumulative-blocks .piece-label small{font-size:10px;color:var(--muted);white-space:nowrap}.cumulative-blocks .piece-button:disabled{opacity:.42}
.cumulative-blocks .block-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
.block-controls>button{min-width:0;min-height:44px;font-size:12px;padding:7px 3px}.block-controls kbd{display:none}
.cumulative-blocks .tool-panel>.text-button{min-height:36px;font-size:12px;white-space:normal}
.cumulative-blocks .block-board{flex-shrink:1;aspect-ratio:1}.board-cell.committed{box-shadow:inset 0 0 0 2px #20282065}
.cumulative-blocks .board-sum strong{font-size:23px}.cumulative-blocks .board-sum>span{font-size:12px}
.stage-clear-card{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:#fcfcf8f5;z-index:4;padding:14px}.stage-clear-card h3{font-size:29px}.stage-clear-card p{font-size:18px}.stage-clear-card button{min-height:44px;font-size:15px;width:min(100%,240px)}
.cumulative-blocks:has([data-start]) .block-controls{display:none}
@media(min-width:1600px){.hundred-grid{width:111px;height:111px}.decimal-model strong{font-size:18px}.decimal-model>div:last-child{font-size:13px}.block-equation strong{font-size:43px}.block-equation>b{font-size:36px}.block-equation>span{font-size:17px}.cumulative-blocks .block-controls>button{min-height:54px;font-size:17px}.cumulative-blocks .tool-panel>.text-button{font-size:16px;min-height:44px}.run-stats>span{font-size:18px}.run-stats b{font-size:25px}.cumulative-blocks .board-sum strong{font-size:32px}.cumulative-blocks .board-sum>span{font-size:18px}}
@media(max-width:900px){.cumulative-blocks .mission-panel{display:grid;grid-template-columns:1fr 1fr;position:relative;padding:0;column-gap:16px}.cumulative-blocks .mission-panel>.eyebrow{display:none}.cumulative-blocks .mission-panel>h2{grid-column:1;grid-row:1;font-size:19px}.cumulative-blocks .decimal-model{grid-column:1;grid-row:2/4;margin:4px 0 0;gap:7px}.hundred-grid{width:51px;height:51px}.decimal-model strong{font-size:11px}.decimal-model>div:last-child{font-size:9px;gap:1px}.cumulative-blocks .block-equation{grid-column:2;grid-row:2/4;padding:3px 0;border:0;display:grid;grid-template-columns:1fr auto;gap:2px}.block-equation>span{grid-column:1/-1;font-size:10px}.block-equation strong{font-size:24px}.block-equation>b{font-size:22px}.cumulative-blocks .mission-panel .timer-readout{grid-column:2;grid-row:1;text-align:right;font-size:22px;padding:0;border:0}.run-stats{grid-column:1/-1;flex-direction:row;justify-content:space-between;margin:6px 0 0;padding:4px 0 0;gap:6px}.run-stats>span{font-size:10px;gap:4px;align-items:baseline}.run-stats b{font-size:13px}.cumulative-blocks .block-controls{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}.cumulative-blocks .tool-panel>.text-button{grid-column:span 2;min-height:28px;font-size:11px}.cumulative-blocks .block-board{width:min(100%,calc(100dvh - 425px))}.cumulative-blocks .board-sum strong{font-size:18px}.cumulative-blocks .board-sum>span{font-size:10px}}
@media(max-width:640px){.cumulative-blocks{gap:7px}.cumulative-blocks .all-pieces .piece-label{gap:3px}.cumulative-blocks .all-pieces .piece-label strong{font-size:16px}.cumulative-blocks .piece-label small{font-size:9px}.cumulative-blocks .block-controls{gap:4px}.block-controls>button{font-size:11px;min-height:40px}.cumulative-blocks .block-board{width:min(100%,calc(100dvh - 460px));min-width:130px}.cumulative-blocks .blocks-field{padding:26px 8px 7px}.cumulative-blocks .blocks-field>.feedback{min-height:0;font-size:10px;line-height:1.3;padding:4px 6px;margin-top:5px}.cumulative-blocks .board-sum{margin-top:4px;gap:7px}.cumulative-blocks .tool-panel{gap:4px}.cumulative-blocks .stage-clear-card{gap:8px}.stage-clear-card h3{font-size:23px}.stage-clear-card p{font-size:13px}.stage-clear-card button{min-height:38px;font-size:13px;padding:6px}}
@media(max-width:640px) and (max-height:710px){.cumulative-blocks .mission-panel>h2{font-size:16px}.cumulative-blocks .block-equation strong{font-size:20px}.cumulative-blocks .block-equation>b{font-size:19px}.cumulative-blocks .block-board{width:143px}.cumulative-blocks .all-pieces .piece-button{height:42px;min-height:42px}.cumulative-blocks .tool-panel>.text-button{min-height:25px;font-size:10px}.cumulative-blocks .block-controls>button{min-height:36px;font-size:10px}.cumulative-blocks .board-sum strong{font-size:15px}.cumulative-blocks .board-sum>span{font-size:9px}.cumulative-blocks .stage-clear-card h3{font-size:20px}}

.version-link{min-height:36px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap;flex:none}.version-link:hover{color:var(--blue);border-color:var(--blue)}@media(max-width:640px){.version-link{min-height:44px;padding:0 10px;font-size:12px}}
.request-list{list-style:none;padding:0;margin:0;display:grid;gap:14px}.request-list li{display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:start;margin:0}.request-no{display:inline-flex;justify-content:center;min-height:28px;align-items:center;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:12px;font-weight:800;white-space:nowrap}.letter .request-text{font-size:16px;font-weight:700;line-height:1.6;margin:0 0 2px}.letter .request-result{font-size:16px;line-height:1.75;margin:0;color:var(--ink)}.letter-rest{background:#f3efe2}.letter-rest>p{margin:0!important;font-size:16px!important}.letter-offer{padding:24px;border:1px solid var(--line);border-radius:12px;margin:28px 0}.letter .offer-lead{font-size:14px;color:var(--muted);margin:-8px 0 10px}.letter-offer ul{padding-left:21px;margin:0}.letter-offer li{font-size:16px;line-height:1.85;margin:8px 0;word-break:keep-all}@media(max-width:640px){.request-list li{grid-template-columns:1fr;gap:4px}.request-no{justify-self:start;padding:0 10px}.letter .request-text,.letter .request-result,.letter-offer li{font-size:14px}.letter-offer{padding:18px;margin:22px 0}}
.sheet-dialog .plan-header>div{flex:1;min-width:0}.sheet-scroll{max-height:calc(100dvh - 285px);overflow:auto;border:1px solid var(--line);border-radius:8px;background:white}.sheet-scroll .plan-image{max-height:none;border:0;border-radius:0}
@media(max-width:640px){.sheet-scroll{max-height:calc(100dvh - 240px)}.sheet-dialog .sheet-pdf{min-height:36px;padding:0 9px;font-size:11px}}
@media(max-width:400px){.game-actions .version-link{padding:0 7px;font-size:11px}}

/* 3차(2026-11-05): 식 하나에 조각 세 개라 덧셈식이 길어졌다. 칸 밖으로 잘리지 않게 줄이고 넘치면 줄을 바꾼다. */
.cumulative-blocks .block-equation strong{font-size:25px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
@media(min-width:1600px){.cumulative-blocks .block-equation strong{font-size:32px}}
@media(max-width:900px){.cumulative-blocks .block-equation strong{font-size:19px}}
.badge{white-space:nowrap;flex:none}
