@font-face{font-family:Galmuri;src:url("Galmuri11-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
:root{--ink:#483b30;--dark:#3b332b;--muted:#756a5d;--line:#d6c9ac;--paper:#fffdf4;--cream:#faf7e9;--orange:#ee8550;--peach:#ffe2bd;--mint:#c6dfbc;--pixel:Galmuri,"Malgun Gothic",sans-serif;font-family:"Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:var(--ink);background:#faf7ec;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background-image:radial-gradient(#dfd6bd88 .75px,transparent .85px);background-size:8px 8px}
button,a{color:inherit}
button{font:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #287560;outline-offset:3px;z-index:1}
button{border:0;background:none}
h1,h2,h3,p{margin:0}
.pixel{font-family:var(--pixel);font-weight:700}
canvas{image-rendering:pixelated;image-rendering:crisp-edges;vertical-align:middle}
i[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal}
i[data-icon] canvas{width:1em;height:1em}
.top{background:#fffdf3;border-bottom:2px solid var(--ink)}
.top-inner{display:flex;align-items:center;gap:54px;max-width:1280px;margin:auto;min-height:71px;padding:0 38px}
.brand{display:inline-flex;gap:10px;align-items:center;text-decoration:none;font-size:26px;letter-spacing:-1.6px;white-space:nowrap}
.brand canvas{width:45px;height:40px}
nav{display:flex;align-self:stretch;gap:30px}
.nav-item{display:flex;align-items:center;gap:8px;padding:3px 1px 0;font-size:14px;font-weight:700;color:#7a7062;position:relative}
.nav-item i{font-size:17px}
.nav-item.active{color:#a94720}
.nav-item.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:4px;background:#d97743}
.settings{display:flex;gap:9px;margin-left:auto}
.iconbtn,.undo{display:grid;place-items:center;width:35px;height:35px;border:1.5px solid #a99880;border-radius:7px;background:#fffaf0;font-size:18px}
.iconbtn:hover,.undo:not(:disabled):hover{background:var(--peach);border-color:var(--ink)}
main{max-width:1280px;padding:30px 38px 24px;margin:0 auto}
.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px}
h1{font-size:clamp(27px,2.5vw,38px);letter-spacing:-1.5px;line-height:1.3}
.heading p{font-size:14px;color:#716453;margin-top:5px;letter-spacing:-.35px}
.spark{display:inline-block;color:#e7aa4d;font:24px Georgia,serif;vertical-align:top;margin:1px 0 0 9px}
.day{display:flex;align-items:center;gap:9px;padding:8px 13px 7px;border:1.5px solid #a38b5e;background:#fff3c9;border-radius:7px;font-family:Consolas,monospace;font-weight:700;font-size:14px;letter-spacing:1px;white-space:nowrap;box-shadow:0 2px #d5c9aa}
.day i{font-size:20px}
.workbench{display:grid;grid-template-columns:minmax(0,1.47fr) minmax(0,1fr);gap:20px;align-items:stretch}
.panel{background:var(--paper);border:2px solid var(--ink);border-radius:11px;box-shadow:0 4px 0 #d7c8aa}
.scene-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.scene{isolation:isolate;position:relative;flex:1;background:#c2dfd8;overflow:hidden;display:flex;align-items:stretch}
#scene{display:block;width:100%;height:auto;aspect-ratio:256/152;object-fit:contain;touch-action:none;min-height:0}
.speech{position:absolute;pointer-events:none;top:15%;left:61%;max-width:36%;padding:8px 10px 7px;color:#514033;background:#fffcf0;box-shadow:0 2px #4d4033,0 -2px #4d4033,2px 0 #4d4033,-2px 0 #4d4033,3px 4px #71594155;font-size:clamp(11px,1.05vw,15px);line-height:1.45;text-align:center;letter-spacing:-.7px}
.speech:after{content:"";position:absolute;bottom:-9px;left:13px;width:11px;height:9px;background:linear-gradient(135deg,#fffcf0 48%,#4d4033 50% 65%,transparent 66%)}
.stage-tag{position:absolute;top:13px;left:13px;display:flex;align-items:center;gap:6px;background:#fffbeaeb;border:1px solid #83755c;border-radius:4px;padding:4px 8px;color:#594a36;font-weight:700;font-size:11px;letter-spacing:.3px}
.stage-tag[hidden],.tasting[hidden]{display:none}
.stage-tag canvas{width:26px;height:26px}
.stage-tag{pointer-events:none;padding:2px 8px 2px 4px;gap:3px;font-size:12px}
.friends{padding:13px 16px 14px;border-top:2px solid var(--ink);background:#fff9e9}
.strip-heading,.section-title,.pantry-head{display:flex;align-items:center}
.strip-heading{gap:6px;margin-bottom:9px;color:#695744}
.strip-heading h2{font-size:13px;letter-spacing:-.25px}
.strip-heading i{font-size:16px}
.friend-list,.dish-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.friend-list{grid-template-columns:repeat(4,minmax(0,1fr))}
.friend,.dish-btn{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;border:1.5px solid #cebea0;background:#fffdf3;border-radius:7px;line-height:1.15}
.friend{min-height:54px}
.friend img,.friend canvas{width:48px;height:auto}
.friend .info{text-align:left}.friend strong{display:block;font-size:15px}
.friend small{display:block;margin-top:4px;color:#746a5c;font-size:11px}
.friend[aria-pressed=true],.dish-btn[aria-pressed=true]{border:2px solid #896239;background:#ffedc6;box-shadow:inset 0 -2px #e8ce9f}
.friend:not(:disabled):hover,.dish-btn:not(:disabled):hover,.food:not(:disabled):hover{background:#fff0cf;border-color:#967650}
.pantry{padding:19px 19px 15px;display:flex;flex-direction:column;min-width:0}
.pantry-head{justify-content:space-between}
.section-title{gap:9px}
.section-title i{font-size:28px}
.section-title h2,.serving h2{font-size:clamp(18px,1.5vw,23px);letter-spacing:-1px}
.tiny{font-size:12px;color:var(--muted)}
.filters{display:flex;gap:6px;margin:13px 0}
.filter{font-size:12px;font-weight:700;background:#f5efdf;border:1px solid #d8cbb1;border-radius:5px;padding:5px 10px;white-space:nowrap;color:#716249}
.filter[aria-pressed=true]{color:#fffaf0;background:#5a5544;border-color:#514b3b}
.foods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(61px,1fr);align-content:start;gap:7px;min-height:0;flex:1}
.food{position:relative;padding:4px 2px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #d9cdb1;border-radius:7px;background:#fcf7e8;color:#534838;font-size:12px;font-weight:700;line-height:1.3;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.food canvas{width:clamp(40px,3.7vw,54px);height:clamp(40px,3.7vw,54px);pointer-events:none}
.food-texture{color:#7a6958;font-size:10px;font-weight:500}
.food.in-bowl{background:#f8edd0;border-color:#b89765}
.foods{grid-template-rows:repeat(3,minmax(61px,1fr))}
.food b{position:absolute;right:4px;top:4px;background:#f8dba8;color:#644a2f;min-width:15px;border-radius:4px;font-size:10px}
.food:active:not(:disabled){transform:translateY(1px)}
.dishes{border-top:1px dashed #b9ad91;margin-top:15px;padding-top:11px}
.dish-btn{font-weight:700;font-size:12px;gap:3px;padding:3px 1px;min-height:35px;white-space:nowrap}
.dish-btn canvas{width:31px;height:22px}
.serving{margin-top:19px;display:flex;align-items:center;gap:16px;padding:13px 19px;background:#fff8e5}
.serving-info{min-width:135px}
.serving-info>span{font-size:12px;color:var(--muted);display:block;margin-top:4px}
.slots{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.slot,.blank-slot{width:42px;height:42px;border-radius:6px;display:grid;place-items:center}
.blank-slot{border:1.5px dashed #cdbd99;color:#d2c5a8;font:18px monospace;background:#faf3dd}
.slot{border:1px solid #bb9d70;background:#ffedc6;padding:1px}
.slot:hover{border-color:#85593e;background:#ffe0bc}
.slot canvas{width:34px;height:34px}
.slot{width:auto;min-width:56px;height:auto;min-height:44px;padding:2px 6px 4px;line-height:1.1}
.slot span{font-size:10px;font-weight:700;white-space:nowrap}
.slot canvas{width:28px;height:28px}
.actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.undo:disabled{opacity:.48}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#ee8a54;color:#422b20;box-shadow:0 3px 0 #985635,inset 0 2px #ffb07e;border:2px solid #63402d;border-radius:7px;padding:10px 25px;font-size:18px;white-space:nowrap}
.primary i{font-size:21px}
.primary:hover:not(:disabled){background:#f7a16e}
.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #985635}
.primary:disabled{filter:saturate(.76)}
.tip{display:flex;justify-content:center;align-items:center;gap:7px;padding-top:15px;font-size:12px;color:#776b58}
.tip i{font-size:15px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
dialog{width:min(450px,calc(100% - 30px));padding:0;border:2px solid var(--ink);border-radius:13px;background:#fff9e9;color:var(--ink);box-shadow:5px 6px 0 #483b303f;max-height:85dvh;overscroll-behavior:contain}
dialog::backdrop{background:#44392c80}
.modal-body{padding:27px 24px 23px;position:relative}
.modal-close{position:absolute;right:12px;top:12px;width:29px;height:29px;font-size:14px}
.modal-body h2{font:700 24px var(--pixel);padding-right:25px;margin-bottom:12px}
.modal-body p,.modal-body li{font-size:14px;line-height:1.7}
.modal-body ol{margin:10px 0 0;padding-left:22px}
.modal-body li+li{margin-top:8px}
.result{text-align:center}.result h2{padding:0;margin:10px 0}
.result .primary{margin-top:18px}
.modal-body .partner-notice{margin:0 28px 14px 0;color:var(--ink);font-size:14px;line-height:1.6;word-break:keep-all}
.partner-link{display:block;width:fit-content;max-width:100%;margin:16px auto 0;padding:6px;color:#654b30;font-size:14px;text-underline-offset:3px;overflow-wrap:anywhere}
.portrait-result{width:134px;height:auto}
.hearts{color:#bd563d;font-size:22px;letter-spacing:3px;margin-top:7px}
.entry{display:flex;align-items:center;gap:12px;border-top:1px dashed #c9b897;padding:11px 0}
.entry canvas{flex:none;width:76px;height:44px}
.entry strong{font-size:14px}.entry small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.food-ghost{position:fixed;width:44px;height:44px;pointer-events:none;z-index:5;transform:translate(-50%,-50%);filter:drop-shadow(2px 3px 0 #624d3a45)}
.watching .pantry > :not(.tasting),.watching .friends,.watching .serving,.watching .tip{display:none}
.watching .speech{left:auto;right:9%;top:16%}
.watching .scene{min-height:0;align-self:stretch}
.watching #scene{height:auto;align-self:center}
.watching .scene-panel{background:#d8b38a}
.scene-panel{align-self:start}
.watching .pantry{padding:20px;background:#fffaea}
.tasting{display:flex;flex-direction:column;height:100%;min-width:0}
.tasting-heading,.tasting-line,.watch-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tasting-heading h2{font-size:23px;letter-spacing:-1px}
#course-count{font:700 13px Consolas,monospace;letter-spacing:1px;color:#715a43}
.ingredient-study{margin:16px 0 12px;padding:13px 12px;display:flex;align-items:center;gap:14px;border:1px solid #d5b989;background:#f8e9c9;border-radius:7px}
.ingredient-study canvas{width:clamp(76px,7.5vw,112px);height:auto;flex:none}
.ingredient-study h3{font-size:clamp(21px,2vw,30px);margin:4px 0 7px;line-height:1.2}
.ingredient-study small,.tasting-line{font-size:12px;color:#69543d}
.ingredient-study p{font-size:13px;line-height:1.6;word-break:keep-all}
.tasting-line{padding:0 2px 12px;border-bottom:1px dashed #bda787}
#bite-marks{display:flex;gap:3px}
#bite-marks i{width:14px;height:5px;background:#e0d2b4}
#bite-marks .filled{background:#bc7247}
.watch-order,.meal-recap{display:flex;flex-wrap:wrap;gap:5px;list-style:none;margin:13px 0;padding:0}
.watch-order li,.meal-recap span{display:inline-flex;align-items:center;gap:3px;border-radius:4px;border:1px solid #d5c5a6;padding:4px 6px;font-size:12px}
.watch-order .current{background:#ffe5bb;border-color:#ae7542;font-weight:700}
.watch-order .tasted{color:#756c5e;background:#eeebde}
.watch-order .tasted:after{content:'✓';color:#578367}
.watch-order canvas,.meal-recap canvas{width:25px;height:25px}
.watch-controls{justify-content:flex-end;margin-top:auto;padding-top:10px}
.watch-controls button{border:1px solid #b7a381;border-radius:5px;background:#f8f1df;padding:7px 10px;font-size:12px;font-weight:700}
.watch-controls button[aria-pressed=true]{background:#dee8d7}
.meal-recap{justify-content:center}
@media(min-width:1450px){main{padding-top:42px}.heading{margin-bottom:26px}}
@media(max-width:1000px) and (min-width:761px){.top-inner,main{padding-left:22px;padding-right:22px}.workbench{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:13px}.pantry{padding:15px 12px 12px}.friend{gap:3px}.friend canvas{width:37px}.friends{padding:10px}.serving{gap:12px}.slot,.blank-slot{width:33px;height:36px}.slots{gap:4px}.serving-info{min-width:120px}}
@media(max-width:760px){.top-inner{padding:0 16px;gap:18px;min-height:56px}.brand{font-size:21px;gap:4px}.brand canvas{width:34px;height:31px}nav{gap:13px}.nav-item{font-size:12px;gap:4px}.nav-item i{display:none}.settings{gap:5px}.iconbtn{width:30px;height:30px;font-size:16px}main{padding:21px 14px 18px;max-width:620px}.heading{margin-bottom:14px}.heading p{font-size:12px}.day{font-size:12px;padding:6px 9px;gap:5px}.day i{font-size:16px}.workbench{grid-template-columns:minmax(0,1fr);gap:14px}.scene{width:100%;flex:none}.speech{font-size:clamp(11px,2.4vw,14px)}.friends{padding:10px 12px}.friend{min-height:44px}.friend canvas{width:39px}.friend small{font-size:10px}.friend strong{font-size:13px}.pantry{padding:14px}.filters{margin:10px 0}.foods{grid-auto-rows:64px}.food canvas{width:35px;height:35px}.dishes{margin-top:12px}.serving{flex-wrap:wrap;padding:12px;gap:10px;margin-top:14px}.serving-info{min-width:0;flex:1}.serving-info>span{margin-top:1px}.slots{order:3;width:100%;flex-wrap:nowrap}.slot,.blank-slot{width:36px;height:36px}.primary{font-size:15px;padding:7px 14px}.undo{width:31px;height:31px}.tip{align-items:flex-start;font-size:11px;justify-content:flex-start}.stage-tag{top:8px;left:8px;font-size:10px}}
@media(max-width:380px){.top-inner{gap:10px;padding:0 10px}.brand{font-size:18px}nav{gap:9px}.settings{gap:3px}.friend{gap:3px}.speech{padding:5px}.day{letter-spacing:0}.spark{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(max-width:760px){
  .friend-list{gap:4px}.friend{gap:1px}.friend canvas{width:30px}
  .foods{grid-template-rows:repeat(3,77px);grid-auto-rows:77px}.food canvas{width:41px;height:41px}
  .slots{gap:4px;flex-wrap:wrap}.slot{min-width:44px;min-height:43px;padding:2px 3px}
  .watching .pantry{padding:14px}.ingredient-study{margin:10px 0;padding:8px 12px}.ingredient-study canvas{width:72px}
  .watching .workbench{gap:10px}.tasting-heading h2{font-size:19px}.watch-controls{padding-top:3px}
  .watch-order{margin:8px 0}.watch-order li{padding:3px}.watch-order canvas{width:21px;height:21px}
}
