:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",sans-serif;color:#30271e;background:#241b14;font-synthesis:none;--paper:#f5eddd;--ink:#30271e;--red:#a73e28;--line:#d8cbb5;--gold:#bc8b27}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #31758c;outline-offset:2px}button{color:inherit}button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}a{color:inherit}.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}[hidden]{display:none!important}#app{height:100svh;min-height:460px;max-width:1600px;margin:auto;display:flex;flex-direction:column;background:var(--paper);overflow:hidden}.appbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 18px;border-bottom:1px solid var(--line);flex:none;min-height:55px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.brand>b{font-size:25px;font-style:italic;color:var(--red);border:2px solid var(--red);border-radius:8px;width:32px;height:32px;text-align:center;line-height:28px;flex:none}.brand h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:17px;line-height:1.15;margin:0;font-weight:800;max-width:260px}.tools{display:flex;align-items:center;gap:7px}.rank-button{background:#f2dfb0;border:1px solid #b58c3a;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:9px 13px;font-weight:750;line-height:1.1;min-height:40px}.rank-button:hover{background:#ebd098}.language select{background:transparent;border:1px solid var(--line);border-radius:7px;padding:9px 25px 9px 8px;max-width:150px;min-height:40px}.icon-btn{border:1px solid var(--line);background:transparent;border-radius:7px;min-width:38px;min-height:40px;font-size:20px}.hud{display:flex;align-items:center;justify-content:space-between;padding:5px 22px;gap:15px;flex:none;min-height:48px;background:#eee2cc}.timer{font-size:26px;letter-spacing:-1px;font-weight:800;font-variant-numeric:tabular-nums;min-width:90px}.timer span{font-size:13px;letter-spacing:0;margin-inline-start:4px;font-weight:500}.heat{display:flex;align-items:center;gap:10px;font-size:12px}.heat>span{color:#746554}.heat>div{display:flex;background:#e1d2b8;border-radius:6px;padding:2px}.heat button{border:0;border-radius:4px;background:transparent;font-size:12px;font-weight:750;min-height:32px;padding:4px 16px}.heat button[aria-pressed=true]{background:var(--red);color:#fff8e9;box-shadow:0 1px 3px #68452a44}.served{display:flex;align-items:center;gap:10px;font-size:12px}.served strong{font-size:23px}.served small{font-size:13px;color:#716453;margin-inline-start:3px}.stage{position:relative;flex:1;min-height:0;background:#392719;isolation:isolate;overflow:hidden}.stage canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;outline-offset:-4px}.launch{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;pointer-events:auto;z-index:2;background:#20150c55;backdrop-filter:blur(1.2px)}.launch>p:first-child{color:#fff4df;background:#28190fdd;border-radius:4px;padding:5px 12px;font-size:16px;font-weight:650;line-height:1.4;text-align:center;max-width:520px;margin:0 0 14px}.start-actions{display:flex;gap:12px;pointer-events:auto;width:min(520px,100%)}.start-actions>button{flex:1;min-width:0;min-height:54px;line-height:1.25;overflow-wrap:anywhere}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 24px;border-radius:7px;font-weight:800;border:1px solid #83321f;background:var(--red);color:#fff6e4;box-shadow:0 3px 0 #652d1f}.secondary{background:#f8efdf;color:#563d2a;border-color:#c9b99b;box-shadow:0 3px 0 #9b8160}.primary:hover{background:#be4b30}.secondary:hover{background:white}#status{background:var(--paper);font-size:12px;border-radius:5px;max-width:90%;text-align:center;margin:7px 0 0}#status:empty{display:none}.feedback{position:absolute;top:10px;left:50%;transform:translateX(-50%);padding:7px 14px;background:#fff5e5ed;border-radius:6px;font-size:13px;font-weight:700;pointer-events:none;opacity:0;transition:opacity .2s;max-width:90%;text-align:center}.feedback.visible{opacity:1}.boot{position:absolute;inset:0;background:#302318dd;color:var(--paper);display:grid;place-items:center}.tool-rail{display:flex;justify-content:center;border-bottom:1px solid var(--line);background:var(--paper);padding:6px 16px;gap:8px;flex:none}.tool-rail button{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-width:140px;max-width:220px;flex:1;padding:6px 15px;border-radius:7px;border:1px solid #cdbfa5;background:#faf5e9;min-height:53px;font-weight:750;font-size:14px}.tool-rail svg{width:41px;height:33px;stroke-width:2}.tool-rail button[aria-pressed=true]{background:#a73e28;color:#fff7e7;border-color:#84321f;box-shadow:0 2px 0 #682d1e}.tool-rail button:hover{transform:translateY(-1px)}kbd{font:10px ui-monospace,monospace;opacity:.55;margin-inline-start:auto}.game-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:4px 18px;min-height:35px;flex:none}.game-footer p{font-size:12px;margin:0;line-height:1.35}.game-footer>div{display:flex;gap:8px;flex:none}.text-btn{background:none;border:0;color:#725c45;font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:30px;padding:3px}.game-footer #finish{color:var(--red)}dialog{width:min(620px,calc(100% - 24px));max-height:calc(100svh - 32px);overflow:auto;border:1px solid #cfbea1;border-radius:14px;background:#faf3e6;color:var(--ink);padding:26px;box-shadow:0 24px 100px #0008}dialog::backdrop{background:#1b130ec9;backdrop-filter:blur(3px)}dialog h2{margin:0 35px 14px 0;font-size:25px;line-height:1.2}dialog p{font-size:14px;line-height:1.65}dialog .primary{width:100%}.dialog-close{position:absolute;inset-inline-end:10px;top:8px;border:0;background:transparent;font-size:28px;min-width:40px;min-height:40px}.rank-scroll{overflow:auto;max-height:42svh}table{border-collapse:collapse;width:100%;font-size:13px;text-align:start}th,td{padding:12px 7px;border-bottom:1px solid var(--line);text-align:start}th{color:#75644d;font-size:11px}td:nth-child(2){max-width:200px;overflow-wrap:anywhere}tr.you{background:#eedbb6}.result-dialog{text-align:center;max-width:530px}.result-dialog h2{margin:7px 10px 0}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#945035;font-size:11px;font-weight:800}#result-dish{width:100%;height:auto;max-height:235px;object-fit:contain;display:block;margin:4px auto}.result-big{font-weight:800;line-height:1!important;margin:0;font-size:49px!important}.result-big span{font-size:16px;color:#85735c;margin-inline-start:5px}.result-dialog #result-time{margin:7px 0;font-size:12px}#result-message{font-size:12px;line-height:1.5}#ranking-form{text-align:start;border-top:1px solid var(--line);padding-top:12px;margin:12px 0 17px;display:grid;gap:7px}#ranking-form label{font-size:12px;font-weight:700}input{background:#fffaf0;border:1px solid #baa789;border-radius:6px;min-height:42px;padding:8px;width:100%;color:inherit}#ranking-form button{font-size:13px}.result-actions{display:flex;gap:8px}.result-actions>button{flex:1;font-size:13px;min-width:0}.result-actions .rank-button{background:#f2dfb0}.result-dialog #share{margin-top:8px}button,select{transition:background .15s,transform .15s}#time-value.urgent{color:#a12f21}@media(min-width:1601px){#app{box-shadow:0 0 100px #0008}}@media(max-width:700px){.appbar{padding:6px 9px;gap:6px}.brand{gap:6px}.brand>b{width:26px;height:28px;font-size:22px;line-height:24px}.brand h1{font-size:13px;max-width:135px}.tools{gap:4px}.rank-button{font-size:11px;padding:7px 8px;gap:4px}.rank-button svg{width:18px}.language select{max-width:90px;font-size:11px;padding-inline:5px;min-height:36px}.icon-btn{min-width:30px;min-height:36px;font-size:17px}.hud{padding:3px 12px;gap:7px;min-height:46px}.timer{font-size:24px;min-width:68px}.heat{gap:4px}.heat>span{display:none}.heat button{padding:4px 10px;font-size:11px}.served{gap:5px;font-size:10px}.served strong{font-size:21px}.tool-rail{padding:5px 6px;gap:5px}.tool-rail button{min-width:0;padding:5px 3px;gap:1px;flex-direction:column;font-size:11px;min-height:62px}.tool-rail svg{width:34px;height:28px}kbd{display:none}.game-footer{padding:4px 9px;align-items:flex-start;gap:8px;min-height:49px}.game-footer p{font-size:11px;max-width:65%}.game-footer>div{flex-direction:column;gap:0;align-items:flex-end}.game-footer .text-btn{min-height:20px;font-size:10px;padding:0}#privacy-button{display:none}.launch{padding:16px}.launch>p:first-child{font-size:12px}.primary,.secondary{padding:10px 16px;font-size:13px}.feedback{font-size:12px;width:max-content;max-width:92%}dialog{padding:22px 17px}.result-dialog h2{font-size:23px}}@media(max-width:380px){.brand h1{max-width:88px;font-size:12px}.brand>b{display:none}.rank-button{padding-inline:6px}.language select{max-width:78px}#fullscreen-button{display:none}.served>span{display:none}.hud{padding-inline:10px}}@media(max-height:550px) and (min-width:600px){#app{min-height:340px}.appbar{min-height:42px;padding:3px 10px}.tools>*{min-height:32px}.hud{min-height:38px}.timer{font-size:21px}.tool-rail{padding:3px}.tool-rail button{min-height:40px;padding:3px 12px}.tool-rail svg{height:25px}.game-footer{min-height:25px;padding-block:0}.game-footer .text-btn{min-height:25px}.launch>p:first-child{font-size:12px;margin-bottom:10px}.launch{padding:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

