/* ============================================================
   Flapbooth — a split-flap photo booth, after FlapPix at Jewel Changi.

   One screen, laid out like the installation itself: the split-flap
   board fills the wall, and the photo kiosk stands underneath it.
   Everything fits the viewport; nothing scrolls.
   ============================================================ */

:root {
  --venue:      #ffffff;   /* the wall the board hangs on: plain white */
  --ink:        #111;

  --board:      #050505;   /* the frame and the gaps between tiles */
  --tile:       #2a2a2d;   /* flap face: mid-dark grey, so the grid reads */
  --tile-hi:    #333337;
  --glyph:      #f5f3ee;

  --steel-1:    #d3d5d9;
  --steel-2:    #b9bcc2;
  --screen-1:   #858aa0;   /* the kiosk screen's muted slate */
  --screen-2:   #a0a5b8;

  --flap: "DIN Condensed", "DIN Alternate", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* interface type (everything except the flaps): one plain mono throughout */
  /* brushed steel, shared by the kiosk and the print pickup */
  --steel-grain: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(0, 0, 0, 0.025) 1px 3px);
  --steel-face: linear-gradient(180deg, #c3c4c7 0%, #b2b3b6 55%, #a6a7aa 100%);
  --engrave: 0 1px 0 rgba(255, 255, 255, 0.55);   /* text pressed into the plate */
  --groove: 1px solid rgba(0, 0, 0, 0.16);        /* with an inset highlight below it */

  --ui-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
/* no double-tap zoom on quick taps (START, shutter, samples); pinch-zoom still works */
html { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--venue);
  color: var(--ink);
  font-family: var(--ui-mono);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- installation layout ---------- */

.installation {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  /* without this the board's own width holds the column open, so the wall
     never shrinks and the board can't re-fit when the window gets narrower */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.8vh, 22px);
  padding: clamp(10px, 2vh, 26px) clamp(10px, 2vw, 32px) clamp(8px, 1.2vh, 14px);
}

.wall {
  min-height: 0;
  display: flex;
  /* the board sits just above the kiosk; any spare height goes above it,
     like the ceiling over the real board */
  align-items: flex-end;
  justify-content: center;
}

/* ---------- the board ---------- */

.board-frame {
  background: var(--board);
  padding: var(--frame-pad, 10px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
}

/* tile tracks are set in px by layoutBoard(), so tiles are exactly 1:2 */
.board {
  display: grid;
  gap: var(--gap, 2px);
  background: var(--board);
  font-family: var(--flap);
  font-weight: 700;
  font-size: var(--glyph-size, 16px);
  line-height: 1;
  user-select: none;
}

.tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--tile-hi), var(--tile) 48%, #262629 52%, var(--tile));
  perspective: 240px;
}
/* the split across the middle of every flap */
.tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: max(1px, 6%);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* DIN Condensed sits a touch high in its em box; nudge it onto the split */
  padding-top: 0.1em;
  color: var(--glyph);
  transform-origin: center 50%;
  backface-visibility: hidden;
}
/* font styles: only the face printed on the flaps changes — the tiles,
   the split and the flip stay exactly the same */
.board[data-font="yellow"] {
  font-family: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
}
.board[data-font="yellow"] .glyph { color: #f5c430; padding-top: 0.06em; }

/* LED: the glyph is a blue block let through a dot-matrix mask */
.board[data-font="led"] .glyph {
  padding-top: 0;
  background: #46d6ff;
  -webkit-mask: var(--m, linear-gradient(transparent, transparent)) center 52% / 88% auto no-repeat;
          mask: var(--m, linear-gradient(transparent, transparent)) center 52% / 88% auto no-repeat;
}

.glyph.flap-a, .glyph.flap-b { animation: flap 90ms cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes flap {
  0%   { transform: rotateX(-80deg); }
  60%  { transform: rotateX(-14deg); }
  100% { transform: rotateX(0deg); }
}

/* ---------- the kiosk: a brushed-steel booth panel ----------
   The same metal as the print pickup, so the kiosk and the slot read
   as one machine: engraved type, grooves between the rows, and the
   camera set into a dark bezel like the slot's mouth. */

.kiosk {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 560px);
}

.kiosk-screen {
  width: 100%;
  background: var(--steel-grain), var(--steel-face);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.2),
    0 16px 30px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  color: #2b2d33;
  text-shadow: var(--engrave);
  overflow: hidden;
}

