*{box-sizing:border-box}body{margin:0;background:#fff7ed;color:#624438;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}button,input{font:inherit}button{touch-action:manipulation;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #976fd0;outline-offset:3px}#app{width:100%;max-width:440px;margin:auto;min-height:100svh;padding:16px 16px calc(12px + env(safe-area-inset-bottom));background:radial-gradient(circle at 5% 0%,#ffe4e1,transparent 45%),#fff7ed}header{display:flex;align-items:center;justify-content:space-between;font-weight:800;gap:8px}header button{background:white;border:1px solid #edcec2;border-radius:20px;padding:9px;font-size:12px}h1{font-size:36px;letter-spacing:-2px;margin:16px 0 8px}h2{font-size:25px;margin:12px 0}p{line-height:1.6;margin:10px 0}.center{text-align:center}.badge{display:inline-block;border:1px solid #e9bfb2;border-radius:20px;padding:5px 12px;font-size:12px;color:#ad6955}.card{background:#fffcf8;border:1px solid #eed8cc;box-shadow:0 5px 0 #efdccc;border-radius:24px;padding:18px;margin:16px 0}.primary{width:100%;padding:15px;border:0;border-radius:16px;background:#e89085;color:#fff;font-weight:800;box-shadow:0 4px 0 #c9746c}.primary:disabled{opacity:.5;cursor:default}input{width:100%;border:1px solid #dcc2b5;border-radius:14px;padding:14px;margin:8px 0 14px;background:white}label{font-size:14px;font-weight:700}.hint{font-size:12px;color:#947e71}footer{text-align:center;font-size:11px;color:#a38e7c;margin-top:22px}.mochi-stage{min-height:145px;display:flex;align-items:center;justify-content:center;gap:10px}.mochi{width:98px;height:82px;border:2px solid #bfa798;border-radius:46% 46% 42% 42%;background:var(--mochi,#fffdf7);position:relative;display:flex;justify-content:center;align-items:center;font-size:23px;box-shadow:0 7px 0 #ecdccf;flex-shrink:0}.mochi:before,.mochi:after{content:'';position:absolute;top:-13px;width:26px;height:27px;border:2px solid #bfa798;background:inherit;border-radius:50%;z-index:0}.mochi:before{left:7px}.mochi:after{right:7px}.mochi.rabbit:before,.mochi.rabbit:after{height:48px;top:-35px;border-radius:50% 50% 30% 30%}.mochi.cat{background:linear-gradient(#b5d8f0 35%,var(--mochi,#fffdf7) 35%)}.face{position:relative;z-index:1}.sprinkle{position:absolute;bottom:7px;font-size:13px}.small-mochi{transform:scale(.8)}.customer{display:flex;gap:12px;align-items:center}.portrait{width:72px;height:85px;flex-shrink:0;border-radius:18px;background:#f5e4dc;object-fit:cover;display:flex;align-items:center;justify-content:center;font-size:32px}.speech{flex:1;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.order{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.order span{padding:7px 10px;background:#f7ece0;border-radius:12px;font-size:13px}.topline{display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin-top:20px}.timer{height:9px;background:#ecded0;border-radius:20px;overflow:hidden;margin:10px 0}.timer div{height:100%;background:#a1bc9b;width:100%;transition:width .1s linear}.urgent .timer div{background:#e77e71}.urgent #clock{color:#c54443}fieldset{border:0;padding:0;margin:15px 0}legend{font-size:13px;font-weight:800;margin-bottom:8px}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.choices.flavors{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{min-height:47px;border:1px solid #decabe;border-radius:13px;background:#fffdfa;padding:7px 3px;font-size:12px;color:#624438}.choice.selected{background:#ffe2dd;border:2px solid #d77e75;padding:6px 2px;font-weight:800}.workbench{background:#f3e3d3;border-radius:22px;margin:14px 0 12px}.workbench .mochi-stage{min-height:118px;padding-top:22px}.workbench p{text-align:center;font-size:11px;padding-bottom:10px;color:#947568}.coins{font-size:40px;font-weight:900;color:#c59342}.failure{transform:rotate(-12deg);border-radius:30% 45% 20% 50%;background:#cfb9a0}.failure-image{max-width:100%;height:160px;object-fit:contain}.result-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px dashed #e6cbbc;font-size:14px}.pill{background:#f3e7d7;border-radius:20px;padding:5px 10px;font-size:12px}.welcome{padding-top:26px}.welcome .mochi-stage{padding-top:28px}.error{color:#b94545;font-size:12px;min-height:18px}.eat{animation:bounce .45s ease 3}@keyframes bounce{50%{transform:translateY(-9px) rotate(5deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* 캐릭터를 직접 그린 SVG로 교체. 사진 원본은 자르거나 수정하지 않습니다. */
.character-mochi{width:132px;max-width:100%;flex-shrink:0;line-height:0;filter:drop-shadow(0 3px 0 #ead5c4)}
.character-mochi svg{width:100%;height:auto;display:block;overflow:visible}
.character-mochi.small-mochi{width:30%;max-width:110px;transform:none;flex-shrink:1}
.character-mochi.failure{background:none;border-radius:0;transform:rotate(-12deg) scaleY(.83)}
.welcome .mochi-stage{padding-top:0;gap:3px;min-height:145px}
.portrait{width:96px;height:112px;object-position:center 30%;border:3px solid white;box-shadow:0 2px 6px #dfc5b8}
.speech{min-width:0}.speech strong{display:block;font-size:11px;color:#a28b7c;margin-bottom:4px}
.workbench .mochi-stage{padding-top:0;min-height:118px}
.workbench .character-mochi{width:118px}
.workbench p{margin-top:0}
.welcome h1{margin-top:12px}