.dress-hud{padding:6px 18px;min-height:57px;gap:12px}.dress-hud>div:first-child{min-width:0;flex:1}.dress-hud strong{display:block;font-size:16px;line-height:1.2}.dress-hud small{display:block;font-size:11px;color:#79634a;margin-top:3px;line-height:1.3}.dress-actions{display:flex;align-items:center;gap:8px;flex:none}.dress-actions button{min-height:38px;padding:8px 15px;font-size:13px}.dress-actions .secondary{box-shadow:none}.dress-actions button:disabled{cursor:default}.dressing-rail{padding-block:5px}.dressing-rail button{min-height:63px}.dressing-rail img{width:46px;height:46px;object-fit:contain}.dressing-rail button[aria-pressed=true]{background:#a73e28;color:#fff7e7}.dressing-rail button[aria-pressed=true]::after{content:'✓';position:absolute;inset-inline-end:6px;top:3px;font-size:12px}.dressing-rail span{line-height:1.2}.dressing-rail kbd{align-self:flex-end;margin-bottom:4px}.dressing-rail button[aria-pressed=true] kbd{opacity:0}@media(max-width:700px){.dress-hud{padding:5px 9px;gap:7px;min-height:61px}.dress-hud strong{font-size:13px;overflow-wrap:anywhere}.dress-hud small{font-size:10px}.dress-actions{gap:5px}.dress-actions button{padding:7px 9px;font-size:11px;min-height:37px}.dressing-rail button{min-height:75px;gap:2px;font-size:10px}.dressing-rail img{width:39px;height:39px}.dressing-rail kbd{display:none}.dressing-rail button[aria-pressed=true]::after{inset-inline-end:4px;top:2px}}@media(max-height:550px) and (min-width:600px){.dress-hud{min-height:40px;padding-block:3px}.dress-hud strong{font-size:13px}.dress-hud small{display:none}.dress-actions button{min-height:32px;padding:5px 10px}.dressing-rail{padding:3px}.dressing-rail button{min-height:43px;flex-direction:row}.dressing-rail img{width:36px;height:33px}}

.tool-rail button:disabled,.heat button:disabled,#reset:disabled{cursor:not-allowed}.tool-rail button:disabled:hover{transform:none}.start-actions button:disabled{cursor:wait}

/* Phone / iPad viewport and readable, scrollable ranking sheets. */
#app{min-height:0}dialog{max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);overflow:auto}dialog td{overflow-wrap:anywhere}dialog input{font-size:16px}
@media(max-height:380px) and (min-width:600px){.appbar{min-height:36px;padding-block:3px}.appbar .brand h1{font-size:13px}.rank-button,.language select,.icon-btn{min-height:30px;padding-block:4px}.hud{min-height:35px;padding-block:3px}.timer{font-size:21px}.heat button{min-height:28px}.cook-tools{padding-block:4px}.footer{padding-block:3px}}
/* Ranking pages keep the first five positions distinct, including tied ranks. */
#world-ranks tr.featured{background:#f6ecd1}#world-ranks tr.featured td:first-child{font-weight:800;color:#895a26}#world-ranks tr.you{background:#e7eddc}.rank-more{margin:8px 0;min-height:20px;font-size:13px}.rank-more:empty{display:none}.rank-scroll{overscroll-behavior:contain;overflow-anchor:none}#world-ranks td:nth-child(2){max-width:220px;overflow-wrap:anywhere}
