*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#c5e9df;touch-action:none}body{--ink:#284f54;--mint:#73c5bb;--pink:#f49baf;--cream:#fff6d8;color:var(--ink);font-family:'Trebuchet MS',sans-serif;font-weight:800}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#game{width:100%;height:100%;position:relative;overflow:hidden}#world{width:100%;height:100%;display:block;position:absolute;inset:0}.screen{position:absolute;inset:0}.hidden{display:none!important}#title{background:linear-gradient(0deg,rgba(36,75,79,.4),transparent 55%),url('../assets/title-bg.webp') center/cover;z-index:10;display:flex;align-items:center;flex-direction:column}#logo{width:80%;height:33%;object-fit:contain;margin-top:3vh;filter:drop-shadow(0 6px 0 #163c4520);animation:logoIn .6s cubic-bezier(.17,.89,.3,1.3),float 4s .6s ease-in-out infinite}.title-actions{position:absolute;bottom:7%;display:flex;gap:20px;align-items:center;justify-content:center}.plate{border:12px solid transparent;border-image:url('../assets/ui-button.webp') 100 fill / 20px stretch;background:none;min-height:54px;padding:6px 24px;filter:drop-shadow(0 4px 0 #365e5726);text-shadow:0 2px 0 #ffffff;font-size:18px;font-weight:900;transition:transform .13s,filter .13s;white-space:normal;line-height:1.1;outline:none}.plate:hover,.plate.focus{transform:translateY(-3px);filter:brightness(1.08) drop-shadow(0 0 3px #fff)}.plate.focus{outline:3px solid #397b80;outline-offset:2px;border-radius:20px}.plate:active,.plate.pressed{transform:translateY(3px) scale(.96)}.primary{color:#6d3d3c;min-width:200px;font-size:22px}.small,.secondary{font-size:15px;min-height:48px;padding:3px 15px}.panel{border:16px solid transparent;border-image:url('../assets/ui-panel.webp') 115 fill / 26px stretch;filter:drop-shadow(0 7px 5px #36615d18)}#start{min-width:280px;font-size:22px}#board{min-width:150px}#cinema{z-index:20;background:url('../assets/title-bg.webp') center/cover}#intro{width:100%;height:100%;object-fit:cover}#skip{position:absolute;right:max(22px,env(safe-area-inset-right));top:18px;min-width:112px}#ui{position:absolute;inset:0;pointer-events:none}#ui button{pointer-events:auto}header{position:absolute;left:max(26px,env(safe-area-inset-left));right:80px;top:20px;display:flex;align-items:center;justify-content:space-between;height:48px;gap:16px}.brand{display:flex;flex-direction:column;gap:2px}.tiny{font-size:12px;letter-spacing:.14em;color:#46716c}.brand strong{font-size:25px;font-weight:900;line-height:1.1;text-shadow:0 2px 0 #fff}#progress{display:flex;gap:10px;align-items:center;color:#3f6563;font-size:17px}.progressDot{height:12px;width:12px;border-radius:50%;border:3px solid #65988d;background:#eff7de}.progressDot.on{background:#ee9da9;border-color:#bd7485}.score{display:flex;align-items:center;gap:12px;min-width:110px;justify-content:flex-end}.score span{font-size:12px}.score b{font-size:27px;text-shadow:0 2px 0 #fff}.pantry{position:absolute;left:20px;top:98px;width:255px;padding:5px 4px 8px;animation:pop .3s ease-out}.pantry h2,.opponent h2{margin:2px 0 6px;font-size:24px;font-weight:900;line-height:1.1;text-shadow:0 2px #fff}.instruction{font-size:14px;font-weight:700;margin:4px 0 10px;line-height:1.35}#ingredients{display:grid;grid-template-columns:1fr 1fr;gap:10px}.food{position:relative;min-height:112px;border:9px solid transparent;border-image:url('../assets/ui-button.webp') 100 fill / 12px stretch;background:none;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;transition:transform .14s,filter .14s;outline:none;padding:0 2px 5px;line-height:1.1}.food img{width:72px;height:59px;object-fit:contain;mix-blend-mode:multiply;pointer-events:none}.food b{font-size:16px;white-space:nowrap;text-shadow:0 1px #fff}.food small{font-size:12px;font-weight:900;color:#7f6357;margin-top:4px;letter-spacing:.03em}.food:hover,.food.focus{transform:translateY(-3px);filter:brightness(1.1)}.food.selected{outline:3px solid #ef8da2;border-radius:16px;outline-offset:1px}.food.focus{outline:3px solid #367b7c;border-radius:16px;outline-offset:2px}#ingredientInfo{font-size:14px;line-height:1.35;margin-top:12px;min-height:42px;font-weight:700}#buildLabel{position:absolute;top:19%;left:28%;right:25%;text-align:center}#buildLabel h1{font-size:clamp(21px,2.6vw,34px);margin:5px 0;color:#2e5c60;text-shadow:0 2px #fff;line-height:1.15}#socketBar{position:absolute;left:29%;right:26%;bottom:6%;text-align:center}.slot-caption{font-size:14px;margin-bottom:10px;text-shadow:0 1px #fff}#slots{display:flex;gap:10px;justify-content:center}.socket{min-width:70px;max-width:110px;flex:1;padding:6px 7px;font-size:15px;min-height:60px;position:relative}.socket small{display:block;font-size:12px;margin-top:6px;color:#6d635d}.socket.selected{outline:3px solid #ed899f;outline-offset:2px;border-radius:17px}.opponent{position:absolute;right:24px;top:100px;width:230px;text-align:center;animation:pop .3s ease-out;padding:3px 3px 8px}.opponent .tiny{font-size:11px;letter-spacing:.08em}.opponent h2{font-size:22px;margin:7px 0}#rivalPreview{width:100%;height:126px;pointer-events:none}#enemyRecipe{font-size:13px;line-height:1.35;color:#676959;margin:3px 0 9px}#enemyTip{font-size:14px;line-height:1.3;margin:8px 0}.sample{font-size:12px;font-weight:700;color:#7a8982;border-top:1px dashed #b9cbc0;padding-top:9px;line-height:1.3}.build-actions{position:absolute;right:24px;bottom:6%;width:230px;display:flex;flex-direction:column;gap:10px}.build-actions .plate{width:100%;min-width:0}#shuffle{align-self:center;width:83%}#battle{position:absolute;inset:0}.fighterHUD{position:absolute;top:96px;width:260px;padding:2px 8px 6px;text-align:center}.fighterHUD.left{left:5%}.fighterHUD.right{right:5%}.fighterHUD strong{font-size:17px;line-height:1.25;display:block}.hp{display:flex;gap:8px;margin-top:10px}.hpPart{flex:1;height:10px;border-radius:5px;background:#d3dcd1;overflow:hidden}.hpPart span{display:block;height:100%;border-radius:5px;background:#f69ba9;transition:width .2s}.right .hpPart span{background:#65bfc0}#watch{position:absolute;top:100px;left:30%;right:30%;text-align:center;font-size:14px;line-height:1.4;color:#4b746e}#callout{position:absolute;top:27%;left:15%;right:15%;text-align:center;font-size:clamp(24px,4vw,50px);color:#fff9de;text-shadow:3px 0 #496d68,-3px 0 #496d68,0 3px #496d68,0 -3px #496d68,0 6px #496d6840;font-weight:900;transform:rotate(-3deg);transition:opacity .16s;pointer-events:none}#callout.pop{animation:callout .3s cubic-bezier(.2,1.6,.5,1)}#battleBottom{position:absolute;left:25%;right:25%;bottom:5%;display:flex;align-items:center;justify-content:center;gap:25px}#impactText{font-size:16px;min-width:100px;text-align:center;text-shadow:0 2px #fff}#speed{min-width:115px}#between{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#c3e2d438;backdrop-filter:blur(3px);pointer-events:auto}.round-card{text-align:center;width:min(540px,80%);padding:18px 25px 24px;animation:pop .3s cubic-bezier(.2,1.5,.5,1)}#roundStars{color:#e5aa3f;font-size:40px;letter-spacing:10px;text-shadow:0 3px #fff}#roundHeading{font-size:32px;line-height:1.15;margin:12px 0;text-shadow:0 2px #fff}#roundDetail{font-size:17px;margin:0 0 20px}#flash{position:absolute;inset:0;background:#fffbea;opacity:0;pointer-events:none;z-index:8}#transition{position:absolute;inset:0;background:#b0ddcf;opacity:0;pointer-events:none;z-index:25;transition:opacity .2s}.pulse{animation:pulse 2.5s ease-in-out infinite}@keyframes pulse{50%{filter:brightness(1.07) drop-shadow(0 5px 6px #2f675b44)}}@keyframes float{50%{transform:translateY(-5px) rotate(-1deg)}}@keyframes logoIn{from{opacity:0;transform:translateY(-35px) scale(.7)}to{opacity:1;transform:none}}@keyframes pop{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1;transform:none}}@keyframes callout{from{transform:rotate(-3deg) scale(.65)}to{transform:rotate(-3deg) scale(1)}}
@media(max-height:540px){header{top:12px;left:18px;height:38px;right:70px}.brand strong{font-size:20px}.brand .tiny{font-size:11px}#progress{font-size:14px;gap:7px}.score b{font-size:23px}.pantry{left:12px;top:67px;width:219px;padding:0 1px 2px;border-width:13px;border-image-width:20px}.pantry h2{font-size:19px}.instruction{font-size:12px;margin:2px 0 8px}#ingredients{gap:8px}.food{min-height:80px;padding:0 0 3px;border-width:7px}.food img{height:37px;width:55px}.food b{font-size:14px}.food small{font-size:11px;margin-top:2px}#ingredientInfo{font-size:12px;min-height:32px;margin-top:8px;line-height:1.25}.opponent{top:67px;right:14px;width:185px;border-width:12px;padding:0 2px 3px;border-image-width:20px}.opponent h2{font-size:17px;margin:4px 0}.opponent .tiny{font-size:10px}#rivalPreview{height:72px}#enemyRecipe{font-size:12px;margin:0 0 5px}#enemyTip{font-size:12px;line-height:1.25;margin:5px 0}.sample{font-size:10px;padding-top:5px}.build-actions{right:14px;bottom:13px;width:185px;gap:8px}.build-actions .plate{min-height:44px;font-size:17px;padding:3px 10px;border-width:8px}#shuffle{font-size:13px;min-height:44px}#buildLabel{top:18%;left:28%;right:25%}#buildLabel h1{font-size:22px}#buildLabel .tiny{font-size:11px}#socketBar{left:29%;right:25%;bottom:18px}.slot-caption{font-size:12px;margin-bottom:8px}#slots{gap:8px}.socket{min-width:53px;min-height:48px;padding:2px 2px;border-width:8px;font-size:13px}.socket small{font-size:10px;margin-top:4px}.fighterHUD{top:65px;width:215px;border-width:12px;border-image-width:20px}.fighterHUD.left{left:4%}.fighterHUD.right{right:4%}.fighterHUD strong{font-size:14px}.hp{margin-top:7px}#watch{top:65px;font-size:12px;left:32%;right:32%}#callout{top:28%;font-size:31px}#battleBottom{bottom:13px;gap:15px}#impactText{font-size:14px}#speed{font-size:14px;min-height:44px}.round-card{padding:7px 20px 12px}#roundStars{font-size:28px}#roundHeading{font-size:26px;margin:8px 0}#roundDetail{font-size:15px;margin-bottom:12px}.title-actions{bottom:6%;gap:16px}#start{font-size:18px;min-width:220px;min-height:50px}#board{min-height:50px}#skip{top:12px;right:14px;min-height:44px}#logo{height:33%;margin-top:3%}}
