/* 디어리얼 수건 조합 키오스크 — 디자인 시스템 v2
 * 톤: 갤러리 화이트 위에 컬러 수건. 종이 티켓 같은 조합 카드. 블루가든 블루는 행동과 선택에만 쓴다.
 * 스킨은 :root[data-skin] 변수만 바꾼다. 레이아웃은 공통.
 */
:root {
  --bg: #F4EFE6;            /* 갤러리 화이트 */
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;     /* 트레이·패널 */
  --ink: #2E2A27;           /* 캡션 차콜 */
  --ink-2: #5F574F;         /* 보조 글자 — 배경 대비 6.3:1 */
  --line: #E6DED1;
  --line-strong: #CFC4B3;
  --oak: #8F6740;
  --brass: #B59A5B;
  --accent: #0B3A86;        /* 블루가든 */
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECF7;
  --danger: #B3402F;
  --img-bg: #FCFAF6;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Apple SD Gothic Neo", "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, sans-serif;
  --z-toast: 50;
}
:root[data-skin="B"] {
  --bg: #FBF6EE; --surface: #FFFFFF; --surface-2: #FDFAF5; --ink: #3B2F2A; --ink-2: #6A5B51;
  --line: #EEE3D2; --line-strong: #D9C9B2; --oak: #B4622F; --brass: #D9A05B;
  --accent: #B4622F; --accent-ink: #FFFFFF; --accent-soft: #F6E6DB;
}
:root[data-skin="C"] {
  --bg: #24211F; --surface: #2F2B28; --surface-2: #2A2724; --ink: #F4EFE6; --ink-2: #C4B9AE;
  --line: #3F3935; --line-strong: #554D47; --oak: #C9A57A; --brass: #D8C08A;
  --accent: #D8C08A; --accent-ink: #24211F; --accent-soft: #3A342C; --img-bg: #FFFFFF;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
body { position: fixed; inset: 0; }
img { pointer-events: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; }

/* 버튼 — 화면 어디서나 같은 모양 */
.btn {
  min-height: 64px; padding: 0 30px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s var(--ease), opacity .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn.ghost:active { background: var(--bg); }
.btn.small { min-height: 52px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.block { width: 100%; }

.wordmark { font-size: 13px; font-weight: 800; letter-spacing: .24em; color: var(--ink); }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}

/* ---------- 시작 화면 ---------- */
#start { padding: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 28px 0; padding-top: calc(18px + env(safe-area-inset-top, 0px)); flex: none;
}
.start-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 22px; padding: 16px 0 24px;
}
.start-body > * { flex: none; }
#start h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; padding: 0 28px; word-break: keep-all; }
#start p { font-size: 19px; color: var(--ink-2); margin: 0; white-space: pre-line; padding: 0 28px; word-break: keep-all; max-width: 40ch; }
#start .rule { font-size: 15px; color: var(--ink-2); padding: 0 28px; word-break: keep-all; }
#start .btn { min-height: 72px; padding: 0 56px; font-size: 21px; margin-top: 4px; }
/* 수건 띠 — 39장이 옆으로 계속 흐르고, 올리면 멈추고, 잡아 끌 수 있다 */
#start .hero {
  width: 100%; padding: 16px 0; overflow: hidden; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
#start .hero.dragging { cursor: grabbing; }
.hero-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.hero-track img {
  width: 136px; height: 136px; flex: none; object-fit: cover; border-radius: var(--r-md);
  background: var(--img-bg); border: 1px solid var(--line); pointer-events: none;
}
.corner { position: absolute; bottom: 10px; right: 14px; font-size: 12px; color: var(--ink-2); opacity: .6; padding: 12px; }
.corner-left { position: absolute; bottom: 0; left: 0; width: 88px; height: 72px; }

/* ---------- 선택 화면 ---------- */
.pick-head {
  flex: none; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px 20px 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title back" "chips chips"; gap: 8px 16px; align-items: center;
}
.pick-head .title { grid-area: title; display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.pick-head .title .wordmark { flex: none; }
.pick-head .title .guide { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-head #pickBack { grid-area: back; min-height: 46px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.filters {
  grid-area: chips; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 0;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 46px; padding: 0 16px; border-radius: 10px; white-space: nowrap;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-skin="C"] .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.pick-body { display: flex; flex: 1; min-height: 0; }
.grid {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 12px; align-content: start;
  scroll-snap-type: y mandatory; scroll-padding-top: 16px;
}
.tile {
  position: relative; background: var(--surface); border-radius: var(--r-md); padding: 8px 8px 10px;
  border: 1.5px solid var(--line); text-align: center; transition: transform .12s var(--ease), border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; scroll-snap-align: start;
}
.tile:active { transform: scale(.97); }
.tile.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile.maxed:not(.picked) { opacity: .45; }
.tile.maxed.picked .qty { background: var(--ink); }
.tile img { width: var(--tile-img, 100%); height: var(--tile-img, auto); max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-sm); background: var(--img-bg); display: block; }
.tile .name { margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile .sub { font-size: 12px; color: var(--ink-2); min-height: 16px; margin-top: 2px; }
.tile .qty {
  position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.tile .qty[hidden] { display: none; }
.tile.hidden { display: none; }

/* 트레이 */
.tray {
  width: 336px; flex: none; background: var(--surface-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.tray-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.tray-head .label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); }
.tray-head .count { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.tray-head .count small { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.tray-head .hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; min-height: 18px; white-space: nowrap; }
.tray-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 12px; }
.tray-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line);
  animation: rise .22s var(--ease) both;
}
.tray-item:last-child { border-bottom: 0; }
.tray-item img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--img-bg); flex: none; border: 1px solid var(--line); }
.tray-item .info { flex: 1; min-width: 0; }
.tray-item .info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.25; word-break: keep-all; }
.tray-item .info span { font-size: 13px; color: var(--ink-2); }
.tray-item .ctl { display: flex; align-items: center; gap: 2px; flex: none; }
.tray-item .ctl button {
  width: 56px; height: 56px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-strong);
  font-size: 24px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.tray-item .ctl button:active { background: var(--bg); }
