@font-face{font-family:Xiaolai;src:url('./assets/xiaolai.woff2') format('woff2');font-display:swap;font-weight:400}
:root{--paper:#e5e0d2;--ink:#25231f;--yellow:#e8c547;--green:#70a58b;--purple:#b69aca;--orange:#d88443;--white:#f4f0e4;--line:1.8px solid var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit;color:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #585094;outline-offset:5px}::selection{background:var(--yellow)}[hidden]{display:none!important}.page{width:min(100% - 40px,760px);margin:auto}.masthead{display:flex;align-items:center;justify-content:space-between;padding:22px 0;border-bottom:var(--line)}.wordmark{text-decoration:none;font-family:Xiaolai,sans-serif;font-size:17px;display:flex;gap:14px;align-items:center}.tiny-spark{font-size:28px}.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;border:var(--line);border-radius:50%;background:transparent;font:25px Xiaolai,sans-serif}.icon-button:hover{background:var(--yellow)}main{outline:none;min-height:72svh}h1,h2,h3,p{margin-top:0}h1,h2,h3,.hand{font-family:Xiaolai,"PingFang SC",sans-serif;font-weight:400}h1{font-size:clamp(32px,6vw,46px);line-height:1.35;margin-bottom:12px;letter-spacing:-.04em}h2{font-size:26px;line-height:1.4}p{line-height:1.65}small,.fine{font-size:12px;line-height:1.65}.muted{color:#625f55}.site-foot{display:flex;justify-content:space-between;font:13px Xiaolai,sans-serif;padding:30px 0 24px;border-top:var(--line);gap:10px;margin-top:38px}.button{border:var(--line);background:var(--yellow);min-height:52px;border-radius:5px;padding:12px 22px;box-shadow:3px 3px 0 var(--ink);font:20px Xiaolai,sans-serif;line-height:1.3;transition:transform 150ms,box-shadow 150ms;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none}.button:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}.button:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.secondary{background:var(--white)}.green-button{background:var(--green)}.text-button{border:0;background:none;text-decoration:underline;text-underline-offset:5px;min-height:44px;padding:8px 5px}.full{width:100%}.button-row{display:flex;gap:14px;align-items:stretch}.button-row>*{flex:1}.arrow{font-size:26px;line-height:1}.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}.eyebrow{font-family:Xiaolai,sans-serif;display:flex;align-items:center;gap:12px;font-size:16px}.eyebrow:before{content:'';height:1px;background:var(--ink);width:28px}.pill{border:var(--line);border-radius:50%;padding:7px 13px;font-family:Xiaolai,sans-serif;display:inline-block;background:var(--white)}
/* The cover is a little paper theatre. Menu cards stay square and steady. */
.welcome{text-align:center;padding:32px 0 10px}.welcome .eyebrow{justify-content:center;margin-bottom:17px}.welcome .eyebrow:before{display:none}.welcome h1{font-size:clamp(47px,9vw,74px);line-height:1.16;margin:0;letter-spacing:-.055em;position:relative;z-index:1}.title-mark{display:inline-block;position:relative;isolation:isolate}.title-mark:after{content:'';position:absolute;left:3%;bottom:8%;height:15%;width:95%;background:var(--yellow);z-index:-1;transform:rotate(-2deg)}.cover-stage{height:300px;max-width:550px;margin:13px auto 4px;position:relative}.cover-card{position:absolute;width:46%;height:240px;border:2px solid var(--ink);border-radius:48% 45% 4px 6px / 35% 32% 3px 3px;bottom:26px;box-shadow:5px 6px 0 var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center}.cover-card:first-child{left:6%;background:var(--yellow);transform:rotate(-9deg)}.cover-card:nth-child(2){right:5%;background:var(--green);transform:rotate(8deg)}.cover-card svg{width:185px;max-width:95%;height:185px}.cover-card span{font:23px Xiaolai,sans-serif;position:absolute;bottom:15px}.cover-card:nth-child(2) svg{transform:rotate(-10deg)}.cover-note{position:absolute;right:0;top:0;transform:rotate(10deg);font:19px Xiaolai,sans-serif;z-index:2}.cover-star{position:absolute;left:0;top:30px;font:50px Xiaolai,sans-serif;transform:rotate(-18deg)}.cover-question{position:absolute;bottom:-2px;left:45%;font:53px Xiaolai,sans-serif;background:var(--paper);border:var(--line);border-radius:50%;width:70px;height:70px;display:grid;place-items:center;transform:rotate(-6deg)}.welcome-copy{font:20px/1.6 Xiaolai,sans-serif;margin:12px 0 22px}.welcome .button{max-width:370px;width:100%;font-size:25px;min-height:59px}.welcome-meta{font-size:12px;margin:18px 0 0}.screen-head{padding:30px 0 22px}.screen-head h1{margin:13px 0 5px}.screen-head p{margin:0}.step-indicator{display:flex;gap:7px}.step-indicator i{width:22px;height:7px;background:var(--ink);border-radius:6px;opacity:.16}.step-indicator i.done{opacity:1;background:var(--green)}.player-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.player-badge{font-size:15px;padding:7px 13px;background:var(--yellow);border:var(--line);border-radius:5px;max-width:80%;overflow-wrap:anywhere}.player-badge.b{background:var(--green)}.dynamic{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:.9em;font-weight:600;letter-spacing:-.04em}
.form-paper{background:var(--white);border:var(--line);padding:25px;border-radius:5px;position:relative}.form-paper:before{content:'';position:absolute;width:74px;height:18px;background:var(--purple);border:1px solid var(--ink);left:calc(50% - 37px);top:-10px;transform:rotate(-3deg)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:9px;min-width:0;margin-bottom:20px}.field label,.field-label{font:19px Xiaolai,sans-serif}.name-label{display:flex;align-items:center;gap:8px}.player-dot{width:17px;height:17px;border:1.5px solid var(--ink);border-radius:50%;background:var(--yellow)}.player-dot.b{background:var(--green)}input[type=text],input[type=number]{width:100%;border:var(--line);border-radius:3px;background:transparent;min-height:48px;padding:11px 12px;font-size:16px}input::placeholder{color:#8b877c}.search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.search-row .button{min-height:48px;padding:10px 17px;font-size:18px;box-shadow:2px 2px 0 var(--ink)}.location-fields{display:grid;grid-template-columns:100px 1fr;gap:12px}.budget-field{display:flex;align-items:center;justify-content:space-between;margin:22px 0;gap:12px}.budget-wrap{display:flex;align-items:center;gap:8px}.budget-wrap input{width:85px;font-variant-numeric:tabular-nums}.store-list{display:grid;gap:10px;max-height:270px;overflow:auto;padding:4px}.store-option{padding:14px 12px;border:var(--line);background:var(--paper);text-align:left;min-height:64px;border-radius:3px;box-shadow:none}.store-option.active{background:var(--green)}.store-option strong{display:block;font-size:15px;line-height:1.5;font-weight:500}.store-option small{display:block;margin-top:4px}.error-note{padding:12px 14px;border-left:3px solid var(--orange);background:#d884431c;font-size:14px;line-height:1.7;margin:15px 0}.store-caption{font-size:12px;line-height:1.6;color:#625f55;display:flex;gap:10px;align-items:baseline;justify-content:space-between;margin:0 0 16px}.store-caption span:first-child{max-width:78%}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.meal-card{display:flex;flex-direction:column;cursor:pointer;position:relative;border:var(--line);background:var(--white);border-radius:5px;overflow:hidden;transition:transform 150ms,background 150ms;min-width:0}.meal-card:has(input:focus-visible){outline:3px solid #585094;outline-offset:4px}.meal-card.selected{background:#f2df8f;box-shadow:3px 3px 0 var(--ink)}.b-screen .meal-card.selected{background:#b5cebd}.meal-number{position:absolute;left:11px;top:10px;font:13px ui-monospace,monospace}.selection-dot{position:absolute;right:10px;top:9px;width:24px;height:24px;border:var(--line);border-radius:50%;display:grid;place-items:center;font-size:15px;background:var(--white)}.selected .selection-dot{background:var(--ink);color:var(--white)}.meal-art{width:100%;height:150px;margin-top:12px}.meal-body{padding:0 13px 15px;flex:1;display:flex;flex-direction:column;gap:8px}.meal-body h2{font:500 15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:0;overflow-wrap:anywhere}.ingredients{font-size:12px;line-height:1.65;margin:0;color:#625f55;overflow-wrap:anywhere}.price{font:500 17px ui-monospace,monospace;font-variant-numeric:tabular-nums;margin-top:auto;padding-top:3px}.action-dock{position:sticky;bottom:0;z-index:4;background:var(--paper);padding:16px 0 max(18px,env(safe-area-inset-bottom));margin-top:13px;border-top:var(--line)}.action-dock .button{width:100%}.action-dock .text-button{display:block;margin:9px auto 0}.progress-message{text-align:center;padding:25px 0 8px;min-height:24px}.loading-scene{max-width:300px;margin:22px auto}.loading-scene svg{width:100%;animation:bob 1.6s ease-in-out infinite}.loading-screen{text-align:center;padding:45px 0}.loading-screen h1{font-size:32px}.loading-screen p{max-width:390px;margin:12px auto}.loading-dots{font:42px Xiaolai,sans-serif;letter-spacing:10px;animation:pulse 1.2s infinite}.handoff{text-align:center;padding:34px 0 10px}.handoff .envelope{width:min(100%,400px);margin:20px auto 15px;transform:rotate(-5deg)}.handoff h1{font-size:38px;margin:14px 0}.handoff .recipient{font-size:40px;overflow-wrap:anywhere}.handoff p{font:19px/1.7 Xiaolai,sans-serif}.handoff .button{max-width:420px;margin:18px auto 0}.seal-label{display:inline-block;font:18px Xiaolai,sans-serif;padding:8px 21px;border:var(--line);border-radius:50%;transform:rotate(5deg);background:var(--purple)}.dual-envelopes{position:relative;height:270px;max-width:520px;margin:auto}.dual-envelopes svg{width:63%;position:absolute;top:0;left:0;transform:rotate(-12deg)}.dual-envelopes svg+svg{top:65px;left:36%;transform:rotate(10deg)}.result-heading{text-align:center;padding:30px 0 24px}.result-heading h1{font-size:40px;margin:10px 0 0}.result-heading .eyebrow{justify-content:center}.result-heading .eyebrow:before{display:none}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.result-paper{border:var(--line);background:var(--white);border-radius:5px;position:relative;animation:open-paper 600ms ease both;overflow:hidden}.result-paper:nth-child(2){animation-delay:100ms}.result-name{padding:14px 16px;background:var(--yellow);border-bottom:var(--line);font-size:17px;overflow-wrap:anywhere}.result-paper:nth-child(2) .result-name{background:var(--green)}.result-main{padding:0 17px 20px}.result-main>.meal-art{height:160px;margin-top:0}.result-line{padding:11px 0;border-bottom:1px dashed #918b7b}.result-line small{display:block;color:#625f55;margin-bottom:6px}.result-line strong{font-size:14px;font-weight:500;line-height:1.6;display:block;overflow-wrap:anywhere}.result-verdict{margin:16px 0 0;font:22px Xiaolai,sans-serif}.match-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.match-chip{font-size:12px;border:1px solid var(--ink);border-radius:3px;padding:5px 7px;background:var(--paper)}.match-chip.yes{background:#c7d8bb}.photo-invite{margin:28px 0;display:flex;align-items:center;gap:20px;border-top:var(--line);border-bottom:var(--line);padding:21px 0}.photo-invite h2{font-size:24px;margin:0 0 5px}.photo-invite p{font-size:13px;margin:0}.photo-invite .button{margin-left:auto;white-space:nowrap}.menu-reference{border-top:var(--line);padding-top:18px}.menu-reference summary{cursor:pointer;min-height:44px;font:21px Xiaolai,sans-serif;list-style-position:outside;margin-left:20px}.reference-content{padding:15px 0}.reference-content h3{font-size:21px;margin:10px 0}.receipt-row{display:flex;justify-content:space-between;gap:14px;margin:15px 0;padding-bottom:15px;border-bottom:1px dashed #918b7b}.receipt-row p{font-size:13px;margin:5px 0}.quote-status{font-size:13px;line-height:1.7}.replay-row{text-align:center;padding-top:20px}.toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%,12px);background:var(--ink);color:var(--white);padding:13px 20px;border-radius:5px;z-index:20;max-width:calc(100% - 36px);width:max-content;opacity:0;pointer-events:none;transition:opacity 150ms,transform 150ms;font-size:14px}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{background:var(--white);color:var(--ink);border:2px solid var(--ink);border-radius:5px;padding:32px;width:calc(100% - 40px);max-width:490px;max-height:85svh;overflow:auto;box-shadow:7px 7px 0 var(--ink)}dialog::backdrop{background:#25231f80}.dialog-close{float:right;margin:-15px -15px 12px 10px}dialog h2{margin:10px 0 20px}dialog p{font-size:14px}dialog h3{font-size:21px}#demo-banner{position:relative;padding:7px 10px;background:var(--purple);border-bottom:var(--line);text-align:center;font-size:11px;line-height:1.5}
.photo-heading{padding:28px 0 18px}.photo-heading h1{margin:0 0 6px}.photo-heading p{font-size:13px;margin:0}.photo-choice{border:var(--line);background:var(--white);padding:26px;border-radius:5px;text-align:center}.photo-choice-art{max-width:280px;margin:auto}.photo-choice-art svg{width:100%;height:200px}.photo-choice h2{font-size:28px}.photo-choice .button-row{margin:20px 0 12px}.crop-wrap{border:var(--line);background:var(--white);padding:12px;border-radius:5px}.crop-surface{width:100%;height:auto;display:block;touch-action:none;cursor:grab;background:var(--paper);border:1px solid var(--ink)}.crop-surface:active{cursor:grabbing}.crop-controls{display:flex;align-items:center;gap:12px;padding:16px 4px 4px;flex-wrap:wrap}.crop-controls label{font:18px Xiaolai,sans-serif}.crop-controls input{flex:1;min-width:100px;accent-color:var(--ink);height:44px}.crop-help{font-size:12px;text-align:center;margin:12px 0}.nudge-controls{display:flex;justify-content:center;gap:8px}.nudge-controls button{min-width:44px;min-height:44px;background:var(--white);border:var(--line);border-radius:4px;font-size:18px}.preview-image{width:min(100%,440px);display:block;margin:0 auto 22px;border:1px solid var(--ink);box-shadow:6px 6px 0 var(--ink);height:auto}.preview-actions{max-width:480px;margin:auto}.photo-error{max-width:480px;margin:18px auto}.image-save-tip{text-align:center;font-size:12px;line-height:1.6;margin:18px 0}.back-link{font-size:14px;margin-top:12px}.quote-status:empty{display:none}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(3deg)}}@keyframes pulse{50%{opacity:.3}}@keyframes open-paper{from{opacity:0;transform:translateY(18px) rotateX(-12deg)}to{opacity:1;transform:none}}
@media(min-width:650px){.welcome{padding-top:40px}.cover-stage{height:330px}.cover-card{height:265px}.cover-card svg{width:210px;height:210px}.form-paper{max-width:560px;margin:auto}.screen-head{max-width:650px}.menu-grid{gap:20px}.meal-art{height:180px}.meal-body{padding:0 20px 20px}.meal-body h2{font-size:17px}.ingredients{font-size:13px}.action-dock{padding-left:100px;padding-right:100px}.selection-screen .screen-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline}.selection-screen .player-line{width:100%}.photo-choice{max-width:550px;margin:auto}.crop-wrap{max-width:540px;margin:auto}.photo-heading{text-align:center}}
@media(max-width:430px){.page{width:calc(100% - 32px)}.masthead{padding:14px 0}.wordmark{font-size:15px}.cover-stage{height:248px;margin-top:22px}.cover-card{height:195px;bottom:28px}.cover-card svg{height:150px;width:150px}.cover-card span{font-size:20px;bottom:10px}.cover-note{font-size:15px;top:-7px;right:1px}.cover-star{font-size:37px;top:10px}.cover-question{width:57px;height:57px;font-size:42px}.welcome{padding-top:27px}.welcome h1{font-size:49px}.welcome-copy{font-size:18px;margin-top:15px}.field-grid{gap:13px}.form-paper{padding:24px 16px 18px}.location-fields{grid-template-columns:78px 1fr;gap:10px}.search-row .button{font-size:17px;padding:9px 12px}.meal-art{height:125px;margin-top:17px}.meal-body{padding:0 11px 13px;gap:6px}.meal-body h2{font-size:14px}.ingredients{font-size:12px}.menu-grid{gap:12px}.meal-number{font-size:12px;left:9px}.price{font-size:16px}.result-grid{gap:12px}.result-name{padding:12px 10px;font-size:15px}.result-main{padding:0 11px 16px}.result-main>.meal-art{height:115px}.result-line strong{font-size:13px}.result-verdict{font-size:20px}.match-chip{font-size:11px;padding:4px 5px}.photo-invite{gap:10px}.photo-invite h2{font-size:21px}.photo-invite .button{font-size:19px;padding:12px 16px}.photo-invite p{font-size:12px}.button-row{gap:12px}.button-row .button{padding:12px 14px;font-size:18px}.site-foot{font-size:12px}.screen-head h1{font-size:33px}.handoff h1{font-size:33px}.handoff .recipient{font-size:36px}.dual-envelopes{height:225px}.photo-choice{padding:22px 18px}.site-foot{margin-top:28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:430px){.result-heading h1{font-size:30px}.result-verdict{font-size:20px}}
.wordmark{min-height:44px}.image-save-tip a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}.skip-link{position:fixed;left:16px;top:-80px;padding:12px 18px;background:var(--yellow);border:var(--line);z-index:30;min-height:44px}.skip-link:focus{top:12px}button,label.meal-card{touch-action:manipulation}html{scroll-padding-bottom:150px}.receipt-row>div{min-width:0;overflow-wrap:anywhere}
:root{color-scheme:light}.handoff .envelope{animation:seal-in 250ms ease both}.handoff .recipient{animation:receive-in 150ms ease both}@keyframes seal-in{from{opacity:0;transform:translateY(14px) rotate(-10deg) scale(.96)}to{opacity:1;transform:rotate(-5deg)}}@keyframes receive-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:650px){.welcome{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"eyebrow eyebrow" "title art" "copy art" "button art" "meta meta";text-align:left;column-gap:28px;padding-top:34px;align-items:center}.welcome .eyebrow{grid-area:eyebrow;justify-content:flex-start}.welcome h1{grid-area:title;font-size:clamp(43px,4.6vw,54px);align-self:end;margin-top:8px}.welcome .cover-stage{grid-area:art;width:100%;height:300px;margin:0}.welcome .cover-card{height:225px;bottom:28px}.welcome .cover-card svg{width:155px;height:155px}.welcome .cover-card span{font-size:21px}.welcome .cover-note{font-size:16px}.welcome .cover-star{font-size:38px}.welcome .welcome-copy{grid-area:copy;font-size:19px;margin:14px 0 22px}.welcome>.button{grid-area:button}.welcome-meta{grid-area:meta;text-align:center;padding-top:15px;margin-top:24px}}
/* Free-choice food counter and tray. No request is sent while arranging food. */
.tray-cover .cover-tray{position:absolute;width:74%;left:0;top:18px;transform:rotate(-10deg)}.tray-cover .cover-tray:nth-child(2){left:auto;right:-1%;top:106px;transform:rotate(9deg)}.cover-tray svg{display:block;width:100%}.cover-tray span{position:absolute;left:12%;top:-5%;font:16px/1.2 Xiaolai,sans-serif;white-space:nowrap;background:var(--white);border:1.5px solid var(--ink);border-radius:3px;padding:6px 10px;box-shadow:2px 2px 0 var(--ink)}.tray-cover .cover-note{top:0}.tray-cover .cover-star{left:auto;right:0;top:46px}.tray-cover .cover-question{left:4%;bottom:1px}.welcome .tray-cover{height:320px;max-width:440px}
.tray-selection .screen-head{padding:24px 0 8px}.tray-selection .screen-head h1{margin:16px 0 6px}.tray-selection .store-caption{margin:0 0 16px;font-size:12px;gap:12px}.tray-selection .store-caption span:first-child{min-width:0;overflow-wrap:anywhere}.tray-selection .store-caption span:last-child{white-space:nowrap}.tray-builder{display:grid;gap:12px}.food-counter{min-width:0}.food-tabs{display:flex;gap:7px;border-bottom:var(--line);padding:0 7px;justify-content:space-around}.food-tabs button{min-height:44px;min-width:78px;border:var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:transparent;font:21px Xiaolai,sans-serif;padding:7px 14px}.food-tabs button[aria-pressed=true]{background:var(--yellow)}.b-screen .food-tabs button[aria-pressed=true]{background:var(--green)}.food-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;column-gap:7px;padding:8px 0 0;min-height:260px}.food-tile{border:0;background:none;padding:0 3px 9px;display:flex;flex-direction:column;align-items:center;min-width:0;position:relative;user-select:none;-webkit-user-select:none;touch-action:pan-y}.food-illustration{display:block;position:relative;width:90px;height:82px;touch-action:none;cursor:grab}.food-illustration svg{width:100%;height:100%;pointer-events:none;transition:transform 150ms}.food-tile:hover .food-illustration svg{transform:rotate(-5deg) translateY(-3px)}.food-title{font-size:12px;line-height:1.45;overflow-wrap:anywhere}.food-price{font:12px/1.7 ui-monospace,monospace}.food-count{position:absolute;right:2px;top:4px;min-width:22px;min-height:22px;background:var(--yellow);border:1px solid var(--ink);border-radius:50%;font:12px/20px ui-monospace,monospace}.tray-topline{display:flex;justify-content:space-between;align-items:center;min-height:44px}.tray-topline .hand{font-size:24px}.tray-topline .text-button{font-size:12px}.serving-tray{height:220px;position:relative;border:2px solid var(--ink);border-radius:25px 22px 29px 23px;background:var(--white);box-shadow:0 4px 0 #c6bfae;isolation:isolate;transition:background 150ms}.serving-tray:before{content:'';position:absolute;inset:11px;border:1px solid #8b8474;border-radius:17px 15px 19px 15px;pointer-events:none}.serving-tray:after{content:'';position:absolute;left:-1px;right:-1px;top:46%;height:20px;border-left:6px solid #b8afa0;border-right:6px solid #b8afa0;z-index:-1;border-radius:3px}.serving-tray.drop-ready{background:#f4e5a6}.b-screen .serving-tray.drop-ready{background:#d3e0d4}.tray-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font:29px/1.25 Xiaolai,sans-serif;color:#777164;transform:rotate(-4deg);pointer-events:none}.tray-empty span{font:12px/1.6 sans-serif;margin-top:12px}.tray-pieces{position:absolute;inset:0;pointer-events:none}.tray-piece{border:0;background:none;padding:0;position:absolute;width:108px;height:108px;transform:translate(-50%,-50%) rotate(var(--tilt));cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto;border-radius:28px}.tray-piece svg{width:100%;height:100%;pointer-events:none}.tray-piece:active{cursor:grabbing}.tray-piece:focus-visible{z-index:3}.being-dragged{opacity:.25}.food-drag-ghost{position:fixed;left:0;top:0;width:110px;height:110px;pointer-events:none;z-index:80;filter:drop-shadow(2px 7px 0 #25231f20);will-change:transform}.food-drag-ghost svg{width:100%;height:100%}.tray-tally{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px;margin:15px 2px 0;font:13px ui-monospace,monospace}.tally-label{font:12px sans-serif;margin-left:13px}.tray-tally strong{font:21px ui-monospace,monospace}.over-budget{flex-basis:100%;text-align:right;font:12px/1.4 sans-serif}.tray-hint{font-size:11px;color:#625f55;text-align:center;margin:10px 0 0}.tray-selection .action-dock{margin-top:8px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));display:flex;align-items:stretch;flex-direction:column;gap:5px}.tray-selection .action-dock>.button{width:100%}.tray-selection .action-dock>.text-button{font-size:12px}
.tray-results{display:grid;gap:32px}.tray-result{border-top:var(--line);padding-top:18px;animation:receive-in 600ms ease both}.tray-result:nth-child(2){animation-delay:80ms}.tray-result>h2{display:flex;align-items:center;gap:10px;font:23px Xiaolai,sans-serif;overflow-wrap:anywhere;margin:0 0 16px}.tray-result .player-dot{flex:none}.tray-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tray-comparison>div{min-width:0}.tray-comparison h3{font-size:18px;line-height:1.4;margin:0 0 5px;overflow-wrap:anywhere}.result-tray{width:100%;display:block;height:auto}.tray-comparison p{font-size:13px;line-height:1.65;margin:9px 0 0;overflow-wrap:anywhere}.tray-verdict{display:flex;align-items:center;gap:14px;margin-top:15px;flex-wrap:wrap}.tray-verdict .result-verdict{margin:0;font-size:24px}.tray-verdict .match-list{margin:0;display:flex;flex-wrap:wrap;gap:6px}.receipt-row>.price{text-align:right;white-space:nowrap}.receipt-row>.price small{display:block;font:11px/1.8 sans-serif}.tray-reveal .result-heading{padding:30px 0 18px}.tray-reveal .result-heading h1{font-size:clamp(30px,5.5vw,42px)}
@media(min-width:700px){.tray-builder{grid-template-columns:1.1fr 1fr;gap:25px;align-items:start}.tray-table{padding-top:0}.tray-topline{height:45px}.serving-tray{height:252px}.food-shelf{min-height:320px;row-gap:12px}.food-illustration{width:105px;height:103px}.food-title{font-size:13px}.tray-selection .action-dock{max-width:360px;margin-left:auto}.tray-selection .screen-head{max-width:none}.tray-comparison p{font-size:14px}.tray-result>h2{font-size:27px}.tray-verdict{justify-content:space-between}}
@media(max-width:430px){.welcome .tray-cover{height:277px;max-width:340px}.tray-cover .cover-tray{top:0}.tray-cover .cover-tray:nth-child(2){top:90px}.cover-tray span{font-size:15px}.tray-selection .screen-head h1{font-size:30px}.tray-selection .player-badge{font-size:13px;padding:5px 10px}.tray-comparison{gap:10px}.tray-comparison p{font-size:12px}.tray-comparison h3{font-size:17px}.tray-verdict{gap:9px}.tray-verdict .result-verdict{font-size:22px}}
.tray-selection .action-dock{position:static}
@media(max-width:699px){.tray-selection .screen-head{padding:16px 0 5px}.tray-selection .screen-head h1{margin:10px 0 4px;font-size:28px}.food-illustration{width:82px;height:70px}.food-shelf{min-height:0}.tray-builder{gap:6px}.serving-tray{height:200px}.tray-piece{width:100px;height:100px}}

/* Full menu: the counter scrolls; the tray remains within reach. */
.catalog-selection .screen-head h1{font-size:30px;margin:10px 0 6px}.catalog-selection .store-caption{margin-bottom:12px}.catalog-builder{display:grid;grid-template-columns:1.05fr 1fr;gap:22px;align-items:start}.catalog-counter{min-width:0;border-top:var(--line)}.catalog-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:7px 0 8px;min-height:60px;overscroll-behavior:contain}.catalog-tabs button{flex:none;max-width:180px;min-height:44px;border:1px solid var(--ink);border-radius:4px;padding:6px 13px;background:var(--white);font:15px Xiaolai,sans-serif;white-space:nowrap}.catalog-tabs button:focus-visible,.catalog-tabs button:hover{background:var(--yellow)}.catalog-scroll{height:440px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;position:relative;scroll-padding-top:8px;padding:0 8px 18px 0;touch-action:pan-y}.catalog-scroll section>h2{font:21px Xiaolai,sans-serif;margin:15px 0 7px;padding:0 6px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px}.catalog-cell{min-width:0;position:relative;min-height:178px;contain:layout style}.catalog-cell .food-tile{width:100%;height:100%;min-height:178px;padding:0 5px 7px}.catalog-cell .food-illustration{width:116px;height:110px;flex:none}.catalog-cell .food-title{font-size:13px;line-height:1.5;min-height:40px;display:flex;align-items:center;justify-content:center}.catalog-cell .food-price{min-height:23px}.item-retry{position:absolute;bottom:1px;right:1px;min-width:44px;min-height:44px;font-size:11px;border:0;background:var(--paper)}.item-retry[hidden]{display:none}.catalog-builder .tray-table{position:sticky;top:12px;min-width:0}.catalog-builder .tray-topline{height:54px}.catalog-builder .serving-tray{height:260px}.catalog-builder .tray-piece{width:110px;height:110px}.catalog-builder .bundle-piece{width:125px;height:125px}.catalog-builder .tray-tally{margin:13px 1px 4px}.tray-feedback{min-height:39px;font-size:12px;line-height:1.5;text-align:right;padding:3px 0;color:#625f55}.tray-pending{font-size:12px;max-height:116px;overflow:auto}.tray-pending>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-top:1px solid #aaa18d;padding:5px 0}.tray-pending span{flex:1;min-width:110px}.tray-pending button{border:1px solid var(--ink);border-radius:3px;background:var(--white);min-height:44px;min-width:44px;font-size:12px}.pending-piece{opacity:.62}.pending-label{position:absolute;left:0;right:0;bottom:8px;font:12px sans-serif;padding:4px;background:var(--paper);border:1px solid var(--ink);border-radius:3px}.catalog-selection .action-dock{position:static;margin:8px 0 0 auto;max-width:360px;padding:6px 0 max(8px,env(safe-area-inset-bottom))}.catalog-selection .action-dock .button{width:100%}.catalog-editor{height:500px;overflow:auto;overscroll-behavior:contain;padding:0 8px 16px 0}.editor-head{display:flex;justify-content:space-between;position:sticky;top:0;background:var(--paper);z-index:2}.editor-head .text-button{font-size:13px}.editor-title{display:flex;align-items:center;gap:8px}.editor-title svg{width:90px;height:90px;flex:none}.editor-title h2{font:22px/1.3 Xiaolai,sans-serif;margin:7px 0}.combo-form fieldset{border:0;border-top:1px solid #b6ad99;padding:10px 0 14px;margin:8px 0}.combo-form legend{font:15px sans-serif;padding:0 7px 0 0}.combo-slot{display:flex;gap:6px;margin-top:7px}.combo-slot select{min-width:0;width:100%;min-height:44px;border:1px solid var(--ink);border-radius:4px;background:var(--white);color:var(--ink);padding:9px 25px 9px 7px;font:13px sans-serif}.combo-slot button{min-width:44px;min-height:44px;border:1px solid var(--ink);background:var(--white)}.editor-error{font-size:13px;color:#8b321c;line-height:1.5;margin:8px 0}.combo-form .button{font-size:18px}.place-option{display:block;width:100%;text-align:left;border:1px solid #a99f89;background:var(--white);padding:12px;min-height:56px;border-radius:4px;margin-top:7px;color:var(--ink)}.place-option strong,.place-option small{display:block}.place-option small{font-size:12px;line-height:1.5;margin-top:5px}.place-caption{font-size:13px;line-height:1.5;margin-top:14px}.location-button{width:100%;margin:20px 0 15px}.place-status{min-height:20px;font-size:13px;margin:8px 0}.store-option .distance{display:block;font:12px/1.5 ui-monospace,monospace;margin-top:5px}
@media(max-width:699px){.catalog-selection .screen-head{padding:8px 0 4px}.catalog-selection .screen-head h1{font-size:25px;margin:8px 0 4px}.catalog-selection .store-caption{font-size:11px;margin-bottom:7px}.catalog-builder{grid-template-columns:1fr;gap:5px}.catalog-tabs{min-height:50px;padding:2px 0 5px}.catalog-tabs button{font-size:14px}.catalog-scroll{height:clamp(180px,calc(100dvh - 490px),340px);padding-bottom:12px}.catalog-cell,.catalog-cell .food-tile{min-height:149px}.catalog-cell .food-illustration{width:102px;height:85px}.catalog-cell .food-title{min-height:39px;font-size:12px}.catalog-builder .tray-table{position:static}.catalog-builder .tray-topline{height:37px;min-height:37px}.catalog-builder .tray-topline .hand{font-size:21px}.catalog-builder .serving-tray{height:clamp(145px,22dvh,190px)}.catalog-builder .tray-piece{width:90px;height:90px}.catalog-builder .bundle-piece{width:103px;height:103px}.catalog-builder .tray-tally{margin:9px 1px 0;font-size:12px}.catalog-builder .tray-tally strong{font-size:18px}.tray-feedback{min-height:33px;font-size:11px;padding:2px 0}.tray-pending{max-height:78px}.catalog-selection .action-dock{max-width:none;width:100%;margin-top:0;padding-top:2px}.catalog-selection .action-dock>.text-button{font-size:12px}.catalog-editor{height:clamp(230px,calc(100dvh - 440px),390px)}.editor-title svg{width:66px;height:66px}.editor-title h2{font-size:20px}.editor-head{min-height:44px}.combo-form fieldset{padding:7px 0 8px;margin:5px 0}}
@media(min-width:700px){.catalog-selection .screen-head{padding:14px 0 6px}.catalog-scroll{height:clamp(250px,calc(100dvh - 340px),520px)}.catalog-editor{height:clamp(310px,calc(100dvh - 280px),580px)}}
@media(max-width:699px){.catalog-scroll{height:clamp(160px,calc(100dvh - 640px),280px)}}
.combo-slot select:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
/* Mobile v4: native menu scrolling, separate tray manipulation. */
body.in-game .site-foot{display:none}.combo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.combo-choice{border:1px solid #b6ad99;border-radius:8px;background:var(--white);min-width:0}.combo-choice.selected{background:#f5e5a0;border-color:var(--ink)}.combo-choice>button{width:100%;border:0;background:none;color:var(--ink);font:13px/1.4 sans-serif;min-height:100px;padding:6px}.combo-choice svg{display:block;width:70px;height:65px;margin:auto}.choice-count{display:flex;align-items:center;justify-content:space-around}.choice-count button{min-width:44px;min-height:44px;background:none;border:0;font-size:22px}.choice-count[hidden],.combo-choice[hidden]{display:none}.catalog-editor{scrollbar-width:thin}.catalog-builder .tray-feedback:empty{min-height:12px}.catalog-builder .tray-tally{margin-top:6px}.catalog-builder .action-dock{margin-top:3px}.catalog-selection .screen-head{padding-top:4px}
@media(pointer:coarse){.catalog-cell .food-illustration{touch-action:pan-y;cursor:pointer}.catalog-cell .food-tile:hover .food-illustration svg{transform:none}.catalog-cell .food-tile{touch-action:pan-y}}
@media(max-width:699px){body.in-game .masthead{padding:4px 0}.catalog-selection .screen-head h1{font-size:23px}.catalog-selection .store-caption{margin:3px 0}.catalog-scroll{height:max(260px,calc(100dvh - 400px))}.catalog-editor{height:max(300px,calc(100dvh - 360px))}.catalog-builder .serving-tray{height:125px}.catalog-builder .tray-topline{height:28px;min-height:28px}.catalog-builder .tray-piece{width:76px;height:76px}.catalog-builder .bundle-piece{width:85px;height:85px}.catalog-builder .tray-feedback{min-height:18px}.catalog-selection .action-dock .button{min-height:44px;padding:9px}.catalog-cell .food-title{font-size:14px}.catalog-cell,.catalog-cell .food-tile{min-height:155px}}
@media(max-height:560px){.catalog-scroll,.catalog-editor{height:320px}.catalog-builder .tray-table{position:static}}
.head-controls{max-width:540px;margin:12px auto}.head-controls button{min-height:44px;padding:6px 12px;border:1px solid var(--ink);border-radius:5px;background:var(--white);color:var(--ink)}.head-controls .button-row{flex-wrap:wrap;margin:8px 0;gap:6px}#hat-options{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#hat-options label{display:flex;gap:8px;align-items:center;font-size:13px}#hat-options select{max-width:220px;min-height:44px}#hat-options input{min-height:44px}.crop-wrap{max-width:430px}.crop-surface{width:min(100%,calc(55dvh * .94));height:auto;max-height:none;margin-inline:auto}.preview-actions>.button-row:first-child{position:sticky;bottom:0;background:var(--paper);padding:8px 0 max(8px,env(safe-area-inset-bottom));z-index:2}.preview-actions>.button-row{margin:8px 0}.preview-actions details{padding:8px 0}.preview-actions summary{min-height:44px;cursor:pointer}.photo-heading{padding:12px 0}.photo-heading h1{font-size:30px}
.just-added{animation:tray-arrival 180ms ease-out}@keyframes tray-arrival{from{opacity:.2;scale:.7}to{opacity:1;scale:1}}@media(prefers-reduced-motion:reduce){.just-added{animation:none}}
.head-controls button[aria-pressed=true]{background:var(--yellow);border:2px solid var(--ink)}section:has(#crop) .action-dock{position:static;padding:12px 0}.preview-actions{position:sticky;bottom:0;z-index:5;background:var(--paper);padding:6px 0 max(6px,env(safe-area-inset-bottom))}.preview-actions>.button-row:first-child{position:static}.preview-actions details{padding:0}.preview-actions summary{min-height:44px;text-align:center;list-style-position:inside}
body.in-game .wordmark{visibility:hidden}.catalog-selection.configuring .action-dock{display:none}.combo-form>button[type=submit]{position:sticky;bottom:0;z-index:2}.catalog-builder .tray-feedback:empty{min-height:18px}
@media(max-width:699px) and (min-height:650px){
 .page:has(.catalog-selection){height:100dvh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
 body:has(#demo-banner:not([hidden])) .page:has(.catalog-selection){height:calc(100dvh - 32px)}
 .page:has(.catalog-selection)>main{min-height:0;flex:1}
 .catalog-selection{height:100%;display:flex;flex-direction:column}
 .catalog-selection .screen-head,.catalog-selection .store-caption,.catalog-selection>.action-dock{flex:none}
 .catalog-builder{flex:1;min-height:0;grid-template-rows:minmax(220px,1fr) auto}
 .catalog-counter{display:flex;flex-direction:column;min-height:0}
 .catalog-scroll,.catalog-editor{height:auto;min-height:0;flex:1}
 .catalog-tabs{flex:none}
 .catalog-selection .action-dock .text-button{margin:0 auto;font-size:12px}
}
@media(max-width:699px) and (min-height:650px){.catalog-builder{align-items:stretch}.catalog-counter{height:100%;overflow:hidden}.catalog-scroll,.catalog-editor{flex:1 1 0;overflow-y:auto}}
.page:has(.catalog-selection)>.masthead{display:none}.catalog-selection .screen-head{padding-top:12px}

/* Compact receipt: keep prices separate from long meal descriptions. */
.reference-content .receipt-row{display:block;padding:16px 0}.reference-content .receipt-row>.price{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;margin-top:8px}.reference-content .receipt-row p{margin:8px 0}.reference-content .button-row{margin:20px 0 14px}.receipt-note{margin:12px 0}.price-conditions>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;text-decoration:underline}.price-conditions p{margin:0 0 12px}.reference-content>h3{margin:20px 0 8px}

/* Photo workspace: spend the screen on the photograph, not repeated headings. */
.page:has(.photo-heading)>.masthead{display:none}.photo-heading{padding:8px 0}.photo-heading h1{font-size:22px;margin:0}.save-status:empty{display:none}.save-status{margin:8px 0;text-align:center}.save-dialog{padding:14px 16px 20px;max-width:430px}.save-dialog>[data-close]{float:right}.save-dialog h2{font-size:23px;margin:10px 0}.save-dialog img{display:block;width:100%;height:auto;margin:12px 0;user-select:auto;-webkit-touch-callout:default}.save-dialog p{font-size:13px;margin:8px 0}.save-dialog::backdrop{background:#25231fb3}

#about{display:none}body.in-game .masthead{display:none}

.welcome .game-title{font-size:clamp(56px,10vw,86px);letter-spacing:.02em;line-height:1.2}.welcome .game-title .title-mark{margin-left:.12em}

/* Keep photo tools on the same measure as the photograph. */
.head-controls{max-width:430px}.head-controls>.button-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.head-controls>.button-row:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}.head-controls button{overflow-wrap:anywhere}.head-controls button[aria-pressed=true]{box-shadow:2px 2px 0 var(--ink)}
#hat-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px 0}#hat-options:empty{display:none}#hat-options>label{display:flex;min-width:0;gap:8px;white-space:nowrap}#hat-options>label:first-child{grid-column:1/-1}#hat-options select{flex:1;min-width:0;max-width:none;border:1px solid var(--ink);border-radius:4px;background:var(--white);padding:0 8px}#hat-options input{flex:1;width:0;min-width:0;accent-color:var(--ink)}#hat-options>button{background:transparent}
.crop-controls{padding:8px 0 0;gap:8px}.crop-controls>label{font-size:14px}.crop-controls>input{min-width:60px}.crop-controls>.text-button{font-size:13px}.nudge-controls{gap:6px;margin-top:4px}.nudge-controls button{width:44px}
.photo-heading{max-width:430px;margin:auto;text-align:left;padding:16px 0 12px}.preview-image{margin-bottom:16px}.preview-actions{max-width:440px}.preview-actions>.button-row{gap:10px}.preview-actions details{border-top:1px solid #25231f35;margin-top:4px}
@media(max-width:430px){.head-controls{margin:10px auto}.head-controls button{padding:6px 8px;font-size:14px}.crop-wrap{padding:10px}.photo-heading h1{font-size:24px}.photo-choice .button-row{flex-direction:column}.site-foot{font-size:11px;gap:12px;align-items:baseline}.welcome-meta{margin-top:14px}.welcome-copy{margin:12px 0 18px}}

/* A single title leads the cover; the two trays do the explaining. */
body:not(.in-game) .masthead{display:none}
body:not(.in-game) main{min-height:0}
.welcome .game-title{white-space:nowrap}
@media(max-width:649px){
 .welcome{display:flex;flex-direction:column;align-items:center;padding:30px 0 8px}
 .welcome .eyebrow{order:0;margin:0 0 14px;font-size:14px}
 .welcome .game-title{order:1;font-size:clamp(52px,15vw,72px)}
 .welcome-copy{order:2;font-size:17px;line-height:1.5;margin:16px 0 4px}
 .welcome-copy br{display:none}
 .welcome .tray-cover{order:3;width:100%;height:280px;max-width:340px;margin:24px auto 16px}
 .tray-cover .cover-tray{width:72%;left:3%;top:14px}
 .tray-cover .cover-tray:nth-child(2){right:2%;top:101px}
 .tray-cover .cover-star{right:3%;top:26px;font-size:38px}
 .welcome>.button{order:4;width:100%;max-width:340px;min-height:56px;font-size:23px}
 .welcome-meta{order:5;margin:16px 0 0;font-size:12px}
 body:not(.in-game) .site-foot{margin-top:24px;padding:18px 0;justify-content:center;flex-wrap:wrap}
}
@media(min-width:650px){
 .welcome{padding:48px 0 24px;grid-template-areas:"eyebrow art" "title art" "copy art" "button art" "meta art";row-gap:0}
 .welcome .game-title{font-size:70px}
 .welcome .eyebrow{margin-bottom:18px}
 .welcome .tray-cover{height:330px}
 .welcome-meta{margin:18px 0 0;padding:0;text-align:left}
 body:not(.in-game) .site-foot{margin-top:26px}
}

.tray-tally{align-items:center;gap:12px}.tray-tally>span{display:flex;align-items:center;gap:12px;font-size:13px}.tray-tally .tally-label{margin:0;font-size:12px;color:#625f55}.tray-tally>strong{font-size:25px;white-space:nowrap}.invite-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 0}.invite-actions .button{font-size:17px;min-height:48px}.invite-actions a{display:flex;align-items:center;font-size:14px}

.image-viewer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink)}.image-viewer::backdrop{background:#25231fe6}.viewer-toolbar{display:flex;justify-content:space-between;padding:env(safe-area-inset-top,0px) 16px 0;border-bottom:var(--line)}.viewer-toolbar button{min-width:64px;min-height:48px}.viewer-scroll{height:calc(100% - 50px);overflow:auto;padding:12px 8px calc(12px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}.viewer-scroll img{display:block;width:100%;height:auto;margin:auto;max-width:720px}.zoomed .viewer-scroll img{width:200%;max-width:none}
