/* The guest phone: the venue's own printed menu (cream paper, ink, one copper spot colour). Sizes are in rem so the
   page follows the phone's text-size setting; every tap target is at least 2.75rem (44px at the default size). */
body.app { overflow: hidden; }
.boot { padding: 2rem 1.25rem; text-align: center; color: var(--ink2); }
#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button { border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: not-allowed; }
.qty button:disabled, .note-in:disabled { opacity: .35; }
h2 { margin: 0 0 .25rem; font: 800 2.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
h2:focus { outline: none; }
h5 { margin: 1.25rem 0 .5rem; font: 700 .8125rem/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
label { display: flex; flex-direction: column; gap: .375rem; font-weight: 700; font-size: .9375rem; }
input { width: 100%; min-height: 3rem; padding: .75rem .875rem; border: .09375rem solid var(--ink); border-radius: .625rem; background: #fff; font-size: 1.0625rem; font-weight: 400; -webkit-appearance: none; appearance: none; }
small, .fine { font-size: .8125rem; color: var(--ink2); }
.fine { margin: .5rem 0 0; }
.center { text-align: center; }
.err { margin: .375rem 0 0; min-height: 0; color: var(--bad); font-weight: 700; font-size: .9375rem; }
.err:empty { display: none; }
.empty { margin: .375rem 0; color: var(--ink2); font-size: .9375rem; }
a { color: var(--copper); }
.link { min-height: 2.75rem; padding: .5rem 0; font: 700 .875rem/1 var(--text); color: var(--copper); text-decoration: underline; display: block; }

.btn { display: flex; align-items: center; justify-content: center; gap: .625rem; width: 100%; min-height: 3.25rem; padding: .75rem 1.125rem; border-radius: .875rem; font: 700 1.0625rem/1.15 var(--text); text-align: center; transition: transform .1s ease-out; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--copper); color: #fff; box-shadow: 0 .125rem 0 rgba(0, 0, 0, .28); }
.btn.ghost { border: .09375rem solid var(--ink); color: var(--ink); background: transparent; }
.btn:disabled { background: #CFC8B8; color: #5E574C; box-shadow: none; border-color: transparent; }
.btn.bar { justify-content: space-between; }
.btn.bar i { flex: none; min-width: 1.7rem; height: 1.7rem; padding: 0 .375rem; border-radius: 1rem; background: #fff; color: var(--copper); display: grid; place-items: center; font: 700 .875rem/1 var(--text); font-style: normal; }
.btn.bar span { flex: 1; text-align: left; }
.btn.bar b { font: 800 1.375rem/1 var(--display); letter-spacing: .02em; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: .625rem; }

.qty { display: flex; align-items: center; justify-content: center; gap: 1.125rem; margin: .875rem 0; }
.qty button { width: 2.875rem; height: 2.875rem; border-radius: 50%; border: .09375rem solid var(--ink); font-size: 1.5rem; line-height: 1; }
.qty b { min-width: 1.75rem; text-align: center; font: 800 1.75rem/1 var(--display); }
.qty.sm { flex: none; gap: .375rem; margin: 0; }
.qty.sm button { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
.qty.sm b { min-width: 1.25rem; font-size: 1.3125rem; }
.dot { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: .125rem solid var(--ink); display: grid; place-items: center; }
.on > .dot::after { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--copper); }
.chk .dot { border-radius: .3125rem; }
.chk.on > .dot::after { border-radius: .125rem; }
.chip { flex: none; padding: .1875rem .5rem; border-radius: 62rem; font: 700 .6875rem/1.3 var(--text); letter-spacing: .04em; text-transform: uppercase; background: #E9DFCB; color: #453D32; }
.c-started { background: #F6DFA6; color: #5C3F03; }
.c-ready { background: #CFEBD9; color: #0E4F2E; }
.c-served { background: transparent; box-shadow: inset 0 0 0 .0625rem #B9AB90; color: #5B4F45; }

/* frame */
.g-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .625rem; min-width: 0; padding: .5rem .875rem; padding-top: max(.5rem, env(safe-area-inset-top)); border-bottom: .125rem solid var(--ink); }
.g-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.g-body.pad { padding: 1.125rem 1rem 1.625rem; }
.g-foot { flex: none; padding: .625rem .875rem calc(.625rem + env(safe-area-inset-bottom)); border-top: .0625rem solid var(--line); background: var(--card); }
.lockup { display: flex; align-items: center; gap: .5625rem; min-width: 0; }
.mono { flex: none; width: 2.125rem; height: 2.125rem; border: .125rem solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 800 1rem/1 var(--display); }
.lk { display: flex; flex-direction: column; min-width: 0; }
.lk b { font: 800 1.1875rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk i { margin-top: .125rem; font: 400 .6875rem/1.2 var(--text); font-style: normal; letter-spacing: .09em; text-transform: uppercase; color: var(--ink2); }
.pill { flex: none; max-width: 55%; min-height: 2.75rem; padding: .375rem .75rem; border: .09375rem solid var(--ink); border-radius: 62rem; font-size: .8125rem; font-weight: 500; text-align: center; }
.pill b { font: 800 1.0625rem/1 var(--display); }

/* notices */
.notice { margin: .75rem 1rem 0; padding: .625rem .75rem; border: .09375rem solid var(--bad); border-radius: .625rem; background: #FBE9E4; color: #6E140B; font-size: .9375rem; font-weight: 500; }
.notice.soft { border-color: var(--ink); background: var(--card); color: var(--ink); }
.notice.offline { border-color: var(--warn); background: #FBF0D9; color: #5C3600; }
.pad .notice { margin: .875rem 0 0; }
.flash { margin: 0 0 .875rem; padding: .75rem .875rem; border-radius: .75rem; background: #0E4B48; color: #fff; font-weight: 500; animation: rise .3s ease-out; }
.toast { margin: 0 0 .5rem; padding: .5rem .75rem; border-radius: .625rem; background: var(--ink); color: var(--paper); font-size: .875rem; }

/* menu */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; margin: .75rem 1rem 0; padding: .25rem; border: .09375rem solid var(--ink); border-radius: 62rem; }
.kinds button { min-height: 2.75rem; border-radius: 62rem; font: 700 .9375rem/1 var(--text); }
.kinds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { position: sticky; top: 0; z-index: 3; display: flex; gap: .375rem; overflow-x: auto; padding: .625rem .875rem; background: var(--paper); border-bottom: .0625rem solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 2.75rem; padding: .5rem .8125rem; border: .09375rem solid var(--ink); border-radius: 62rem; font: 700 .8125rem/1 var(--text); white-space: nowrap; }
.chips button.on { background: var(--copper); border-color: var(--copper); color: #fff; }
.hello { margin: .875rem 1rem 0; font-size: .9375rem; color: var(--ink2); }
.msec { padding: .375rem 1rem .25rem; scroll-margin-top: 4.25rem; }
.msec h3 { margin: 1.25rem 0 .125rem; padding-bottom: .375rem; border-bottom: .1875rem solid var(--copper); font: 800 1.875rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.item { display: flex; align-items: center; gap: .75rem; padding: .8125rem 0; border-bottom: .0625rem dashed var(--line); }
.item.out .im, .item.out .price { opacity: .55; }
.glass { flex: none; width: 1.25rem; height: 1.9375rem; color: var(--ink); }
.pour { display: block; width: 100%; height: 100%; }
.pour .beer { fill: var(--hue, #EBC55F); }
.im { flex: 1; min-width: 0; }
.im h4 { font: 700 1.03125rem/1.2 var(--text); overflow-wrap: anywhere; }
.im h4 em { margin-left: .25rem; font: 500 .75rem/1 var(--text); font-style: normal; color: var(--ink2); }
.im h4 em.veg { display: inline-block; padding: .125rem .3125rem; border: .0625rem solid var(--ok); border-radius: .25rem; color: var(--ok); font-size: .6875rem; font-weight: 700; }
.im p { margin-top: .1875rem; font-size: .875rem; line-height: 1.35; color: var(--ink2); }
.soldout { font-weight: 700; color: var(--bad) !important; }
.is { flex: none; display: flex; align-items: center; gap: .625rem; }
.price { font: 800 1.375rem/1 var(--display); white-space: nowrap; }
.price small { font: 400 .6875rem/1 var(--text); }
.add { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font: 400 1.75rem/1 var(--text); transition: transform .1s ease-out; }
.add:active { transform: scale(.88); }
.add.has { background: var(--ink); }
.add b { font: 700 1.0625rem/1 var(--text); }
.add:disabled { background: #CFC8B8; color: #5E574C; }
.wave { margin: 1.125rem 1rem 1.5rem; text-align: center; font-size: .875rem; color: var(--ink2); }

/* your order */
.cl { display: flex; align-items: center; gap: .625rem; padding: .625rem 0; border-bottom: .0625rem dashed var(--line); }
.cl > span { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.cl > span small { display: block; }
.cl > b, .tl > b { flex: none; font: 800 1.1875rem/1 var(--display); white-space: nowrap; }
.note-in { margin-top: .375rem; min-height: 2.75rem; padding: .5rem .625rem; font-size: 1rem; }

/* the tab */
.sub { margin: 0 0 .875rem; color: var(--ink2); font-size: .875rem; }
.who { margin-top: .75rem; padding: .75rem .875rem; background: var(--card); border: .09375rem solid var(--ink); border-radius: .875rem; }
.who h3 { margin: 0 0 .25rem; font: 800 1.375rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.tl { display: flex; align-items: center; gap: .5rem; padding: .4375rem 0; border-top: .0625rem dashed var(--line); font-size: .9375rem; }
.tl > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tl.void > span:first-child, .tl.void > b { text-decoration: line-through; opacity: .6; }
.ln { font-style: italic; }
.paidline { margin: .375rem 0 0; font: 700 .75rem/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.pays p { margin: .5rem 0 0; font-size: .875rem; font-weight: 500; color: var(--ok); }
.totals { margin-top: 1rem; padding: .75rem .875rem; border-radius: .875rem; background: var(--ink); color: var(--paper); }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .25rem 0; font-size: .9375rem; }
.totals .big { margin-top: .375rem; padding-top: .625rem; border-top: .0625rem solid rgba(246, 239, 224, .25); font-weight: 700; }
.totals .big b { font: 800 2.125rem/1 var(--display); }
.codebox { margin-top: .875rem; padding: .625rem .875rem; border: .09375rem dashed var(--ink); border-radius: .75rem; font-size: .875rem; text-align: center; }
.codebox b { font: 800 1.375rem/1 var(--display); letter-spacing: .12em; }
.again { margin-top: .75rem; }

/* paying */
.opt { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.875rem; padding: .625rem .875rem; margin-bottom: .5rem; border: .09375rem solid var(--line); border-radius: .875rem; background: #fff; text-align: left; }
.opt > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt b { font-size: 1rem; }
.opt em { flex: none; font: 800 1.4375rem/1 var(--display); font-style: normal; }
.opt.on { border-color: var(--copper); background: #FBEDE4; box-shadow: inset 0 0 0 .0625rem var(--copper); }
.opt:disabled { opacity: .5; }
.inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin: -.125rem 0 .625rem; padding: .5rem 0 .5rem .875rem; border-left: .1875rem solid var(--copper); font-size: .9375rem; }
.inline label { font-weight: 400; }
.money { display: flex; align-items: center; gap: .375rem; width: 9.5rem; max-width: 100%; }
.money span { font: 800 1.5rem/1 var(--display); }
.money input { min-height: 2.75rem; padding: .5rem .75rem; font-size: 1.125rem; font-weight: 700; }
.tips { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.tip { grid-column: span 2; min-height: 3.875rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1875rem; border: .09375rem solid var(--line); border-radius: .875rem; background: #fff; }
.tip b { font: 800 1.4375rem/1 var(--display); }
.tip small { font-size: .8125rem; min-height: 1em; }
.tip.wide { grid-column: span 3; min-height: 3.125rem; }
.tip.wide b { font: 700 .9375rem/1 var(--text); }
.tip.on { border-color: var(--copper); background: var(--copper); color: #fff; }
.tip.on small { color: #fff; }
.sum { margin: 0 0 .5rem; text-align: center; font-size: .9375rem; color: var(--ink2); }
.sum b { color: var(--ink); }
.asked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; }
.amt { font: 800 2.875rem/1 var(--display); }
p .amt { display: block; margin-top: .375rem; }
.left { width: 100%; margin: .875rem 0 0; padding: .75rem .875rem; border: .09375rem dashed var(--ink); border-radius: .75rem; font-size: .9375rem; }
.tick { width: 5.75rem; height: 5.75rem; margin-bottom: .625rem; }
.tick circle, .tick path { fill: none; stroke: var(--ok); stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-width: 5; stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .5s ease-out forwards; }
.tick path { stroke-width: 6; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .3s .45s ease-out forwards; }
.ended, .g-body.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; }

/* sheets */
#sheet[data-type] { position: fixed; inset: 0; z-index: 10; }
.sheet-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(20, 17, 13, .52); animation: fade .2s ease-out; }
.sheet { position: relative; width: 100%; max-height: 90%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--card); border-radius: 1.375rem 1.375rem 0 0; padding: .625rem 1.125rem calc(1.125rem + env(safe-area-inset-bottom)); animation: up .32s cubic-bezier(.2, .9, .25, 1); }
.sheet-wrap.still, .sheet-wrap.still .sheet { animation: none; }
.grab { display: block; width: 2.5rem; height: .25rem; border-radius: .125rem; background: var(--line); margin: 0 auto .75rem; }
.sheet h3 { font: 800 1.875rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.sheet h3:focus { outline: none; }
.sheet > p { margin: .375rem 0 .75rem; color: var(--ink2); font-size: .9375rem; }
.sheet form { display: flex; flex-direction: column; gap: .375rem; }
.sheet form label { margin-top: .5rem; }
.sheet form .btn { margin-top: .875rem; }
fieldset { border: 0; margin: 0 0 .625rem; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .375rem; font: 700 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.row { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 3.125rem; padding: .5rem .75rem; margin-bottom: .375rem; border: .09375rem solid var(--line); border-radius: .75rem; background: #fff; font-size: 1rem; text-align: left; }
.row b { margin-left: auto; font: 800 1.1875rem/1 var(--display); }
.row.on { border-color: var(--copper); background: #FBEDE4; }
.code { text-align: center; letter-spacing: .5em; text-indent: .5em; font: 800 1.75rem/1 var(--display); }

/* the privacy page */
.prose { max-width: 38rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.prose h1 { font: 800 2rem/1.05 var(--display); text-transform: uppercase; margin-bottom: 1rem; }
.prose p, .prose li { margin-bottom: .75rem; }
.prose ul { padding-left: 1.25rem; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(.625rem); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
