@font-face { font-family: 'Noto Serif'; font-style: italic; font-weight: 500; src: url(fonts/noto-serif-500-italic.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 400; src: url(fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; src: url(fonts/poppins-600.woff2) format('woff2'); }

:root { --bg: #1e4a2b; --fg: #f7f2e4; --green: #1e4a2b; --lime: #8cc63f; --cream: #f7f2e4; --gutter: 20px; --topo: max(150vw, 150vh); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.4 Poppins, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.topo { position: fixed; left: 50%; top: 50%; width: var(--topo); height: var(--topo); margin: calc(var(--topo) / -2) 0 0 calc(var(--topo) / -2); opacity: .1; will-change: transform; pointer-events: none; }
.topo svg { display: block; width: 100%; height: 100%; }

.top { position: fixed; z-index: 4; inset: calc(14px + env(safe-area-inset-top)) var(--gutter) auto; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.badge { width: 44px; height: 44px; padding: 7px; border-radius: 50%; background: var(--green); }
.badge img { display: block; width: 100%; }
.brand { font: italic 500 min(21px, 5.6vw)/1 'Noto Serif', serif; white-space: nowrap; }
.baseline { display: none; font-size: 15px; }
.stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.stage.drag { cursor: grabbing; }
.bowl { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); will-change: transform; }
.bowl .shadow { position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 26px 60px 12px rgb(0 0 0 / .42); }
.bowl img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; will-change: transform; -webkit-user-drag: none; }
.bowl svg { position: absolute; inset: -12%; width: 124%; height: 124%; overflow: visible; pointer-events: none; }
.bowl text { fill: var(--fg); font-weight: 600; letter-spacing: .02em; }

.panels { position: fixed; z-index: 2; inset: calc(72px + env(safe-area-inset-top)) var(--gutter) auto; pointer-events: none; }
.panel { position: absolute; inset: 0 0 auto; }
.panel h2 { font: italic 500 min(21vw, 10.5svh)/.94 'Noto Serif', serif; letter-spacing: -.02em; }
.panel h2 span { display: block; }
.panel h2 span + span { padding-left: .55em; }
.meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: min(15px, 3.5vw); white-space: nowrap; letter-spacing: -.01em; }
.price { flex: none; padding: 5px 11px; border-radius: 8px; font-weight: 600; font-size: min(19px, 4.8vw); line-height: 1.3; }

.dock { position: fixed; z-index: 3; inset: auto 0 0; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: var(--cream); color: var(--green); border-radius: 26px 26px 0 0; }
.thumbs { display: flex; justify-content: space-between; max-width: 380px; margin: 0 auto 10px; }
.thumbs button { width: 46px; height: 46px; padding: 3px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s; }
.thumbs button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--green); }
.thumbs img { display: block; width: 100%; border-radius: 50%; }
.cta { display: block; width: 100%; padding: 15px 26px; border-radius: 16px; background: var(--green); color: var(--cream); font-weight: 600; font-size: 17px; line-height: 1.4; }
.cta:active { transform: scale(.98); }

