:root{
  --bg:#FFFDF9; --ink:#4A2B36; --sub:#6B4A55; --line:#C9B8BC;
  --rose:#B8435E; --cream:#FDF3E3; --butter:#FFF4D6;
  --g-bg:#E3F0E1; --g-bar:#6CC04A; --g-tx:#2F6B4A;
  --y-bg:#FDEFC8; --y-bar:#F2B84B; --y-tx:#7A4E00;
  --r-bg:#FBD9D6; --r-bar:#D9604F; --r-tx:#9C2B1B;
  --hand:'Single Day','Gowun Dodum',cursive; --body:'Gowun Dodum',system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.5;-webkit-text-size-adjust:100%}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#app{max-width:480px;margin:0 auto}
.screen{min-height:100dvh;padding:22px 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.screen.center{align-items:center;justify-content:center;text-align:center}
h1{font-family:var(--hand);font-weight:400;font-size:38px;line-height:1.15;margin:0}
h2{font-family:var(--hand);font-weight:400;font-size:32px;line-height:1.15;margin:0}
h3{font-family:var(--hand);font-weight:400;font-size:27px;line-height:1.15;margin:6px 0 0}
p{margin:0}
.lead{color:var(--sub)}
.fine{font-size:14px;color:var(--sub);line-height:1.45}
.hand{font-family:var(--hand);font-size:24px;line-height:1.1}
.row{display:flex;align-items:center}
.between{justify-content:space-between;gap:10px}
.gap{gap:10px}
.grow1{flex:1}.grow2{flex:2}
.stack{display:flex;flex-direction:column;gap:10px}
.bottom{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:8px}
.top{display:flex;justify-content:space-between;align-items:center}
.logo{width:218px;height:62px;object-fit:contain;object-position:left}
.logo.small{width:176px;height:50px}
.round{width:48px;height:48px;border:2.5px solid var(--ink);background:var(--bg);border-radius:50%;display:flex;align-items:center;justify-content:center}

.cta{min-height:64px;border-radius:22px;border:3px solid var(--ink);background:var(--rose);color:#fff;font-family:var(--hand);font-size:32px;line-height:1;box-shadow:0 5px 0 var(--ink);padding:0 14px}
.cta:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}
.btn-line{min-height:48px;padding:6px 14px;border:2.5px solid var(--ink);border-radius:18px;background:var(--bg);font-family:var(--hand);font-size:22px;line-height:1.1;display:flex;align-items:center;justify-content:center;text-align:center}
.btn-line.big{min-height:68px;font-size:28px;border-radius:22px}
.link{border:0;background:none;font-family:var(--hand);font-size:23px;color:#A63A55;padding:10px 0;min-height:44px}

.shot{min-height:270px;border:3px solid var(--ink);border-radius:36px;background:var(--butter);box-shadow:0 6px 0 var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.shot span{font-family:var(--hand);font-size:40px;line-height:1}
.shot:active{transform:translateY(3px);box-shadow:0 3px 0 var(--ink)}
#cam:focus-visible + .btn-line, #gal:focus-visible + *{outline:3px solid var(--rose)}
.today-link{margin-top:auto;background:var(--cream);border:2.5px solid var(--ink);border-radius:20px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;font-family:var(--hand);font-size:25px;line-height:1.1;min-height:60px}
.today-link .go{color:#A63A55}

.pick{min-height:88px;border:2.5px solid var(--ink);border-radius:24px;background:var(--bg);padding:12px 18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;position:relative}
.pick-t{font-family:var(--hand);font-size:30px;line-height:1.15}
.pick-s{font-size:16px}
.pick[aria-pressed=true]{border-width:3px;background:var(--g-bg);box-shadow:0 5px 0 var(--ink)}
.pick[aria-pressed=true]::after{content:"";position:absolute;right:20px;top:50%;width:14px;height:26px;border:solid var(--g-tx);border-width:0 5px 5px 0;transform:translateY(-65%) rotate(45deg)}
.more{border:2px dashed var(--ink);border-radius:18px;padding:10px 14px}
.more summary{font-family:var(--hand);font-size:22px;cursor:pointer;min-height:32px}
.more label,.field{display:flex;flex-direction:column;gap:6px;font-size:16px;color:var(--sub);margin-top:10px}
input[type=number],input[type=text]{height:54px;border:2.5px solid var(--ink);border-radius:16px;padding:0 14px;font-size:19px;background:#fff;color:var(--ink);width:100%}
.soon{font-size:15px;color:var(--sub)}

.bob{animation:bob 1.1s ease-in-out infinite alternate}
@keyframes bob{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-12px) rotate(4deg)}}
@media (prefers-reduced-motion:reduce){.bob{animation:none}}

.photo{height:150px;border-radius:24px;border:2.5px solid var(--ink);background:#F3ECE6;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.card{border-radius:26px;border:3px solid var(--ink);box-shadow:0 5px 0 var(--ink);padding:14px 18px;display:flex;flex-direction:column;gap:2px}
.card-h{display:flex;align-items:center;gap:10px;font-family:var(--hand);font-size:40px;line-height:1.05}
.card p{font-size:20px}
.card.green{background:var(--g-bg)}.card.yellow{background:var(--y-bg)}.card.red{background:var(--r-bg)}
.dot{width:34px;height:34px;border-radius:50%;border:2.5px solid var(--ink);flex:none;position:relative}
.green .dot{background:var(--g-bar)}.yellow .dot{background:var(--y-bar)}.red .dot{background:var(--r-bar)}
/* 색만으로 구분하지 않게 모양도 다르게: 동그라미 / 가로줄 / 가위표 */
.green .dot::after{content:"";position:absolute;inset:7px;border-radius:50%;border:3px solid #fff}
.yellow .dot::after{content:"";position:absolute;left:6px;right:6px;top:50%;height:4px;margin-top:-2px;background:var(--ink);border-radius:2px}
.red .dot::before,.red .dot::after{content:"";position:absolute;left:5px;right:5px;top:50%;height:4px;margin-top:-2px;background:#fff;border-radius:2px;transform:rotate(45deg)}
.red .dot::after{transform:rotate(-45deg)}

.ask{background:var(--cream);border:2px dashed var(--ink);border-radius:20px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips button,#fix-portions button{min-height:48px;padding:4px 14px;border:2.5px solid var(--ink);border-radius:18px;background:var(--bg);font-family:var(--hand);font-size:22px;line-height:1.1}
#fix-portions button{flex:1;min-height:72px;font-size:25px}
.chips button[aria-pressed=true],#fix-portions button[aria-pressed=true],.name-opt[aria-pressed=true]{background:var(--g-bg);border-width:3px;box-shadow:0 4px 0 var(--ink)}
.name-opt{min-height:58px;border:2.5px solid var(--ink);border-radius:20px;background:var(--bg);padding:0 18px;text-align:left;font-family:var(--hand);font-size:27px}

.lines{display:flex;flex-direction:column;gap:12px}
.ln-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ln-h b{font-family:var(--hand);font-weight:400;font-size:25px;line-height:1.1}
.ln-h span{font-size:16px;text-align:right}
.ln-h .green{color:var(--g-tx)}.ln-h .yellow{color:var(--y-tx)}.ln-h .red{color:var(--r-tx)}
.bar{height:16px;border-radius:9px;border:2px solid var(--ink);background:#fff;position:relative;margin-top:6px}
.bar i{display:block;height:100%;border-radius:7px}
.bar i.green{background:var(--g-bar)}.bar i.yellow{background:var(--y-bar)}.bar i.red{background:var(--r-bar)}
.bar u{position:absolute;left:50%;top:-6px;width:3px;height:24px;background:var(--ink);border-radius:2px}
.detail{border:2px solid var(--line);border-radius:16px;padding:10px 14px;font-size:16px}
.detail table{width:100%;border-collapse:collapse}
.detail td{padding:3px 0}.detail td:last-child{text-align:right}
.note{background:var(--cream);border:2px dashed var(--ink);border-radius:20px;padding:10px 14px;font-size:17px}
.note b{font-family:var(--hand);font-weight:400;font-size:23px;display:block;line-height:1.15}
.note.warn{background:#fff}
.note ul{margin:2px 0 0;padding-left:20px}

.box{border-radius:24px;border:2.5px solid var(--ink);background:var(--cream);padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.left{border-top:2px dashed var(--ink);padding-top:10px;font-size:17px}
.item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:2px dashed var(--line)}
.item img,.item .ph{width:60px;height:60px;border-radius:16px;border:2.5px solid var(--ink);object-fit:cover;background:#F3ECE6;flex:none}
.item .nm{flex:1;min-width:0}
.item .nm b{font-family:var(--hand);font-weight:400;font-size:25px;line-height:1.15;display:block}
.item .nm span{font-size:15px;color:var(--sub)}
.tag{padding:2px 10px;border-radius:16px;border:2px solid var(--ink);font-family:var(--hand);font-size:19px;white-space:nowrap}
.tag.green{background:var(--g-bg)}.tag.yellow{background:var(--y-bg)}.tag.red{background:var(--r-bg)}
.del{border:0;background:none;font-size:15px;color:var(--sub);text-decoration:underline;min-height:44px;padding:0 4px}
.empty{color:var(--sub);padding:18px 0;text-align:center}

#toast{position:fixed;left:16px;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));max-width:448px;margin:0 auto;background:var(--ink);color:#fff;border-radius:16px;padding:12px 16px;font-size:17px;z-index:9}
