/* Layout: full-bleed toon outlet; HUD pieces sit on top like die-cut stickers. One committed dusk look (no light/dark switch: the set is painted). */
:root {
  --dusk: #2a2343;
  --ink: #2b1d33;
  --cream: #ffeccd;
  --paper: #fff6e6;
  --green: #265238;
  --red: #e31f2d;
  --hot: #c31a26;
  --lime: #9aca3b;
  --yellow: #ffcc08;
  --lilac: #cfc4e6;
  --veg: #1f8a3b;
  --font-sans: Gabarito, "Trebuchet MS", system-ui, sans-serif;
  --font-hand: Caveat, "Comic Sans MS", cursive;
  --font-script: Yellowtail, cursive;
  --sheet-h: 0px;
  color-scheme: dark;
}
html, body { height: 100%; }
body { background: #3a2a24; color: var(--cream); font-family: var(--font-sans); overflow: hidden; -webkit-tap-highlight-color: transparent; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
button { font-family: var(--font-sans); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.top > * { pointer-events: auto; }
.name { background: var(--green); color: var(--cream); border: 3px solid var(--ink); border-radius: 16px 12px 18px 10px;
  padding: 6px 12px 8px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg); }
.name small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.name b { font-size: 17px; font-weight: 900; text-transform: uppercase; }
.name i { font-family: var(--font-hand); font-style: normal; font-weight: 700; font-size: 20px; color: var(--yellow); margin-left: 4px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: 800 13px/1 var(--font-sans); color: var(--ink); background: var(--cream); border: 3px solid var(--ink);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="false"] { background: var(--lilac); }
.chip.icon { padding: 5px 9px; display: inline-grid; place-items: center; }
.chip.icon svg { display: block; }
.chip.small { font-size: 12px; padding: 7px 10px; box-shadow: 2px 2px 0 var(--ink); border-width: 2.5px; }

/* step dots */
.steps { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 66px);
  display: flex; gap: 4px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px; box-shadow: 3px 3px 0 var(--ink); max-width: calc(100% - 32px); }
.steps { align-items: center; color: var(--ink); }
.steps span { font: 900 14px/1 var(--font-sans); letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.steps span.on { background: var(--red); color: #fff; }
.steps span.count { font: 800 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #4f465c; padding: 7px 10px 7px 4px; }
.steps span.count.ask { font: 800 14px/1 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink); padding: 7px 12px 7px 6px; }

/* ---------- labels anchored to the 3D scene ---------- */
#tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, -100%); cursor: pointer; white-space: nowrap;
  font: 900 15px/1 var(--font-sans); color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px;
  padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); }
.tag.big { font-size: 17px; padding: 12px 18px; background: var(--red); color: #fff; }
.tag.bob { animation: bob 1.4s ease-in-out infinite; }
.tag.side { transform: translate(-100%, -50%); }
.tag.mid { transform: translate(-50%, -50%); }
.tag.choice { background: var(--paper); }
.tag.choice[aria-pressed="true"] { background: var(--yellow); } /* only the picked size is yellow */
.fab.start { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); font-size: 19px; padding: 17px 26px; }
@keyframes bob { 0%, 100% { margin-top: 0 } 50% { margin-top: -7px } }
.pantag { position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, -50%); cursor: pointer; max-width: 120px; text-align: center;
  font: 800 11px/1.15 var(--font-sans); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 5px 7px; box-shadow: 2px 2px 0 var(--ink); }
.pantag.above { transform: translate(-50%, calc(-100% - 2px)); }
.pantag.below { transform: translate(-50%, 2px); }
.pantag[aria-pressed="true"] { background: var(--lime); }
.pantag[aria-pressed="true"]::before { content: "✓ "; }
.itemtag { position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, 0); cursor: pointer; text-align: center;
  font: 900 13px/1.1 var(--font-sans); color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.itemtag small { display: block; font-weight: 700; font-size: 11px; color: #534a3e; margin-top: 2px; }
.itemtag[aria-pressed="true"] { background: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .tag.bob { animation: none; } }

/* ---------- the attendant's speech bubble ---------- */
#bubble { position: fixed; z-index: 4; left: 0; top: 0; width: min(330px, calc(100vw - 32px)); background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px 18px 18px 6px; padding: 12px 14px 12px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
  font: 700 16px/1.3 var(--font-sans); }
#bubble .who { display: block; font: 800 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); margin-bottom: 5px; }
#bubble::after { content: ""; position: absolute; left: 18px; bottom: -13px; width: 18px; height: 18px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg); }
#bubble.docked::after { display: none; }
#bubble.docked { border-radius: 18px; }

