@font-face{font-family:CookingLabels;src:url(fonts/cooking-labels.woff2) format('woff2');font-weight:700}
@font-face{font-family:Mi;src:url(fonts/ui.woff2)}@font-face{font-family:Mi;src:url(fonts/bold.woff2);font-weight:700}@font-face{font-family:MiHeavy;src:url(fonts/heavy.woff2);font-weight:900}@font-face{font-family:KS;src:url(fonts/numbers.woff2);font-weight:100 900}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#ed9b61 url(assets/background.webp) center/cover;font-family:Mi,sans-serif;color:#69330f;touch-action:manipulation}body{display:flex;align-items:center;justify-content:center}button{font:inherit;border:0;padding:0;cursor:pointer;touch-action:manipulation;color:inherit;background:none}button:focus-visible{outline:3px solid #fff;outline-offset:3px}button:active{filter:brightness(1.12)}button:disabled{cursor:default;opacity:.5}[hidden]{display:none!important}#stage{position:relative;flex:none;width:414px;height:895px;transform:scale(var(--scale,1));transform-origin:center;background:transparent;user-select:none;-webkit-user-select:none;isolation:isolate}#stage>div,#stage>button,#stage>section{position:absolute}img{pointer-events:none;user-select:none}.art{position:absolute;pointer-events:none;max-width:none;height:auto}.sprite{position:absolute;pointer-events:none}.sprite>.art{max-width:none}#platform{position:absolute;inset:0;pointer-events:none;z-index:10}#platform button,#progress{pointer-events:auto}#back,#sound{position:absolute;top:70px;width:44px;height:44px}#back{left:12px}#sound{right:12px}#platform img{width:100%;height:100%}#sound.on img{opacity:.9}#progress{position:absolute;left:70px;top:70px;width:273px;height:49px;display:flex;background:#3b0a0280;border-radius:8px;overflow:hidden;color:white}.current{width:49px;flex:none;background:#3b0a0266;display:flex;align-items:center;flex-direction:column}.current b{font:600 19px/25px KS,Mi,sans-serif;margin-top:2px}.current span{font-size:11px;line-height:18px}.track-window{overflow:hidden;margin:5px 0 3px 10px;flex:1}#track{display:flex;gap:6px;transition:transform .45s cubic-bezier(.2,.8,.2,1)}.step{width:63px;flex:none;position:relative;text-align:center}.step .reward{display:flex;align-items:center;justify-content:center;gap:2px;color:#fff575;font:600 14px/20px KS,Mi,sans-serif}.step .reward img{width:14px!important;height:14px!important}.step small{display:block;font-size:11px;line-height:18px;color:#fff}.step:after{content:'···';position:absolute;right:-7px;top:16px;color:#ffffff80;font-size:8px}.step.complete small{color:#fff575}#title{left:35px;top:135px;width:344px;height:94px}#hint{left:111px;top:226px;width:192px;height:45px;display:grid;place-items:center;font-family:MiHeavy;font-size:16px;font-weight:900}#hint span{position:relative;top:-1px;white-space:nowrap}#hud{left:37px;top:278px;width:340px;height:45px;color:#fff4cf;display:flex;align-items:center;font-family:MiHeavy;font-weight:900}#hud .score{position:absolute;left:10px;top:7px;width:100px;text-align:center;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}#score{font:750 23px/24px KS,MiHeavy,sans-serif}#target{font:600 11px/11px KS,Mi,sans-serif;width:100%;margin-top:-2px}#hud .time{position:absolute;left:146px;top:3px;color:#743609;display:flex;align-items:baseline;gap:2px}#time{font:850 32px/38px KS,MiHeavy,sans-serif}.time span{font-size:17px}#hud .level{position:absolute;left:236px;top:10px;width:92px;text-align:center;font-size:21px;line-height:27px}#combo{left:48px;top:329px;width:96px;height:23px}#mult{left:154px;top:329px;width:78px;height:19px}#combo span,#mult span,#served span,#plates span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:5px;font-family:MiHeavy;font-weight:900;white-space:nowrap}#combo span{font-size:14px}#mult span{font-size:17px}#pause{left:331px;top:322px;width:44px;height:44px}#stove{left:38px;top:369px;width:338px;height:374px}#holes{inset:0;pointer-events:none}.hole{position:absolute;width:72px;height:72px;pointer-events:auto;border-radius:50%;color:#572609;z-index:2}.hole .ball{position:absolute;left:7px;top:7px;width:58px;height:58px;transform-origin:50% 58%}.hole .label{position:absolute;bottom:0;left:14px;min-width:44px;padding:1px 4px;background:#fff3ca;border:2px solid #b9752b;border-radius:4px;box-shadow:0 1px 0 #542303;font:900 12px/15px MiHeavy;pointer-events:none}.hole .ring{position:absolute;inset:0;border:2px solid #ffbd3b;border-radius:50%;pointer-events:none;box-shadow:0 0 7px #ffb633;opacity:0}.hole .target-ring{position:absolute;inset:6px;border:1px solid #ffefb2;border-radius:50%;pointer-events:none;opacity:0}.hole.ready .target-ring{opacity:.85}.hole.ready .ring{opacity:1}.hole.locked{pointer-events:none}.hole.empty{pointer-events:none}.hole.burn .ball{filter:brightness(.72)}#tray{left:24px;top:760px;width:366px;height:67px}#plated{inset:0;pointer-events:none}#served{left:104px;top:842px;width:108px;height:25px;font-size:15px}#plates{left:233px;top:842px;width:78px;height:19px;font-size:16px}#effects{inset:0;pointer-events:none;z-index:11;overflow:visible}.fx{position:absolute;pointer-events:none}.points{font:800 22px KS,MiHeavy;color:#fff2a3;text-shadow:0 2px 0 #9d3d09,1px 0 #9d3d09,-1px 0 #9d3d09}.fever #stove{filter:drop-shadow(0 0 7px #fff4a2)}.fever #combo{filter:drop-shadow(0 0 8px #ffed55)}#overlay{inset:0;background:#0007;z-index:20;display:flex;align-items:center;justify-content:center}#overlay[hidden]{display:none}#dialog{position:relative;width:300px;height:360px;margin-top:1px;border-radius:9px;background:#fddba5;color:#111a2d;box-shadow:none}#dialog.result{align-self:flex-start;margin-top:268px}.modal-eyebrow{position:absolute;left:16px;top:12px;margin:0;font:600 16px/27px Mi,sans-serif;color:#7b4300}.modal-title{position:absolute;left:16px;top:45px;margin:0;font:700 28px/37px Mi,sans-serif;letter-spacing:-.4px}.modal-coin{position:absolute;left:195px;top:-33px;width:137px;height:123px;object-fit:contain}.amount{position:absolute;top:112px;left:83px;height:143px;width:133px;display:flex;align-items:baseline;color:#911300}.amount strong{font:600 119px/143px KS,sans-serif;letter-spacing:-3px}.amount span{font:700 24px Mi;position:absolute;left:109px;top:100px}.actions{position:absolute;left:16px;top:296px;width:268px;display:flex;gap:8px}.actions button{height:48px;flex:1;border-radius:9px;background:#111a2d;color:white;font:700 18px Mi;white-space:nowrap}.actions button.retry{flex:0 0 107px;background:white;color:#111a2d}.actions button.revive{background:#911300}.close-modal{position:absolute;left:130px;top:376px;width:40px;height:40px}.close-modal img{width:40px;height:40px}#dialog.success{background:#1da5ff;color:#fff}#dialog.success .modal-eyebrow{color:#ffffffb3}#dialog.success .amount{color:#fff}#dialog.simple{height:220px}.simple h2{font:900 26px MiHeavy;text-align:center;margin:35px 0 12px}.simple .sub{text-align:center;font:600 17px KS,Mi;margin:0}.simple .actions{top:auto;bottom:20px}.simple .close-modal{top:235px}#dialog.loading{height:170px}.loading h2{font-size:22px;margin-top:30px}.loading progress{display:block;width:232px;height:8px;margin:25px auto;accent-color:#b85c1f}.loading .actions{top:105px}.browse-item{position:absolute;left:80px;top:65px;width:140px;height:140px}.browse .modal-title{font-size:24px;top:20px}.browse .sub{position:absolute;top:223px;width:100%;text-align:center;font:600 24px KS,Mi}.browse .actions{top:296px}#reopen{left:132px;top:688px;width:150px;height:45px;background:#fff2cc;border:3px solid #a96128;border-radius:8px;z-index:12;font:900 20px MiHeavy;box-shadow:0 4px #74360f}body:not(.loaded) #platform{pointer-events:none}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}
#hud .score{display:block;top:4px}#score{display:block;font-size:21px;line-height:23px}#target{display:block;margin-top:-1px;font-size:10px;line-height:10px}#hud .time{left:153px}#time{font-size:29px}button:focus:not(:focus-visible){outline:none}

