.mg-result,.mg-dialog{--mg-paper:var(--paper,#f6efdc);--mg-ink:var(--ink,#171c2d);--mg-accent:var(--blue,#216b72);--mg-muted:var(--muted,#6a5b46);--mg-line:var(--line,#b59b64);--mg-body:var(--body,system-ui,sans-serif);--mg-display:var(--display,var(--mg-body));--mg-numbers:var(--numbers,Arial,sans-serif);font-family:var(--mg-body);color:var(--mg-ink)}.mg-result{flex-direction:column;gap:8px;width:100%;min-width:0;display:flex;position:relative}.mg-record{text-align:center}.mg-metric{align-self:center;min-width:0}.mg-kicker{font:700 12px/1.5 var(--mg-body);color:var(--mg-muted);outline-offset:2px;margin:0}.mg-new-best{color:var(--mg-accent);font:700 11px/1.2 var(--mg-body);letter-spacing:0;margin:1px 0 0}.mg-score{font:900 clamp(38px,7vw,58px)/1.04 var(--mg-numbers);letter-spacing:-.045em;white-space:nowrap;font-variant-numeric:tabular-nums}.mg-score small{letter-spacing:0;color:var(--mg-accent);margin-left:5px;font-size:.4em}.mg-personal{color:var(--mg-muted);margin:3px 0 0;font-size:12px;line-height:1.5}.mg-personal b{color:var(--mg-ink);font-weight:750}.mg-standing{align-items:stretch;justify-content:initial;text-align:center;overscroll-behavior:contain;flex-direction:column;height:44px;min-height:44px;font-size:12px;line-height:1.4;display:flex;overflow:auto}.mg-standing p{flex-shrink:0;margin:auto 0}.mg-standing strong{color:var(--mg-accent);margin-right:8px;font-size:18px}.mg-chip{border:1px solid var(--mg-line);color:var(--mg-ink);background:#e6d7aa;border-radius:3px;padding:2px 6px;font-size:12px;font-weight:700;display:inline-block}.mg-unregistered{color:var(--mg-muted);background:#f0e5cd}.mg-best-standing b{color:var(--mg-accent);font-weight:800;display:block}.mg-error{color:#92343b;font-weight:650}.mg-muted{color:var(--mg-muted)}.mg-rank-error{align-items:center;gap:5px;font-size:12px;display:flex}.mg-rank-error button{color:var(--mg-accent);background:0 0;border:0;min-height:44px;padding:0 6px;font-size:12px;text-decoration:underline}.mg-button{-webkit-appearance:none;appearance:none;border:1px solid var(--mg-line);width:100%;min-height:44px;color:var(--mg-ink);font:750 14px/1.3 var(--mg-body);white-space:nowrap;cursor:pointer;touch-action:manipulation;background:linear-gradient(#fff9eb,#eadfc4);border-bottom:3px solid #a18952;border-radius:5px;justify-content:center;align-items:center;gap:7px;padding:8px 10px;text-decoration:none;display:flex;box-shadow:inset 0 0 0 2px #fff9e5}.mg-button:hover:not(:disabled){background:#fffdf4}.mg-button:disabled{opacity:.6;cursor:default}.mg-primary{color:#fff2cb;min-height:50px;font:400 20px/1.35 var(--mg-display);background:linear-gradient(#2c3a4e,#192337);border-color:#bca26a #bca26a #725c2e;border-bottom-style:solid;border-bottom-width:4px;box-shadow:inset 0 0 0 2px #ffffff10,0 1px #161c2d}.mg-primary:hover:not(:disabled),.mg-x:hover{background:#35465b}.mg-primary>span{font-family:Arial,sans-serif;font-size:24px;font-weight:700}.mg-share-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;display:grid}.mg-x{color:#fff4d4;background:linear-gradient(#2a3446,#192234);border-color:#192234 #192234 #101827;box-shadow:inset 0 0 0 2px #ffffff08}.mg-share-pair .mg-button{gap:5px;padding-inline:5px;font-size:13px}.mg-register{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.mg-register input{border:1px solid var(--mg-line);width:100%;min-width:0;min-height:44px;color:var(--mg-ink);font:500 16px/1.4 var(--mg-body);background:#fff9e8;border-radius:4px;padding:8px 11px;box-shadow:inset 0 2px #a18d6420}.mg-register input::placeholder{color:#75684f;opacity:1}.mg-register input:disabled{color:var(--mg-muted);opacity:1;background:#eee3cb}.mg-register input[aria-invalid=true]{border-color:#a4313e}.mg-register button{border:1px solid var(--mg-line);min-width:64px;min-height:44px;color:var(--mg-ink);font:750 13px/1.3 var(--mg-body);background:linear-gradient(#f0db9f,#dfbf72);border-bottom:3px solid #8f733e;border-radius:4px;padding:7px 9px}.mg-register button:disabled{opacity:.65}.mg-ranking-link{min-height:44px;color:var(--mg-accent);font:750 14px/1.4 var(--mg-body);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;padding:5px;display:flex}.mg-ranking-link:hover{text-decoration:underline}.mg-preparing{text-align:center;gap:15px;font-size:14px}.mg-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}dialog.mg-dialog{border:1px solid var(--mg-line);border-top:4px solid var(--mg-line);background:var(--mg-paper);width:min(510px,100% - 24px);height:min(680px,100dvh - 24px);max-height:calc(100dvh - 24px);color:var(--mg-ink);border-radius:6px;margin:auto;padding:18px;overflow:hidden;box-shadow:0 20px 80px #171c2d70}.mg-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#111b2b9c}.mg-dialog-layout{grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:10px;height:100%;min-height:0;display:grid}.mg-dialog-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.mg-dialog-header h2{font:400 21px/1.4 var(--mg-display);margin:0}.mg-close{border:1px solid var(--mg-line);min-width:44px;min-height:44px;color:var(--mg-ink);background:#fff6e2;border-bottom:3px solid #a18952;border-radius:4px;justify-content:center;align-items:center;padding:0;font:400 28px/1 Arial,sans-serif;display:flex}.mg-board-filter{color:var(--mg-muted);justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.mg-board-filter>span{color:#fff3d3;background:#243248;border-radius:3px;padding:5px 12px;font-weight:750}.mg-board-filter small{font-size:12px}.mg-table-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow:auto}.mg-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:14px}.mg-table thead{z-index:1;background:var(--mg-paper);position:sticky;top:0}.mg-table th,.mg-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #b7a47b55;padding:12px 5px}.mg-table thead th{color:var(--mg-muted);padding-block:9px;font-size:12px}.mg-table tr>:first-child{color:#765325;width:46px;font-weight:800}.mg-table tr>:last-child{text-align:right;white-space:nowrap;width:126px}.mg-table tbody th{overflow-wrap:anywhere;font-weight:600}.mg-table tbody td:last-child{font:800 23px/1.3 var(--mg-numbers);font-variant-numeric:tabular-nums;letter-spacing:-.03em}.mg-table small,.mg-own-data small{font:700 12px/1 var(--mg-body);letter-spacing:0;margin-left:3px}.mg-table tbody tr:first-child{background:#eaddb53d}.mg-table .mg-own-row{background:#d4e8df!important}.mg-own-record{border:1px solid var(--mg-line);border-left:4px solid var(--mg-accent);background:#ebdfba;border-radius:4px;min-width:0;padding:10px 12px}.mg-own-label{font:700 12px/1.4 var(--mg-body);color:var(--mg-muted)}.mg-own-data{align-items:baseline;gap:10px;min-width:0;margin-top:3px;display:flex}.mg-own-data strong{color:var(--mg-accent);font:800 20px/1.4 var(--mg-body);white-space:nowrap}.mg-own-data>span{overflow-wrap:anywhere;flex:1;min-width:0;font-size:13px}.mg-own-data>b{font:800 24px/1.3 var(--mg-numbers);white-space:nowrap;font-variant-numeric:tabular-nums}.mg-own-record p{color:var(--mg-muted);margin:4px 0 0;font-size:13px}.mg-board-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:0;padding:12px;font-size:14px;line-height:1.7;display:flex;overflow:auto}.mg-board-message p{margin:0}.mg-board-message .mg-button{max-width:220px}.mg-return{flex-shrink:0}.mg-result button:focus-visible{outline:3px solid var(--mg-accent);outline-offset:2px}.mg-result a:focus-visible{outline:3px solid var(--mg-accent);outline-offset:2px}.mg-result input:focus-visible{outline:3px solid var(--mg-accent);outline-offset:2px}.mg-dialog button:focus-visible{outline:3px solid var(--mg-accent);outline-offset:2px}.mg-table-scroll:focus-visible{outline:3px solid var(--mg-accent);outline-offset:2px}.mg-result button:active:not(:disabled),.mg-result a:active,.mg-dialog button:active{transform:translateY(1px)}@media (max-width:360px){.mg-share-pair .mg-button{gap:3px;font-size:12px}.mg-register{gap:6px}.mg-register button{min-width:60px}.mg-table{font-size:13px}.mg-table tr>:first-child{width:37px}.mg-table tr>:last-child{width:104px}.mg-table tbody td:last-child{font-size:21px}.mg-own-record{padding-inline:9px}.mg-own-data{gap:7px}.mg-own-data>b{font-size:21px}}@media (max-height:650px){.mg-result{gap:5px}.mg-score{font-size:39px}.mg-kicker{font-size:12px;line-height:1.3}.mg-personal{margin-top:1px;line-height:1.3}.mg-primary{min-height:44px;padding-block:6px;font-size:19px}.mg-standing{height:44px;min-height:44px}.mg-standing strong{font-size:16px}dialog.mg-dialog{padding:10px 14px}.mg-dialog-layout{gap:6px}.mg-own-record{padding-block:7px}.mg-dialog-header h2{font-size:19px}.mg-table th,.mg-table td{padding-block:10px}}@media (prefers-reduced-motion:reduce){.mg-result *,.mg-dialog *{transition:none!important;animation:none!important}}.mg-share-hint{color:var(--mg-muted,#666);text-align:left;margin:0;font-size:12px;line-height:1.6}.mg-share-hint a{color:inherit;text-underline-offset:3px;text-decoration:underline}@font-face{font-family:Pop UI;src:url(/fonts/NotoSansJP-UI.woff2?v=popcorn6)format("woff2");font-style:normal;font-weight:100 900;font-display:swap}@font-face{font-family:Pop Display;src:url(/fonts/DelaGothicOne-UI.woff2?v=popcorn6)format("woff2");font-style:normal;font-weight:400;font-display:swap}:root{--paper:#f6efdc;--paper-light:#fff8e8;--ink:#243536;--blue:#276e71;--coral:#ac4543;--muted:#75664c;--gold:#cfac57;--line:#b69d69;--body:"Pop UI",sans-serif;--display:"Pop Display",sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);font-family:var(--body);background-image:radial-gradient(#ad966c13 .8px,#0000 .8px);background-size:5px 5px;margin:0;font-size:15px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.55}:is(button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible){outline:3px solid var(--blue);outline-offset:4px}button{touch-action:manipulation}button svg{flex-shrink:0}h1,h2,p{margin:0}button,a{transition:background-color .15s,transform .15s}button:active:not(:disabled){transform:translateY(2px)}.shell{max-width:936px;margin:0 auto;padding:0 24px 18px}.masthead{border-bottom:1px solid #b69d6966;justify-content:space-between;align-items:center;height:78px;margin-bottom:18px;display:flex}.brand{font-family:var(--display);background:0 0;border:0;align-items:center;gap:10px;padding:0;font-size:18px;display:flex}.masthead nav{gap:8px;display:flex}.icon-button{background:#fff8e86b;border:1px solid #ae99665c;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.icon-button:hover{background:#fff8e8}.game-card{border:1px solid var(--line);background:var(--paper-light);border-radius:14px;position:relative;overflow:hidden;box-shadow:0 6px #b19a6423}.canvas-wrap{line-height:0;position:relative;overflow:hidden}.canvas-wrap canvas{aspect-ratio:9/7;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;width:100%;height:auto;display:block}.canvas-wrap canvas:active{cursor:grabbing}.title-copy{z-index:1;text-align:center;pointer-events:none;color:#283e3d;width:100%;position:absolute;top:6%;left:0}.title-copy h1{font-family:var(--display);text-shadow:0 2px #fffae9;font-size:clamp(26px,4.5vw,43px);line-height:1.5}.title-copy p{margin-top:7px;font-size:14px;font-weight:650}.title-copy .eyebrow{letter-spacing:.09em;color:#706447;margin:0 0 4px;font-size:12px}.title-actions{max-width:442px;margin:-5px auto 0;padding:0 24px 22px;position:relative}.recipe-strip{justify-content:space-between;gap:5px;margin:0 -7px 17px;font-size:12px;display:flex}.recipe-strip span{white-space:nowrap;align-items:center;gap:5px;display:flex}.recipe-strip b{color:#8a7449;border:1px solid #b69d6970;border-radius:3px;padding:2px 4px;font-size:10px}.main-button{background:var(--blue);color:#fff9e6;border:1px solid #245e60;border-radius:9px;justify-content:center;align-items:center;gap:14px;width:100%;min-height:56px;padding:10px 20px;font-size:18px;font-weight:800;display:flex;box-shadow:0 4px #164f51}.main-button:hover{background:#1e5f63}.main-button>span{margin-left:auto}.main-button:active{box-shadow:0 1px #164f51}.text-button{color:#6e654e;text-underline-offset:4px;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;margin:16px auto 0;padding:5px;font-size:12px;text-decoration:underline;display:flex}.footer{color:#8a7959;letter-spacing:.04em;justify-content:space-between;gap:10px;margin-top:20px;padding:0 4px;font-size:10px;display:flex}.footer b{color:#635638}.loading{background:#f6efdcf2;place-items:center;font-weight:700;line-height:1.5;display:grid;position:absolute;inset:0}.play-heading{z-index:1;background:var(--paper-light);padding:17px 26px 0;position:relative}.step-strip{color:#8b8268;border-bottom:1px solid #b69d6940;justify-content:space-between;gap:6px;padding-bottom:13px;font-size:11px;display:flex}.step-strip>span{align-items:center;gap:6px;display:flex}.step-strip b{border:1px solid #b69d6960;border-radius:50%;place-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:grid}.step-strip .active{color:var(--blue);font-weight:800}.step-strip .active b{background:var(--blue);color:#fff8e8;border-color:var(--blue)}.step-strip .passed b{color:#586d54;background:#e3e6d1;border-color:#b8c0a6}.stage-heading{justify-content:space-between;align-items:center;margin-top:9px;display:flex}.stage-heading h1{font-family:var(--display);font-size:25px;font-weight:400}.operation-hint{color:var(--muted);min-height:26px;padding-top:3px;font-size:12px}.time-track{background:#e5dcc3;height:6px;margin:8px -26px 0;overflow:hidden}.time-track i{background:#cfac57;height:100%;transition:width .12s linear;display:block}.play-controls{min-height:109px;padding:18px 26px 20px}.stage-readout{justify-content:space-between;align-items:center;min-height:38px;display:flex}.stage-readout>span,.quantity>div>span{color:#6d684f;font-size:13px;font-weight:600}.stage-readout>b,.quantity b{font-family:var(--display);font-size:25px;font-weight:400;line-height:1}.stage-readout small,.quantity small{font-family:var(--body);margin-left:5px;font-size:12px}.phase-time{color:#897958;text-align:center;margin-top:13px;font-size:10px}.quantity>div:first-child{justify-content:space-between;align-items:center;display:flex}.oil-meter{background:#dfd9ba;border:1px solid #b19e63;border-radius:5px;height:12px;margin-top:10px;position:relative;overflow:hidden}.oil-meter i{background:#d9b847;height:100%;transition:width .1s;display:block}.oil-meter>span{background:#78a47a33;border:2px solid #3a6d5c;border-radius:3px;width:15%;position:absolute;inset:-1px auto -1px 59%}.stop-button{background:var(--coral);border-color:#8c3737;min-height:55px;font-size:20px;box-shadow:0 4px #763030}.stop-button:hover{background:#9d393b}.swipe-cue{color:#fff4cccf;text-shadow:0 1px 5px #273d36;pointer-events:none;font-size:65px;font-weight:900;line-height:1;animation:1.2s ease-in-out infinite swipe;position:absolute;top:66%;left:calc(50% - 28px)}.pause-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#253d3566;place-items:center;line-height:1.5;display:grid;position:absolute;inset:0}.pause-overlay>div{background:var(--paper-light);border:1px solid var(--line);text-align:center;border-radius:14px;width:min(80%,300px);padding:26px}.pause-overlay h2{font-family:var(--display);margin-bottom:23px;font-size:23px;font-weight:400}.outcome{text-align:center;pointer-events:none;line-height:1.5;position:absolute;top:9%;left:12px;right:12px}.outcome span{letter-spacing:.12em;color:#6e6248;font-size:11px}.outcome h1{font-family:var(--display);color:#293e3c;text-shadow:0 2px #fff7d6;font-size:clamp(21px,3.8vw,35px);font-weight:400}.result-content{max-width:650px;margin:auto;padding:0 26px 24px}.result-recipe{color:#79694c;flex-wrap:wrap;justify-content:center;gap:24px;font-size:11px;display:flex}.result-recipe b{color:#364d43;margin-left:3px;font-weight:800}.result-comment{text-align:center;color:#706146;margin:12px 0 16px;font-size:12px}.mg-result,.mg-dialog{--mg-bg:var(--paper-light);--mg-paper:var(--paper-light);--mg-ink:var(--ink);--mg-muted:var(--muted);--mg-border:var(--line);--mg-accent:var(--blue);--mg-accent-ink:#fff8e8;--mg-body-font:var(--body);--mg-display-font:var(--display);--mg-radius:9px}.mg-result{border-top:1px solid #b69d6950;padding-top:18px}.mg-score{font-family:var(--display);font-weight:400}.mg-button{min-height:48px}.mg-register{margin-top:6px}.error{color:#a24336;margin-top:14px;font-size:12px;line-height:1.6}.help-dialog{background:var(--paper-light);color:var(--ink);border:1px solid var(--line);border-radius:14px;width:calc(100% - 32px);max-width:470px;max-height:calc(100dvh - 32px);padding:23px;box-shadow:0 16px 60px #1c34334d}.help-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#203d3866}.mg-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#203d3866}.help-dialog header{justify-content:space-between;align-items:center;display:flex}.help-dialog h2{font-family:var(--display);font-size:23px;font-weight:400}.help-dialog ol{margin:20px 0;padding-left:25px}.help-dialog li{margin:15px 0;padding-left:4px}.help-dialog li b{font-size:14px}.help-dialog li p{color:#73674d;margin-top:4px;font-size:12px;line-height:1.8}.small-note{color:#847457;margin:16px 0;font-size:10px;line-height:1.9}.help-dialog .main-button{margin-top:20px}@keyframes swipe{0%,to{transform:translate(-20px)}50%{transform:translate(20px)}}@media (max-width:540px){.shell{padding:0 12px 16px}.masthead{height:65px;margin-bottom:12px}.brand{gap:5px;font-size:14px}.brand img{width:27px;height:27px}.masthead nav{gap:5px}.icon-button{width:36px;height:36px}.game-card{border-radius:10px}.title-copy{top:5.5%}.title-copy .eyebrow{font-size:9px}.title-copy h1{font-size:28px}.title-copy p{margin-top:4px;font-size:10px}.title-actions{margin-top:3px;padding:0 21px 18px}.recipe-strip{gap:3px;margin:0 -5px 17px;font-size:10px}.recipe-strip span{gap:3px}.recipe-strip b{padding:1px 3px;font-size:9px}.main-button{min-height:54px;font-size:16px}.footer{margin-top:18px;font-size:9px}.play-heading{padding:13px 16px 0}.step-strip{gap:3px;padding-bottom:10px;font-size:9px}.step-strip>span{gap:4px}.step-strip b{width:19px;height:19px;font-size:10px}.stage-heading h1{font-size:22px}.operation-hint{font-size:11px}.time-track{margin:8px -16px 0}.play-controls{min-height:106px;padding:16px 20px}.result-content{padding:0 18px 20px}.result-recipe{gap:13px;font-size:10px}.result-comment{font-size:11px}.mg-score{font-size:64px}.mg-result{gap:13px}.mg-share-pair{gap:8px}.mg-share-pair .mg-button{padding:8px;font-size:12px}.mg-register input{min-width:0}.outcome h1{font-size:24px}.swipe-cue{font-size:48px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.mg-primary{background:var(--blue);box-shadow:none;border:1px solid #245e60;border-bottom:4px solid #164f51;border-radius:8px}.mg-primary:hover:not(:disabled){background:#1e5f63}.mg-x,.mg-button{border-radius:8px}.title-copy{background:#fff7e6f0;border:1px solid #b69d6988;border-radius:10px;width:88%;padding:9px 12px 12px;top:4%;left:6%;box-shadow:0 3px #70552d12}.outcome{background:#fff7e6ed;border:1px solid #b69d6980;border-radius:9px;padding:9px 12px 11px;left:8%;right:8%}@media (max-width:540px){.masthead .icon-button{width:44px;height:44px}.title-copy{padding:7px 8px 9px;top:3%}.title-copy h1{font-size:26px}.title-copy .eyebrow{font-size:8px}.title-copy p{font-size:9px}.outcome h1{font-size:22px}.outcome{top:6%;left:5%;right:5%}}.text-button{min-height:44px}.spill-notice{white-space:nowrap;pointer-events:none;color:#fff4d3;background:#a34432ed;border:1px solid #f2d598;border-radius:7px;padding:5px 13px;font-size:16px;font-weight:900;line-height:1.5;position:absolute;bottom:10%;left:50%;transform:translate(-50%);box-shadow:0 3px #633c3059}.shake-feedback{color:#32664c;justify-content:space-between;align-items:center;gap:12px;min-height:23px;margin:0 0 12px;font-size:11px;font-weight:800;display:flex}.shake-feedback.danger{color:#a33d2c}.shake-meter{background:#e4d6b5;border:1px solid #b69d69;border-radius:4px;width:42%;height:10px;position:relative;overflow:hidden}.shake-meter i{background:#59957e;height:100%;transition:width .1s linear;display:block}.danger .shake-meter i{background:#bd6445}.shake-meter b{background:#6b9c6d24;border:2px solid #316b52;border-radius:2px;width:39%;position:absolute;top:-1px;bottom:-1px;left:21%}@media (max-width:540px){.spill-notice{font-size:13px}.shake-feedback{margin-bottom:9px;font-size:10px}}.result-recipe{gap:10px 19px;padding:9px 0;font-size:12px}.pop-readout{color:#6b654e;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px;display:flex}.pop-readout b{font-family:var(--display);color:#276e71;font-size:23px;font-weight:400}.pop-readout small{font-family:var(--body);margin-left:5px;font-size:10px}.media-retry{color:#9f4334;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin:12px 0;font-size:12px;display:flex}.media-retry button{background:#fff8e8;border:1px solid #b59b64;border-radius:7px;padding:8px 12px;font-weight:700}.mg-share-pair .mg-x{color:#244c45;background:#e3ece0;border:2px solid #276e71}.result-content>.error{text-align:center;margin:10px 0}.shell[data-outcome-tone=spill] .outcome h1,.shell[data-outcome-tone=burn] .outcome h1,.shell[data-outcome-tone=raw] .outcome h1{color:#984d38}html,body{height:100%}.shell{width:100%;max-width:1100px;height:100vh;grid-template-rows:52px minmax(0,1fr) 16px;gap:8px;height:100dvh;padding:8px 16px;display:grid}.shell .masthead{height:auto;min-height:0;margin:0}.shell .footer{min-width:0;margin:0;padding:0 3px;font-size:9px;line-height:16px}.shell .game-card{flex-direction:column;width:100%;min-width:0;max-width:none;height:100%;min-height:0;margin:0;display:flex}.scene-area{background:var(--paper-light);flex:1;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;overflow:hidden}.shell[data-screen] .canvas-wrap{flex:none;min-width:0;max-height:none;line-height:0}.shell[data-screen] .scene-area .canvas-wrap canvas{aspect-ratio:9/7;width:100%;height:100%;min-height:0;max-height:none;display:block}.shell[data-screen=title] .game-card{place-self:start center;width:min(100%,128.571dvh - 347.143px);max-width:640px;height:auto}.shell[data-screen=title] .scene-area{aspect-ratio:9/7;flex:none;width:100%}.title-actions{width:100%;margin:0 auto;padding:8px 18px 14px}.recipe-strip{margin-bottom:10px}.title-actions .main-button{min-height:50px}.title-actions .text-button{min-height:40px;margin-top:6px}.shell[data-screen=playing]{max-width:720px}.shell[data-screen=playing] .game-card{max-width:none}.play-heading{flex:none;padding:10px 16px 0}.step-strip{gap:4px;padding-bottom:6px;font-size:10px}.step-strip b{width:19px;height:19px}.stage-heading{margin-top:4px}.stage-heading h1{font-size:23px;line-height:1.25}.stage-heading button{width:40px;height:40px}.operation-hint{min-height:20px;padding-top:2px;line-height:1.35}.time-track{height:5px;margin:6px -16px 0}.play-controls{flex:0 0 154px;min-height:154px;padding:10px 18px}.phase-time{margin-top:7px;line-height:1.3}.shake-feedback{min-height:22px;margin-bottom:7px;line-height:1.2}.pop-readout{margin-bottom:7px;line-height:1.2}.shell[data-screen] .stop-button{min-height:44px;padding:6px 12px;font-size:18px}.pause-overlay>div{padding:16px}.pause-overlay h2{margin-bottom:12px}.pause-overlay .main-button{min-height:44px}.pause-overlay .text-button{min-height:40px;margin-top:6px}.shell[data-screen=result] .game-card{grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);display:grid}.is-result .scene-area{height:100%}.result-content{align-self:center;width:100%;min-width:0;max-width:none;margin:0;padding:12px 14px;position:relative}.result-recipe{gap:4px 10px;padding:0;font-size:11px;line-height:1.4}.result-recipe span{white-space:nowrap}.result-recipe b{font-size:12px}.result-comment{margin:6px 0 8px;font-size:11px;line-height:1.35}.result-content .mg-result{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-top:8px;display:grid}.mg-record{grid-column:1/3}.mg-metric{justify-content:center;align-items:center;gap:6px;display:flex}.mg-kicker{font-size:11px;line-height:1.3}.mg-new-best{margin:0;font-size:10px}.shell .mg-score{font-size:48px;line-height:1.05}.mg-personal{margin-top:2px;font-size:11px;line-height:1.3}.mg-standing{grid-area:1/3;align-self:center;height:auto;min-height:0}.mg-standing>p{flex-wrap:wrap;gap:3px;line-height:1.3}.mg-standing strong{font-size:17px}.mg-chip{font-size:10px}.result-content .mg-primary{grid-column:1;min-height:44px;padding:6px 4px;font-size:15px}.result-content .mg-primary>span{font-size:17px}.result-content .mg-share-pair{grid-column:2/4;gap:6px}.result-content .mg-share-pair .mg-button{white-space:normal;gap:3px;min-height:44px;padding:5px 4px;font-size:11px;line-height:1.15}.mg-share-hint{grid-column:1/-1;font-size:10px;line-height:1.4}.mg-register{grid-column:1/-1;margin:0}.result-content .mg-ranking-link{grid-column:1/3;min-height:40px;padding:3px;font-size:12px}.result-content>.text-button{width:calc(33.333% - 14px);min-height:40px;margin:0;padding:3px;font-size:11px;position:absolute;bottom:12px;right:14px}.media-retry,.result-content>.error{margin:5px 0;font-size:11px}@media (max-width:759px){.shell{grid-template-rows:48px minmax(0,1fr) 14px;gap:6px;padding:6px 12px}.shell .footer{font-size:8px;line-height:14px}.shell[data-screen=result] .game-card{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.result-content{align-self:end;padding:9px 12px}.result-content>.text-button{width:calc(33.333% - 12px);bottom:9px;right:12px}.outcome h1{font-size:clamp(16px,4.9vw,22px)}.outcome span{font-size:9px}}@media (max-height:700px){.shell{grid-template-rows:46px minmax(0,1fr) 14px;gap:6px;padding-top:6px;padding-bottom:6px}.play-heading{padding-top:7px}.play-controls{flex-basis:144px;min-height:144px;padding-top:8px;padding-bottom:8px}.operation-hint{min-height:18px;font-size:11px}.stage-heading h1{font-size:21px}.shell .mg-score{font-size:38px}.mg-personal{font-size:10px}.result-content{padding-top:7px;padding-bottom:7px}.result-content>.text-button{bottom:7px}.result-content .mg-result{gap:4px;padding-top:5px}.result-comment{margin:4px 0 5px;font-size:10px}.result-recipe{gap:3px 8px;font-size:10px}.result-recipe b{font-size:11px}}@media (min-width:660px) and (max-height:600px){.shell[data-screen=title] .game-card{grid-template-columns:minmax(0,1.3fr) minmax(280px,.9fr);align-self:stretch;width:100%;max-width:none;height:100%;display:grid}.shell[data-screen=title] .scene-area{aspect-ratio:auto;height:100%}.title-actions{align-self:center;padding:12px 18px}.title-actions .recipe-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-left:0;margin-right:0;display:grid}.shell[data-screen=playing]{max-width:1100px}.shell[data-screen=playing] .game-card{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) 240px;display:grid}.shell[data-screen=playing] .scene-area{grid-area:1/1/3}.play-heading{grid-area:1/2}.step-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;display:grid}.play-controls{grid-area:2/2;height:auto;min-height:0}.shell[data-screen=result] .game-card{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(280px,.9fr)}.result-content{align-self:center}}