/* ---------- what the attendant says: same slot as the choices, never over his face ---------- */
#talk .who { display: block; font: 800 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); }
#talk p { margin: 8px 0 4px; font: 700 18px/1.35 var(--font-sans); color: var(--ink); min-height: 2.7em; cursor: pointer; }
.tag.quiet { font: 800 12px/1 var(--font-sans); padding: 7px 10px; background: var(--paper); border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.backbtn { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  font: 900 15px/1 var(--font-sans); color: var(--ink); background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 12px 18px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }

/* ---------- bottom sheet with the choices ---------- */
#sheet, #talk { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: min(620px, 100%); max-height: 46%;
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: 0 -4px 0 rgba(43, 29, 51, .35); padding-bottom: env(safe-area-inset-bottom, 0px); }
#sheet .head, #talk .head { padding: 14px 16px 6px; }
#sheet h2 { margin: 0; font: 900 19px/1.15 var(--font-sans); }
#sheet p.sub { margin: 4px 0 0; font: 600 13px/1.35 var(--font-sans); color: #534a3e; }
#sheet .opts { overflow: auto; padding: 8px 16px 10px; display: flex; flex-wrap: wrap; gap: 8px; overscroll-behavior: contain; }
#sheet .foot, #talk .foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px 14px; border-top: 2px dashed rgba(43, 29, 51, .25); }
#sheet .foot .note { font: 700 13px/1.3 var(--font-sans); color: #534a3e; }
.opt { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; cursor: pointer; text-align: left;
  font: 800 14px/1.15 var(--font-sans); color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); }
.opt small { display: block; font-weight: 700; font-size: 11px; color: #534a3e; }
.opt[aria-pressed="true"] { background: var(--yellow); }
.opt[disabled] { opacity: .55; cursor: default; }
.opt .dm { width: 13px; height: 13px; flex: none; }
.opt.wide { flex: 1 1 140px; justify-content: center; text-align: center; min-height: 54px; font-size: 16px; }
.primary { font: 900 16px/1 var(--font-sans); color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 999px;
  padding: 13px 22px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.primary[disabled] { background: #e4dce2; color: #5d5466; box-shadow: none; cursor: default; }
.ghost { font: 800 14px/1 var(--font-sans); color: var(--ink); background: transparent; border: 0; padding: 10px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.navrow { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 6px; }
.navrow .ghost { padding: 4px 0; font-size: 13px; }
.navrow #sheet-exit { margin-left: auto; color: var(--hot); }

/* ---------- explore controls ---------- */
.fab { position: fixed; z-index: 5; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  font: 900 17px/1 var(--font-sans); color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 999px; padding: 15px 20px;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.fab .ic { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--yellow); color: var(--ink); border-radius: 50%; font-size: 14px; border: 2px solid var(--ink); }
.pad { position: fixed; z-index: 5; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; gap: 8px; align-items: flex-end; }
.dpad { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); gap: 4px; }
.pad button { font: 900 17px/1 var(--font-sans); color: var(--ink); background: var(--cream); border: 3px solid var(--ink);
  border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; padding: 0; width: 40px; height: 40px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pad button:active, .pad button.held { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--yellow); }
.pad .up { grid-area: 1 / 2; } .pad .left { grid-area: 2 / 1; } .pad .reset { grid-area: 2 / 2; } .pad .right { grid-area: 2 / 3; } .pad .down { grid-area: 3 / 2; }
.pad .reset { font-size: 13px; background: var(--lilac); }
.pad.zoom-only .left, .pad.zoom-only .right, .pad.zoom-only .reset { visibility: hidden; } /* outside: zoom in and out only */
.hint { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%) rotate(-2deg); bottom: calc(env(safe-area-inset-bottom, 0px) + 140px);
  font-family: var(--font-hand); font-weight: 700; font-size: 22px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); pointer-events: none; white-space: nowrap; transition: opacity .6s; }

.hint.on-board { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); transform: translateX(-50%); padding: 3px 14px 5px; border-radius: 999px; background: var(--ink); text-shadow: none; font-size: 20px; }

