﻿@charset "UTF-8";
:root{--bg:#f5f3ea;--surface:#fcfcf8;--ink:#202820;--muted:#657060;--line:#d9ddd0;--lime:#d8f36a;--blue:#245be2;--orange:#f5a358;--pink:#e9877c;--mint:#83c7b1;--danger:#b13c31;--radius:20px;--font:"Pretendard Variable",Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{font-family:var(--font);font-size:18px;line-height:1.55;letter-spacing:-.035em}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}svg{display:block;max-width:100%}button svg,a svg{width:22px;height:22px;flex:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:5px}button:disabled{opacity:.45}::selection{background:var(--lime)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-screen{height:100dvh;min-height:620px;max-width:1920px;margin:auto;display:grid;grid-template-rows:88px minmax(0,1fr) 44px;padding:0 4.1vw}.site-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:47px;height:47px;background:var(--ink);color:var(--surface);border-radius:50%;font-size:29px;font-weight:800;display:flex;justify-content:center;align-items:center;letter-spacing:-.1em;line-height:1;padding-right:4px}.brand-mark>span{color:var(--lime)}.brand-name{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.06em}.brand-sub{display:block;margin-top:5px;font-size:11px;color:var(--muted);letter-spacing:.01em;font-weight:500}.header-links{display:flex;gap:28px;align-items:center}.studio-label{font-size:13px;letter-spacing:.04em;color:var(--muted)}.text-link{display:flex;gap:8px;align-items:center;font-size:14px;min-height:44px}.text-link svg{width:18px;height:18px}.home-body{display:grid;grid-template-columns:1fr 1.1fr;gap:7%;min-height:0;padding:35px 0 24px}.home-intro{display:flex;flex-direction:column;position:relative;min-width:0}.section-label{font-size:13px;display:flex;align-items:center;gap:8px;font-weight:600}.label-dot{height:7px;width:7px;border-radius:50%;background:var(--blue)}.home-intro h1{font-size:clamp(48px,5.6vw,88px);font-weight:800;line-height:1.17;letter-spacing:-.085em;margin-top:13px}.title-dot{color:var(--blue)}.home-lead{font-size:clamp(18px,1.6vw,25px);font-weight:500;line-height:1.6;margin-top:13px;letter-spacing:-.055em}.hero-art{flex:1;min-height:120px;margin:12px -16px 0 -12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.hero-art>svg{height:100%;max-height:300px;width:100%;object-fit:contain}.intro-foot{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--muted);line-height:1.65}.decimal-sign{font-size:23px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.06em;color:var(--ink);white-space:nowrap}.decimal-sign>span{margin:0 12px;color:var(--muted);font-size:16px;font-weight:400}.game-menu{display:flex;flex-direction:column;min-height:0;padding-top:2px}.menu-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px}.menu-heading h2{font-size:18px;font-weight:700;letter-spacing:-.05em}.menu-heading>span{font-size:10px;letter-spacing:.12em;color:var(--muted)}.game-choices{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));flex:1;min-height:0;border-top:1px solid var(--ink)}.game-choice{background:transparent;text-align:left;position:relative;display:flex;align-items:center;gap:14px;min-height:0;width:100%;padding:18px 0;border-bottom:1px solid var(--line);transition:background .18s}.choice-index{font-size:12px;font-weight:500;color:var(--muted);align-self:flex-start;margin-top:3px;font-variant-numeric:tabular-nums}.choice-content{display:flex;flex-direction:column;position:relative;z-index:1;min-width:0;flex:1}.choice-tag{font-size:11px;color:var(--muted);font-weight:600;line-height:1.3}.choice-title{font-size:clamp(20px,1.8vw,30px);font-weight:800;letter-spacing:-.07em;line-height:1.35;margin-top:5px;white-space:nowrap}.choice-description{font-size:13px;color:var(--muted);margin-top:4px;white-space:nowrap}.choice-team{font-size:11px;margin-top:9px;color:var(--muted);line-height:1.2}.choice-art{width:25%;height:100%;max-height:115px;display:flex;align-items:center;justify-content:center;flex:none}.choice-art svg{height:100%;width:100%;object-fit:contain}.choice-arrow{background:var(--lime);height:36px;width:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex:none;margin-left:4px;transition:transform .2s var(--ease)}.choice-arrow svg{width:19px;height:19px}.coming-soon{margin-top:14px;display:flex;align-items:center;gap:11px;text-align:left;padding:11px 14px;border:1px dashed #bfc5b8;border-radius:11px;background:transparent;min-height:65px}.coming-mark{color:var(--muted)}.coming-mark svg{width:28px;height:28px}.coming-soon>span:nth-child(2){flex:1}.coming-soon strong{font-size:14px;font-weight:700;display:block}.coming-soon small{font-size:11px;display:block;margin-top:2px;color:var(--muted)}.status-chip{font-size:11px;line-height:1;border:1px solid var(--line);border-radius:20px;padding:7px 10px;color:var(--muted);white-space:nowrap}.site-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:11px;color:var(--muted);gap:20px}
.game-screen{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.game-header{height:78px;flex:none;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);padding:0 32px;background:var(--bg)}.back-button,.text-button,.restart-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;font-size:15px;font-weight:600;white-space:nowrap}.back-button{padding:0 20px 0 0;border-right:1px solid var(--line);color:var(--muted)}.back-button svg{width:19px}.game-heading{display:flex;align-items:center;gap:16px;flex:1;min-width:0}.game-heading-title{font-size:23px;font-weight:800;letter-spacing:-.065em;white-space:nowrap}.game-heading-team{font-size:12px;color:var(--muted);white-space:nowrap}.game-actions{display:flex;gap:22px;align-items:center}.text-button{font-size:13px;color:var(--muted);gap:7px}.text-button svg{width:18px;height:18px}.restart-button{border:1px solid var(--line);border-radius:8px;padding:0 14px;font-size:13px}.restart-button svg{width:17px;height:17px}.game-mount{flex:1;min-height:0;width:100%;max-width:1840px;align-self:center;padding:26px 32px 24px;position:relative}.play-layout{display:grid;grid-template-columns:minmax(205px,240px) minmax(0,1fr) minmax(190px,230px);gap:28px;height:100%;min-height:0}.mission-panel{display:flex;flex-direction:column;min-width:0;padding:12px 0}.eyebrow,.section-kicker{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.eyebrow:before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;background:var(--blue);border-radius:50%;vertical-align:2px}.mission-panel h2{font-size:27px;line-height:1.35;letter-spacing:-.065em;font-weight:800}.problem{font-size:clamp(28px,3vw,48px);font-weight:800;line-height:1.22;letter-spacing:-.055em;font-variant-numeric:tabular-nums;margin:24px 0;overflow-wrap:anywhere}.problem span{display:inline-block}.target-number{font-family:Arial,var(--font);font-size:clamp(52px,5vw,84px);line-height:1.1;font-weight:700;letter-spacing:-.065em;font-variant-numeric:tabular-nums;margin:16px 0;color:var(--blue)}.target-number small{font-family:var(--font);font-size:20px;margin-left:8px;color:var(--muted);letter-spacing:-.04em}.instruction{font-size:17px;color:var(--muted);line-height:1.7;word-break:keep-all}.instruction strong{font-weight:700;color:var(--ink)}.mission-panel .stat-row:first-of-type{margin-top:auto}.stat-row{display:flex;justify-content:space-between;align-items:baseline;padding:13px 0;border-top:1px solid var(--line);gap:12px;font-size:14px;color:var(--muted)}.stat-row strong{font-size:28px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.05em}.stat-row strong small{font-size:14px;font-weight:500;margin-left:4px}.play-field{min-width:0;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden}.field-label{position:absolute;left:24px;top:18px;font-size:11px;letter-spacing:.08em;color:var(--muted)}.field-footer{font-size:12px;line-height:1.4;color:var(--muted);margin-top:14px;text-align:center}.tool-panel{display:flex;flex-direction:column;min-height:0;padding:12px 0;gap:16px;min-width:0}.tool-section{padding-bottom:20px;border-bottom:1px solid var(--line)}.tool-section h3,.tool-label{font-size:14px;font-weight:700;margin-bottom:12px;display:block}.tool-section p,.tool-caption{font-size:13px;color:var(--muted);line-height:1.6}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:10px;font-size:17px;font-weight:700;line-height:1.3;transition:background .16s,transform .16s}.primary-button{background:var(--lime);color:var(--ink)}.secondary-button{background:transparent;border:1px solid var(--line)}.tool-panel>.primary-button,.tool-panel>.secondary-button{width:100%}.primary-button svg,.secondary-button svg{width:20px;height:20px}.icon-button{height:44px;min-width:44px;padding:10px;display:inline-flex;justify-content:center;align-items:center;background:transparent;border:1px solid var(--line);border-radius:8px}.feedback{padding:15px 16px;border-radius:10px;background:#eaede4;font-size:15px;font-weight:600;line-height:1.6;word-break:keep-all;min-height:76px}.feedback:empty{visibility:hidden}.feedback.success,.feedback.is-success{background:#e7efcd;color:#384a17}.feedback.error,.feedback.is-error{background:#f7e6df;color:#8b392d}.feedback strong{display:block;font-size:20px}.control-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:6px;justify-content:center;margin:10px 0 14px}.key-button{min-width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid #bcc5b5;border-bottom-width:3px;border-radius:8px;font-size:21px;font-weight:600}.key-button[data-dir="up"],.key-button[data-direction="up"]{grid-column:2}.key-button[data-dir="left"],.key-button[data-direction="left"]{grid-column:1;grid-row:2}.key-button[data-dir="down"],.key-button[data-direction="down"]{grid-column:2;grid-row:2}.key-button[data-dir="right"],.key-button[data-direction="right"]{grid-column:3;grid-row:2}.keyboard-hint{font-size:12px;color:var(--muted);text-align:center}kbd{font-family:inherit;padding:2px 5px;border:1px solid #cdd2c5;border-radius:4px;background:var(--surface);font-size:.85em}.segmented{display:flex;border:1px solid var(--line);border-radius:9px;padding:4px;gap:3px}.segmented button{flex:1;background:transparent;min-height:38px;border-radius:6px;font-size:14px}.segmented button.active,.segmented button[aria-pressed="true"]{background:var(--ink);color:var(--surface)}
.pop-grid,.game-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%;max-width:740px;min-height:0}.number-tile{aspect-ratio:1.05;background:#edf0e5;border:2px solid transparent;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:clamp(20px,2.4vw,35px);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.045em;transition:transform .2s var(--ease),background .15s,border-color .15s;position:relative}.number-tile.selected,.number-tile[data-selected="true"],.number-tile[aria-selected="true"]{border-color:var(--blue);background:#e8edfa;color:var(--blue);box-shadow:0 0 0 3px #245be21a}.number-tile.empty,.number-tile.cleared{background:transparent;border:1px dashed #dfe3d7;color:transparent;pointer-events:none}.number-tile.removing{transform:scale(.65);opacity:0}.number-tile.wrong{background:#f8ddd4;border-color:var(--danger)}.drop-indicator{font-size:14px;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:20px}.drop-indicator svg{width:18px;height:18px}.board-legend{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:20px;font-size:12px;color:var(--muted)}.legend-dot{width:10px;height:10px;background:var(--blue);display:inline-block;border-radius:3px;margin-right:5px}
.block-board{width:min(100%,440px);aspect-ratio:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:5px;background:#e5e8dd;padding:7px;border-radius:12px;touch-action:none;flex-shrink:1;min-height:0}.board-cell{border-radius:5px;background:#f7f8f2;border:0;min-width:0;min-height:0;font-size:12px;color:#7f8b74;display:flex;justify-content:center;align-items:center;font-variant-numeric:tabular-nums}.board-cell.filled{background:var(--blue);color:#fff}.board-cell.preview{background:#d4e0ff;border:2px solid var(--blue)}.board-cell.invalid{background:#f5d8d0}.piece-tray{display:flex;flex-direction:column;gap:12px;min-height:0}.piece-button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface);min-height:82px;text-align:left;touch-action:none}.piece-button.selected,.piece-button[aria-pressed="true"]{border:2px solid var(--blue);background:#edf1fc;padding:13px}.piece-button:disabled{opacity:.3}.piece-grid{display:grid;grid-template-columns:repeat(var(--cols,3),20px);grid-auto-rows:20px;gap:3px;flex:none}.piece-cell{border-radius:3px;background:var(--blue);width:20px;height:20px}.piece-cell.empty{background:transparent}.piece-value{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.piece-value small{font-size:11px;color:var(--muted);font-weight:500;display:block;margin-top:3px}.progress-track{height:5px;border-radius:4px;background:#dfe4d6;overflow:hidden;margin:9px 0 20px}.progress-fill{height:100%;background:var(--blue);transform-origin:left}.timer-number{font-variant-numeric:tabular-nums;font-size:40px;font-weight:700;line-height:1.15;letter-spacing:-.06em}.timer-number.urgent{color:var(--danger)}.unit-note{font-size:14px;color:var(--muted);margin-top:13px;text-align:center}
.drink-workbench{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;justify-content:center;gap:10px}.mix-vessel{position:relative;width:170px;height:220px;border:3px solid #738674;border-top:0;border-radius:0 0 30px 30px;background:#f4f7ee;overflow:hidden;flex:none;isolation:isolate}.mix-vessel:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:#bcc7b7;z-index:2}.vessel-liquid{position:absolute;bottom:0;left:0;right:0;height:var(--fill,0%);background:var(--liquid-color,var(--mint));z-index:-1;transition:height .45s var(--ease),background .3s}.vessel-ticks{position:absolute;right:12px;top:15px;bottom:17px;width:21px;background:repeating-linear-gradient(to bottom,#667d6670 0,#667d6670 1px,transparent 1px,transparent 19px)}.vessel-value{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:46px;font-weight:800;letter-spacing:-.06em;font-variant-numeric:tabular-nums;z-index:3}.vessel-art{height:240px;width:180px}.vessel-art>svg{width:100%;height:100%}.mix-readout{display:flex;align-items:baseline;gap:12px;justify-content:center;margin-top:12px}.mix-readout>span{font-size:14px;color:var(--muted)}.mix-readout strong{font-size:42px;font-weight:800;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.ingredient-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-top:14px}.ingredient{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:110px;background:transparent;border:1px solid var(--line);border-radius:12px;padding:12px 10px;position:relative;touch-action:none}.ingredient-color{height:32px;width:27px;border:2px solid #0003;border-top:0;border-radius:0 0 7px 7px;background:var(--color,var(--mint));display:block;margin-bottom:8px}.ingredient strong{font-size:22px;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.ingredient small{font-size:11px;color:var(--muted);margin-top:2px}.ingredient.active,.ingredient[aria-pressed="true"]{border:2px solid var(--blue);padding:11px 9px;background:#eff2fa}.mix-equation{min-height:30px;font-size:20px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}.drop-zone{transition:background .15s,border-color .15s}.drop-zone.drag-over{background:#eaf1da;border-color:#92ae40}.drink-tools{display:flex;gap:8px;justify-content:center;width:100%;margin-top:8px}.drink-tools button{min-height:44px;font-size:14px}
.overlay,.modal-overlay{position:fixed;inset:0;background:#20282085;z-index:50;padding:32px;display:flex;align-items:center;justify-content:center}.modal,.modal-card{width:min(900px,100%);max-height:calc(100dvh - 64px);background:var(--surface);border-radius:20px;overflow:auto;padding:32px;position:relative;box-shadow:0 20px 70px #17201720}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.modal-header h2{font-size:28px;font-weight:800;letter-spacing:-.065em}.modal-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eceee6;font-size:24px;flex:none}.modal h3{font-size:20px;margin:24px 0 10px}.modal p{font-size:17px;line-height:1.85}.modal img{max-width:100%;height:auto;border:1px solid var(--line);border-radius:8px}.modal-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.modal-tabs button{padding:9px 14px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:transparent;font-size:14px}.modal-tabs button.active{background:var(--ink);color:#fff}.result-panel{text-align:center;padding:24px;max-width:430px}.result-panel .target-number{color:var(--ink)}.result-panel h2{font-size:36px;font-weight:800;letter-spacing:-.07em;line-height:1.3}.result-panel p{font-size:18px;color:var(--muted);line-height:1.7;margin:20px 0 24px}.result-actions{display:flex;justify-content:center;gap:12px}.badge{font-size:12px;display:inline-block;padding:5px 10px;border-radius:20px;background:#e7ebdf;font-weight:600}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:13px 22px;border-radius:10px;font-size:15px;z-index:80}
@media(hover:hover){.game-choice:hover{background:#ecefe3}.game-choice:hover .choice-arrow{transform:rotate(35deg);background:var(--blue);color:white}.coming-soon:hover{background:#eeeee4}.primary-button:hover{background:#cbea52;transform:translateY(-1px)}.secondary-button:hover,.icon-button:hover,.restart-button:hover{background:#e9eddf}.number-tile:not(.empty):hover{border-color:#9baa8c}.piece-button:hover,.ingredient:hover{background:#eef1e7}.text-button:hover,.text-link:hover{color:var(--blue)}}
@media(min-width:1600px){.home-screen{grid-template-rows:108px minmax(0,1fr) 58px;padding:0 5vw}.home-body{padding:48px 0 36px;gap:8%}.brand-name{font-size:26px}.brand-sub{font-size:13px}.brand-mark{width:55px;height:55px;font-size:35px}.menu-heading h2{font-size:24px}.menu-heading>span{font-size:12px}.home-intro h1{margin-top:20px;font-size:96px}.section-label{font-size:16px}.home-lead{font-size:28px;margin-top:20px}.hero-art>svg{max-height:430px}.choice-index{font-size:16px}.choice-title{font-size:34px}.choice-description{font-size:17px}.choice-tag,.choice-team{font-size:14px}.choice-team{margin-top:14px}.choice-art{max-height:155px;width:27%}.choice-arrow{width:44px;height:44px}.coming-soon{min-height:90px;margin-top:20px;padding:16px 20px}.coming-soon strong{font-size:18px}.coming-soon small{font-size:14px}.status-chip{font-size:13px}.intro-foot,.site-footer{font-size:14px}.decimal-sign{font-size:30px}.game-header{height:96px;padding:0 48px}.game-heading-title{font-size:30px}.game-heading-team{font-size:16px}.back-button{font-size:18px}.game-actions{gap:28px}.text-button,.restart-button{font-size:16px}.game-mount{padding:40px 48px}.play-layout{grid-template-columns:280px minmax(0,1fr) 270px;gap:40px}.mission-panel h2{font-size:36px}.instruction{font-size:22px}.eyebrow{font-size:14px}.stat-row{font-size:18px;padding:20px 0}.stat-row strong{font-size:36px}.tool-section h3,.tool-label{font-size:18px}.tool-section p,.tool-caption{font-size:17px}.primary-button,.secondary-button{font-size:21px;min-height:58px}.feedback{font-size:19px;min-height:100px}.pop-grid{max-width:900px;gap:12px}.number-tile{font-size:40px}.block-board{width:min(100%,610px);gap:7px;padding:10px}.board-cell{font-size:16px}.piece-button{min-height:115px;padding:20px}.piece-button.selected{padding:19px}.piece-grid{grid-template-columns:repeat(var(--cols,3),26px);grid-auto-rows:26px;gap:4px}.piece-cell{width:26px;height:26px}.piece-value{font-size:34px}.piece-value small{font-size:14px}.mix-vessel{width:210px;height:300px}.vessel-art{height:310px;width:220px}.ingredient{min-height:150px}.ingredient strong{font-size:28px}.ingredient small{font-size:14px}.ingredient-color{height:45px;width:35px}.mix-readout strong{font-size:52px}.mix-readout>span{font-size:18px}.unit-note{font-size:18px}.control-pad{grid-template-columns:repeat(3,54px);grid-template-rows:repeat(2,54px)}.key-button{height:54px;font-size:26px}}
@media(max-width:1150px){.home-screen{padding:0 32px}.home-body{gap:4%}.choice-art{width:22%}.choice-title{font-size:21px}.choice-description{font-size:12px}.game-header{gap:18px;padding:0 24px}.game-heading-team{display:none}.game-actions{gap:14px}.game-mount{padding:22px 24px}.play-layout{grid-template-columns:190px minmax(0,1fr) 180px;gap:20px}.play-field{padding:18px}.mission-panel h2{font-size:24px}.instruction{font-size:15px}.problem{font-size:30px}.tool-section p{font-size:12px}.number-tile{font-size:22px}.piece-button{padding:10px;gap:6px}.piece-grid{grid-template-columns:repeat(var(--cols,3),17px);grid-auto-rows:17px;gap:2px}.piece-cell{width:17px;height:17px}.piece-value{font-size:24px}}
@media(max-width:900px){.home-screen{height:auto;min-height:100dvh;grid-template-rows:80px 1fr 44px;padding:0 28px}.header-links{gap:10px}.studio-label{display:none}.home-body{gap:5%;grid-template-columns:.9fr 1.1fr;padding-top:30px;padding-bottom:30px}.home-intro h1{font-size:55px}.home-lead{font-size:18px}.hero-art{min-height:220px;margin-left:-28px;margin-right:-16px}.choice-art{display:none}.choice-title{font-size:22px}.game-choice{min-height:130px}.game-heading-title{font-size:20px}.game-header{height:70px;gap:14px;padding:0 18px}.back-button{padding-right:14px;font-size:13px}.game-actions{gap:12px}.game-actions .text-button span{display:none}.game-actions .text-button{width:36px}.restart-button{padding:0 10px;font-size:12px}.game-mount{padding:18px}.play-layout{grid-template-columns:175px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:16px}.tool-panel{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;padding:0;gap:12px;min-height:76px}.tool-panel .tool-section{display:none}.tool-panel>.feedback{flex:1;min-height:64px;font-size:13px;padding:10px 14px}.tool-panel>.primary-button,.tool-panel>.secondary-button{width:auto;min-width:120px}.tool-panel .piece-tray{flex:1;display:flex;flex-direction:row;gap:10px}.piece-button{flex:1;min-height:72px}.piece-value{font-size:22px}.tool-panel .control-pad{grid-template-columns:repeat(4,44px);grid-template-rows:44px;margin:0;gap:5px}.control-pad .key-button{grid-row:1;grid-column:auto}.tool-panel .tool-label,.tool-panel>.keyboard-hint,.tool-panel>.tool-caption{display:none}.mission-panel{padding:4px 0}.eyebrow{font-size:10px}.mission-panel h2{font-size:23px}.target-number{font-size:55px}.stat-row{padding:10px 0}.stat-row strong{font-size:25px}.block-board{max-height:100%;width:auto;height:min(100%,410px);aspect-ratio:1}.number-tile{font-size:24px}.mix-vessel{width:140px;height:185px}.vessel-art{height:200px;width:150px}.ingredient-tray{gap:7px}.ingredient{min-height:92px;padding:9px 6px}.ingredient-color{height:25px;margin-bottom:4px}.ingredient strong{font-size:19px}.mix-readout strong{font-size:34px}.drink-workbench{gap:5px}}
@media(max-width:640px){body{font-size:16px}.home-screen{padding:0 20px;grid-template-rows:74px 1fr 54px}.brand-name{font-size:18px}.brand-mark{width:40px;height:40px;font-size:26px}.brand-sub{font-size:9px}.brand{gap:10px}.header-links .text-link{font-size:11px;gap:4px}.header-links .text-link svg{width:15px;height:15px}.home-body{display:block;padding:28px 0}.home-intro{padding-bottom:26px}.section-label{font-size:11px}.home-intro h1{font-size:52px;margin-top:9px}.home-lead{font-size:16px;line-height:1.65;margin-top:10px}.hero-art{position:absolute;right:-8px;bottom:18px;left:43%;height:145px;min-height:0;margin:0;opacity:.95}.intro-foot{display:none}.game-menu{padding-top:14px;border-top:1px solid var(--line)}.menu-heading{margin-bottom:13px}.menu-heading h2{font-size:16px}.game-choices{flex:auto}.game-choice{min-height:145px;padding:18px 0;gap:9px}.choice-title{font-size:21px}.choice-description{font-size:12px}.choice-tag{font-size:10px}.choice-team{font-size:10px;margin-top:9px}.choice-index{font-size:10px;margin-top:1px}.choice-art{display:flex;width:22%;max-height:82px}.choice-arrow{width:29px;height:29px;margin-left:0}.choice-arrow svg{width:16px;height:16px}.coming-soon{padding:10px;gap:10px}.coming-soon strong{font-size:13px}.coming-soon small{font-size:10px}.status-chip{font-size:10px;padding:6px 8px}.site-footer{font-size:10px}.site-footer>span:last-child{display:none}.game-header{height:60px;padding:0 12px;gap:10px}.back-button{width:33px;padding:0;border:0}.back-button span{display:none}.back-button svg{width:22px;height:22px}.game-heading-title{font-size:17px;letter-spacing:-.075em}.game-actions{gap:5px}.game-actions .text-button{width:30px;min-width:30px}.game-actions .text-button svg{width:17px;height:17px}.restart-button{width:35px;padding:0;border:0}.restart-button span{display:none}.restart-button svg{width:18px;height:18px}.game-mount{padding:12px 12px calc(12px + env(safe-area-inset-bottom));min-height:0}.play-layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:11px}.mission-panel{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:0;padding:0}.mission-panel .eyebrow{grid-column:1;margin:0;font-size:9px;line-height:1.4}.mission-panel h2{grid-column:1;font-size:17px;line-height:1.4}.mission-panel .problem,.mission-panel .target-number{grid-column:2;grid-row:1/3;font-size:34px;margin:0;text-align:right;line-height:1.2}.mission-panel .instruction{grid-column:1/-1;font-size:12px;line-height:1.5;margin-top:5px}.mission-panel .stat-row{grid-column:auto;font-size:11px;padding:7px 0 0;border:0;margin:0!important;justify-content:flex-start;gap:8px}.mission-panel .stat-row strong{font-size:19px}.mission-panel .stat-row strong small{font-size:11px}.play-field{padding:17px 12px;border-radius:14px;min-height:0}.field-label{left:14px;top:10px;font-size:9px}.pop-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.number-tile{font-size:17px;aspect-ratio:.83;border-radius:7px}.drop-indicator{font-size:11px;margin-bottom:12px}.board-legend{font-size:10px;gap:10px;margin-top:14px}.tool-panel{grid-column:auto;display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;min-height:0}.tool-panel>.feedback{order:0;flex-basis:100%;font-size:12px;min-height:43px;padding:9px 12px}.feedback strong{font-size:16px}.tool-panel>.primary-button,.tool-panel>.secondary-button{flex:1;min-width:100px;min-height:46px;padding:10px 12px;font-size:15px}.tool-panel .control-pad{grid-template-columns:repeat(4,44px);gap:4px;min-height:46px;align-items:center}.tool-panel .key-button{height:44px;font-size:18px}.tool-panel .piece-tray{width:100%;flex-basis:100%;gap:6px;order:1}.piece-button{min-height:73px;flex-direction:column;gap:6px;padding:8px 4px}.piece-button.selected{padding:7px 3px}.piece-grid{grid-template-columns:repeat(var(--cols,3),15px);grid-auto-rows:15px;gap:2px}.piece-cell{width:15px;height:15px}.piece-value{font-size:18px;line-height:1}.piece-value small{display:none}.block-board{height:auto;width:min(100%,350px);max-height:100%;gap:4px;padding:5px;border-radius:9px}.board-cell{font-size:10px}.unit-note{font-size:11px;margin-top:9px}.mix-vessel{height:145px;width:112px;border-width:2px;border-radius:0 0 20px 20px}.vessel-value{font-size:35px}.vessel-art{height:160px;width:125px}.vessel-ticks{top:8px;bottom:9px;right:8px;width:14px;background-size:auto 14px}.mix-readout{gap:8px;margin-top:5px}.mix-readout strong{font-size:28px}.mix-readout>span{font-size:11px}.ingredient-tray{margin-top:8px;gap:6px}.ingredient{min-height:80px;padding:7px 5px;border-radius:9px}.ingredient.active,.ingredient[aria-pressed="true"]{padding:6px 4px}.ingredient-color{height:23px;width:21px;margin-bottom:4px}.ingredient strong{font-size:17px}.ingredient small{font-size:10px}.mix-equation{font-size:15px;min-height:20px}.drink-tools{margin-top:5px;gap:6px}.drink-tools button{font-size:12px;min-height:38px;padding:7px 10px}.overlay,.modal-overlay{padding:14px}.modal,.modal-card{padding:20px;max-height:calc(100dvh - 28px);border-radius:15px}.modal-header{margin-bottom:16px}.modal-header h2{font-size:23px}.modal p{font-size:16px}.modal h3{font-size:18px}.result-panel{padding:14px}.result-panel h2{font-size:29px}.result-panel p{font-size:16px}.result-actions{flex-direction:column}.result-actions button{width:100%}.toast{font-size:13px;width:calc(100% - 32px);text-align:center;bottom:16px}}
@media(max-height:700px) and (min-width:901px){.home-screen{grid-template-rows:76px minmax(0,1fr) 36px;min-height:0}.home-body{padding-top:26px;padding-bottom:18px}.home-intro h1{font-size:62px;margin-top:8px}.home-lead{font-size:19px;margin-top:9px}.hero-art{margin-top:4px}.intro-foot{padding-top:10px;font-size:11px}.game-choice{padding:12px 0}.choice-title{font-size:23px}.choice-team{margin-top:6px}.choice-art{max-height:90px}.coming-soon{margin-top:10px;min-height:58px;padding:9px 12px}.menu-heading{margin-bottom:12px}.game-header{height:68px}.game-mount{padding-top:20px;padding-bottom:20px}.play-layout{gap:24px}.play-field{padding:20px}.mission-panel h2{font-size:25px}.problem{margin:18px 0}.instruction{font-size:16px}.tool-panel{gap:12px}.tool-section{padding-bottom:14px}.feedback{padding:12px 14px;min-height:65px}.block-board{width:min(100%,390px)}.mix-vessel{height:190px;width:150px}.vessel-art{height:210px;width:160px}.ingredient{min-height:92px}.ingredient-color{height:24px;margin-bottom:5px}.ingredient-tray{margin-top:10px}.mix-readout{margin-top:5px}.mix-readout strong{font-size:35px}.piece-button{min-height:76px;padding:10px}.piece-button.selected{padding:9px}.unit-note{font-size:12px;margin-top:10px}}
@media(max-height:710px) and (max-width:640px){.game-header{height:53px}.game-mount{padding:8px 10px}.play-layout{gap:7px}.mission-panel .instruction{font-size:11px;margin-top:3px}.mission-panel .stat-row{padding-top:4px}.mission-panel .problem,.mission-panel .target-number{font-size:29px}.play-field{padding:10px}.tool-panel{gap:6px}.tool-panel>.feedback{min-height:35px;padding:6px 10px;font-size:11px}.number-tile{aspect-ratio:1.05;font-size:16px}.mix-vessel{height:105px;width:87px}.vessel-art{height:115px;width:90px}.mix-readout strong{font-size:23px}.ingredient{min-height:66px;padding:5px}.ingredient-color{height:17px;width:18px;margin-bottom:3px}.ingredient strong{font-size:15px}.ingredient-tray{margin-top:4px}.drink-workbench{gap:2px}.drink-tools{margin-top:3px}.drink-tools button{min-height:34px;padding:5px 8px}.block-board{width:min(100%,270px)}.piece-button{min-height:60px;padding:6px 3px}.piece-button.selected{padding:5px 2px}.piece-grid{grid-template-columns:repeat(var(--cols,3),12px);grid-auto-rows:12px}.piece-cell{width:12px;height:12px}.unit-note{margin-top:5px;font-size:10px}}
/* Game-specific controls follow the actual student mechanics. */
.field-caption{width:100%;display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.1em;color:var(--muted);position:absolute;left:0;top:20px;padding:0 24px}.play-field>.feedback{flex:none;width:100%;min-height:0;text-align:center;margin-top:20px;padding:11px 14px;font-size:14px}.pop-field{padding:52px 24px 24px}.page-controls{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:16px;font-size:12px}.page-controls .secondary-button{min-height:38px;font-size:13px;padding:7px 12px}.tool-note{font-size:12px;color:var(--muted);line-height:1.7}.tool-section>.primary-button,.tool-section>.secondary-button{width:100%;margin-top:9px}.control-pad [data-move="-6"]{grid-column:2;grid-row:1}.control-pad [data-move="-1"]{grid-column:1;grid-row:2}.control-pad [data-move="1"]{grid-column:3;grid-row:2}.timer-readout{padding:15px 0 0;font-family:Arial,var(--font);font-size:47px;line-height:1.2;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.timer-readout.urgent{color:var(--danger)}.blocks-field{padding:48px 24px 18px}.block-board{grid-template-columns:repeat(var(--board-side,5),minmax(0,1fr));grid-template-rows:repeat(var(--board-side,5),minmax(0,1fr));width:min(100%,calc(100dvh - 235px));max-width:570px;flex:0 1 auto}.board-cell.cursor{box-shadow:inset 0 0 0 2px var(--blue)}.board-sum{display:flex;justify-content:center;align-items:baseline;gap:12px;margin-top:11px;flex:none}.board-sum>span{font-size:13px;color:var(--muted)}.board-sum>strong{font-size:31px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.blocks-field>.feedback{margin-top:11px;padding:9px 12px;font-size:12px}.game-blocks .tool-panel{gap:10px}.game-blocks .tool-panel>.eyebrow{margin-bottom:0}.game-blocks .piece-tray{gap:9px}.game-blocks .piece-button{min-height:83px}.piece-grid{grid-template-columns:repeat(var(--piece-w,3),20px);grid-template-rows:repeat(var(--piece-h,1),20px)}.piece-label{display:flex;align-items:center;gap:10px}.piece-label>strong{font-size:28px;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.piece-label>kbd{font-size:10px;color:var(--muted)}.piece-color-0{background:var(--blue)!important}.piece-color-1{background:#a7be4e!important}.piece-color-2{background:var(--orange)!important}.piece-cell.empty{background:transparent!important}.drink-name{font-size:20px;font-weight:700;margin:0 0 16px}.drink-field{padding:50px 24px 20px;justify-content:space-between;gap:10px}.drink-field .drink-workbench{flex:1;min-height:0;height:auto;flex-direction:row;gap:16px;padding:0 14px}.drink-field .mix-vessel{width:145px;height:auto;max-height:100%;aspect-ratio:180/270;min-height:0;background:transparent;border:0;border-radius:0;overflow:visible;isolation:auto;display:flex;flex-direction:column;align-items:center;flex:none}.drink-field .mix-vessel:before{display:none}.drink-field .mix-vessel svg{width:100%;height:100%;min-height:0;flex:1}.vessel-drop-label{font-size:10px;color:var(--muted);flex:none;line-height:1;margin-top:5px}.mix-receipt{width:160px;min-width:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;max-height:100%;overflow:auto}.mix-receipt>.eyebrow{display:block;font-size:10px;margin-bottom:7px}.mix-receipt .mix-equation{display:flex;gap:5px;flex-wrap:wrap;align-items:center;font-size:18px;line-height:1.5}.mix-equation b{font-size:12px;font-weight:400;color:var(--muted)}.empty-mix{font-size:15px;color:#929a8b}.mix-total{display:block;font-size:32px;font-weight:800;line-height:1.2;letter-spacing:-.06em;margin-top:10px;font-variant-numeric:tabular-nums}.ingredient-tabs{display:flex;align-items:center;justify-content:center;gap:5px;background:#ecefe5;border-radius:8px;padding:4px;flex:none;align-self:stretch}.ingredient-tabs button{font-size:12px;min-height:32px;padding:5px 18px;border-radius:5px;background:transparent;flex:1}.ingredient-tabs button[aria-selected="true"]{background:var(--surface);font-weight:700}.drink-field .ingredient-tray{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0;flex:none;gap:7px}.drink-field .ingredient{min-height:88px;padding:8px 4px;gap:2px}.drink-field .ingredient-color{background:var(--liquid,var(--mint));height:22px;width:21px;margin-bottom:2px}.drink-field .ingredient>span:nth-child(2){font-size:10px;line-height:1.3;white-space:nowrap;color:var(--muted)}.drink-field .ingredient strong{font-size:20px;line-height:1.3}.drink-field .mix-vessel.drag-over{background:#e7efcd;border-radius:12px}.game-drink .tool-panel>.feedback{font-size:14px}.game-pop .tool-panel>.primary-button:last-child,.game-drink .tool-panel>.primary-button:last-child{margin-top:auto}
@media(min-width:1600px){.field-caption{font-size:13px;top:25px;padding:0 30px}.pop-field{padding:65px 30px 30px}.play-field>.feedback{font-size:18px;margin-top:30px;padding:16px}.block-board{width:min(100%,calc(100dvh - 310px));max-width:610px}.blocks-field{padding:64px 30px 24px}.board-sum strong{font-size:40px}.board-sum span{font-size:18px}.blocks-field>.feedback{font-size:17px;margin-top:18px;padding:14px}.timer-readout{font-size:62px}.game-blocks .piece-button{min-height:120px}.game-blocks .tool-panel{gap:16px}.piece-grid{grid-template-columns:repeat(var(--piece-w,3),26px);grid-template-rows:repeat(var(--piece-h,1),26px)}.piece-label strong{font-size:36px}.piece-label kbd{font-size:13px}.drink-field{padding:64px 30px 28px;gap:16px}.drink-field .mix-vessel{width:205px}.drink-field .drink-workbench{gap:30px}.mix-receipt{width:200px;padding:20px 0}.mix-receipt .mix-equation{font-size:24px}.mix-receipt>.eyebrow{font-size:13px}.mix-total{font-size:45px}.vessel-drop-label{font-size:13px}.drink-field .ingredient{min-height:120px;padding:12px 6px;gap:5px}.drink-field .ingredient-color{height:32px;width:28px}.drink-field .ingredient>span:nth-child(2){font-size:14px}.drink-field .ingredient strong{font-size:27px}.ingredient-tabs button{font-size:16px;min-height:40px}.game-drink .tool-panel>.feedback{font-size:19px}.tool-note{font-size:16px}.drink-name{font-size:27px}}
@media(max-width:1150px){.piece-grid{grid-template-columns:repeat(var(--piece-w,3),17px);grid-template-rows:repeat(var(--piece-h,1),17px)}.piece-label{gap:7px}.piece-label strong{font-size:24px}.drink-field .mix-vessel{width:125px}.mix-receipt{width:125px}.drink-field .drink-workbench{gap:10px;padding:0}.drink-field .ingredient>span:nth-child(2){font-size:9px}.drink-field .ingredient{min-height:84px}.drink-field .ingredient strong{font-size:18px}}
@media(max-width:900px){.tool-panel .tool-section{display:flex;align-items:center;gap:8px;flex:1;margin:0;padding:0;border:0}.tool-panel .tool-section>.eyebrow,.tool-panel .tool-section>.stat-row,.tool-panel>.instruction,.tool-panel>.tool-note,.game-blocks .tool-panel>.eyebrow{display:none}.tool-section>.primary-button,.tool-section>.secondary-button{width:auto;flex:1;margin:0;white-space:nowrap;min-height:46px;font-size:14px;padding:10px 12px}.tool-panel .control-pad{grid-template-columns:repeat(3,44px);grid-template-rows:44px}.control-pad [data-move="-6"],.control-pad [data-move="-1"],.control-pad [data-move="1"]{grid-column:auto;grid-row:1}.game-drink .tool-panel{flex-wrap:wrap}.game-drink .tool-panel>.feedback{flex-basis:100%;min-height:0;padding:9px 12px;order:-1}.game-pop .tool-panel>.primary-button:last-child,.game-drink .tool-panel>.primary-button:last-child{margin-top:0}.game-blocks .tool-panel{flex-wrap:wrap;gap:8px}.game-blocks .piece-tray{flex-basis:100%;gap:8px}.game-blocks .piece-button{min-height:75px;flex-direction:row}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{flex:1;min-height:44px;padding:10px 12px;font-size:15px}.blocks-field{padding:43px 18px 14px}.block-board{height:auto;width:min(100%,calc(100dvh - 370px));max-width:410px;max-height:none}.blocks-field>.feedback{font-size:11px;padding:7px 10px;margin-top:9px}.board-sum{margin-top:9px}.board-sum strong{font-size:27px}.timer-readout{font-size:36px;padding-top:12px}.drink-field{padding:43px 18px 16px;gap:8px}.drink-field .ingredient-tray{gap:6px}.drink-field .ingredient{min-height:78px}.drink-field .mix-vessel{width:120px}.drink-name{font-size:17px;margin-bottom:10px}.field-caption{padding:0 18px;font-size:9px;top:16px}.pop-field{padding:45px 18px 18px}.play-field>.feedback{font-size:12px;padding:10px 12px;margin-top:16px}.game-pop .tool-panel .control-pad{margin:0}.game-pop .tool-section>.primary-button{min-width:100px}}
@media(max-width:640px){.field-caption{top:10px;font-size:8px;padding:0 12px}.pop-field{padding:33px 12px 12px}.play-field>.feedback{font-size:11px;margin-top:12px;padding:8px 10px}.game-pop .mission-panel .problem br{display:none}.game-pop .mission-panel .problem{font-size:26px}.game-pop .mission-panel .problem span{margin-left:5px}.game-pop .tool-panel .tool-section{flex-basis:100%}.game-pop .tool-panel .control-pad{grid-template-columns:repeat(3,44px);gap:5px}.game-pop .tool-panel>.primary-button:last-child{min-height:43px}.game-blocks .mission-panel .timer-readout{grid-column:2;grid-row:4;font-size:24px;text-align:right;padding:4px 0 0}.game-blocks .mission-panel .stat-row{grid-row:4}.game-blocks .tool-panel{gap:7px}.game-blocks .piece-tray{order:0;gap:6px}.game-blocks .piece-button{min-height:72px;flex-direction:row;justify-content:center;gap:8px;padding:7px}.game-blocks .piece-button.selected{padding:6px}.piece-grid{grid-template-columns:repeat(var(--piece-w,3),14px);grid-template-rows:repeat(var(--piece-h,1),14px)}.piece-cell{width:14px;height:14px}.piece-label{flex-direction:column;gap:5px}.piece-label strong{font-size:20px}.piece-label kbd{font-size:8px;padding:1px 4px}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{font-size:13px;min-height:42px;padding:9px 7px}.blocks-field{padding:30px 12px 10px}.block-board{width:min(100%,calc(100dvh - 395px));max-width:340px}.board-sum{margin-top:7px;gap:8px}.board-sum>span{font-size:11px}.board-sum>strong{font-size:25px}.blocks-field>.feedback{margin-top:7px;padding:6px 8px;font-size:10px}.game-drink .mission-panel .drink-name{grid-column:2;grid-row:3;font-size:12px;margin:3px 0 0;text-align:right}.game-drink .mission-panel .instruction{grid-column:1;grid-row:3;font-size:11px}.game-drink .mission-panel .instruction br{display:none}.game-drink .mission-panel .stat-row{grid-column:1/-1}.drink-field{padding:31px 12px 12px;gap:7px}.drink-field .mix-vessel{width:110px;max-height:100%;flex-shrink:1}.drink-field .drink-workbench{gap:25px;min-height:90px}.mix-receipt{width:125px;padding:8px 0}.mix-receipt>.eyebrow{font-size:8px;margin-bottom:5px}.mix-receipt .mix-equation{font-size:16px;gap:4px}.mix-total{font-size:27px;margin-top:6px}.vessel-drop-label{font-size:8px}.ingredient-tabs{padding:3px}.ingredient-tabs button{font-size:11px;min-height:29px;padding:4px 10px}.drink-field .ingredient-tray{gap:5px}.drink-field .ingredient{min-height:65px;padding:5px 3px;gap:1px}.drink-field .ingredient-color{height:17px;width:16px;margin-bottom:1px}.drink-field .ingredient>span:nth-child(2){font-size:8px}.drink-field .ingredient strong{font-size:17px}.game-drink .tool-panel>.feedback{font-size:11px;padding:7px 10px}.game-drink .tool-panel .tool-section{flex-basis:100%;gap:6px}.game-drink .tool-section>.primary-button,.game-drink .tool-section>.secondary-button{min-height:42px;padding:8px 10px;font-size:13px}.game-drink .tool-panel>.primary-button:last-child{min-height:42px}.page-controls{gap:8px;margin-top:10px}.page-controls .secondary-button{font-size:11px;min-height:34px;padding:5px 9px}}
@media(max-height:700px) and (min-width:901px){.block-board{width:min(100%,calc(100dvh - 245px))}.game-blocks .piece-button{min-height:74px}.game-blocks .tool-panel{gap:9px}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-height:43px;padding:9px 14px;font-size:15px}.game-blocks .tool-note{font-size:11px}.drink-field .mix-vessel{width:130px}.drink-field .ingredient{min-height:78px}.drink-field .ingredient-color{height:20px}.drink-field .ingredient strong{font-size:18px}.drink-field .ingredient-tray{gap:6px}.mix-total{font-size:29px}.drink-field .drink-workbench{padding:0}.drink-field{gap:8px}.tool-section>.primary-button,.tool-section>.secondary-button{min-height:44px;font-size:15px}}
@media(max-height:710px) and (max-width:640px){.block-board{width:min(100%,calc(100dvh - 345px));max-width:245px}.game-blocks .piece-button{min-height:57px;padding:5px}.game-blocks .piece-button.selected{padding:4px}.piece-grid{grid-template-columns:repeat(var(--piece-w,3),11px);grid-template-rows:repeat(var(--piece-h,1),11px)}.piece-cell{width:11px;height:11px}.piece-label>strong{font-size:17px}.game-blocks .tool-panel>.primary-button,.game-blocks .tool-panel>.secondary-button{min-height:38px;font-size:12px;padding:7px}.blocks-field{padding-top:26px;padding-bottom:8px}.blocks-field>.feedback{font-size:9px;padding:4px 6px}.board-sum{margin-top:5px}.board-sum>strong{font-size:21px}.drink-field .mix-vessel{width:75px}.drink-field .drink-workbench{min-height:68px;gap:20px}.drink-field .ingredient{min-height:54px;padding:4px 3px}.drink-field .ingredient-color{height:12px;width:14px}.drink-field .ingredient strong{font-size:14px}.drink-field .ingredient>span:nth-child(2){font-size:8px}.drink-field{gap:5px;padding-top:27px;padding-bottom:9px}.ingredient-tabs button{min-height:25px;font-size:10px}.mix-receipt .mix-equation{font-size:13px}.mix-total{font-size:23px}.game-drink .tool-section>.primary-button,.game-drink .tool-section>.secondary-button,.game-drink .tool-panel>.primary-button:last-child{min-height:38px;font-size:12px}.game-pop .tool-panel>.primary-button:last-child{min-height:38px}.game-pop .tool-panel .key-button{height:40px}.game-pop .tool-panel .control-pad{grid-template-rows:40px;min-height:40px}.game-pop .tool-section>.primary-button{min-height:40px}}
.workshop-dialog{border:1px solid var(--line);padding:36px;background:var(--surface);color:var(--ink);border-radius:20px;max-width:min(920px,calc(100vw - 48px));max-height:calc(100dvh - 48px);width:920px;overflow:auto;box-shadow:0 24px 80px #20282025}.workshop-dialog::backdrop{background:#20282085}.dialog-close{position:absolute;top:18px;right:18px;z-index:2;background:var(--surface)}.plan-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-right:60px;margin-bottom:20px}.plan-header h2{font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-.065em}.plan-header>.eyebrow{margin:0}.plan-header>span{white-space:nowrap;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.plan-image{display:block;width:100%;height:auto;max-height:calc(100dvh - 240px);object-fit:contain;border:1px solid var(--line);background:white;border-radius:8px}.plan-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.plan-controls>span{font-size:14px;color:var(--muted)}.plan-controls button{min-width:90px;font-size:15px}.letter-dialog{width:780px;padding:44px 54px}.letter{max-width:650px;margin:auto}.letter>.eyebrow{padding-right:30px;font-size:11px}.letter h2{font-size:32px;font-weight:800;line-height:1.4;letter-spacing:-.065em;margin:18px 0 28px}.letter p{font-size:18px;line-height:1.95;margin:0 0 20px;word-break:keep-all}.letter h3{font-size:19px;font-weight:800;letter-spacing:-.045em;margin-bottom:16px}.letter-mine{padding:24px;background:#eff1e6;border-radius:12px;margin:28px 0}.letter-mine ul{padding-left:21px;margin:0}.letter-mine li{font-size:16px;line-height:1.85;margin:8px 0;word-break:keep-all}.letter-hints{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0 4px;margin:28px 0}.letter-from{color:var(--muted);text-align:right;font-size:15px!important;margin-top:30px!important}.result-dialog{width:510px;padding:48px 36px 36px}.result-content{text-align:center}.result-content>.eyebrow{font-size:12px}.result-mark{width:66px;height:66px;margin:24px auto;background:var(--lime);border-radius:50%;display:flex;align-items:center;justify-content:center}.result-mark svg{width:32px;height:32px}.result-content h2{font-size:38px;line-height:1.3;font-weight:800;letter-spacing:-.06em}.result-content>p{font-size:18px;margin:18px 0 28px;color:var(--muted)}.result-content .result-actions button{flex:1;font-size:16px}
@media(max-width:640px){.home-intro .hero-art{left:58%;right:-3px;height:120px;bottom:20px}.workshop-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px 18px;border-radius:14px}.dialog-close{top:12px;right:12px;width:38px;height:38px;min-width:38px}.plan-header{padding-right:42px;margin-bottom:14px;gap:10px}.plan-header h2{font-size:20px}.plan-header .eyebrow{font-size:9px;margin-bottom:7px}.plan-header>span{font-size:11px}.plan-image{max-height:calc(100dvh - 210px)}.plan-controls{gap:10px;margin-top:14px}.plan-controls>span{font-size:11px}.plan-controls button{min-width:66px;font-size:13px;padding:9px 12px;min-height:42px}.letter-dialog{padding:30px 23px}.letter>.eyebrow{font-size:9px;padding-right:25px}.letter h2{font-size:25px;margin:18px 0 22px}.letter p{font-size:16px;line-height:1.85;margin-bottom:18px}.letter h3{font-size:17px}.letter-mine{padding:18px;margin:22px 0}.letter-mine li{font-size:14px;line-height:1.8}.letter-hints{padding-top:20px;margin:22px 0}.result-dialog{padding:40px 24px 24px}.result-content h2{font-size:30px}.result-content>p{font-size:16px}.result-mark{width:58px;height:58px}.result-content .result-actions{flex-direction:row}.result-content .result-actions button{font-size:14px;padding:12px}}
.intro-foot{justify-content:flex-end}.home-lead{font-size:clamp(15px,1.35vw,21px);color:var(--muted)}.sound-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:50%;flex:none}.sound-button svg{width:20px;height:20px}.sound-button[aria-pressed="false"]:after{content:"";position:absolute;width:24px;height:2px;background:var(--muted);transform:rotate(-45deg);box-shadow:0 0 0 2px var(--bg)}
.plan-image{max-height:calc(100dvh - 285px)}
@media(max-width:640px){.plan-image{max-height:calc(100dvh - 240px)}.home-intro{padding-bottom:58px}.home-intro .hero-art{height:85px;bottom:4px;left:61%}.home-lead{font-size:13px}.header-links{gap:10px}.header-links .sound-button{width:38px;height:38px;padding:8px}.game-header{gap:7px;padding:0 10px}.game-actions{gap:2px}.game-actions .sound-button{width:30px;height:40px;border:0;padding:7px}.game-actions .sound-button svg{width:16px;height:16px}.game-heading-title{font-size:16px}.game-actions .restart-button{width:30px}.game-actions .text-button{width:28px;min-width:28px}}
@media(min-width:901px){.home-body{max-height:100%;overflow:hidden}.game-menu{padding-bottom:16px}.game-choices{flex-basis:0}}
@media(max-width:640px){.header-links .sound-button{width:44px;height:44px}.game-header{gap:6px}.game-header .back-button{width:44px;height:44px;min-width:44px;flex:none}.game-actions{gap:0;flex:none}.game-actions .text-button,.game-actions .sound-button,.game-actions .restart-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}.game-heading{min-width:0}.game-heading-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-close{width:44px;height:44px;min-width:44px}}
@media(max-width:640px){.drink-field .ingredient>span:nth-child(2){font-size:12px}.game-drink .mission-panel .instruction{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