.tray-item .ctl button[disabled] { opacity: .35; }
.tray-item .ctl .n { width: 30px; text-align: center; font-weight: 800; font-size: 16px; }
.tray-empty { color: var(--ink-2); text-align: center; padding: 48px 16px; font-size: 15px; line-height: 1.6; }
.tray-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tray-foot .btn { width: 100%; }
.tray-foot .price { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.tray-foot .price b { color: var(--ink); font-size: 20px; }
.tray-foot .price .strike { text-decoration: line-through; margin-right: 6px; }

/* 좁은 가로(구형 아이패드) */
@media (orientation: landscape) and (max-width: 1100px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; padding: 12px; scroll-padding-top: 12px; }
  .tray { width: 300px; }
}
/* 세로: 트레이를 아래 바로 */
@media (orientation: portrait) {
  .pick-body { flex-direction: column; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tray { width: auto; height: 172px; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; }
  .tray-head { width: 156px; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; }
  .tray-head .count { font-size: 24px; }
  .tray-head .hint { font-size: 12px; }
  .tray-list { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 8px; align-items: stretch; }
  .tray-item { flex-direction: column; justify-content: space-between; width: 152px; flex: none; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); gap: 4px; }
  .tray-item img { width: 44px; height: 44px; }
  .tray-item .info b { white-space: normal; font-size: 12px; line-height: 1.2; word-break: keep-all; -webkit-line-clamp: 1; }
  .tray-item .info span { display: none; }
  .tray-item .ctl button { width: 56px; height: 56px; font-size: 22px; border-radius: 10px; }
  .tray-item .ctl .n { width: 26px; font-size: 14px; }
  .tray-empty { align-self: center; width: 100%; padding: 0 16px; }
  .tray-foot { width: 240px; border-top: 0; border-left: 1px solid var(--line); justify-content: center; padding: 10px 14px; gap: 6px; }
  .tray-foot .btn { font-size: 17px; padding: 0 12px; }
}