.k-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.k-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.k-title {
  margin: 0;
  font-family: var(--ui-mono);
  font-size: clamp(14px, 1.9vh, 18px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.k-title .k-hl { color: #147a2f; }

.k-link {
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  font-family: var(--ui-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d3f45;
  cursor: pointer;
  white-space: nowrap;
}
.k-link:hover { color: #15161a; }

.k-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.k-tools [data-show] { display: none; }    /* shown per step by setKiosk() */
.k-gear {
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #3d3f45;
  cursor: pointer;
}
.k-gear svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  fill-rule: evenodd;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));   /* engraved, like the type */
  transition: transform 300ms ease;
}
.k-gear:hover { color: #15161a; }
.k-gear:hover svg { transform: rotate(45deg); }
.k-link[aria-pressed="false"] { color: #74767c; }

.k-body {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: var(--groove);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.k-example {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(46px, 8.5vh, 78px);
}
.k-example svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), var(--engrave);
}
.k-example figcaption {
  margin-top: 4px;
  font-family: var(--ui-mono);
  font-size: 8px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #4a4c52;
  text-align: center;
}

/* live preview, 4:3 like the camera */
.k-view {
  position: relative;
  flex: 0 0 auto;
  height: clamp(96px, 17vh, 210px);
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #050506, #1b1c1f 70%, #2a2b2f);
  border: 5px solid #1b1c1f;
  border-radius: 9px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-shadow: none;
}
.k-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.k-media.mirrored { transform: scaleX(-1); }
.k-still { object-fit: cover; }

.k-placeholder {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: var(--ui-mono);
  font-weight: 400;
  font-size: clamp(16px, 2.9vh, 30px);
  letter-spacing: 0.02em;
  color: #4a4c52;
}

.k-oval {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.6;
  stroke-dasharray: 2 1.6;
  vector-effect: non-scaling-stroke;
  display: none;
  pointer-events: none;
}

/* countdown digit over the live preview */
.k-count {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: none;
  place-items: center;
  font-family: var(--ui-mono);
  font-weight: 400;
  font-size: clamp(32px, 6vh, 64px);          /* about a third of the preview's height */
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.k-count.tick { animation: count-tick 950ms ease-out both; }
@keyframes count-tick {
  0%   { opacity: 0; transform: scale(1.5); }
  15%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0.15; transform: scale(0.92); }
}

.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.fire { animation: flash-fire 420ms ease-out; }
@keyframes flash-fire { 0% { opacity: 0.95; } 100% { opacity: 0; } }

/* the red shutter sits inside the preview */
.shutter {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  place-items: center;
  width: clamp(40px, 6vh, 56px);
  height: clamp(40px, 6vh, 56px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.45);
  cursor: pointer;
  transition: background-color 140ms ease, transform 110ms ease;
}
.shutter svg { width: 46%; height: 46%; fill: #fff; }
.shutter .shutter-lens { fill: #ff3b30; }
.shutter:hover:not(:disabled) { background: #ff5146; }
.shutter:active:not(:disabled) { transform: translateX(-50%) scale(0.94); }
.shutter:disabled { background: #c9c9c9; box-shadow: none; cursor: not-allowed; }
.shutter:disabled .shutter-lens { fill: #c9c9c9; }

/* ---------- kiosk actions ---------- */

.k-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-top: var(--groove);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.k-actions > [data-show] { display: none; }

.k-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* white keys raised off the steel, so they never merge with the dark
     camera bezel or the board above */
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: linear-gradient(180deg, #ffffff, #eff0f2);
  color: #1d1e22;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 #fff;
  padding: 6px 15px;
  font: inherit;
  font-family: var(--ui-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}
.k-btn:hover { background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28), inset 0 1px 0 #fff; }
.k-btn:active { transform: translateY(1px); box-shadow: 0 0 1px rgba(0, 0, 0, 0.3); }
.k-btn:disabled { opacity: 0.55; cursor: progress; }
.k-btn { text-shadow: none; }          /* buttons sit on the plate, not in it */
/* secondary: an outline cut into the steel, so the white key stays the main one */
.k-btn-alt {
  background: transparent;
  color: #2b2d33;
  border: 1.5px solid #2b2d33;
  box-shadow: none;
}
.k-btn-alt:hover { background: rgba(255, 255, 255, 0.35); box-shadow: none; }
.k-mark { font-weight: 700; }
.k-yes .k-mark { color: #1a9b3c; }
.k-no  .k-mark { color: #e0352b; }

.k-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #3d3f45;
  padding: 4px 0;
  font-family: var(--ui-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.k-back:hover { color: #15161a; }

.k-btn:focus-visible, .k-link:focus-visible, .k-back:focus-visible, .k-gear:focus-visible,
.shutter:focus-visible, .opt:focus-visible {
  outline: 2px solid #2b2d33;
  outline-offset: 2px;
}

/* the pedestal's black flap tiles */
/* top row: the name on flap tiles, centred, with About me at the right */
.site-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-about {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #6b6e75;
}
.site-about:hover { color: #15161a; }

.kiosk-brand {
  display: flex;
  gap: 3px;
  margin: 0;
}
.kiosk-brand span {
  display: grid;
  place-items: center;
  width: clamp(14px, 2.2vh, 22px);
  height: clamp(20px, 3.2vh, 30px);
  background: linear-gradient(#232326 0 49%, #000 49% 51%, #19191b 51%);
  color: #f2f2f2;
  font-family: var(--flap);
  font-weight: 700;
  font-size: clamp(13px, 2.1vh, 20px);
  padding-top: 0.12em;
}

/* ---------- settings ---------- */

.settings {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 12, 0.45);
}
.settings[hidden] { display: none; }

.settings-panel {
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
}
.settings-title, .settings-panel .words-field, #btn-settings-close { grid-column: 1 / -1; }
.settings-title {
  margin: 0;
  font-family: var(--ui-mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#btn-settings-close { justify-self: start; background: #111; color: #fff; border-color: #111; box-shadow: none; }

/* close (✕) in the top-right corner of an info panel */
.about-panel { position: relative; }
.panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms;
}
.panel-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.panel-close:hover { background: #f0f0f1; }
.panel-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* about: one column, plain text */
.about-panel { grid-template-columns: 1fr; width: min(92vw, 440px); gap: 18px; }
.about-block p { margin: 0; }
.about-name { font-size: 15px; color: var(--ink); }
.about-me { display: flex; align-items: flex-end; gap: 14px; }
.about-photo {
  flex: 0 0 auto;
  display: block;
  width: 84px;
  height: 112px;               /* 3:4 */
  object-fit: cover;
  border-radius: 3px;
}
.about-bio { margin-top: 4px !important; font-size: 13px; line-height: 1.5; color: #555; }
.about-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.about-links a { font-size: 13px; line-height: 1.5; color: var(--ink); text-underline-offset: 3px; }
.about-links a:hover { color: #555; }

.optlabel {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.opt {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 1px 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: #a9a9a9;
  cursor: pointer;
}
.opt:hover { color: #666; }
.opt.is-active { color: var(--ink); }
.opt:focus-visible { outline-color: var(--ink); }

/* font: a live sample instead of a name */
.optgroup[data-name="font"] {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.optgroup[data-name="font"] .optlabel { flex: 0 0 100%; margin-bottom: -2px; }
.font-opt {
  width: auto;
  padding: 3px;
  border-radius: 3px;
  line-height: 0;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color 120ms;
}
/* every sample stays in full colour so the faces can be compared;
   the ring marks the chosen one */
.font-opt:hover { outline-color: #c9ccd1; }
.font-opt.is-active { outline-color: var(--ink); }
.font-sample {
  --sw: clamp(9px, 2.6vw, 16px);             /* tile width; tiles stay 1:2 */
  grid-template-columns: repeat(7, var(--sw));
  grid-template-rows: calc(var(--sw) * 2);
  --glyph-size: calc(var(--sw) * 1.56);       /* 0.78 of the tile height, as on the wall */
  padding: 4px;
  pointer-events: none;
}

.words-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 13px;
}
.words-field input:focus { outline: 0; border-bottom-width: 2px; }
/* iOS Safari zooms the whole page into any field set below 16px and stays
   zoomed after the panel closes; on touch screens the field is 16px */
@media (pointer: coarse), (max-width: 560px) {
  .words-field input { font-size: 16px; -webkit-appearance: none; border-radius: 0; }
}

/* ---------- pickup: the print slot ---------- */

.pickup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* the visible screen, not the one behind a phone browser's toolbars */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  z-index: 30;
  /* brushed steel: fine vertical grain over a soft top-lit gradient */
  background: var(--steel-grain), var(--steel-face);
  color: #2b2d33;
}
.pickup[hidden] { display: none; }

.pickup-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center;
  padding: clamp(14px, 3vh, 36px) 16px max(clamp(12px, 2.4vh, 28px), env(safe-area-inset-bottom));
}

.pickup-plate {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 18px 9px;
  margin-bottom: clamp(12px, 2.4vh, 26px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(0, 0, 0, 0.03) 1px 2px),
    linear-gradient(180deg, #d9dadc, #bfc0c3);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.18);
}
.pickup-plate p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.pickup-plate svg { width: 12px; height: 10px; fill: #2b2d33; }

/* the bezel and the dark mouth of the slot */
.pickup-slot {
  position: relative;
  z-index: 1;
  width: var(--slot-w, 320px);
  max-width: calc(100vw - 32px);
  padding: 11px;
  border-radius: 24px;
  background: linear-gradient(180deg, #e2e3e5 0%, #b9babd 48%, #cfd0d2 100%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.pickup-mouth {
  display: block;
  height: 30px;
  border-radius: 15px;
  background: linear-gradient(180deg, #050506, #1b1c1f 70%, #2a2b2f);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* top edge sits on the middle of the mouth: the print comes out from inside it */
.pickup-feed {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: -26px;             /* bezel padding (11) + half the mouth (15) */
  min-height: 0;
  /* sized by the screen only, never by the print inside it: the print is
     sized from this box, so letting it push back would grow the print
     until the buttons fall off the bottom (seen outside Chrome) */
  contain: size;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pickup-paper {
  transform: translateY(-100%);
  will-change: transform;
  padding: 0 10px 14px;          /* room for the shadow inside the clip */
}
.pickup-print {
  display: block;
  padding: 0;
  border: 0;
  background: #fff;
  line-height: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.4);
  cursor: default;
  transition: box-shadow 160ms;
}
.pickup-print canvas { display: block; }
.pickup.is-ready .pickup-print { cursor: pointer; }
.pickup.is-ready .pickup-print:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 22px -6px rgba(0, 0, 0, 0.5);
}
.pickup-print:focus-visible { outline: 2px solid #2b2d33; outline-offset: 3px; }

.pickup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  margin-top: clamp(8px, 1.6vh, 16px);
}
.pickup-status {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #4a4c52;
}
.pickup-actions .k-btn { display: none; }
.pickup.is-ready .pickup-status { display: none; }
.pickup.is-ready .pickup-actions .k-btn { display: inline-flex; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .k-example { display: none; }
  .k-view { height: auto; width: 78%; }
  .settings-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph.flap-a, .glyph.flap-b, .flash.fire, .k-count.tick { animation: none !important; }
  .k-gear:hover svg { transform: none; }
}
