/* Provisional HOT DOOGY palette and type; final identity still needs approval.
   1rem = 10 px on the 1080 x 1920 reference board, scaled to the real screen. */
:root {
 /* Tokens mirrored from management.hotdoogy.com: warm gray paper, near-black ink, yellow accent. */
 --bg: #efefed;
 --surface: #fcfcfb;
 --paper: #fcfcfb;
 --cream: #efefed;
 --well: #e4e4e1;
 --ink: #121212;
 --muted: #4f4f4c;
 --faint: #8e8e89;
 --line: #1111112b;
 --line-soft: #11111117;
 --accent: #fece07;
 --accent-soft: #fff6d7;
 --accent-ink: #121212;
 --red: #121212;
 --red-dark: #272727;
 --mustard: #fece07;
 --danger: #b1412a;
 --danger-soft: #f8e1da;
 --ok: #22735c;
 --ok-soft: #d5eee4;
 --warn: #85580a;
 --warn-soft: #f5ead2;
 --shadow: 0 1px 0 #ffffffb3 inset, 0 2.4rem 4.8rem -3rem #3737374d;
 --shadow-pop: 0 2.4rem 6rem -1.8rem #00000057, 0 0.2rem 0.6rem #00000014;
 --ease: cubic-bezier(.2,.8,.2,1);
 --fast: 150ms;
 --medium: 210ms;
 font-size: min(100vw / 108, 100vh / 192);
 color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #121212; overflow: hidden; }
body {
 font-family: "Avenir Next", Avenir, "SF Pro Rounded", Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
 color: var(--ink);
 -webkit-font-smoothing: antialiased;
 user-select: none;
 -webkit-user-select: none;
 -webkit-touch-callout: none;
 -webkit-tap-highlight-color: transparent;
 display: grid;
 place-items: center;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 0.5rem solid #2a6fdb; outline-offset: 0.3rem; }
button:disabled { cursor: default; }
img { display: block; }

.stage {
 position: relative;
 width: 108rem;
 height: 192rem;
 background: var(--bg);
 overflow: hidden;
 display: grid;
 grid-template-rows: auto 1fr auto;
}
.screen-enter { animation: enter var(--medium) ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(1.6rem); } }

/* Header */
.top {
 min-height: 18rem;
 padding: 3rem 4.8rem 2.4rem;
 display: flex;
 align-items: center;
 gap: 2.4rem;
 background: var(--paper);
 border-bottom: 0.2rem solid var(--line);
}
.top h1 { font-size: 5.2rem; line-height: 1; margin: 0; letter-spacing: -0.03em; font-weight: 650; flex: 1; }
/* Logo sits centered over the 19.4rem category column (header has 4.8rem side padding). */
.brand { display: flex; align-items: center; justify-content: center; width: 19.4rem; margin-left: -4.8rem; flex: none; }
.brand-mark {
 width: 9rem; height: 9rem; border-radius: 50%;
 background: var(--accent); color: var(--ink);
 display: grid; place-items: center;
 font-weight: 900; font-size: 2.2rem; line-height: 0.9; text-align: center; letter-spacing: 0.02em;
}
.brand-name { font-weight: 900; font-size: 3.2rem; letter-spacing: 0.04em; color: var(--ink); }
.chip {
 padding: 1.2rem 2.2rem; border-radius: 4rem; background: var(--cream);
 border: 0.2rem solid var(--line); font-size: 2.4rem; font-weight: 700; min-height: 6.4rem;
}
.demo-flag {
 position: absolute; top: 1.2rem; right: 1.6rem; z-index: 5;
 background: var(--danger); color: #fff; font-weight: 800; letter-spacing: 0.06em;
 font-size: 1.7rem; padding: 0.6rem 1.4rem; border-radius: 0.6rem; pointer-events: none;
}

/* Buttons */
.btn {
 min-height: 8.8rem; padding: 0 4rem; border-radius: 2.2rem;
 font-size: 3.2rem; font-weight: 800; letter-spacing: -0.01em;
 transition: background var(--fast), transform var(--fast), border-color var(--fast);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #f6f6f4; }
.btn-primary:active:not(:disabled) { background: var(--red-dark); }
.btn-primary:disabled { background: #c8c8c3; color: #626262; }
.btn-secondary { background: var(--paper); border: 0.3rem solid var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:active:not(:disabled) { background: #96351f; }
.btn-ghost { background: transparent; border: 0.3rem solid var(--line); }
.btn-back { min-height: 8rem; min-width: 8rem; padding: 0 2.4rem; font-size: 2.6rem; font-weight: 700; border-radius: 1.6rem; border: 0.3rem solid var(--line); background: var(--paper); }
.btn-wide { width: 100%; }

/* Footer */
.foot {
 min-height: 22rem; padding: 2.8rem 4.8rem 3.6rem;
 background: var(--paper); border-top: 0.2rem solid var(--line);
 display: flex; align-items: center; gap: 2.4rem;
 box-shadow: 0 -0.6rem 2rem rgb(34 26 22 / 0.06);
}
.foot .grow { flex: 1; }
.foot.centered { justify-content: center; }
/* Button only: no bar, border or shadow behind it. */
.foot.bare { background: transparent; border-top: 0; box-shadow: none; }
.foot-label { font-size: 2.2rem; color: var(--muted); font-weight: 600; }
.foot-value { font-size: 4.4rem; font-weight: 900; }
.foot-hint { font-size: 2.2rem; color: var(--danger); font-weight: 700; margin-top: 0.6rem; }

.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* K01 attract */
.attract {
 grid-row: 1 / -1; position: relative; display: flex; flex-direction: column;
 justify-content: flex-end; padding: 8rem 6.4rem 12rem; color: #fff;
 background: radial-gradient(120rem 100rem at 50% 25%, #2a2a2a 0%, #121212 55%, #0a0a0a 100%);
}
.attract-brand { flex: 1; display: grid; place-items: center; padding-bottom: 8rem; }
.attract-brand .brand-logo-hero { width: 72rem; height: auto; position: static; filter: drop-shadow(0 2rem 4rem rgb(0 0 0 / 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-1.6rem); } }
.attract h2 { color: var(--accent); font-size: 12rem; line-height: 0.9; margin: 0 0 2.4rem; letter-spacing: -0.04em; font-weight: 900; }
.attract p { font-size: 3.4rem; margin: 0 0 6rem; max-width: 80rem; opacity: 0.92; }
.attract .btn {
 background: var(--accent); color: var(--ink); min-height: 13rem; font-size: 4.4rem; border-radius: 2.4rem;
 box-shadow: 0 1.2rem 3rem rgb(254 206 7 / 0.25);
 animation: bounce 2.4s cubic-bezier(.2,.8,.2,1) infinite;
 transform-origin: 50% 100%;
}
.attract .btn:active { animation: none; transform: scale(0.97); }
/* Periodic hop: still for most of the cycle, then a quick lift and settle. */
@keyframes bounce {
 0%, 70%, 100% { transform: translateY(0) scale(1); }
 78% { transform: translateY(-2.4rem) scale(1.03); }
 86% { transform: translateY(0) scale(0.99); }
 92% { transform: translateY(-0.8rem) scale(1.01); }
}

/* K02 dining mode */
.mode { grid-row: 1 / 3; padding: 8rem 4.8rem 6rem; display: flex; flex-direction: column; gap: 4rem; justify-content: center; }
.mode h2 { font-size: 6.4rem; margin: 0 0 2rem; text-align: center; letter-spacing: -0.03em; }
.mode-option {
 background: var(--paper); border: 0.4rem solid var(--line); border-radius: 3.2rem;
 min-height: 46rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem;
 font-size: 5.6rem; font-weight: 900; box-shadow: var(--shadow);
 transition: border-color var(--fast), background var(--fast);
}
.mode-option svg { width: 18rem; height: 18rem; }
.mode-option small { font-size: 2.6rem; font-weight: 500; color: var(--muted); }
.mode-option[aria-pressed="true"], .mode-option:active { border-color: var(--ink); background: var(--accent-soft); }

/* K03 catalog */
.catalog { display: grid; grid-template-columns: 19.4rem 1fr; min-height: 0; }
.product, .upgrade, .review, .name-step, .checkout { min-height: 0; }
.cats { background: var(--paper); border-right: 0.2rem solid var(--line); padding: 1.6rem 1.2rem 4rem; display: flex; flex-direction: column; gap: 1rem; }
.cat {
 min-height: 11rem; border-radius: 1.6rem; padding: 1.2rem; font-size: 2.2rem; font-weight: 800; line-height: 1.15;
 text-align: left; border: 0.3rem solid transparent; color: var(--muted);
 transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.cat[aria-current="true"] { background: var(--ink); color: var(--accent); }
.products { padding: 3.2rem 3.2rem 6rem; }
.products h2 { font-size: 4.8rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.products h3 { font-size: 3rem; margin: 0 0 2rem; color: var(--muted); }
/* Any subgroup heading that follows a grid gets breathing room. */
.products .grid + h3 { margin-top: 4.8rem; }
.products .lead { font-size: 2.4rem; color: var(--muted); margin: 0 0 2.4rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.card {
 background: #fff; border-radius: 2.4rem; overflow: hidden; text-align: left;
 border: 0.3rem solid var(--line); padding: 0; display: flex; flex-direction: column; min-height: 50rem;
 transition: border-color var(--fast), transform var(--fast);
}
.card:active:not(:disabled) { border-color: var(--ink); transform: scale(0.985); }
.card-photo { position: relative; width: 100%; height: 30rem; flex-shrink: 0; background: #fff; overflow: hidden; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-body { padding: 2rem 2.4rem 2.4rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.card-name { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.card-price { font-size: 2.8rem; font-weight: 700; margin-top: auto; }
.card-price small { font-size: 2rem; color: var(--muted); font-weight: 600; }
.card.is-out { opacity: 0.55; }
.badge { align-self: flex-start; font-size: 1.9rem; font-weight: 800; padding: 0.5rem 1.2rem; border-radius: 0.8rem; background: var(--ink); color: #fff; }
.no-photo {
 width: 100%; height: 100%; display: grid; place-items: center; padding: 2.4rem; text-align: center;
 font-weight: 900; font-size: 3.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em;
 background: repeating-linear-gradient(135deg, var(--accent) 0 2.4rem, #f5c400 2.4rem 4.8rem);
}
.skeleton { background: linear-gradient(90deg, #e4e4e1 0%, #f1f1ef 50%, #e4e4e1 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 2.4rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.cart-bar { display: flex; align-items: center; gap: 2rem; }
.cart-icon { position: relative; width: 8.8rem; height: 8.8rem; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.cart-icon svg { width: 4.4rem; height: 4.4rem; }
.cart-count { position: absolute; top: -0.6rem; right: -0.6rem; min-width: 4rem; height: 4rem; border-radius: 2rem; background: var(--accent); color: var(--ink); font-size: 2.2rem; font-weight: 800; display: grid; place-items: center; padding: 0 0.8rem; }
.bump { animation: bump 400ms ease-out; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* K04 product */
.product { min-height: 0; }
.product-hero { display: grid; grid-template-columns: 34rem 1fr; gap: 3.2rem; padding: 3.6rem 4.8rem; background: #fff; border-bottom: 0.2rem solid var(--line); align-items: center; }
.product-hero .card-photo { height: 30rem; border-radius: 2.4rem; }
.product-hero h2 { font-size: 5.6rem; line-height: 1; margin: 0 0 1.4rem; letter-spacing: -0.02em; }
.product-hero p { font-size: 2.6rem; color: var(--muted); margin: 0; line-height: 1.3; }
.steps { padding: 3.2rem 4.8rem 6rem; display: flex; flex-direction: column; gap: 4rem; }
.step-head { display: flex; align-items: baseline; gap: 1.6rem; margin-bottom: 2rem; }
.step-num { width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; flex: none; align-self: center; }
.step-title { font-size: 3.6rem; font-weight: 900; flex: 1; }
.rule { font-size: 2.2rem; font-weight: 700; padding: 0.6rem 1.4rem; border-radius: 0.8rem; background: var(--well); }
.rule.is-required { background: var(--warn-soft); color: var(--warn); }
.rule.is-done { background: var(--ok-soft); color: var(--ok); }
.step.is-missing .step-title { color: var(--danger); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.option {
 min-height: 13rem; border-radius: 2rem; background: var(--paper); border: 0.4rem solid var(--line);
 padding: 2rem 2.4rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; text-align: left;
 transition: border-color var(--fast), background var(--fast);
}
.option-name { font-size: 3rem; font-weight: 800; }
.option-price { font-size: 2.4rem; color: var(--muted); font-weight: 600; margin-top: 0.4rem; }
.check { width: 5.2rem; height: 5.2rem; border-radius: 50%; border: 0.35rem solid var(--line); display: grid; place-items: center; }
.check svg { width: 3rem; height: 3rem; opacity: 0; }
.option[aria-checked="true"] { border-color: var(--ink); background: var(--accent-soft); }
.option[aria-checked="true"] .check { background: var(--ink); border-color: var(--ink); }
.option[aria-checked="true"] .check svg { opacity: 1; }
.option:disabled { opacity: 0.5; }
.option.has-photo { grid-template-columns: 9rem 1fr auto; }
.option.has-photo img, .option.has-photo .no-photo { width: 9rem; height: 9rem; border-radius: 1.2rem; object-fit: cover; font-size: 1.6rem; }

.qty { display: flex; align-items: center; gap: 0.8rem; background: var(--cream); border-radius: 2rem; padding: 0.8rem; }
.qty button { width: 8.8rem; height: 8.8rem; border-radius: 1.6rem; background: var(--paper); border: 0.3rem solid var(--line); font-size: 4.4rem; font-weight: 700; line-height: 1; }
.qty button:disabled { opacity: 0.35; }
.qty output { min-width: 6rem; text-align: center; font-size: 3.6rem; font-weight: 900; }
.qty.small button { width: 7.2rem; height: 7.2rem; font-size: 3.6rem; }
.qty.small output { font-size: 3rem; min-width: 5rem; }

/* K04A upgrade */
.upgrade { padding: 4rem 4.8rem 6rem; display: flex; flex-direction: column; gap: 3.2rem; }
.upgrade-hero { text-align: center; }
.upgrade-hero h2 { font-size: 7.2rem; line-height: 1; margin: 0 0 1.6rem; letter-spacing: -0.03em; }
.upgrade-hero p { font-size: 2.8rem; color: var(--muted); margin: 0; }
.base-summary { display: grid; grid-template-columns: 18rem 1fr auto; gap: 2.4rem; align-items: center; background: var(--paper); border-radius: 2.4rem; border: 0.3rem solid var(--line); padding: 2rem; }
.base-summary .card-photo { height: 18rem; border-radius: 1.6rem; }
.base-summary strong { font-size: 3.2rem; display: block; }
.base-summary span { font-size: 2.3rem; color: var(--muted); }
.base-summary .price { font-size: 3.2rem; font-weight: 800; }
.offer { background: var(--paper); border: 0.4rem solid var(--line); border-radius: 2.8rem; padding: 3.2rem; text-align: left; display: flex; flex-direction: column; gap: 1.2rem; width: 100%; transition: border-color var(--fast), background var(--fast); }
.offer[aria-checked="true"] { border-color: var(--ink); background: var(--accent-soft); }
.offer-head { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.offer-title { font-size: 4rem; font-weight: 900; }
.offer-desc { font-size: 2.6rem; color: var(--muted); }
.offer-add { font-size: 3rem; font-weight: 900; color: var(--ink); background: var(--accent); padding: 0.8rem 2rem; border-radius: 1.2rem; white-space: nowrap; }
.demo-note { font-size: 2rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 1rem; padding: 1rem 1.6rem; }
.real-note { font-size: 2rem; font-weight: 700; color: var(--ok); }
.offer-components { display: flex; flex-direction: column; gap: 2.4rem; margin-top: 1.6rem; }
.offer-components h4 { font-size: 3rem; margin: 0 0 1.4rem; display: flex; gap: 1.4rem; align-items: center; }
.compare { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; font-size: 2.8rem; background: var(--paper); border-radius: 2.4rem; padding: 2.8rem 3.2rem; border: 0.3rem solid var(--line); }
.compare .total { font-weight: 900; font-size: 3.6rem; }
.compare .num { text-align: right; font-weight: 700; }

/* K06 review */
.review { padding: 3.2rem 4.8rem 6rem; display: flex; flex-direction: column; gap: 2.4rem; }
.line { position: relative; background: var(--paper); border-radius: 2.4rem; border: 0.3rem solid var(--line); padding: 2.4rem; display: grid; grid-template-columns: 16rem 1fr; gap: 2.4rem; }
.line-name { padding-right: 9rem; }
/* Trash control in the card corner, with a full-size touch target. */
.line-remove { position: absolute; top: 1.6rem; right: 1.6rem; width: 7.2rem; height: 7.2rem; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--cream); transition: background var(--fast), color var(--fast); }
.line-remove svg { width: 3.4rem; height: 3.4rem; }
.line-remove:active { background: var(--danger-soft); color: var(--danger); }
.line.is-flagged { border-color: var(--warn); background: var(--warn-soft); }
.line .card-photo { height: 16rem; border-radius: 1.6rem; }
.line-name { font-size: 3.2rem; font-weight: 900; }
.line-mods { font-size: 2.3rem; color: var(--muted); margin: 0.8rem 0 0; padding: 0; list-style: none; line-height: 1.4; }
.line-mods .is-upgrade { color: var(--ink); font-weight: 700; }
.line-row { display: flex; align-items: center; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.line-price { margin-left: auto; font-size: 3.4rem; font-weight: 900; }
.line-actions { display: flex; gap: 1.2rem; }
.line-actions .btn { min-height: 7.2rem; font-size: 2.4rem; padding: 0 2.4rem; }
.line-alert { font-size: 2.3rem; font-weight: 700; color: var(--warn); margin-top: 1rem; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem 2rem; font-size: 2.6rem; }
.summary .num { text-align: right; font-weight: 700; }
.summary .total { font-size: 4rem; font-weight: 900; }
.summary .muted { color: var(--muted); font-size: 2.2rem; }
.foot.stack { flex-direction: column; align-items: stretch; gap: 2.4rem; }
.foot .row { display: flex; gap: 2.4rem; }
.foot .row .btn { flex: 1; }

.empty { display: flex; flex-direction: column; gap: 3.2rem; align-items: center; justify-content: center; text-align: center; padding: 8rem; }
.empty h2 { font-size: 6rem; margin: 0; }
.empty p { font-size: 3rem; color: var(--muted); margin: 0; }

/* K07 name */
.name-step { padding: 6rem 4.8rem; display: flex; flex-direction: column; gap: 3.2rem; }
.name-step h2 { font-size: 6rem; margin: 0; }
.name-step p { font-size: 2.8rem; color: var(--muted); margin: 0; }
.name-field { min-height: 12rem; border-radius: 2rem; border: 0.4rem solid var(--ink); background: var(--paper); font-size: 5.6rem; font-weight: 800; padding: 0 3.2rem; display: flex; align-items: center; }
.name-field .caret { width: 0.4rem; height: 6rem; background: var(--ink); margin-left: 0.4rem; animation: blink 1s steps(1) infinite; }
.name-field .placeholder { color: var(--faint); font-weight: 600; }
@keyframes blink { 50% { opacity: 0; } }
.keyboard { display: flex; flex-direction: column; gap: 1.2rem; margin-top: auto; }
.keyboard .krow { display: flex; gap: 1.2rem; justify-content: center; }
.key { flex: 0 0 9rem; height: 10rem; border-radius: 1.4rem; background: var(--paper); border: 0.3rem solid var(--line); font-size: 3.6rem; font-weight: 800; }
.key:active { background: var(--accent-soft); border-color: var(--ink); }
.key.wide { flex: 0 0 auto; padding: 0 3rem; font-size: 2.8rem; }

/* K08 / K09 */
.checkout { padding: 4.8rem; display: flex; flex-direction: column; gap: 3.2rem; }
.checkout h2 { font-size: 6rem; margin: 0; }
.panel { background: var(--paper); border-radius: 2.4rem; border: 0.3rem solid var(--line); padding: 3.2rem; }
.demo-banner { background: var(--danger); color: #fff; border-radius: 2.4rem; padding: 3.2rem; font-size: 2.8rem; line-height: 1.35; }
.demo-banner strong { color: #fff; display: block; font-size: 3.4rem; margin-bottom: 0.8rem; letter-spacing: 0.02em; }
.pay-slot { border: 0.4rem dashed var(--faint); border-radius: 2.4rem; padding: 4rem; text-align: center; font-size: 2.8rem; color: var(--muted); }
.finish { grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; padding: 8rem 6rem; text-align: center; }
.finish .stamp { font-size: 4rem; font-weight: 900; letter-spacing: 0.1em; color: #fff; background: var(--danger); padding: 2rem 4rem; border-radius: 1.6rem; }
.finish h2 { font-size: 8rem; line-height: 1; margin: 0; letter-spacing: -0.03em; }
.finish p { font-size: 3rem; color: var(--muted); margin: 0; max-width: 84rem; line-height: 1.35; }

/* Unavailable / loading */
.status { grid-row: 1 / -1; display: flex; flex-direction: column; gap: 3.2rem; align-items: center; justify-content: center; padding: 8rem; text-align: center; }
.status h2 { font-size: 6.4rem; margin: 0; }
.status p { font-size: 3rem; color: var(--muted); margin: 0; }
.spinner { width: 10rem; height: 10rem; border-radius: 50%; border: 1rem solid var(--well); border-top-color: var(--ink); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal and toast */
.overlay { position: fixed; inset: 0; background: rgb(18 18 18 / 0.62); display: grid; place-items: center; z-index: 20; animation: fade var(--medium) ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(88rem, 92vw); background: var(--paper); border-radius: 3.2rem; padding: 5.6rem 4.8rem 4.8rem; display: flex; flex-direction: column; gap: 2.8rem; box-shadow: var(--shadow-pop); animation: pop var(--medium) ease-out; }
@keyframes pop { from { transform: translateY(2rem) scale(0.98); opacity: 0; } }
.modal h2 { font-size: 5.2rem; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
.modal p { font-size: 2.8rem; color: var(--muted); margin: 0; line-height: 1.35; }
.modal .actions { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 1.2rem; }
.countdown { font-size: 9rem; font-weight: 900; color: var(--danger); text-align: center; }
.toast {
 position: fixed; left: 50%; bottom: calc(50% - 96rem + 25rem); z-index: 15;
 transform: translate(-50%, 2rem); opacity: 0; pointer-events: none;
 background: var(--ink); color: #fff; padding: 2.4rem 4rem; border-radius: 2rem; font-size: 3rem; font-weight: 700;
 display: flex; gap: 1.6rem; align-items: center; transition: opacity var(--medium), transform var(--medium);
 max-width: 96rem;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 4rem; height: 4rem; color: var(--accent); flex: none; }

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

.upgrade-edit { font-size: 2.6rem; line-height: 1.5; }
.btn-row { display: flex; gap: 1.6rem; margin-top: 2rem; }
.lead-big { font-size: 2.8rem; color: var(--muted); }
.option-name-sm { font-size: 2.6rem; }
.offer-head { text-align: left; width: 100%; }
.finish .btn { min-width: 48rem; }
.brand-mark-lg { width: 14rem; height: 14rem; font-size: 3.4rem; }
.change-list { font-size: 2.8rem; line-height: 1.6; margin: 0; }

.brand-logo { width: 13.2rem; height: auto; display: block; }
.brand-logo-lg { width: 32rem; }

/* K04A offer blocks */
.offer-block { display: flex; flex-direction: column; gap: 2rem; }
.offer-block-title { font-size: 3.4rem; margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.size-cards { display: grid; gap: 2rem; }
.size-cards.cols-2 { grid-template-columns: 1fr 1fr; }
.size-cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.size-card {
 position: relative; background: var(--paper); border: 0.4rem solid var(--line); border-radius: 2.8rem; padding: 2.4rem 2rem 2.4rem;
 display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
 transition: border-color var(--fast), background var(--fast), transform var(--fast);
}
.size-card:active { transform: scale(0.98); }
.size-card .check { position: absolute; top: 1.6rem; left: 1.6rem; }
.size-card[aria-checked="true"] { border-color: var(--ink); background: var(--accent-soft); }
.size-card[aria-checked="true"] .check { background: var(--ink); border-color: var(--ink); }
.size-card[aria-checked="true"] .check svg { opacity: 1; }
.size-card.is-current { background: var(--well); border-color: transparent; color: var(--muted); }
.size-photo { width: 100%; aspect-ratio: 1; border-radius: 1.8rem; overflow: hidden; background: var(--paper); display: grid; place-items: center; margin-bottom: 1rem; }
.size-photo img { width: 100%; height: 100%; object-fit: contain; }
.size-cards.cols-3 .size-card:nth-child(2) .size-photo { transform: scale(1.08); }
.size-cards .size-card:nth-child(3) .size-photo { transform: scale(1.16); }
.size-name { font-size: 3.2rem; font-weight: 900; }
.size-price { font-size: 2.6rem; font-weight: 700; }
/* Add-on badge in the brand yellow: an invitation, not a warning. */
.size-add { font-size: 2.4rem; font-weight: 800; color: var(--ink); background: var(--accent); padding: 0.6rem 1.6rem; border-radius: 1rem; margin-top: 0.6rem; }
.size-card.is-current .size-add { background: transparent; color: var(--muted); }
.meal-offer .offer-head { grid-template-columns: auto 1fr auto; grid-template-areas: "check preview preview" "check text add"; row-gap: 2.4rem; }
.meal-offer .offer-head > .check { grid-area: check; }
.meal-offer .offer-head > .meal-preview { grid-area: preview; }
.meal-offer .offer-head > .meal-text { grid-area: text; }
.meal-offer .offer-head > .offer-add { grid-area: add; align-self: end; }
.meal-preview { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.meal-photo { width: 16rem; height: 16rem; border-radius: 2rem; overflow: hidden; background: var(--well); display: grid; place-items: center; }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; }
.meal-photo .no-photo { font-size: 1.4rem; padding: 0.6rem; }
.meal-preview .plus { font-size: 2.8rem; font-weight: 900; color: var(--muted); }

/* Language switch: one white pill, segmented; the active segment is ink. */
.lang-switch { position: absolute; top: 4rem; right: 4.8rem; display: flex; gap: 0.4rem; padding: 0.6rem; border-radius: 99rem; background: var(--surface); box-shadow: var(--shadow-pop); z-index: 2; }
.lang {
 display: grid; place-items: center; width: 8rem; min-height: 7.2rem; border-radius: 99rem;
 background: transparent; transition: background var(--fast);
}
.lang svg { width: 4.2rem; height: 3rem; border-radius: 0.5rem; }
.lang[aria-pressed="true"] { background: var(--ink); }

/* Discreet staff entry: the brand mark is a button without button styling. */
.brand, .brand-hero { padding: 0; background: none; border: 0; border-radius: 1.6rem; }
.brand-hero { display: block; }
.brand:focus-visible, .brand-hero:focus-visible { outline: 0.5rem solid #2a6fdb; outline-offset: 0.6rem; }

/* Resting-screen media toggles and closed state */
.attract.no-motion .brand-logo-hero { animation: none; }
.attract.no-hop .btn { animation: none; }
/* Lifts content above the backdrop; the language pill keeps its own absolute corner position. */
.attract > :not(.lang-switch) { position: relative; }
.attract .showcase {
 position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 0.6rem;
 opacity: 0.2; filter: saturate(0.6); pointer-events: none;
}
.attract .showcase img { width: 100%; height: 100%; object-fit: cover; animation: showcase 18s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.5s); }
@keyframes showcase { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.attract.no-motion .showcase img { animation: none; }
.attract.is-closed h2 { color: #fff; }
.closed-pill { background: var(--well); color: var(--ink); min-height: 13rem; display: grid; place-items: center; border-radius: 2.4rem; font-size: 4rem; font-weight: 900; }

/* Operator screens: setup and sign-in share the attract backdrop with a paper card. */
.auth {
 grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.8rem; padding: 6rem 4.8rem;
 background: radial-gradient(120rem 100rem at 50% 20%, #2a2a2a 0%, #121212 55%, #0a0a0a 100%);
}
.auth-card { width: 100%; max-width: 92rem; display: flex; flex-direction: column; gap: 2.4rem; padding: 4.8rem; }
.auth-card h2 { font-size: 5.2rem; margin: 0; letter-spacing: -0.03em; line-height: 1; }
.auth-card .lead, .settings-body .lead { font-size: 2.6rem; color: var(--muted); margin: 0; line-height: 1.35; }
input, select, textarea { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; }
.field { display: grid; gap: 0.8rem; }
.field > span { font-size: 2.4rem; font-weight: 700; }
.field small, .switch-text small { display: block; font-size: 2.1rem; color: var(--muted); font-weight: 500; line-height: 1.3; margin-top: 0.3rem; }
.input {
 min-height: 8.8rem; width: 100%; border-radius: 1.6rem; border: 0.3rem solid var(--line); background: var(--paper); padding: 0 2.4rem;
 font-size: 3rem; font-weight: 600; appearance: none; -webkit-appearance: none;
}
.input:focus-visible { outline: 0.5rem solid #2a6fdb; outline-offset: 0.2rem; border-color: var(--ink); }
.input:invalid:not(:placeholder-shown) { border-color: var(--warn); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.notice { padding: 2rem 2.4rem; border-radius: 1.6rem; font-size: 2.4rem; font-weight: 700; line-height: 1.35; }
.notice.is-error, .form-error { background: var(--danger-soft); color: var(--danger); }
.notice.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-error { padding: 1.6rem 2rem; border-radius: 1.2rem; font-size: 2.4rem; font-weight: 700; }
.store-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Pairing code: six visible boxes, the next one highlighted. */
.pair .auth-card { align-items: stretch; text-align: center; }
.pair .auth-card h2 { text-align: center; }
.code-boxes { display: flex; justify-content: center; gap: 1.6rem; }
.code-box { width: 10rem; height: 12rem; border-radius: 1.6rem; border: 0.4rem solid var(--line); background: var(--cream); display: grid; place-items: center; font-size: 6rem; font-weight: 900; letter-spacing: 0; }
.code-box.is-next { border-color: var(--ink); background: var(--paper); }

/* PIN prompt */
.pin-modal { align-items: stretch; text-align: center; }
.pin-error:empty { display: none; }
.pin-dots { display: flex; justify-content: center; gap: 2.4rem; min-height: 4rem; }
.pin-dot { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0.4rem solid var(--ink); transition: background var(--fast); }
.pin-dot.is-on { background: var(--ink); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pin-pad .key { flex: none; width: 100%; height: 12rem; font-size: 4.4rem; }
.pin-pad .key.wide { font-size: 2.8rem; padding: 0; }

/* Settings: same catalog frame (section rail left, content right). */
.settings-body { display: flex; flex-direction: column; gap: 2.4rem; }
.settings-body h2 { font-size: 4.8rem; margin: 0; letter-spacing: -0.02em; }
.settings-body h3 { font-size: 3rem; margin: 0; }
.settings-body form, .section-body { display: flex; flex-direction: column; gap: 2.4rem; }
.settings-body .panel { display: flex; flex-direction: column; gap: 1.6rem; }
.save-row { display: flex; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.4rem; font-size: 2.6rem; color: var(--muted); align-items: baseline; }
.kv strong { color: var(--ink); font-weight: 800; }
.status-line { font-size: 2.6rem; font-weight: 700; display: flex; align-items: center; gap: 1.2rem; }
.status-card p { font-size: 2.4rem; color: var(--muted); margin: 0; line-height: 1.4; }
.status-card.is-warn { border-color: var(--warn); }
.status-card.is-ok { border-color: var(--ok); }
.status-card .dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--danger); flex: none; }
.switch { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem; min-height: 8.8rem; padding: 1.6rem 2.4rem; background: var(--paper); border: 0.3rem solid var(--line); border-radius: 1.6rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 8rem; height: 4.4rem; border-radius: 99rem; background: var(--well); border: 0.3rem solid var(--line); position: relative; transition: background var(--fast); flex: none; }
.switch-track::after { content: ''; position: absolute; top: 0.3rem; left: 0.3rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0.2rem 0.6rem #00000033; transition: transform var(--fast); }
.switch input:checked + .switch-track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(3.6rem); background: var(--accent); }
.switch input:disabled ~ * { opacity: 0.5; }
.switch:has(input:focus-visible) { outline: 0.5rem solid #2a6fdb; outline-offset: 0.3rem; }
.switch-text { font-size: 2.8rem; font-weight: 700; }
.switch.small { min-height: 7.2rem; padding: 1.2rem 2rem; }
.switch.small .switch-text { font-size: 2.4rem; }
/* One grid for all days so the columns line up; the day column fits the longest name
   (PT: "segunda-feira") and the time inputs absorb the difference without passing the panel edge. */
.hours { display: grid; grid-template-columns: minmax(14.4rem, max-content) auto minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 1.2rem; align-items: center; }
.hours-row { display: contents; }
/* Opens/Closes labels sit once above the columns, so day, switch and times share one baseline per row. */
.hours-head { font-size: 2rem; color: var(--muted); font-weight: 600; margin-bottom: -0.8rem; }
.hours-row .day { font-size: 2.6rem; font-weight: 800; }
.hours-row .switch { min-height: 7.2rem; padding: 1rem 1.4rem; gap: 1.2rem; }
.hours-row .switch-text { font-size: 2.3rem; }
.hours-row .time .input { font-size: 2.4rem; padding: 0 1.2rem; letter-spacing: 0; }
.time { display: grid; gap: 0.4rem; min-width: 0; }
.time .input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 7.2rem; font-size: 2.6rem; padding: 0 1.6rem; }
.printer-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.6rem 0; border-top: 0.2rem solid var(--line-soft); }
.printer-row strong { font-size: 2.8rem; display: block; }
.printer-row small { font-size: 2.2rem; color: var(--muted); }
.printer-row.is-current { background: var(--accent-soft); margin: 0 -2rem; padding: 1.6rem 2rem; border-radius: 1.2rem; }
.printer-row .btn { min-height: 7.2rem; font-size: 2.4rem; padding: 0 2.4rem; flex: none; }
.tree { display: flex; flex-direction: column; gap: 2rem; }
.tree-cat { background: var(--paper); border: 0.3rem solid var(--line); border-radius: 1.6rem; overflow: hidden; }
.tree-cat > .switch { border: 0; border-radius: 0; background: transparent; }
.tree-items { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem 2rem; padding: 0.8rem 2.4rem 2rem; border-top: 0.2rem solid var(--line); }
.menu-item-check { display: flex; align-items: center; gap: 1.6rem; min-height: 8rem; padding: 1rem 0; cursor: pointer; font-size: 2.4rem; font-weight: 700; line-height: 1.3; }
.menu-item-check input { appearance: auto; width: 3.6rem; height: 3.6rem; margin: 0; flex: 0 0 3.6rem; accent-color: var(--ink); cursor: pointer; }
.menu-item-check span { overflow-wrap: anywhere; }
.menu-item-check:has(input:focus-visible) { outline: 0.4rem solid #2a6fdb; outline-offset: 0.3rem; border-radius: 0.5rem; }
.tree-children { display: grid; gap: 1.6rem; padding: 0 2.4rem 2.4rem; }
.tree-cat.is-hidden > .tree-items, .tree-cat.is-hidden > .tree-children { opacity: 0.5; }
.unpair-button { align-self: flex-start; justify-self: start; }
.btn-row .btn { min-height: 7.6rem; font-size: 2.6rem; }

.hours-closed { grid-column: 3 / span 2; align-self: center; padding: 1.6rem 2rem; font-size: 2.4rem; color: var(--muted); }
.hours-row [hidden] { display: none; }

.hours-row .day-toggle { grid-template-columns: auto; justify-content: center; gap: 0; }

.autosave-status { font-size: 2.2rem; max-width: 40%; color: var(--muted); }
.autosave-status[role="alert"] { color: var(--danger); }
.autosave-status:empty { display: none; }

.hours-row .day-toggle { border: 0; background: transparent; padding: 1rem; }
.hours-head, .hours-closed { text-align: center; }
.time-button { text-align: center; cursor: pointer; font-weight: 700; }
.time-picker { display: grid; grid-template-columns: 1fr auto 1fr 1.2fr; align-items: center; gap: 1.6rem; }
.time-picker .input { min-width: 0; text-align: center; font-size: 4rem; padding: 1.6rem; min-height: 10rem; }
.time-picker > span { font-size: 4rem; font-weight: 800; }