#hud .score{display:flex;flex-wrap:nowrap;align-items:baseline;gap:2px;top:10px;left:9px;width:100px}#score{font-size:20px;line-height:24px}.score-label{font:900 10px MiHeavy}#target{width:auto;display:inline;margin:0;font-size:10px;line-height:14px}
@font-face{font-family:Popup;src:url(fonts/popup.woff2);font-weight:600}.result .modal-eyebrow,.result .modal-title{font-family:Popup,Mi,sans-serif;font-weight:600;letter-spacing:0}
body:not(.loaded) #stage > :not(#overlay):not(#platform){visibility:hidden}
#hud .score{white-space:nowrap;top:10px}#hud .score>*{flex-shrink:0;white-space:nowrap}.score-label{font-size:9px}#target{font-size:9px}

/* User-approved Figma layout v2, 2026-11-20. */
#hint{top:221px}#hint span{position:absolute;left:11px;top:10px;width:170px;height:20.8px;line-height:20.8px;text-align:center}
#hud{top:286px}#hud .score{left:0;top:0;width:110px;height:45px;display:block}#hud .score-label{position:absolute;left:10px;top:16px;font-size:10px;line-height:13px;width:22px}#score{position:absolute;left:31px;top:10px;width:66px;height:23px;text-align:center;font:900 19px/23px MiHeavy,sans-serif}
#hud .time{left:147px;top:4px;width:66px;height:33.8px;justify-content:center;gap:0}#time,#hud .time span{font:900 26px/33.8px MiHeavy,sans-serif}#hud .level{left:237px;top:9px;width:88px;font-size:19px;line-height:24.7px}#pause{top:330px}

