@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* 매장 로고 색: 노랑(강조 버튼) + 남색(글자·숫자) + 하늘(보조) */
:root {
  --yellow: #ffc81e;
  --yellow-dark: #f2b400;
  --yellow-soft: #fff5d1;
  --navy: #23304a;
  --navy-soft: #eef1f6;
  --sky: #3aa8e0;
  --blue: var(--navy);        /* 예전 이름: 강조 글자·숫자에 쓰임 */
  --blue-dark: #182235;
  --ink: #1d2433;
  --muted: #6b7385;
  --line: #e3e6ec;
  --bg: #f6f7f9;
  --card: #ffffff;
  --danger: #d64545;
  --ok: #1f9d55;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
.hidden { display: none !important; }

.btn-primary { background: var(--yellow); color: var(--navy); font-weight: 700; }
.btn-primary:active:not(:disabled) { background: var(--yellow-dark); }
.btn-outline { background: #fff; border: 1px solid var(--line); }
.btn-outline:active:not(:disabled) { background: #f3f4f6; }

/* 숫자 키패드 */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 16px 16px; }
.pad button { border-radius: 16px; font-size: 1.9rem; font-weight: 500; color: var(--navy); background: var(--bg); transition: background 0.12s, transform 0.08s; }
.pad button:active:not(:disabled) { transform: scale(0.96); }
.pad button:active:not(:disabled):not(.btn-primary) { background: var(--navy-soft); }
.pad button.btn-primary { background: var(--yellow); color: var(--navy); font-size: 1.6rem; font-weight: 700; }
.pad button.btn-primary:active:not(:disabled) { background: var(--yellow-dark); }
.pad button.btn-primary:disabled { background: #fbe7a8; color: #8f8463; opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: #222a; color: #fff; padding: 12px 20px; border-radius: 10px;
  opacity: 0; transition: all 0.25s; z-index: 100; font-size: 1rem; backdrop-filter: blur(4px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--danger); }
.toast-ok { background: var(--ok); }

.conn { position: fixed; top: 6px; right: 8px; font-size: 0.75rem; color: var(--danger); z-index: 50; }
