:root{color-scheme:light;--paper:#fff7e7;--ink:#181713;--orange:#ffd02f;--green:#26231d;--muted:#777064;--line:#e4d9c4}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;-webkit-font-smoothing:antialiased}body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888888' opacity='.22' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}a{color:inherit;text-decoration:none}.brand{max-width:1120px;margin:auto;padding:30px 32px;display:flex;align-items:center;justify-content:space-between}.brand a{font-size:27px;font-weight:850;letter-spacing:-1.3px}.brand-icon{color:var(--orange);font-size:34px;vertical-align:-3px;margin-right:9px}.brand-dot{color:var(--orange)}.brand-note{font-size:11px;letter-spacing:3px;color:var(--muted)}main{max-width:560px;margin:32px auto 0;padding:0 24px}.intro{text-align:center}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:700;color:var(--green);margin:0 0 23px}h1{font-size:54px;line-height:1.24;letter-spacing:-2px;margin:0;font-weight:900}.mobile-break{display:none}.accent{color:var(--orange);display:inline-block;position:relative}.accent svg{position:absolute;bottom:-11px;left:0;width:100%;height:16px;fill:none;stroke:var(--orange);stroke-width:4;stroke-linecap:round}.intro-copy{font-size:14px;line-height:1.9;color:#777064;margin:25px 0 33px}.machine{position:relative;background:var(--green);padding:21px 22px 16px;border:2px solid #181713;border-radius:23px;box-shadow:0 7px 0 #181713,0 15px 30px #26231d14}.machine-top{display:flex;justify-content:space-between;align-items:center;color:#fff7e7;font-size:11px;letter-spacing:2px;margin:0 2px 17px}.light{display:inline-block;background:#ffd02f;width:6px;height:6px;box-shadow:0 0 8px #ffd02f77;border-radius:50%;margin-right:7px}.reel-frame{position:relative;border:6px solid #ffd02f;border-radius:12px;background:#fffcf4;box-shadow:0 0 0 2px #181713,inset 0 0 15px #0002;overflow:hidden}.reel-window{height:276px;overflow:hidden;mask-image:linear-gradient(transparent,#000 34%,#000 66%,transparent)}.reel{will-change:transform}.food-row{height:92px;display:flex;align-items:center;justify-content:center;font-size:clamp(23px,6.5vw,35px);font-weight:800;letter-spacing:2px;white-space:nowrap}.selection-line{position:absolute;top:91px;left:0;right:0;height:92px;border-top:1px solid #26231d20;border-bottom:1px solid #26231d20;pointer-events:none}.pointer{position:absolute;top:130px;z-index:2;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent}.pointer.left{left:10px;border-left:10px solid var(--orange)}.pointer.right{right:10px;border-right:10px solid var(--orange)}.machine-bottom{display:flex;justify-content:space-between;margin:18px 4px 0;color:#fff7e7;font-size:10px;letter-spacing:1px}.machine-bottom>span:last-child{color:#e4d9c4;letter-spacing:4px}.screw{position:absolute;bottom:9px;font-size:10px;color:#fff7e770}.screw-left{left:8px}.screw-right{right:8px}button{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-height:67px;margin-top:25px;background:var(--orange);color:#181713;border:2px solid #181713;border-radius:13px;box-shadow:0 5px 0 #181713;font-family:inherit;font-size:23px;font-weight:800;letter-spacing:4px;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.button-arrow{font-size:27px;font-weight:400}button:hover:enabled{background:#ffdb57}button:active:enabled{transform:translateY(4px);box-shadow:0 1px 0 #181713}button:disabled{cursor:wait;opacity:.75}button:focus-visible,a:focus-visible{outline:3px solid #ec3761;outline-offset:6px}.status{font-size:11px;color:var(--muted);text-align:center;line-height:1.8;margin:17px 0 0;min-height:20px}.storage-note{font-size:12px;text-align:center;color:#a52a49}.history-section{margin-top:42px}.section-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}h2{font-size:14px;letter-spacing:1px;margin:0}h2 span{font-size:9px;letter-spacing:1.3px;font-weight:500;color:var(--muted);margin-left:12px}.history-count{font:11px ui-monospace,monospace;color:var(--muted)}.history{list-style:none;padding:0;margin:0}.history li{display:flex;gap:17px;align-items:center;padding:17px 2px;border-bottom:1px solid var(--line)}.history-number{font:11px ui-monospace,monospace;color:#948776}.history-name{font-size:14px;font-weight:600;flex:1}.history-label{font-size:10px;color:#948776}.history li:first-child .history-label{color:var(--green);background:#f9edc9;padding:5px 8px;border-radius:4px}.empty-history{text-align:center;font-size:12px;color:#948776;padding:22px 0}.is-result .selection-line{background:#ffd02f18}footer{max-width:1056px;margin:65px auto 0;padding:22px 0 25px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#948776;letter-spacing:.7px}.noscript{text-align:center;padding:20px}@media(max-width:600px){.brand{padding:21px 23px}.brand a{font-size:24px}.brand-note{font-size:10px;letter-spacing:2px}main{margin-top:26px;padding:0 22px;max-width:480px}h1{font-size:45px;letter-spacing:-1.8px}.eyebrow{font-size:9px;letter-spacing:2.5px;margin-bottom:20px}.intro-copy{font-size:13px;margin-top:23px;margin-bottom:28px}.machine{padding:17px 16px 15px;border-radius:19px}.machine-top{font-size:10px;letter-spacing:1px}.machine-bottom{font-size:9px;letter-spacing:.5px}.history-section{margin-top:33px}h2{font-size:13px}h2 span{font-size:8px;margin-left:8px}footer{margin:42px 22px 0;font-size:9px;letter-spacing:0;gap:10px}}@media(max-width:360px){h1{font-size:39px}.machine-top{letter-spacing:0}.machine-bottom>span:last-child{display:none}h2 span{display:none}.food-row{letter-spacing:0;font-size:25px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}.reel{will-change:auto}}

/* Compact layout: the meal and the single action take priority. */
main{margin-top:20px;padding-bottom:20px}
.intro{margin-bottom:28px}
.machine{padding-bottom:20px}
.history-section{margin-top:26px}
.history li{padding:10px 2px}
@media(max-width:600px){
  :root{--row-height:clamp(40px,8svh,64px)}
  .brand{padding:12px 22px}
  .brand a{font-size:22px}
  .brand-icon{font-size:27px}
  main{margin-top:4px;padding-bottom:12px}
  h1{font-size:clamp(30px,8.8vw,40px);line-height:1.3;letter-spacing:-1.5px}
  .intro{margin-bottom:20px}
  .accent svg{bottom:-7px;height:12px}
  .machine{padding:12px 14px;border-radius:17px}
  .machine-top{margin-bottom:10px}
  .reel-window{height:calc(var(--row-height) * 3)}
  .food-row{height:var(--row-height);font-size:clamp(23px,6.5vw,30px);letter-spacing:1px}
  .selection-line{top:var(--row-height);height:var(--row-height)}
  .pointer{top:calc(var(--row-height) * 1.5 - 8px)}
  button{min-height:54px;margin-top:18px;font-size:22px}
  .status{margin-top:10px;line-height:18px;min-height:18px}
  .history-section{margin-top:16px}
  .section-heading{padding-bottom:8px}
  .history li{min-height:30px;padding:6px 2px;gap:12px}
  .history-name{font-size:13px;line-height:18px}
  .empty-history{margin:0;padding:14px 0}
  .storage-note{font-size:11px;margin:6px 0}
}
@media(max-width:600px) and (max-height:650px){
  :root{--row-height:32px}
  .brand{padding-top:8px;padding-bottom:8px}
  .intro{margin-bottom:14px}
  h1{font-size:30px}
  .machine{padding:10px 12px}
  .history-section{margin-top:12px}
  .history li{min-height:28px;padding:5px 2px}
}

/* Palette from the reference: cream, ink, yellow, and a small pink accent. */
.brand-icon,.brand-dot{color:var(--ink)}
.accent{color:var(--ink)}
.accent svg{stroke:#ec3761;stroke-width:6}
.light{box-shadow:0 0 8px #ffd02f66}
.pointer.left{border-left-color:#ec3761}
.pointer.right{border-right-color:#ec3761}
button{box-shadow:0 5px 0 var(--ink)}
button:hover:enabled{background:#ffdb57}
button:disabled{opacity:.75}
.is-result .selection-line{background:#ffd02f18}

/* Product title replaces the separate brand header. */
main{margin-top:40px}
.product-credit{margin:16px 0 0;font-size:15px;line-height:1.6;color:var(--muted);letter-spacing:.5px}
@media(max-width:600px){
  main{margin-top:24px}
  .product-credit{margin-top:12px;font-size:14px}
}
@media(max-width:600px) and (max-height:650px){
  main{margin-top:16px}
  .product-credit{margin-top:10px}
}

/* Keep the site banner available to assistive technology without taking layout space. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.product-credit a{text-decoration:underline;text-decoration-color:#b5a58d;text-underline-offset:4px}
.product-credit a:hover{color:var(--ink);text-decoration-color:#ec3761}

/* Empty guidance takes no space; results and errors remain announced. */
.status:empty{display:none}
.history-name{text-align:right;align-self:flex-end}

.history-name{text-decoration:underline;text-decoration-color:#b5a58d;text-underline-offset:4px}
.history-name:hover{text-decoration-color:#ec3761}

.site-footer{display:block;max-width:560px;margin:8px auto 0;padding:8px 22px 14px;border:0;text-align:center;font-size:11px;line-height:1.5;color:var(--muted);letter-spacing:1px}
@media(max-width:600px){.site-footer{margin-top:0;padding-top:4px;padding-bottom:10px}}

/* Keep the footer at the viewport bottom without covering content. */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main{width:100%;flex-shrink:0}
.site-footer{flex-shrink:0;width:100%;margin-top:auto;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
@media(max-width:600px){
  .history-name{font-size:16px;line-height:22px}
  .history-number{font-size:13px}
  .site-footer{margin-top:auto;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