/* Full viewport background/shade, independent from the protected artboard. */
html{min-height:100%;background-color:#ed9b61}body{position:fixed;inset:0;width:var(--viewport-width,100vw);height:var(--viewport-height,100dvh);padding:0;background-color:#ed9b61}
#overlay{background:transparent;isolation:isolate}#overlay::before{content:"";position:absolute;inset:calc(-1 * var(--shade-y,1px)) calc(-1 * var(--shade-x,1px));background:#0007;z-index:-1}

html,body{overflow:clip}#stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--scale,1));}

.flip-roll { width:58px; height:58px }
.flip-roll canvas { position:absolute; inset:0; width:100%; height:100% }
.flip-shadow { width:40px; height:18px; border-radius:50%; background:#20100a; filter:blur(3px) }

/* The guide and shrinking ring use the same diameter at the hit time. */
.hole .target-ring { inset:0 }
#opening {
  top:335px; left:38px; right:38px; z-index:12;
  height:30px; display:flex; align-items:center; justify-content:space-between;
  color:#69330f; font:900 14px MiHeavy,sans-serif;
}
#opening span, #opening button {
  background:#fff2ca; border:1px solid #a96128; border-radius:6px;
  padding:3px 9px;
}
#opening button { min-height:32px; min-width:54px; }
#stage.opening #pause { visibility:hidden }
#stage.opening #holes { opacity:1; }
#stage.opening .hole { pointer-events:none; }
#stage.opening .hole .label { white-space:nowrap; }
.opening-tap {
  width:44px; height:44px; border:4px solid #fff6d6;
  border-radius:50%; box-shadow:0 0 10px #ffb32f, inset 0 0 8px #ffb32f;
}