.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100svh - 170px); margin: 0; padding: 0 var(--gutter); border: 0; border-radius: 26px 26px 0 0; background: var(--cream); color: var(--green); overflow: hidden auto; overscroll-behavior: contain; }
.sheet::backdrop { background: none; }
.sheet[open] { animation: rise .42s cubic-bezier(.2, .9, .25, 1); }
@keyframes rise { from { transform: translateY(100%); } }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 8px; background: var(--cream); }
.sheet-head h2 { font: italic 500 30px/1.1 'Noto Serif', serif; letter-spacing: -.01em; }
.close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; background: none; color: inherit; }
fieldset { min-width: 0; padding: 0; border: 0; margin-bottom: 16px; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.sauces { display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 8px; white-space: nowrap; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 13px; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s; }
.sauces .choice { flex-direction: column; justify-content: center; gap: 4px; min-height: 54px; padding: 6px 4px; font-size: min(14px, 3.6vw); }
.extra { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; padding: 7px 8px 7px 12px; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s; }
.extra > span { grid-column: 1 / -1; }
.extra b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.extra.on { background: var(--green); color: var(--cream); cursor: default; }
.stepper { display: flex; align-items: center; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.stepper button { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--cream); color: var(--green); font-weight: 600; font-size: 19px; line-height: 1; }
.stepper button::after { content: ''; position: absolute; inset: -7px -5px; }
.extra:not(.on) :is(output, [data-step="-1"]) { display: none; }
.extra.on b { display: none; }
.extra.on .stepper { grid-column: 1 / -1; justify-content: space-between; }
small { font-size: .7em; }
.extra small { font-size: .82em; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice i { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.choice:has(:checked) { background: var(--green); color: var(--cream); }
.choice:has(:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--cream); }
[hidden] { display: none !important; }
#sheet-name:focus { outline: none; }
.actions { display: flex; gap: 10px; }
.actions .cta { flex: 1; }
.bag { position: relative; flex: none; display: grid; place-items: center; width: 56px; border-radius: 16px; background: #fff; color: var(--green); }
.bag span { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #f7d04b; color: #173a21; font-weight: 600; font-size: 14px; line-height: 24px; text-align: center; }
.lines { padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(30 74 43 / .18); }
.line img { display: block; width: 100%; border-radius: 50%; }
.line h3 { font: italic 500 19px/1.2 'Noto Serif', serif; }
.line p { font-size: 13.5px; line-height: 1.3; }
.line b { font-weight: 600; font-size: 15px; }
.line .stepper button { background: #fff; }
.more { display: block; width: 100%; min-height: 48px; padding: 8px 0; background: none; color: inherit; font-weight: 600; font-size: 15px; text-align: left; }
.delivery { padding: 12px 0 6px; border-top: 1px solid rgb(30 74 43 / .18); font: italic 500 min(15px, 3.8vw)/1.4 'Noto Serif', serif; text-wrap: pretty; }
.total span { display: block; font-size: 13px; line-height: 1.2; }
.total strong { font-weight: 600; font-size: 24px; line-height: 1.2; white-space: nowrap; }
.sheet .cta { flex: 1; min-width: 0; width: auto; padding: 15px 6px; background: var(--green); color: var(--cream); font-size: min(16px, 3.9vw); white-space: nowrap; }
.sheet .cta.waiting { background: #dfe3d0; color: var(--green); }

@media (max-height: 720px) and (max-width: 899px) {
  .top { top: 8px; }
  .panels { top: 58px; }
  .panel h2 { font-size: min(18vw, 9svh); }
  .meta { margin-top: 10px; }
  .price { padding: 3px 10px; font-size: min(17px, 4.8vw); }
  .dock { padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .thumbs { margin-bottom: 6px; }
  .thumbs button { width: 44px; height: 44px; }
  .dock .cta { padding: 11px; }
  .sheet { max-height: calc(100svh - 58px); }
  .sheet-head { padding: 8px 0 4px; }
  fieldset { margin-bottom: 10px; }
}
@media (max-width: 599px) {
  #recap .total { flex: 0 0 100%; display: flex; align-items: baseline; justify-content: space-between; }
}
@media (max-width: 379px) {
  .line { grid-template-columns: 42px 1fr auto; column-gap: 9px; }
  .line h3 { font-size: 17px; }
  .sheet-foot { column-gap: 10px; }
  .total strong { font-size: 20px; }
}
@media (max-width: 339px) {
  .sheet .cta { padding-inline: 2px; font-size: 3.6vw; }
}
@media (max-width: 379px) {
  .extra { padding: 7px 7px 7px 10px; column-gap: 4px; }
  .extra b { font-size: 13px; }
  .stepper button { width: 28px; height: 28px; }
  .stepper output { min-width: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  :root { --gutter: clamp(40px, 5.5vw, 96px); }
  .top { top: 34px; }
  .badge { width: 58px; height: 58px; padding: 9px; }
  .brand { font-size: 27px; }
  .baseline { display: block; margin-left: 8px; padding-left: 18px; border-left: 1px solid currentColor; font-size: 15px; white-space: nowrap; }
  .panels { inset: 23vh auto auto var(--gutter); width: 46vw; }
  .panel h2 { font-size: min(9.4vw, 20vh); }
  .meta { margin-top: 4vh; gap: 18px; font-size: 20px; }
  .price { font-size: 25px; }
  .dock { inset: auto auto 7vh var(--gutter); padding: 0; background: none; color: inherit; }
  .thumbs { max-width: none; margin: 0 0 20px; justify-content: flex-start; gap: 10px; }
  .thumbs button { width: 58px; height: 58px; padding: 4px; }
  .thumbs button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--fg); }
  .cta { width: auto; background: var(--fg); color: var(--bg); padding: 16px 34px; }
  .actions .cta { flex: none; }
  .bag { width: 58px; background: none; box-shadow: inset 0 0 0 2px var(--fg); color: var(--fg); }
  .sheet { inset: 0 auto 0 calc(var(--gutter) - 28px); width: min(540px, 45vw); height: fit-content; max-height: calc(100vh - 40px); margin: auto 0; padding: 6px 28px; border-radius: 28px; }
  .sheet-head h2 { font-size: 38px; }
  .extras { grid-template-columns: 1fr 1fr; }
  .dock { transition: opacity .2s; }
  body:has(.sheet[open]) .dock { opacity: 0; }
  @media (max-height: 720px) { body:has(.sheet[open]) .top { opacity: 0; } }
  @keyframes rise { from { transform: translateX(-30px); opacity: 0; } }
}