/* ---------- 완성 화면: 티켓 ---------- */
#done { align-items: center; justify-content: flex-start; padding: 24px 20px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#done .card { margin-top: auto; }
#done .done-actions { margin-bottom: auto; }
.card {
  width: min(880px, 100%); flex: none; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; animation: rise .28s var(--ease) both;
}
.ticket-top { background: var(--accent); color: var(--accent-ink); padding: 26px 32px 24px; position: relative; }
.ticket-top .brand { font-size: 12px; font-weight: 800; letter-spacing: .24em; opacity: .85; display: flex; justify-content: space-between; align-items: center; }
.ticket-top .brand span { letter-spacing: .02em; font-weight: 600; opacity: .9; }
.ticket-top h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.ticket-top .sub { font-size: 15px; opacity: .85; margin-top: 4px; }
.ticket-top .no-wrap { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ticket-top .no-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.ticket-top .no { font-size: 52px; font-weight: 900; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
/* 절취선 */
.ticket-seam { position: relative; height: 0; border-top: 2px dashed var(--line-strong); margin: 0 18px; }
.ticket-seam::before, .ticket-seam::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.ticket-seam::before { left: -31px; } .ticket-seam::after { right: -31px; }
.ticket-body { display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; padding: 22px 32px 26px; align-items: start; }
.card-items { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.card-items .ci { width: 84px; text-align: center; position: relative; }
.card-items .ci img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--img-bg); display: block; border: 1px solid var(--line); }
.card-items .ci span { display: block; font-size: 12px; line-height: 1.25; margin-top: 6px; color: var(--ink); word-break: keep-all; }
.card-items .ci .q {
  position: absolute; top: -6px; right: -6px; background: var(--ink); color: var(--bg);
  border-radius: 999px; min-width: 24px; height: 24px; padding: 0 6px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.price-block { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.price-block .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.price-block .row.final { font-size: 24px; font-weight: 800; color: var(--ink); }
.price-block .row.final span:first-child { font-size: 17px; font-weight: 700; }
.price-block .row .strike { text-decoration: line-through; }
.price-block .note { font-size: 13px; color: var(--ink-2); }
.qr-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 240px; }
.qr-col .qr { background: #fff; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); }
.qr-col .qr img, .qr-col .qr svg { width: 216px; height: 216px; display: block; }
.qr-col .cap { font-size: 13px; color: var(--ink-2); line-height: 1.45; max-width: 220px; }
.done-actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; padding-bottom: 12px; }
.done-actions .timer { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) {
  .ticket-body { grid-template-columns: 1fr; }
  .qr-col { order: -1; width: 100%; }
  .qr-col .qr img, .qr-col .qr svg { width: min(200px, 56vw); height: min(200px, 56vw); }
}

/* ---------- 직원 화면 (조회 / 관리자) ---------- */
.staff-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line); flex: none;
}
.staff-head h2 { font-size: 18px; flex: 1; display: flex; align-items: baseline; gap: 12px; }
.staff-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px; -webkit-user-select: text; user-select: text; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin: 0 auto 14px; max-width: 880px; }
.panel h3 { font-size: 17px; margin-bottom: 10px; }
.panel p.help { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.field { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.field label { color: var(--ink-2); font-weight: 600; }
.field input, .field select, .field textarea, .text-input {
  min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus, .text-input:focus, .mini input:focus, .price-grid input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 90px; }
.text-input { width: 200px; font-size: 18px; text-transform: uppercase; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mini { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mini input { width: 104px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.price-grid label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.price-grid label img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--img-bg); border: 1px solid var(--line); }
.price-grid label span { flex: 1; }
.price-grid label input { width: 100px; min-height: 44px; padding: 4px 8px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: right; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; margin: 24px auto; }
.pin-pad button { height: 84px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); font-size: 26px; font-weight: 700; }
.pin-pad button:active { background: var(--bg); }
.pin-dots { text-align: center; font-size: 30px; letter-spacing: .4em; min-height: 48px; margin-top: 16px; }
.msg { color: var(--danger); text-align: center; min-height: 24px; font-size: 15px; }
.lookup-result .card { width: 100%; margin-top: 14px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table td, .stat-table th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.stat-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 12px; font-weight: 600; }
#scanVideo { width: 100%; max-width: 480px; border-radius: var(--r-md); background: #000; display: block; }

/* ---------- 공통 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(6px); background: var(--ink); color: var(--bg);
  padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .22s var(--ease); z-index: var(--z-toast); white-space: nowrap; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 폰 (확인용) ---------- */
@media (max-width: 600px) {
  .topbar { padding: 14px 18px 0; }
  #start h1 { font-size: 30px; padding: 0 20px; }
  #start p { font-size: 16px; padding: 0 20px; }
  #start .rule { font-size: 13px; }
  #start .btn { min-height: 64px; padding: 0 40px; font-size: 19px; }
  .hero-track img { width: 104px; height: 104px; border-radius: 14px; }
  .pick-head { padding: 10px 14px 8px; }
  .pick-head .title .guide { font-size: 16px; }
  .pick-head .title .wordmark { display: none; }
  .chip { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; padding: 10px; scroll-padding-top: 10px; }
  .tile { padding: 6px 6px 10px; }
  .tile .name { font-size: 13px; }
  .tray { height: 150px; }
  .tray-head { width: 92px; padding: 8px 10px; }
  .tray-head .label { font-size: 11px; }
  .tray-head .count { font-size: 22px; }
  .tray-head .hint { display: none; }
  .tray-list { gap: 6px; padding: 8px; }
  .tray-item { width: 76px; padding: 6px 2px; gap: 4px; }
  .tray-item img { width: 44px; height: 44px; }
  .tray-item .info b { font-size: 11px; -webkit-line-clamp: 1; }
  .tray-item .ctl { gap: 0; }
  .tray-item .ctl button { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
  .tray-item .ctl .n { width: 18px; font-size: 12px; }
  .tray-foot { width: 128px; padding: 8px; gap: 6px; }
  .tray-foot .price { flex-direction: column; align-items: flex-end; gap: 0; font-size: 11px; min-height: 0; }
  .tray-foot .price b { font-size: 15px; }
  .tray-foot .price .strike { display: none; }
  .tray-foot .btn { min-height: 52px; font-size: 15px; padding: 0 6px; border-radius: 12px; }
  #done { padding: 14px 12px; }
  .ticket-top { padding: 18px 20px 18px; }
  .ticket-top h2 { font-size: 20px; }
  .ticket-top .no { font-size: 40px; }
  .ticket-seam { margin: 0 12px; }
  .ticket-seam::before { left: -25px; } .ticket-seam::after { right: -25px; }
  .ticket-body { padding: 16px 20px 20px; gap: 16px; }
  .card-items .ci, .card-items .ci img { width: 64px; }
  .card-items .ci img { height: 64px; }
  .price-block .row.final { font-size: 20px; }
  .done-actions .btn { min-height: 56px; }
  .staff-body { padding: 12px; }
  .panel { padding: 16px; }
  .field { grid-template-columns: 1fr; gap: 4px; }
  .pin-pad { grid-template-columns: repeat(3, 76px); }
  .pin-pad button { height: 76px; }
}

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