/* ---------- dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px; background: rgba(30, 20, 40, .45); }
.card { width: min(400px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--paper); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 20px 18px 18px; }
.card h2 { margin: 0; font: 900 24px/1.1 var(--font-sans); }
.card h2 em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--red); font-size: 30px; }
.card p { margin: 8px 0 0; font: 600 14px/1.4 var(--font-sans); color: #5d5446; }
.card label { display: block; margin-top: 16px; font: 800 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.card input { width: 100%; margin-top: 6px; font: 800 20px/1 var(--font-sans); color: var(--ink); background: #fff; border: 3px solid var(--ink);
  border-radius: 12px; padding: 12px 12px; box-sizing: border-box; }
.card .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; }
.bill { margin: 14px 0 0; padding: 0; list-style: none; font: 700 14px/1.3 var(--font-sans); }
.bill li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 2px dotted rgba(43, 29, 51, .2); }
.bill li span:first-child { color: var(--ink); }
.bill li.inc span:last-child { color: var(--veg); }
.bill li.total { border: 0; font: 900 18px/1.2 var(--font-sans); padding-top: 10px; }
.preview { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.preview canvas { width: 100%; max-width: 300px; height: 150px; display: block; }
.preview span { font: 800 14px/1.2 var(--font-sans); color: var(--ink); margin-top: -2px; }
.bill li.coupon-line span:last-child { color: var(--veg); font-weight: 900; }
.bill li.total .was { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red); color: #8a7f74; font-size: 16px; margin-right: 10px; }
.bill li.total .now { color: var(--veg); font-size: 24px; }
.coupon { display: flex; margin-top: 12px; border: 2.5px dashed var(--green); border-radius: 14px; background: #eef6df; overflow: hidden; transform: rotate(-1deg); }
.coupon > div { padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.coupon .cp-left { background: var(--green); color: var(--cream); border-right: 2.5px dashed var(--cream); }
.coupon .cp-left b { font: 900 20px/1 var(--font-sans); letter-spacing: .02em; }
.coupon .cp-right b { font: 900 22px/1 var(--font-sans); color: var(--green); }
.coupon small { font: 700 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.card .row.center { justify-content: center; }
.qr { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; }
.qr canvas { width: 104px; height: 104px; flex: none; image-rendering: pixelated; }
.qr p { margin: 0; font-size: 13px; }
/* the name card sits on the pavement in front of the outlet, not as a pop-up */
.namebar { position: fixed; z-index: 6; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.namebar .card { pointer-events: auto; width: min(460px, 100%); padding: 12px 18px 16px; border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
.namebar .card { text-align: center; }
.namebar h2 { font-size: 34px; line-height: 1.05; } .namebar h2 em { font-size: 42px; }
.namebar p { margin-top: 2px; font-size: 13px; }
.namerow { display: flex; flex-direction: column; gap: 12px; margin: 12px auto 0; max-width: 340px; align-items: center; }
.namerow input { width: 100%; flex: none; }
.namerow .primary { width: 100%; justify-content: center; }
.namerow input, .namerow .primary { height: 46px; }
.namebar .name-note { margin-top: 10px; font-size: 12.5px; opacity: 0.75; }
.namebar .name-note.err { color: var(--hot); opacity: 1; font-weight: 700; }
.namebar .card { padding: 12px 18px 16px; }
.namerow input, .namerow .primary { height: 50px; box-sizing: border-box; }
.namerow .primary { padding: 0 22px; display: inline-flex; align-items: center; }
.namerow input { text-align: center; }
.namerow input::placeholder { font-size: 15px; font-weight: 700; }
.namerow input { margin: 0; flex: 1; min-width: 0; font-size: 18px; padding: 11px 12px; }
.namerow .primary { flex: none; }
.ccard { position: absolute; left: 0; top: 0; transform: translate(190px, -48%); pointer-events: auto; width: 230px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
.ccard .treat-hero { width: calc(100% + 32px); margin: 0 -16px 2px; height: 128px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #ffe38a 0 42%, var(--yellow) 43% 100%); border-bottom: 3px solid var(--ink); border-radius: 17px 17px 0 0; overflow: hidden; }
.ccard .treat-img { width: 150px; height: auto; margin-top: 10px; animation: bobble 2.6s ease-in-out infinite; }
@keyframes bobble { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
.ccard .treat-title { margin-top: 10px; font: 900 20px/1.05 var(--font-sans); letter-spacing: -0.01em; }
.ccard .treat-sub { margin-top: 5px; font: 700 12.5px/1.35 var(--font-sans); color: #534a3e; }
.ccard .treat-go { margin-top: 12px; width: 100%; font: 900 17px/1 var(--font-sans); color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 999px; padding: 13px 0; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.ccard .treat-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ccard .cqr { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ccard .cqr canvas { width: 132px; height: 132px; image-rendering: pixelated; border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.ccard .cqr small { font: 700 11px/1.2 var(--font-sans); color: #534a3e; }
.ccard .csocial { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(43, 29, 51, .25); width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ccard .csocial span { font: 800 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #534a3e; margin-right: 4px; }
.ccard .cico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); text-decoration: none; font: 900 15px/1 var(--font-sans); }
.ccard .cico { width: 42px; height: 42px; font-size: 17px; color: #fff; }
.ccard .cico.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ccard .cico.linkedin { background: #0a66c2; }
.ccard .cico.x { background: #111; }
.ccard .cico:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .ccard { transform: translate(40px, -60%); width: 190px; } .ccard .treat-hero { height: 100px; } .ccard .treat-img { width: 118px; } }
.ccard .why-btn { margin-top: 10px; background: none; border: 0; padding: 4px 6px; font: 800 13px/1 var(--font-sans); color: var(--hot); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card.why { width: min(440px, 100%); }
.card.why p { font: 600 15px/1.5 var(--font-sans); color: #3b3529; margin-top: 12px; }
.card.why p.fine { font-size: 12px; color: #6b6150; }
#talk.compact .head { display: none; }
#talk.compact .foot { border-top: 0; justify-content: flex-end; }
.steps { max-width: min(720px, calc(100% - 32px)); }
/* stacked: the count on top, the step name below */
.steps { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; border-radius: 20px; padding: 6px 8px 7px; }
.steps span.count { padding: 2px 10px 0; }
#talk.creator { min-height: 230px; }
#talk .whorow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#talk .social { display: flex; gap: 6px; }
#talk .cico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: #fff; text-decoration: none; font: 900 13px/1 var(--font-sans); }
#talk .cico.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
#talk .cico.linkedin { background: #0a66c2; } #talk .cico.x { background: #111; }
#talk .cico:hover { transform: translateY(-2px); }
#talk.creator .foot { flex-wrap: wrap; align-items: flex-end; }
#talk .cextra { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-right: auto; }
#talk .treat-btn { font: 900 15px/1 var(--font-sans); color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 11px 16px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
#talk .cextra .ghost { padding: 4px 2px; font-size: 13px; }
#talk.creator .foot .note { display: none; }
.card.treat { text-align: center; width: min(380px, 100%); }
.card.treat canvas#treat-3d { width: 100%; height: 190px; display: block; background: radial-gradient(circle at 50% 60%, #ffe38a 0 40%, var(--yellow) 41% 100%); border: 3px solid var(--ink); border-radius: 16px; }
.card.treat h2 { margin-top: 12px; }
.card.treat p { margin-top: 6px; }
.card.treat .tqr { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.card.treat .tqr canvas { width: 150px; height: 150px; image-rendering: pixelated; border: 3px solid var(--ink); border-radius: 12px; background: #fff; }
.card.treat .tqr small { font: 700 12px/1.2 var(--font-sans); color: #534a3e; }
#sheet.pans .head { text-align: center; }
#sheet.pans .opts { justify-content: center; }
#sheet.pans .foot { justify-content: center; }
#sheet.pans .foot .note:empty { display: none; }
/* on counter steps the leftover options look exactly like the pan labels: same chip, lime with a tick when picked */
#sheet.pans .opt { min-height: 0; font: 800 13px/1.15 var(--font-sans); padding: 7px 11px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
#sheet.pans .opt .dm, #sheet.pans .opt small { display: none; }
#sheet.pans .opt[aria-pressed="true"] { background: var(--lime); }
#sheet.pans .opt[aria-pressed="true"] span::before { content: "✓ "; }
#sheet.instant .foot { display: none; }
/* creator footer: treat, why and back on one line */
#talk .cextra { flex-direction: row; align-items: center; gap: 14px; }
#talk.creator .foot { flex-wrap: nowrap; align-items: center; }
.loading { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; font-family: var(--font-hand); font-weight: 700; font-size: 26px; color: var(--cream); background: #2a2343; }
.loading[hidden] { display: none; }
[hidden] { display: none !important; }

/* the choices and his lines always sit centred and attached to the bottom edge, on every screen size */
.bill li.inc span:first-child { font-weight: 600; color: #5d5446; }
@media (max-width: 600px) {
  .name b { font-size: 15px; } .name i { display: none; }
  .steps { top: calc(env(safe-area-inset-top, 0px) + 60px); }
  .steps span { font-size: 13px; }
  #bubble { font-size: 15px; }
  .opt { font-size: 13px; padding: 7px 10px; min-height: 40px; }
  .pantag { font-size: 10px; max-width: 84px; padding: 4px 5px; }
}
