/* Speed Dial Sticker Club — shared styles
   Palette sampled from tincan.kids theme variables; shapes and artwork are our own. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,600..900,100&family=Assistant:wght@500;700;800&family=Outfit:wght@500;600&display=swap");

:root {
  --cream: #faf5e7;
  --paper: #fffdf6;
  --blue: #356aae;
  --navy: #1f2a55;
  --yellow: #f4c400;
  --butter: #fadf6f;
  --green: #a5d4a0;
  --pink: #e797e9;
  --orange: #e57c3d;
  --ink: #17181c;
  --line: 3px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Assistant", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--cream);
  /* Memphis-style confetti: squiggle, triangle, dots, ring */
  background-image: linear-gradient(rgba(250, 245, 231, .62), rgba(250, 245, 231, .62)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cpath d='M18 40q10-14 20 0t20 0 20 0' fill='none' stroke='%23e797e9' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M190 30l22 34h-44z' fill='%23f4c400'/%3E%3Ccircle cx='60' cy='170' r='13' fill='none' stroke='%23356aae' stroke-width='5'/%3E%3Cpath d='M160 190q10 14 20 0t20 0' fill='none' stroke='%23e57c3d' stroke-width='5' stroke-linecap='round'/%3E%3Cg fill='%23a5d4a0'%3E%3Ccircle cx='120' cy='110' r='4'/%3E%3Ccircle cx='136' cy='110' r='4'/%3E%3Ccircle cx='120' cy='126' r='4'/%3E%3Ccircle cx='136' cy='126' r='4'/%3E%3C/g%3E%3Crect x='222' y='130' width='16' height='16' fill='%23a5d4a0' transform='rotate(20 230 138)'/%3E%3Cpath d='M20 236h26' stroke='%23f4c400' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: auto, 260px;
  min-height: 100vh;
  overscroll-behavior: none;
}
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- ticker + header ---------- */
.ticker { background: var(--blue); color: var(--cream); border-bottom: var(--line); overflow: hidden; white-space: nowrap; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ticker span { display: inline-block; padding: 7px 0; animation: tick 30s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px clamp(14px, 3vw, 32px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: var(--line); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font-size: 24px; transform: rotate(-8deg); }
.brand b { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.6vw, 28px); line-height: .95; display: block; }
.brand-mark.twin { display: none; transform: rotate(8deg); }
.brand small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

.switch { display: flex; border: var(--line); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.switch a { padding: 8px 14px; text-decoration: none; font-weight: 800; }
.switch a + a { border-left: var(--line); }
.switch a[aria-current] { background: var(--ink); color: var(--cream); }

/* "not affiliated" tooltip: shows on hover, keyboard focus and tap */
.tip { position: relative; flex: none; }
.tip button { border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; cursor: help; white-space: nowrap; }
.tip [role="tooltip"] { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(290px, 80vw); background: var(--ink); color: var(--cream); padding: 12px 14px; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 4px 4px 0 var(--pink); }
.tip:hover [role="tooltip"], .tip:focus-within [role="tooltip"] { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: var(--line); background: var(--butter); box-shadow: var(--pop); font-weight: 800; font-size: 18px; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.big { font-size: 21px; padding: 15px 26px; background: var(--orange); }
.btn.pink { background: var(--pink); }
.btn.green { background: var(--green); }
.btn.plain { background: var(--paper); }
.btn.small { font-size: 15px; padding: 7px 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; background: #ddd; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }

/* ---------- builder layout ---------- */
.builder { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 30px); padding: 4px clamp(14px, 3vw, 32px) 120px; align-items: start; max-width: 1280px; margin: 0 auto; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: var(--line); box-shadow: var(--pop); padding: 16px; }
.step { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step i { font-style: normal; flex: none; width: 34px; height: 34px; border-radius: 50%; border: var(--line); background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 900; }
.step h2 { font-size: 23px; }
.hint { font-size: 15px; font-weight: 500; opacity: .8; }

/* ---------- people tray ---------- */
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 6px; margin-top: 14px; }
@media (max-width: 860px) { .tray { display: flex; overflow-x: auto; padding: 6px 4px 12px; gap: 12px; } .tray > * { flex: none; width: 78px; } }
.token { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; position: relative; }
.token .name { font-size: 14px; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token.selected .face { outline: 5px solid var(--pink); outline-offset: 3px; animation: wiggle .5s ease-in-out infinite alternate; }
.token .x { position: absolute; top: -6px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font-size: 12px; line-height: 1; display: none; place-items: center; cursor: pointer; }
.token:hover .x, .token.selected .x { display: grid; }
/* photo adjuster in the sticker dialog */
.adjust { margin-top: 12px; }
.cropview { width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; border: var(--line); background: #fff; touch-action: none; cursor: grab; }
.cropview canvas { width: 100%; height: 100%; display: block; }
.cropview:active { cursor: grabbing; }
.zoomrow { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); margin: 10px auto 0; font-weight: 800; }
.zoomrow input { flex: 1; accent-color: var(--orange); height: 28px; }
.adjust-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; text-align: center; }
.adjust-actions .hint { font-size: 13px; }

/* the upload zone is the default way in */
.dropzone { grid-column: 1 / -1; display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border: 3px dashed var(--ink); background: #fff3ea; cursor: pointer; text-align: center; transition: transform .1s, background .15s; }
.dropzone .cam { font-size: 34px; line-height: 1; }
.dropzone b { font-family: var(--display); font-weight: 900; font-size: 20px; }
.dropzone small { font-size: 14px; font-weight: 500; }
.dropzone:hover { background: var(--butter); transform: rotate(-1deg); }
body.filedrag .dropzone { background: var(--pink); border-style: solid; transform: scale(1.04) rotate(-1.5deg); }
body.filedrag .people { outline: 5px solid var(--pink); outline-offset: 4px; }
.token.add .face { background: var(--paper); border-style: dashed; font-size: 28px; }
.dropzone.alt { background: var(--paper); border-style: solid; padding-block: 8px; }
.dropzone.alt .cam { font-size: 24px; } .dropzone.alt b { font-size: 16px; }
.token.add.primary .face { background: var(--orange); border-style: solid; font-size: 30px; }
.token.add.primary .name { font-weight: 800; }
.token.add { cursor: pointer; }

.face { width: 62px; height: 62px; border-radius: 50%; border: var(--line); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font-size: 34px; line-height: 1; overflow: hidden; background: var(--butter); transition: transform .12s; }
.token:hover .face { transform: rotate(-6deg) scale(1.06); }
.face img, .art img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@keyframes wiggle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.ghost { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; margin: -36px 0 0 -36px; }
.ghost .face { width: 72px; height: 72px; font-size: 40px; transform: rotate(-8deg) scale(1.1); box-shadow: 8px 10px 0 rgba(23, 24, 28, .25); }

/* ---------- sticker slots (shared by sheet + phone extras) ---------- */
.slot { position: relative; display: grid; place-items: center; cursor: pointer; background: none; border: 0; padding: 0; touch-action: none; }
.slot .art { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(45deg, #fff 0 6px, #f1ecdc 6px 12px); border: 2px dashed #9a968a; color: #9a968a; line-height: 1; container-type: size; }
.slot .art > span { font-size: 62cqmin; }
.slot.filled .art { color: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.slot.oval .art, .slot.oval.filled .art { border: 0; background: none; box-shadow: none; }
.slot.oval .art canvas { width: 100%; height: 100%; display: block; }
.slot.oval.filled .art::after { display: none; }
.slot.squircle .art { border-radius: 26%; }
.slot.pill .art { border-radius: 999px; }
.slot.pill .art > span { font-size: 58cqh; }
.slot.star .art { clip-path: polygon(50% 2%, 63% 32%, 97% 36%, 71% 58%, 80% 94%, 50% 75%, 20% 94%, 29% 58%, 3% 36%, 37% 32%); border: 0; box-shadow: none; }
.slot.star.filled { filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(1.5px 1.5px 0 var(--ink)) drop-shadow(-1px -1px 0 var(--ink)); }
.slot.hot .art { outline: 5px solid var(--pink); outline-offset: 4px; }
.slot.hot { transform: scale(1.12); z-index: 3; }
.slot.pop .art { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(1.7) rotate(-14deg); } 100% { transform: none; } }
/* holographic sheen, like the good stickers from the back of the album */
.slot.filled .art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, rgba(231, 151, 233, .35) 52%, rgba(165, 212, 160, .35) 58%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .7s; mix-blend-mode: screen; }
.slot.filled:hover .art::after, .slot.pop .art::after { background-position: -40% 0; }
body.picking .slot .art, body.dragging .slot .art { border-color: var(--pink); }
body.picking .slot:not(.filled) .art { animation: beckon 1s ease-in-out infinite alternate; }
@keyframes beckon { to { background-color: #fbe3fb; transform: scale(1.06); } }

/* ---------- order bar + modal ---------- */
.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px clamp(14px, 3vw, 32px); background: var(--green); border-top: var(--line); }
.orderbar .count { margin-right: auto; font-size: 18px; }
.orderbar .count b { font-family: var(--display); font-size: 24px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 8px; }
.dots i { width: 12px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.dots i.on { background: var(--orange); }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(31, 42, 85, .55); display: grid; place-items: center; padding: 14px; overflow: auto; }
.modal[hidden] { display: none; }
.modal .card { width: min(560px, 100%); max-height: calc(100vh - 28px); overflow: auto; position: relative; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.modal h2 { font-size: 30px; margin-bottom: 4px; padding-right: 40px; }
.modal .close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: var(--line); background: var(--paper); cursor: pointer; font-weight: 800; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: 10px 12px; border: var(--line); background: #fff; font-weight: 700; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { width: 44px; height: 44px; border: 2px solid var(--ink); background: #fff; font-size: 24px; cursor: pointer; border-radius: 50%; padding: 0; }
.choices button[aria-pressed="true"] { outline: 4px solid var(--pink); outline-offset: 1px; }
.choices.colors button { border-radius: 0; }
.stub { margin-top: 14px; padding: 12px; border: 2px dashed var(--ink); background: repeating-linear-gradient(45deg, #fff 0 10px, #fbf3c9 10px 20px); font-size: 15px; }
.total { display: flex; justify-content: space-between; margin-top: 14px; font-size: 19px; }
.actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
pre.payload { background: var(--navy); color: #d7f5d2; padding: 12px; font: 500 12px/1.45 ui-monospace, Menlo, monospace; max-height: 300px; overflow: auto; margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.summary .face { width: 40px; height: 30px; font-size: 18px; box-shadow: none; border-width: 2px; }

.confetti { position: fixed; z-index: 200; top: -20px; width: 12px; height: 12px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 60; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: 16px; white-space: nowrap; animation: pop .3s; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.pickbar { --arrow: 50%; position: fixed; z-index: 61; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; width: max-content; max-width: calc(100vw - 16px); background: var(--paper); border: var(--line); box-shadow: 4px 4px 0 var(--ink); border-radius: 14px; animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); }
.pickbar::after { content: ""; position: absolute; width: 16px; height: 16px; background: var(--paper); border: 0 solid var(--ink); }
.pickbar[data-side="above"]::after { left: var(--arrow); bottom: -11px; margin-left: -8px; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pickbar[data-side="below"]::after { left: var(--arrow); top: -11px; margin-left: -8px; border-width: 3px 0 0 3px; transform: rotate(45deg); }
.pickbar[data-side="left"]::after { top: var(--arrow); right: -11px; margin-top: -8px; border-width: 3px 3px 0 0; transform: rotate(45deg); }
.pickbar[data-side="right"]::after { top: var(--arrow); left: -11px; margin-top: -8px; border-width: 0 0 3px 3px; transform: rotate(45deg); }
.pickbar.docked::after { display: none; }
.pickbar .pickhint { display: none; }
.pickbar.docked { width: auto; right: 10px; }
.pickbar.docked .pickhint { display: block; flex-basis: 100%; font-size: 13px; font-weight: 600; padding: 0 4px; }
.pickbar.docked .edit, .pickbar.docked .off { flex: 1; }
.pickbar button { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--butter); font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; }
.pickbar .off { background: var(--pink); }
.pickbar .done { background: none; border-color: transparent; padding: 0 10px; font-size: 17px; }

/* ---------- inkjet printer (loading screen + order print-out) ---------- */
.printing { position: fixed; inset: 0; z-index: 300; background: var(--cream); display: grid; place-items: center; align-content: center; gap: 18px; padding: 20px; text-align: center; transition: opacity .35s; }
.printing.bye { opacity: 0; pointer-events: none; }
.printing h2 { font-size: clamp(24px, 5vw, 34px); }
.printing h2::after { content: ""; animation: dotdot 1.2s steps(4) infinite; }
@keyframes dotdot { 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.inkjet { --w: min(300px, 76vw); width: var(--w); position: relative; }
/* blank paper waiting in the feed tray */
.inkjet .feed { width: 66%; height: calc(var(--w) * .2); margin: 0 auto -6px; background: #fff; border: var(--line); border-bottom: 0; transform: perspective(300px) rotateX(18deg); transform-origin: bottom; }
.inkjet .box { position: relative; z-index: 2; height: calc(var(--w) * .34); background: #e9e2cf; border: var(--line); border-radius: 18px 18px 8px 8px; box-shadow: var(--pop); }
.inkjet .box::before { content: ""; position: absolute; left: 9%; right: 9%; bottom: 14%; height: 16%; background: var(--ink); border-radius: 4px; } /* the slot */
.inkjet .box::after { content: ""; position: absolute; right: 8%; top: 18%; width: 10px; height: 10px; border-radius: 50%; background: #56d364; box-shadow: -18px 0 0 var(--orange), 0 0 8px #56d364; animation: blink .6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.inkjet .head { position: absolute; z-index: 3; bottom: 15%; left: 11%; width: 15%; height: 14%; background: var(--blue); border: 2px solid var(--ink); border-radius: 3px; animation: scan .55s ease-in-out infinite alternate; }
.inkjet .head::after { content: ""; position: absolute; inset: 2px; background: linear-gradient(90deg, #22b8cf 25%, #e64980 25% 50%, #fcc419 50% 75%, #17181c 75%); }
@keyframes scan { to { left: 74%; } }
.inkjet .out { width: 70%; margin: -10px auto 0; height: calc(var(--w) * .7); overflow: hidden; position: relative; z-index: 1; }
.inkjet .page { width: 100%; aspect-ratio: 1; background: #fff; border: var(--line); border-top: 0; transform: translateY(-100%); animation: feed var(--print-ms, 2400ms) steps(22) forwards; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; padding: 12% 10%; align-content: end; }
@keyframes feed { to { transform: translateY(0); } }
.inkjet .page i { aspect-ratio: 5 / 4; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; font-style: normal; font-size: calc(var(--w) * .075); line-height: 1; }
.inkjet .page i img { width: 100%; height: 100%; object-fit: cover; }
.inkjet.rock { animation: rock .28s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg) translateY(1px); } }

/* read-only confirmation sheet */
.confirm .slot { cursor: default; }
.confirm .slot:not(.filled) .art > span { display: none; }
.confirm .slot.oval::before { display: none; }

/* bigger invisible tap zone around the tiny ovals */
.slot.oval::before { content: ""; position: absolute; inset: -30% -22%; }

/* ---------- phones: people become a thumb-reach dock ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .ticker { display: none; } /* phones: no scrolling banner */
  .top { padding: 8px 12px 6px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; font-size: 20px; }
  .brand small { display: none; }
  .brand { gap: 8px; }
  .brand b { font-size: 17px; }
  .switch a { padding: 7px 9px; font-size: 14px; }
  .builder { padding: 0 10px 250px; }
  .card { padding: 12px; box-shadow: 3px 3px 0 var(--ink); }
  .people { position: fixed; left: 0; right: 0; bottom: 58px; z-index: 15; border-width: 3px 0 0; box-shadow: none; padding: 8px 0 0; background: var(--butter); }
  .people .step { margin: 0 12px 2px; }
  .people .step i { width: 26px; height: 26px; font-size: 14px; border-width: 2px; }
  .people .step h2 { font-size: 18px; }
  .people .hint { display: none; }
  .tray { margin: 0; padding: 8px 12px 10px; gap: 10px; scrollbar-width: none; }
  .tray > * { width: 66px; }
  .tray > .dropzone { width: 118px; padding: 6px 4px; gap: 0; align-content: center; }
  .tray > .dropzone.alt { width: 104px; }
  .dropzone .cam { font-size: 24px; } .dropzone b { font-size: 14px; line-height: 1.1; } .dropzone small { display: none; }
  .token { touch-action: pan-x; } /* swipe sideways to browse, drag up to stick */
  .token .name { font-size: 13px; max-width: 66px; }
  .face { width: 54px; height: 54px; font-size: 29px; }
  .token .x { top: -4px; right: 0; }
  .orderbar { padding: 8px 12px; gap: 8px; height: 58px; flex-wrap: nowrap; }
  .orderbar .count { font-size: 14px; line-height: 1.1; }
  .orderbar .count b { font-size: 19px; }
  .orderbar .dots, .orderbar [data-reset] { display: none; }
  .orderbar .btn.big { font-size: 17px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
  .toast { bottom: 215px; max-width: 92vw; white-space: normal; text-align: center; }
  .row { flex-wrap: wrap; }
  .row > :first-child { flex-basis: 100%; }
  .modal h2 { font-size: 25px; }
}

/* ---------- flat 2D handset (flat.html): illustrated, with soft real-world shading ---------- */
/* retro backdrop: a 90s Memphis tabletop, tinted by the phone colour behind it */
.viewer.flatview { overflow: hidden; touch-action: pan-y; }
/* shared retro backdrop: the phone scene and the album page behind the sheet */
.viewer.flatview, .memphis {
  background-image:
    radial-gradient(120% 90% at 50% 45%, rgba(255, 255, 255, 0) 55%, rgba(23, 24, 28, .2)),
    linear-gradient(rgba(250, 245, 231, .58), rgba(250, 245, 231, .58)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke='%2317181c' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 34q11-16 22 0t22 0 22 0' fill='none' stroke='%23e797e9' stroke-width='7'/%3E%3Cpath d='M152 22l30 46h-60z' fill='%23f4c400'/%3E%3Ccircle cx='54' cy='150' r='17' fill='none' stroke='%23356aae' stroke-width='7'/%3E%3Cpath d='M128 168q12 16 24 0t24 0' fill='none' stroke='%23e57c3d' stroke-width='7'/%3E%3Crect x='176' y='108' width='20' height='20' fill='%23faf5e7' transform='rotate(24 186 118)'/%3E%3Cpath d='M86 92l10 10M96 92l-10 10' stroke='%2317181c' stroke-width='4'/%3E%3Cpath d='M20 200h30' stroke='%2317181c' stroke-width='5'/%3E%3C/g%3E%3Cg fill='%2317181c'%3E%3Ccircle cx='112' cy='60' r='3.5'/%3E%3Ccircle cx='126' cy='60' r='3.5'/%3E%3Ccircle cx='112' cy='74' r='3.5'/%3E%3Ccircle cx='126' cy='74' r='3.5'/%3E%3Ccircle cx='200' cy='196' r='3.5'/%3E%3Ccircle cx='76' cy='206' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 300px 300px; background-position: center; }
.flatview::after, .memphis::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.zoomer { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 50% 50%; transition: transform .28s cubic-bezier(.2, .8, .3, 1); }

.handset { --phone: #2f63c8; --cord: #8fd67f; --edge: rgba(10, 14, 30, .55); position: relative; height: 80%; margin-bottom: 9%; aspect-ratio: 630 / 1348; container-type: size; transform: rotate(-4deg); z-index: 1;
  filter: drop-shadow(1.2cqw 1.6cqw 0 rgba(23, 24, 28, .2)) drop-shadow(2.5cqw 4cqw 4cqw rgba(0, 0, 0, .35)); }
.handset > * { position: absolute; }
/* moulded plastic: lit from the top left, rounded edges catching light and falling into shadow */
.hs-body { inset: 0; border-radius: 21% / 10%; border: .45cqw solid var(--edge);
  background: radial-gradient(130% 70% at 25% 12%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), linear-gradient(165deg, var(--phone) 30%, color-mix(in srgb, var(--phone) 78%, black));
  box-shadow: inset 1.6cqw 1.6cqw 1.6cqw rgba(255, 255, 255, .35), inset -2.2cqw -2.8cqw 3cqw rgba(0, 0, 0, .28), inset 0 0 0 1.6cqw color-mix(in srgb, var(--phone) 92%, white); transition: background .3s; }
.hs-shine { left: 8%; top: 5%; width: 3.4%; height: 24%; border-radius: 99px; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); filter: blur(.3cqw); }
/* ear dish: a real dip, shadowed at the top left, lit at the bottom right */
.hs-dish { border-radius: 50%; border: .4cqw solid var(--edge);
  background: radial-gradient(circle at 62% 68%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 48%), radial-gradient(circle at 38% 34%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 70%), var(--phone);
  box-shadow: inset 2.6cqw 2.6cqw 4cqw rgba(0, 0, 0, .38), inset -1.6cqw -1.6cqw 2.4cqw rgba(255, 255, 255, .35), 0 0 0 1cqw color-mix(in srgb, var(--phone) 85%, white); }
.hs-dish i { position: absolute; width: 4.4%; aspect-ratio: 1; margin: -2.2% 0 0 -2.2%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #05070f 55%, rgba(255, 255, 255, .35) 85%); }
.hs-panel { border-radius: 9% / 4%; border: .4cqw solid var(--edge); background: color-mix(in srgb, var(--phone) 90%, black);
  box-shadow: inset 0 2.2cqw 3cqw rgba(0, 0, 0, .38), inset 1.2cqw 0 2cqw rgba(0, 0, 0, .18), 0 .6cqw 0 rgba(255, 255, 255, .28); }
.hs-dots { display: flex; justify-content: space-between; }
.hs-dots i { width: 1.5cqw; aspect-ratio: 1; border-radius: 50%; background: #05070f; box-shadow: 0 .3cqw 0 rgba(255, 255, 255, .3); }
/* soft-touch rubber buttons: domed tops, darker sides, a shadow on the panel */
.hs-btn { --btn: #2a2a2f; border: .35cqw solid rgba(0, 0, 0, .6); color: #faf5e7; display: grid; place-items: center; font-family: var(--display); font-weight: 900;
  background: radial-gradient(ellipse at 40% 28%, color-mix(in srgb, var(--btn) 70%, white), var(--btn) 55%, color-mix(in srgb, var(--btn) 70%, black));
  box-shadow: 0 1.3cqw 0 color-mix(in srgb, var(--btn) 55%, black), 0 2.4cqw 2.2cqw rgba(0, 0, 0, .35), inset 0 .5cqw .6cqw rgba(255, 255, 255, .22); }
.hs-big { border-radius: 26%; font-size: 9cqw; text-shadow: 0 .4cqw 0 rgba(0, 0, 0, .4); }
.hs-dial { border-radius: 50%; }
.hs-pill { border-radius: 99px; font-size: 6cqw; display: flex; justify-content: space-around; align-items: center; }

/* A key is one physical cap: body, number, sticker and gloss move together. It rises a touch and
   leans toward the cursor on hover, sinks when pressed and springs back, and its side wall and
   shadow change with height. Only flat (2D) transforms are used: a 3D tilt makes the browser draw
   the key small and stretch it, which blurred photo stickers when zoomed in. */
.key { --lift: 0cqw; --tx: 0cqw; --rz: 0deg; --wall: 1.5cqw; --shadow: 2.6cqw; --sx: 0cqw; display: grid; place-items: center; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.key .kcap { position: absolute; inset: 0; display: grid; place-items: center; transform: translate(var(--tx), var(--lift)) rotate(var(--rz));
  filter: drop-shadow(0 var(--wall) 0 #0b0b0d) drop-shadow(var(--sx) var(--shadow) calc(var(--shadow) * .9) rgba(0, 0, 0, .42));
  transition: transform .32s cubic-bezier(.25, 1.7, .45, 1), filter .32s cubic-bezier(.25, 1.7, .45, 1); }
.key .kbody { position: absolute; left: 1.5%; right: 1.5%; top: 11.5%; bottom: 11.5%; border-radius: 50%; border: .35cqw solid rgba(0, 0, 0, .65); transform: rotate(-34.4deg);
  background: radial-gradient(ellipse at 42% 26%, #5a5a63, #2c2c32 50%, #18181c); box-shadow: inset 0 .6cqw .8cqw rgba(255, 255, 255, .2), inset 0 -.8cqw 1cqw rgba(0, 0, 0, .35); }
.key .klabel { position: relative; color: #f3eedf; text-align: center; line-height: 1; pointer-events: none; text-shadow: 0 .35cqw 0 rgba(0, 0, 0, .45); }
.key .klabel b { display: block; font-family: var(--body); font-weight: 900; font-size: 8.4cqw; }
.key .klabel small { display: block; font-size: 2.5cqw; font-weight: 800; letter-spacing: .05em; margin-top: .4cqw; }
.key canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* laminated sticker sheen; slides with the cursor like light across a glossy surface */
.key .gloss { position: absolute; left: 3%; right: 3%; top: 13%; bottom: 13%; border-radius: 50%; transform: rotate(-34.4deg); pointer-events: none; opacity: 0; transition: opacity .2s; mix-blend-mode: screen;
  background: radial-gradient(60% 45% at var(--gx, 35%) var(--gy, 25%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%), linear-gradient(170deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 45%); }
.key.filled .gloss { opacity: 1; }
.key.filled .klabel { visibility: hidden; }
@media (hover: hover) { .key:hover { --lift: -.7cqw; --wall: 2cqw; --shadow: 3.6cqw; } }
.key:active, .key.pressed { --lift: 1.1cqw; --wall: .35cqw; --shadow: 1cqw; }
.key:active .kcap, .key.pressed .kcap { transition-duration: .06s; transition-timing-function: ease-out; }
/* only keys 1-9 take stickers, so only they answer a drag */
.key.drop.hot { z-index: 3; --lift: -1.4cqw; --wall: 2.4cqw; --shadow: 4.6cqw; }
.key.drop.hot .kbody { outline: 1.3cqw solid var(--pink); outline-offset: .2cqw; }
body.picking .key.drop:not(.filled) .kbody, body.dragging .key.drop:not(.filled) .kbody { outline: .7cqw solid rgba(231, 151, 233, .7); outline-offset: .2cqw; animation: keybeckon .7s ease-in-out infinite alternate; }
@keyframes keybeckon { to { outline: 1.3cqw solid var(--pink); outline-offset: .5cqw; } }
.key.pop canvas { animation: keypop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes keypop { 0% { transform: scale(1.8) rotate(-20deg); } 100% { transform: none; } }

.hs-cord { left: 30%; top: 96%; width: 120%; height: 34%; overflow: visible; z-index: -1; pointer-events: none; filter: drop-shadow(.8cqw 1.4cqw 1.2cqw rgba(0, 0, 0, .28)); }
.hs-cord .cord-under { stroke: color-mix(in srgb, var(--cord) 58%, black); }
.hs-cord .cord-body { stroke: var(--cord); }
.hs-cord .cord-hi { stroke: rgba(255, 255, 255, .5); }
.hs-cord .boot { fill: color-mix(in srgb, var(--cord) 85%, black); }
.doodle { position: absolute; z-index: 0; font-size: clamp(18px, 3vw, 34px); color: var(--paper); text-shadow: 2px 2px 0 var(--ink); opacity: .55; animation: twinkle 2.4s ease-in-out infinite alternate; pointer-events: none; }
.doodle.d1 { left: 12%; top: 18%; } .doodle.d2 { left: 80%; top: 22%; color: var(--yellow); animation-delay: .6s; }
.doodle.d3 { left: 16%; top: 70%; color: var(--pink); animation-delay: 1.1s; } .doodle.d4 { left: 84%; top: 64%; animation-delay: 1.6s; }
.doodle.d5 { left: 70%; top: 86%; color: var(--orange); font-size: clamp(10px, 1.4vw, 16px); animation-delay: .3s; }
@keyframes twinkle { to { transform: scale(1.25) rotate(20deg); } }

/* ---------- checkout: wallets first, card below ---------- */
.checkout .paylabel { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet { height: 48px; border-radius: 10px; border: 2px solid var(--ink); font: 600 19px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: transform .08s; }
.wallet:active { transform: translateY(2px); }
.wallet.apple { background: #000; color: #fff; border-color: #000; }
.wallet.apple b { font-weight: 400; font-size: 22px; margin-top: -3px; }
.wallet.google { background: #fff; color: #3c4043; border-color: #747775; }
.wallet.google .g { font-weight: 700; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 21px; }
.wallet.link { grid-column: 1 / -1; background: #00d66f; color: #011e0f; border-color: #00b35c; font-weight: 800; letter-spacing: -.02em; }
.wallet[disabled] { opacity: .6; cursor: default; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--ink); opacity: .35; }
.pay-live { margin-top: 14px; min-height: 420px; }

/* When Stripe is running, the order box becomes a near full-screen checkout panel: wide on
   desktop so Stripe shows its two-column page, edge to edge on phones where it stacks. */
.modal.paying { padding: 16px; }
.modal.paying .card.checkout { width: min(1160px, 100%); height: calc(100vh - 32px); height: calc(100dvh - 32px); max-height: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; animation: none; }
.modal.paying .payhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 64px 10px 16px; border-bottom: var(--line); background: var(--butter); }
.modal.paying .payhead h2 { font-size: 22px; margin: 0; padding: 0; }
.modal.paying .payhead .hint { font-size: 13px; flex: 1 1 260px; }
.modal.paying .payhead .summary { margin: 0; }
.modal.paying .close { top: 8px; right: 10px; }
.modal.paying .pay-live { flex: 1; min-height: 0; margin: 0; overflow-y: auto; background: #fff; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .modal.paying { padding: 0; }
  .modal.paying .card.checkout { width: 100%; height: 100vh; height: 100dvh; border: 0; box-shadow: none; }
  .modal.paying .payhead .hint { display: none; }
  .modal.paying .payhead .summary .face { width: 30px; height: 24px; font-size: 14px; }
}

/* webcam capture */
.camview { position: relative; margin-top: 12px; border: var(--line); background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.camview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.camoval { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1 / .8; transform: translate(-50%, -50%) rotate(-34.4deg); border: 4px dashed rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }

/* picture picker: search + scrolling grid */
.emojisearch { width: 100%; margin-top: 4px; padding: 10px 12px; border: var(--line); background: #fff; font-weight: 700; font-size: 16px; }
.emojigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; margin-top: 8px; padding: 6px; border: 2px solid var(--ink); background: #fff; overscroll-behavior: contain; }
.emojigrid button { height: 44px; border: 2px solid transparent; background: none; font-size: 26px; border-radius: 10px; cursor: pointer; padding: 0; }
.emojigrid button:hover { background: var(--butter); }
.emojigrid button[aria-pressed="true"] { border-color: var(--ink); background: #fbe3fb; }
.emojigroup { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

/* phones: the name sits centred between two phones */
@media (max-width: 860px) {
  .top { justify-content: center; }
  .brand { margin: 0 auto; }
  .brand-mark.twin { display: grid; }
  .brand b br { display: none; }
}

/* People in the tray (and while being dragged) are the same tilted oval as the number keys and the
   printed stickers. The oval is rotated; its picture is turned back upright and scaled to fill it. */
.token[data-person] .face, .ghost .face, .summary .face { --tilt: -34.4deg; width: 66px; height: 53px; border-radius: 50%; transform: rotate(var(--tilt)); }
.token[data-person] .face > *, .ghost .face > *, .summary .face > * { transform: rotate(calc(var(--tilt) * -1)) scale(1.28); }
.token[data-person] .face > span, .ghost .face > span, .summary .face > span { transform: rotate(calc(var(--tilt) * -1)); }
.token[data-person]:hover .face { transform: rotate(var(--tilt)) translateY(-3px) scale(1.06); }
.token[data-person].selected .face { animation: ovalwiggle .5s ease-in-out infinite alternate; outline: none; box-shadow: 0 0 0 5px var(--pink), 3px 3px 0 var(--ink); }
@keyframes ovalwiggle { from { transform: rotate(calc(var(--tilt) - 6deg)); } to { transform: rotate(calc(var(--tilt) + 6deg)); } }
.ghost .face { width: 76px; height: 61px; transform: rotate(var(--tilt)) scale(1.1); }
.summary .face { width: 42px; height: 34px; }
.token[data-person] { padding-top: 4px; }
@media (max-width: 860px) { .token[data-person] .face { width: 58px; height: 46px; font-size: 26px; } }
/* the oval's rim is the key's own charcoal, so a face in the tray reads like a key with a sticker on */
.token[data-person] .face, .ghost .face, .summary .face { border-color: #2c2c32; box-shadow: 0 3px 0 #18181c, 0 5px 8px rgba(0, 0, 0, .25); }
.token[data-person]:hover .face { box-shadow: 0 5px 0 #18181c, 0 8px 12px rgba(0, 0, 0, .25); }

/* ---------- matched to the real keypad: matte soft-touch charcoal, flat tops, light geometric type ---------- */
:root { --key: #3a3b3d; --key-wall: #232426; }
.key .kbody { border: 0; border-radius: 44% / 50%; background: var(--key);
  box-shadow: inset 0 .5cqw .6cqw rgba(255, 255, 255, .06), inset 0 -.6cqw .8cqw rgba(0, 0, 0, .25); }
.key .kcap { filter: drop-shadow(0 var(--wall) 0 var(--key-wall)) drop-shadow(var(--sx) var(--shadow) calc(var(--shadow) * .9) rgba(0, 0, 0, .32)); }
.key .klabel { position: absolute; inset: 0; color: #f1eee6; text-shadow: none; font-family: "Outfit", "Futura", "Avenir Next", system-ui, sans-serif; }
.key .klabel b { position: absolute; right: 25%; top: 17%; font-family: inherit; font-weight: 600; font-size: 8cqw; line-height: 1; }
.key .klabel small { position: absolute; left: 22%; bottom: 21%; margin: 0; font-weight: 600; font-size: 2.9cqw; letter-spacing: .04em; }
.key .klabel.mid b { right: auto; left: 50%; top: 50%; transform: translate(-50%, -48%); font-size: 9cqw; }
.key .klabel:not(.mid):not(:has(small)) b { top: 22%; }
.hs-btn { --btn: var(--key); border: 0; font-family: "Outfit", system-ui, sans-serif; font-weight: 600; color: #f1eee6;
  background: var(--btn); box-shadow: 0 1.3cqw 0 color-mix(in srgb, var(--btn) 62%, black), 0 2.2cqw 2cqw rgba(0, 0, 0, .28), inset 0 .4cqw .5cqw rgba(255, 255, 255, .07); }
.hs-big { border-radius: 24%; font-size: 8cqw; text-shadow: none; }
.hs-dial { border-radius: 44% / 50%; }
.hs-pill { font-size: 5.5cqw; }
/* matte plastic body and a deeper recessed keypad */
.hs-body { box-shadow: inset 1.2cqw 1.2cqw 1.6cqw rgba(255, 255, 255, .22), inset -2cqw -2.4cqw 3cqw rgba(0, 0, 0, .22), inset 0 0 0 1.6cqw color-mix(in srgb, var(--phone) 94%, white); }
.hs-shine { opacity: .45; }
.hs-panel { box-shadow: inset 0 2.6cqw 3.4cqw rgba(0, 0, 0, .34), inset 1.6cqw 0 2.4cqw rgba(0, 0, 0, .16), inset -.8cqw 0 1.6cqw rgba(255, 255, 255, .12), 0 .5cqw 0 rgba(255, 255, 255, .25); }
/* the same tilted oval everywhere a sticker is shown: tray, drag, order summary, edit preview */
.modal .face.preview { --tilt: -34.4deg; width: 120px !important; height: 96px !important; transform: rotate(var(--tilt)); }
.modal .face.preview > * { transform: rotate(calc(var(--tilt) * -1)) scale(1.28); }
.modal .face.preview > span { transform: rotate(calc(var(--tilt) * -1)); }
.token[data-person] .face, .ghost .face, .summary .face, .modal .face.preview { border-radius: 44% / 50%; border-color: var(--key); box-shadow: 0 3px 0 var(--key-wall), 0 5px 8px rgba(0, 0, 0, .22); }
.token[data-person]:hover .face { box-shadow: 0 5px 0 var(--key-wall), 0 8px 12px rgba(0, 0, 0, .22); }

/* skin tone row in the emoji picker */
.tones { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.tones span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.tones button { width: 38px; height: 38px; border: 2px solid transparent; border-radius: 10px; background: none; font-size: 22px; cursor: pointer; padding: 0; }
.tones button[aria-pressed="true"] { border-color: var(--ink); background: var(--butter); }

/* the printer prints key-shaped stickers too */
.inkjet .page i { --tilt: -34.4deg; border-radius: 44% / 50%; border-color: #3a3b3d; transform: rotate(var(--tilt)); }
.inkjet .page i > img { transform: rotate(calc(var(--tilt) * -1)) scale(1.28); }
.inkjet .page i > span { display: block; transform: rotate(calc(var(--tilt) * -1)); }

/* webcam + emoji: secondary, side by side under the faces (phones keep them inline in the strip) */
.moreways { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.moreways .dropzone { grid-column: auto; align-content: center; padding: 10px 8px; }
.moreways .dropzone small { font-size: 12.5px; }
@media (max-width: 860px) { .moreways { display: contents; } }

/* ---------- box 1: just the ways to add someone ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ways .dropzone { grid-column: auto; padding: 14px 8px; align-content: center; }
.ways .dropzone .cam { font-size: 28px; }
.ways .dropzone b { font-size: 17px; line-height: 1.1; }
.ways .dropzone small { font-size: 12.5px; }
.ways .dropzone:not(.alt) { background: var(--butter); border-style: solid; }
.camlink { display: block; margin: 10px auto 0; background: none; border: 0; padding: 4px 6px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
.camlink:hover { opacity: 1; }
.tray { display: block; margin-top: 0; }

/* ---------- box 2: the waiting bar above the phone ---------- */
.libbar { display: flex; align-items: center; gap: 12px; overflow-x: auto; overflow-y: hidden; min-height: 86px; padding: 8px 10px; margin-bottom: 10px; border: 2px dashed rgba(23, 24, 28, .35); border-radius: 14px; background: var(--paper); scrollbar-width: thin; overscroll-behavior-x: contain; }
.libbar .token { flex: none; width: 74px; touch-action: pan-x; }
.libbar .token .x { display: grid; }
.libempty { margin: 0 auto; font-size: 14px; font-weight: 600; opacity: .7; text-align: center; padding: 0 8px; }
body.dragging .libbar { border-color: var(--pink); background: #fdf0fd; }

@media (max-width: 860px) {
  .people { padding-bottom: 8px; }
  .tray { padding: 6px 14px 0; }
  .ways { margin: 0; gap: 8px; }
  .ways .dropzone { width: auto; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .ways .dropzone .cam { font-size: 22px; } .ways .dropzone b { font-size: 15px; } .ways .dropzone small { display: none; }
  .camlink { display: none; }
  .libbar { margin: 0; border-radius: 0; border-width: 0 0 2px; border-style: solid; border-color: var(--ink); min-height: 74px; padding: 6px 14px; }
  .libbar .token { width: 62px; }
  .skins { left: 102px; transform: none; gap: 4px; }
}
.people, .stage > .step, .libbar { -webkit-user-select: none; user-select: none; }

/* bubble pointer: a crisp triangle with an ink outline, tucked under the bubble's border */
.pickbar::after, .pickbar::before { content: ""; position: absolute; width: 0; height: 0; background: none; transform: none; border: 0 solid transparent; margin: 0; }
.pickbar.docked::before, .pickbar.docked::after { display: none; }
.pickbar[data-side="above"]::before { left: var(--arrow); top: 100%; margin-left: -12px; border-width: 12px 12px 0; border-top-color: var(--ink); }
.pickbar[data-side="above"]::after { left: var(--arrow); top: calc(100% - 1px); margin-left: -8px; border-width: 8px 8px 0; border-top-color: var(--paper); }
.pickbar[data-side="below"]::before { left: var(--arrow); bottom: 100%; margin-left: -12px; border-width: 0 12px 12px; border-bottom-color: var(--ink); }
.pickbar[data-side="below"]::after { left: var(--arrow); bottom: calc(100% - 1px); margin-left: -8px; border-width: 0 8px 8px; border-bottom-color: var(--paper); }
.pickbar[data-side="left"]::before { top: var(--arrow); left: 100%; margin-top: -12px; border-width: 12px 0 12px 12px; border-left-color: var(--ink); }
.pickbar[data-side="left"]::after { top: var(--arrow); left: calc(100% - 1px); margin-top: -8px; border-width: 8px 0 8px 8px; border-left-color: var(--paper); }
.pickbar[data-side="right"]::before { top: var(--arrow); right: 100%; margin-top: -12px; border-width: 12px 12px 12px 0; border-right-color: var(--ink); }
.pickbar[data-side="right"]::after { top: var(--arrow); right: calc(100% - 1px); margin-top: -8px; border-width: 8px 8px 8px 0; border-right-color: var(--paper); }

/* edit button on each face: chunky, always visible, easy to hit */
.token .x { display: grid !important; top: -8px; right: -6px; width: 30px; height: 30px; border: 3px solid var(--ink); border-radius: 50%; background: var(--butter); box-shadow: 2px 2px 0 var(--ink); font-size: 15px; z-index: 2; transition: transform .1s; }
.token .x:hover { transform: scale(1.12) rotate(-8deg); background: var(--pink); }
.token .x::before { content: ""; position: absolute; inset: -8px; } /* bigger invisible tap area */
@media (max-width: 860px) { .token .x { width: 28px; height: 28px; top: -6px; right: -6px; } }
.libbar { padding-top: 14px; }

/* no shiny sheen on stickers: it read as a highlight/selection rather than a finish */
.key .gloss, .key.filled .gloss { display: none; }
.slot.filled .art::after { display: none; }

/* phones: the two ways in share the full width equally */
@media (max-width: 860px) {
  .tray { display: block; overflow: visible; padding: 6px 14px 0; }
  .ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .ways .dropzone, .ways .dropzone.alt { width: auto; min-height: 52px; }
}
/* on the sheet page the confetti falls behind the sheet, never over it */
.confirm .confetti { z-index: 0; }
.modal.paying .payhead .summary { display: none; } /* Stripe's summary shows the sheet itself */

/* number style menu, opened from the ▾ on the Numbers control */
.numsize .numstyle-btn { width: auto !important; padding: 0 10px 0 12px !important; border-left: 0 !important; font-family: var(--body) !important; font-weight: 800 !important; font-size: 13px !important; white-space: nowrap; }
.numsize .numstyle-btn[aria-expanded="true"] { background: var(--butter); }
.numstyle-menu { position: absolute; right: 10px; bottom: 54px; z-index: 6; width: min(300px, calc(100% - 20px)); background: var(--paper); border: var(--line); box-shadow: 4px 4px 0 var(--ink); border-radius: 14px; padding: 10px; animation: pop .2s cubic-bezier(.2, 1.4, .4, 1); }
.numstyle-menu p { margin: 0 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.numstyle-menu button[data-numstyle] { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; margin-top: 6px; cursor: pointer; }
.numstyle-menu button[data-numstyle][aria-pressed="true"] { background: var(--butter); box-shadow: 3px 3px 0 var(--ink); }
.numstyle-menu b { font-size: 15px; } .numstyle-menu small { grid-column: 2; font-size: 12.5px; font-weight: 500; }
.numstyle-menu .demo { grid-row: span 2; position: relative; width: 60px; height: 48px; border-radius: 44% / 50%; transform: rotate(-34.4deg); background: linear-gradient(135deg, #8fb8ea, #5f8fc8); border: 2px solid #3a3b3d; }
.numstyle-menu .demo > * { position: absolute; font-style: normal; transform: rotate(34.4deg); font-family: Outfit, sans-serif; font-weight: 600; color: #f6f3eb; }
.numstyle-menu .demo.badge i { left: 4px; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; background: #2a2a2f; border: 1.5px solid #faf5e7; display: grid; place-items: center; font-size: 11px; }
.numstyle-menu .demo.key i { right: 12px; top: 2px; font-size: 22px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.numstyle-menu .demo.key em { left: 10px; bottom: 6px; font-size: 9px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
@media (max-width: 860px) {
  .numsize .numstyle-btn .lbl { display: none; }
  .numsize .numstyle-btn { padding: 0 8px !important; font-size: 15px !important; }
  .numstyle-menu { bottom: 58px; }
}

/* colour picker: square split swatches (phone | cord), chosen one gets a thick frame */
.skins button { border-radius: 3px !important; box-shadow: none !important; border: 2px solid var(--ink) !important; }
.skins button[aria-pressed="true"] { outline: 0 !important; border-width: 4px !important; }
.numsize .numstyle-btn { display: inline-flex !important; align-items: center; gap: 4px; }

/* dialogs: the Save / Remove row stays pinned to the bottom while the content scrolls */
.modal .card > form > .actions, .modal .card.webcam > .actions, .modal form.card > .actions { position: sticky; bottom: -16px; z-index: 3; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .modal form.card > .actions { bottom: -12px; margin: 14px -12px -12px; padding-inline: 12px; } }
.modal form.card > .actions .btn { flex: 1; }
.emojigrid { max-height: min(240px, 32vh); max-height: min(240px, 32svh); }
.flatview.pannable { cursor: grab; touch-action: none; }
.flatview.pannable:active { cursor: grabbing; }
/* size dialogs to the *visible* screen (iOS Safari's 100vh includes the area behind its bars),
   so the pinned Save row is never pushed off the bottom */
.modal { height: 100vh; height: 100dvh; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
.modal .card { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }

/* zoom animates the handset's real size (crisp), except while dragging or pinching */
.zoomer { transition: transform .28s cubic-bezier(.2, .8, .3, 1); }
.handset { transition: height .28s cubic-bezier(.2, .8, .3, 1); flex: none; }
.flatview.live .zoomer, .flatview.live .handset { transition: none; }
.zoomer { place-items: center; overflow: visible; }
.handset { position: absolute !important; left: 50%; top: 50%; margin: 0 !important; translate: -50% -55%; }
/* emoji stickers fill more of the oval */
.token[data-person] .face > span, .ghost .face > span { font-size: 1.2em; }

/* printing a real sheet: the printout is the sheet image, edge to edge */
.inkjet .page.real { display: block; padding: 0; border: 0; border-radius: 3%; overflow: hidden; box-shadow: 0 6px 12px rgba(0, 0, 0, .15); }
.inkjet .page.real .printed { width: 100%; height: 100%; display: block; }
/* handoff: printer slides down and fades, backdrop clears to reveal the page behind */
.printing { transition: background-color .5s ease, opacity .35s; }
.printing.handoff { background-color: transparent; pointer-events: none; }
.printing.handoff .box, .printing.handoff .feed, .printing.handoff h2 { transition: transform .6s cubic-bezier(.5, 0, .75, 0), opacity .45s; transform: translateY(70px); opacity: 0; }
.printing.handoff .out { overflow: visible; }
/* page waits hidden under the printer, then eases in around the sheet */
body.intro .sheetwrap { opacity: 0; animation: none !important; }
body.intro .top, body.intro .ticker, body.intro .check h1, body.intro .lede, body.intro .scale, body.intro .orderbar,
body.intro .sparkle, body.intro .pointer, body.intro .party { opacity: 0; }
body.intro.revealed .top, body.intro.revealed .ticker, body.intro.revealed .check h1, body.intro.revealed .lede, body.intro.revealed .scale, body.intro.revealed .orderbar,
body.intro.revealed .sparkle, body.intro.revealed .pointer, body.intro.revealed .party { opacity: 1; transition: opacity .6s ease .35s; }
body.intro.revealed .check h1 { transition-delay: .25s; }
body.intro.revealed .orderbar { transition-delay: .55s; }
/* during the handoff the real sheet sits above the printer overlay, so it never disappears behind it */
body.intro .sheetwrap { position: relative; z-index: 400; }
.printing.handoff { transition: background-color .45s ease; }

/* phones: a roomier bottom bar with taller, easier-to-hit buttons */
@media (max-width: 860px) {
  .orderbar { height: auto; min-height: 74px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .orderbar .btn.big, .orderbar .btn.plain { min-height: 54px; padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- bigger colour swatches and number toggle; size options live in the Numbers menu on phones ---------- */
.skins button { width: 40px !important; height: 40px !important; }
.numsize .numstyle-btn { min-height: 36px; }
.menusizes { display: none; margin-top: 10px; }
.menusizes p { margin: 0 4px 6px; }
.menusizes .sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.menusizes .sizes button { min-height: 44px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.menusizes .sizes button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
@media (max-width: 860px) {
  .menusizes { display: block; }
  .numsize > button[data-numsize] { display: none !important; }
  .numsize { border-radius: 999px; }
  .numsize .numstyle-btn { min-height: 44px; padding: 0 16px !important; font-size: 15px !important; }
  .numsize .numstyle-btn .lbl { display: inline !important; }
  .skins { left: 96px !important; gap: 8px !important; bottom: 9px !important; }
  .skins button { width: 36px !important; height: 36px !important; }
  .zoom button { width: 40px !important; height: 40px !important; }
}
@media (max-width: 380px) { .skins { left: 90px !important; gap: 6px !important; } .skins button { width: 32px !important; height: 32px !important; } .numsize .numstyle-btn { padding: 0 12px !important; } }

/* checkout loading: a calm skeleton shaped like Stripe's page instead of a bare price line */
.loading-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px clamp(16px, 5vw, 64px); }
.loading-pay[hidden] { display: none; }
.sk-col { display: flex; flex-direction: column; gap: 14px; }
.sk-row { display: flex; gap: 10px; }
.sk { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eceae4 0%, #f7f6f2 50%, #eceae4 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk.big { height: 30px; } .sk.w25 { width: 25%; } .sk.w30 { width: 30%; } .sk.w40 { width: 40%; } .sk.w60 { width: 60%; }
.sk.sheet { width: min(260px, 100%); aspect-ratio: 1; border-radius: 14px; }
.sk.pill { flex: 1; height: 48px; border-radius: 10px; } .sk.field { height: 44px; } .sk.btnsk { height: 50px; border-radius: 10px; background: #dfe7f7; }
.loading-pay p { margin: 4px 0 0; text-align: center; font-size: 14px; font-weight: 700; opacity: .7; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 700px) { .loading-pay { grid-template-columns: 1fr; gap: 24px; } .sk.sheet { display: none; } }
/* waiting bar: faces sit dead centre */
.libbar { padding-top: 8px !important; padding-bottom: 8px !important; align-items: center; }
.libbar .token[data-person] { padding-top: 0; justify-content: center; }
@media (max-width: 860px) {
  .skins { left: 102px !important; gap: 6px !important; bottom: 11px !important; }
  .skins button { width: 32px !important; height: 32px !important; }
  .numsize { bottom: 8px !important; }
  .numsize .numstyle-btn { min-height: 38px; height: 38px; padding: 0 14px !important; gap: 6px; }
  .numsize .numstyle-btn [aria-hidden] { font-size: 12px; }
}
@media (max-width: 380px) { .skins { left: 96px !important; gap: 5px !important; } .skins button { width: 28px !important; height: 28px !important; } }
@media (max-width: 860px) { .numsize .numstyle-btn [aria-hidden] { display: inline !important; } }

/* phones: the Numbers panel floats above the toolbar, fits the screen, and scrolls if it must */
@media (max-width: 860px) {
  .numstyle-menu { position: fixed; left: 10px; right: 10px; width: auto; bottom: calc(var(--bar, 74px) + 66px); max-height: calc(100vh - var(--bar, 74px) - 140px); max-height: calc(100dvh - var(--bar, 74px) - 140px); overflow-y: auto; z-index: 40; padding: 12px; }
  .numstyle-menu button[data-numstyle] { grid-template-columns: 48px 1fr; padding: 8px 10px; }
  .numstyle-menu .demo { width: 46px; height: 37px; }
  .numstyle-menu .demo.key i { font-size: 17px; right: 9px; } .numstyle-menu .demo.key em { font-size: 8px; left: 7px; bottom: 4px; }
  .numstyle-menu .demo.badge i { width: 15px; height: 15px; font-size: 9px; }
  .numstyle-menu small { font-size: 12px; line-height: 1.3; }
  .menusizes .sizes button { min-height: 44px; width: 100%; }
}

/* "aA" text-style toggle for number options */
.numstyle-btn .aa { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: -.02em; }
.numstyle-btn .aa small { font-size: .68em; margin-right: 1px; }
@media (max-width: 860px) {
  .numsize .numstyle-btn { padding: 0 12px !important; min-width: 64px; justify-content: center; }
  .numstyle-menu { bottom: calc(var(--bar, 74px) + 74px); }
}
/* phones: one evenly spaced toolbar row, every control centred on the same line */
@media (max-width: 860px) {
  .viewer::before { height: 60px !important; }
  .zoomer { inset: 0 0 60px 0 !important; }
  .zoom, .skins, .numsize { top: auto !important; bottom: 30px !important; transform: translateY(50%) !important; }
  .numstyle-menu { bottom: calc(var(--bar, 74px) + 74px); }
}
.numstyle-btn .aa { font-size: 22px !important; }
@media (max-width: 860px) { .numsize .numstyle-btn { min-width: 0; padding: 0 14px !important; } }
/* clearer ▾ on the aA button */
.numstyle-btn .aa + [aria-hidden] { font-size: 16px !important; line-height: 1; }
@media (max-width: 860px) { .numsize .numstyle-btn .aa + [aria-hidden] { font-size: 16px !important; } }

/* Numbers panel samples follow the chosen size: Off hides the number, S/M/L scale it */
.numstyle-menu { --k: 1; }
.numstyle-menu[data-size="0"] { --k: .78; } .numstyle-menu[data-size="2"] { --k: 1.28; }
.numstyle-menu[data-size="-1"] .demo > * { opacity: 0; }
.numstyle-menu .demo > * { transition: font-size .15s, width .15s, height .15s, opacity .15s; }
.numstyle-menu .demo.badge i { width: calc(18px * var(--k)) !important; height: calc(18px * var(--k)) !important; font-size: calc(11px * var(--k)) !important; }
.numstyle-menu .demo.key i { font-size: calc(22px * var(--k)) !important; }
.numstyle-menu .demo.key em { font-size: calc(9px * var(--k)) !important; }
@media (max-width: 860px) {
  .numstyle-menu .demo.badge i { width: calc(15px * var(--k)) !important; height: calc(15px * var(--k)) !important; font-size: calc(9px * var(--k)) !important; }
  .numstyle-menu .demo.key i { font-size: calc(17px * var(--k)) !important; }
  .numstyle-menu .demo.key em { font-size: calc(8px * var(--k)) !important; }
}
/* key-style sample: number and letters scale a little less so they never collide on the tiny oval */
.numstyle-menu { --kk: 1; } .numstyle-menu[data-size="0"] { --kk: .8; } .numstyle-menu[data-size="2"] { --kk: 1.12; }
.numstyle-menu .demo.key i { font-size: calc(22px * var(--kk)) !important; top: 0 !important; right: 8px !important; }
.numstyle-menu .demo.key em { font-size: calc(8.5px * var(--kk)) !important; left: 6px !important; bottom: 5px !important; }
@media (max-width: 860px) {
  .numstyle-menu .demo.key i { font-size: calc(18px * var(--kk)) !important; right: 6px !important; }
  .numstyle-menu .demo.key em { font-size: calc(7.5px * var(--kk)) !important; left: 5px !important; bottom: 4px !important; }
}

/* aA panel: Save / Cancel pinned to the bottom, like the other dialogs */
.numstyle-menu { display: flex; flex-direction: column; }
.numstyle-menu[hidden] { display: none; }
.numstyle-menu .numactions { position: sticky; bottom: -10px; margin: 12px -10px -10px; padding: 10px; background: var(--paper); border-top: 2px solid var(--ink); border-radius: 0 0 12px 12px; display: flex; gap: 10px; }
.numstyle-menu .numactions .btn { flex: 1; font-size: 16px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 860px) { .numstyle-menu .numactions { bottom: -12px; margin: 12px -12px -12px; padding: 10px 12px; } }

/* aA button chevron: clear, and flips while the panel is open */
.numstyle-btn .chev { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.numstyle-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* style options: always the same height */
.numstyle-menu button[data-numstyle] { min-height: 82px; align-content: center; }
.numstyle-menu button[data-numstyle] small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .numstyle-menu button[data-numstyle] { min-height: 74px; } }
/* size Off: the style options grey out (tapping one brings the numbers back) */
.numstyle-menu[data-size="-1"] button[data-numstyle] { opacity: .45; filter: grayscale(1); box-shadow: none !important; background: #fff !important; }
.numstyle-menu button[data-numstyle] { transition: opacity .15s, filter .15s; }
/* green bars: balance the 3px top border so buttons sit dead centre */
.orderbar { padding-bottom: 13px !important; }
@media (max-width: 860px) { .orderbar { padding-top: 10px !important; padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px)) !important; } }

/* taps are just taps: no double-tap browser zoom on buttons, emojis, swatches or dialogs (pinch still works) */
button, a, input, label, summary, [role="button"], .token, .key, .modal, .emojigrid, .tones, .choices, .numstyle-menu, .pickbar, .orderbar { touch-action: manipulation; }
/* iOS zooms into text fields under 16px; keep every field at 16px or more */
input[type="text"], input[type="email"], input[type="search"] { font-size: max(16px, 1em); }

/* vector emoji images sit exactly where emoji text did */
img.emo { width: 1em; height: 1em; display: block; margin: 0 auto; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.emojigrid button img.emo { width: 30px; height: 30px; }

/* zoom slider: big thumb, thick track, chunky step buttons either side */
.zoomrow { gap: 8px; width: min(340px, 100%); margin-top: 12px; }
.zoomrow .zstep { flex: none; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--paper); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; padding: 0; }
.zoomrow .zstep:active { transform: translate(2px, 2px); box-shadow: none; }
.zoomrow input[type="range"] { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; touch-action: none; }
.zoomrow input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(var(--orange), var(--orange)) 0 / var(--fill, 30%) 100% no-repeat, #e4dfd1; border: 2px solid var(--ink); }
.zoomrow input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.zoomrow input[type="range"]::-moz-range-track { height: 12px; border-radius: 99px; background: #e4dfd1; border: 2px solid var(--ink); }
.zoomrow input[type="range"]::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--orange); }
.zoomrow input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }

/* emoji grid: one section per group; the skin-tone row is pinned only inside the people section */
.emojigrid { display: block; padding: 0 6px 6px; }
.egroup { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.egroup[hidden] { display: none; }
.egroup .tones { grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; margin: 0 -6px; padding: 6px; background: #fff; border-bottom: 2px solid var(--ink); }
.egroup .tones { flex-wrap: nowrap; gap: 2px; }
@media (max-width: 480px) { .egroup .tones span { font-size: 11px; margin-right: 2px; } .egroup .tones button { width: 34px; height: 34px; font-size: 20px; } }

/* Twemoji icons on the ways-in buttons, sized like the text emoji they replaced */
.dropzone .cam .emo, .camlink .emo { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }
img.emo.inline { display: inline-block; width: 1.15em; height: 1.15em; margin: 0; vertical-align: -.2em; }
.brand-mark img.emo.inline, .lockup .mark img.emo.inline, .pointer img.emo.inline, .party img.emo.inline { width: 1em; height: 1em; vertical-align: middle; }

/* bottom bar: no sticker counter, so the next step fills the bar (Start over stays beside it on computers) */
.orderbar [data-next] { flex: 1; justify-content: center; text-align: center; }
.orderbar [data-reset] { align-self: stretch; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .orderbar [data-reset] { display: none; } }