/* The HUD lettering shares one baseline and size across all three enamel cells. */
#hud{left:17px;top:278px;width:380px;height:53px}
#hud>.sprite{left:0;top:2.5px;transform-origin:top left;transform:scale(1.118)}
#hud .score,#hud .time,#hud .level{position:absolute;top:0;height:51px;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
#hud .score{top:.5px;left:5px;width:120px}
#hud .time{left:125px;top:3px;width:127px;height:47px;display:flex;align-items:center;justify-content:center;gap:3px}
#hud .timer-clock{display:block;width:29px;height:auto;flex:none;margin-right:3px}
#hud .level{top:.5px;left:257px;width:114px}
#hud .score-label,#hud #score,#hud #time,#hud .time span,#hud .level{font:700 16px/1 CookingLabels,sans-serif}
#hud .score-label,#hud #score{position:static;width:auto;height:auto}
#hint span{inset:0;width:auto;height:auto;display:grid;place-items:center;padding-bottom:2px;line-height:1}
#opening{justify-content:center;align-items:center}
#opening #guideText{font:700 14px/18px CookingLabels,sans-serif;display:grid;place-items:center;text-align:center;background:#462819;color:#fff1c7;padding:6px 12px;border:1px solid #f3cb89;box-shadow:0 2px #793f21}
#opening #openingStart{position:absolute;top:251px;left:50%;display:grid;place-items:center;padding:0;width:145px;height:40px;background:linear-gradient(#ffeab0,#f7bd57);color:#52270f;border:2px solid #804316;border-radius:9px;box-shadow:inset 0 0 0 2px #fff0c0,0 4px #723813;font:900 20px MiHeavy;transform:translateX(-50%);animation:guide-pulse 1.35s ease-in-out infinite}
@keyframes guide-pulse{50%{transform:translateX(-50%) scale(1.06)}}
#countdown{z-index:15;inset:370px 37px auto;height:350px;display:grid;place-items:center;background:#341c147a;border-radius:25px;color:#fff2af;font:900 85px MiHeavy;text-shadow:0 4px #a6531b,0 7px #4a2519}
#dialog.enamel-pause{height:193px;border:3px solid #743a1d;border-radius:16px;background:linear-gradient(150deg,#fff8d9,#ffdda0);box-shadow:inset 0 0 0 3px #ffefc6,inset 0 0 0 6px #dfa65b,0 6px #542a18;color:#663314}
#dialog.enamel-pause h2{color:#663314;font-family:MiHeavy,sans-serif;text-shadow:0 2px #fff4cf}
#dialog.enamel-pause .actions button{color:#fff3cb;background:#80451f;border:2px solid #663415;box-shadow:inset 0 2px #ad7140,0 3px #70401e}
#dialog.enamel-pause .actions button:first-child{color:#5b2c11;background:linear-gradient(#ffe9a1,#ffc456);box-shadow:inset 0 2px #fff5cb,0 3px #70401e}
.combo-hit{font:italic 900 17px/1 MiHeavy,sans-serif;color:#fff2aa;-webkit-text-stroke:2.7px #8b3b15;paint-order:stroke fill;text-shadow:1px 3px #5f2918;white-space:nowrap}
@media(prefers-reduced-motion:reduce){#opening #openingStart{animation:none}}

html[data-pde-game="takoyaki"] .pde-result .pde-result-title{top:45px!important}
html[data-pde-game="takoyaki"] .pde-result[data-pde-outcome="failure"] .pde-result-coin{left:193px!important}
html[data-pde-game="takoyaki"] .pde-result .pde-result-action,html[data-pde-game="takoyaki"] .pde-result-amount>span{font-family:Mi,sans-serif!important}
html[data-pde-game="takoyaki"] .pde-result-amount>strong{letter-spacing:0!important}
#overlay.pde-result-mask:has([data-pde-outcome]){background:transparent!important}
#overlay.pde-result-mask:has([data-pde-outcome])::before{background:#000c}

html[data-pde-game="takoyaki"] .pde-brand{left:113.8683px;top:164.9443px;width:186.4268px;height:65.3337px}
html[data-pde-game="takoyaki"] .pde-brand>img:first-child{width:186.4268px;height:65.3337px}

/* Keep the demonstration text above the dimmer and cut a window around its pan slot. */
#stage.guide-focus::after{
  content:"";position:absolute;pointer-events:none;z-index:11;
  inset:calc(-1 * var(--shade-y,1px)) calc(-1 * var(--shade-x,1px));
  background:radial-gradient(circle at calc(var(--guide-x) + var(--shade-x,1px)) calc(var(--guide-y) + var(--shade-y,1px)),transparent 48px,rgba(22,13,9,.68) 58px);
}

/* Center the shared loading artboard even when height limits its scale. */
html[data-pde-game="takoyaki"] .pde-loading.pde-mahjong-v7 .pde-loading-scene{
  left:50%;
  transform:translateX(-50%) scale(var(--pde-ui-scale,1));
  transform-origin:top center;
}
