@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:16px;color:#18201e;background:#e9edeb;--muted:#606c66;--line:#d8dfdb;--accent:#b43825}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:inherit;border:1px solid var(--line);border-radius:9px;background:white;min-height:46px;padding:10px 14px;font-weight:500}button:active{background:#edf1ee}button:disabled{opacity:.32;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:600}.primary:active{background:#902a1c}.wide{width:100%}.quiet{background:transparent;border-color:transparent;color:var(--muted)}#app{max-width:480px;min-height:100dvh;margin:auto;background:#fafcfb;position:relative;overflow-x:clip}header{padding:18px 20px;padding-top:max(18px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);min-height:68px}.logo{font-size:14px;letter-spacing:-.4px;font-weight:700}.badge{font-size:11px;letter-spacing:1.2px;color:var(--muted)}header .quiet{padding:4px 12px;min-height:40px;font-size:21px}main{padding:20px;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.intro{padding:20px 0 12px}.eyebrow{font-size:12px;letter-spacing:1px;color:var(--muted)}.lobbyRule{width:38px;height:4px;background:var(--accent);margin:18px 0}h1{font-size:43px;line-height:1.22;letter-spacing:-1.6px;font-weight:600;margin:0 0 13px}h1 em{font-style:normal;color:var(--accent)}p{font-size:14px;color:var(--muted);line-height:1.65}h2{font-size:22px;font-weight:600;margin:8px 0 12px}h3{font-size:16px;margin:0}.small{font-size:13px;color:var(--muted);line-height:1.6}.sectionline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 12px}.sectionline h2{font-size:18px;margin:0}.playerset{display:flex;align-items:center;gap:10px;margin:10px 0}.avatar{width:40px;height:44px;display:grid;place-items:center;background:#edf1ee;border-radius:8px;color:#506257;font-size:17px;font-weight:600;flex-shrink:0}.remove{padding:6px;min-width:36px;background:transparent;border:0}input,textarea{background:white;border:1px solid #cbd3ce;border-radius:8px;padding:12px;color:#18201e;width:100%;min-width:0;font-size:16px}label{display:block;margin:16px 0 6px;font-size:14px}.row{display:flex;align-items:center;gap:8px}.costbox{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:20px;font-size:14px}.costbox input{width:100px}.hint{text-align:left;color:var(--muted);font-size:12px;line-height:1.7;margin:14px 0}.dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);background:#fafcfbf5;border-top:1px solid var(--line);padding:12px 20px;padding-bottom:max(16px,env(safe-area-inset-bottom));z-index:3}.dock .primary{min-height:52px}.navbottom{display:flex;gap:10px}.navbottom .primary{flex:1}.resume{margin-top:8px}.chips{display:flex;overflow:auto;gap:7px;padding-bottom:8px;scrollbar-width:none}.chip{white-space:nowrap;padding:8px 12px;min-height:42px;font-size:14px}.chip.active{background:#1e352a;color:white;border-color:#1e352a}.hud{margin:8px 0 14px;padding:18px;border:1px solid var(--line);background:white;border-radius:12px}.hudtop{display:flex;justify-content:space-between;align-items:center}.hudtop>.avatar{display:none}.bigscore{font-size:44px;line-height:1.3;font-weight:600;letter-spacing:-2px}.bigscore small{font-size:14px;letter-spacing:0;color:var(--muted);margin-left:5px}.progress{height:4px;background:#edf1ee;border-radius:2px;margin:10px 0}.progress span{display:block;height:100%;background:#507960;border-radius:2px;transition:width .18s}.hudstats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;font-size:12px;color:var(--muted)}.satiety{padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}.satietyTitle{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:8px}.satietyTitle span{font-size:11px;color:var(--muted)}.satietyButtons{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.satietyButtons button{font-size:13px;min-height:42px;padding:8px 2px;border-radius:7px;color:#516157}.satietyButtons button.selected{background:#e6eee8;border-color:#64856f;color:#203d2c}.fullnote{font-size:12px;margin:10px 0 0}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid var(--line);margin-bottom:16px}.tabs button{border:0;border-radius:0;background:transparent;padding:10px 0;font-size:14px;color:var(--muted)}.tabs button.active{color:var(--accent);border-bottom:2px solid var(--accent);font-weight:600}.searchbox{margin:5px 0 10px}.menuhead{display:flex;justify-content:space-between;align-items:center;margin:10px 0}.menuhead h2{font-size:17px;margin:0}.pagehint{font-size:12px;color:var(--muted)}.foodgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.food{position:relative;min-height:104px;padding:15px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;text-align:left;background:white;border-radius:10px}.foodicon{display:none}.food .name{font-size:15px;font-weight:600;line-height:1.35;padding-right:22px}.food .unit{font-size:12px;color:var(--muted)}.food .add{position:absolute;right:11px;bottom:13px;font-size:23px;line-height:1;color:var(--accent)}.food .qty{position:absolute;right:10px;top:10px;min-width:22px;height:22px;padding:1px 5px;text-align:center;font-size:12px;background:#e7eee9;color:#284c36;border-radius:5px}.food.hit{animation:hit .18s}@keyframes hit{50%{background:#e4eee7}}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.pager button{font-size:14px}.rank{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:18px 0}.rank .place{font-size:19px;width:24px;color:var(--muted)}.rank .who{flex:1;min-width:0;overflow-wrap:anywhere}.rank strong{font-size:25px;font-weight:600}.fullnessTag{color:#4f6e59;margin-top:3px}.receipt{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.receipt .desc{flex:1;min-width:0}.receipt b{font-size:14px}.receipt button{width:44px;flex-shrink:0;padding:8px;font-size:20px}.empty{padding:30px 10px;text-align:center;color:var(--muted);font-size:14px;line-height:1.8}.finish{padding:22px 0;border-bottom:1px solid var(--line)}.pill{display:inline-block;margin-top:16px;font-size:13px;color:var(--accent)}.resultvalue{font-size:59px;letter-spacing:-2px;font-weight:600}.finish p{margin:0}.totalcard{padding:20px 0;margin:10px 0}.totalcard b{font-size:28px}.totalcard p{font-size:13px;margin:6px 0}.riceIntro{padding:10px 0}.riceIntro .eyebrow{color:var(--accent)}.riceIntro h2{font-size:25px;margin:8px 0}.riceIntro p{margin:6px 0 18px}.riceNumbers{display:grid;grid-template-columns:repeat(3,1fr);padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.riceNumbers>div{display:flex;flex-direction:column;gap:5px}.riceNumbers strong{font-size:25px;font-weight:600}.riceNumbers span{font-size:12px;color:var(--muted)}dialog{background:#fafcfb;color:#18201e;width:min(440px,94vw);max-height:85dvh;overflow:auto;border:1px solid #bcc9c1;border-radius:14px;padding:22px}dialog::backdrop{background:#15221c99}.modalhead{display:flex;align-items:center;justify-content:space-between;gap:8px}.modalhead h2{margin:0;font-size:21px}.modalhead button{background:transparent;border:0}.formactions{display:flex;gap:10px;margin-top:20px}.formactions button{flex:1}details{font-size:13px;color:var(--muted);line-height:1.7;margin-top:22px}summary{cursor:pointer;min-height:44px;padding:10px 0}a{color:var(--accent)}#toast{position:fixed;left:50%;bottom:calc(85px + env(safe-area-inset-bottom));transform:translateX(-50%);padding:11px 16px;max-width:90%;background:#23382c;color:white;font-size:13px;border-radius:8px;opacity:0;pointer-events:none;z-index:9;transition:opacity .12s;white-space:nowrap}#toast.show{opacity:1}@media(max-width:360px){main{padding:16px;padding-bottom:100px}.hud{padding:14px}.satietyTitle span{display:none}.food .name{font-size:14px}.logo{font-size:13px}h1{font-size:38px}.rank{gap:8px}.rank strong{font-size:22px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.tabs{grid-template-columns:repeat(5,1fr)}.tabs button{font-size:13px}.roundBar{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px;padding:10px 12px;background:#edf2ee;border-color:#cbd9ce;font-size:13px;text-align:left}.roundBar b{font-size:17px;color:#29513a}.slotmeter{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:20px 0}.slotmeter span{display:grid;place-items:center;height:34px;border:1px solid var(--line);border-radius:6px;font-size:12px;color:var(--muted)}.slotmeter .filled{background:#254631;color:white;border-color:#254631}.orderCard{border-top:2px solid #bcc9c0;margin:20px 0;padding-top:3px}.orderCard .sectionline{margin:12px 0}.orderStatus{font-size:12px;color:#4e6554}.orderCard .receipt button{width:auto;font-size:13px;min-width:62px}.orderCard>.wide{margin-top:14px}.orderNote{border-left:3px solid #a34a31;background:#f6ede8;padding:14px;font-size:14px;line-height:1.6}.food{min-height:126px}.food .unit{padding-right:15px}.navbottom{gap:7px}.navbottom button{font-size:14px;padding-left:12px;padding-right:12px}.navbottom #finish{font-size:13px;background:transparent}.navbottom #undo{font-size:13px}.hud .bigscore{font-size:36px}.hud{padding:14px}.satiety{margin-top:10px;padding-top:10px}
