/* GAMJA FRIEZ 브랜드 토큰 — 로고·X배너에서 추출 */
:root {
  --orange: #f26522; /* X배너 바탕 */
  --orange-deep: #f05423; /* 로고 오렌지 */
  --yellow: #fdbd3d; /* 로고 옐로 */
  --cream: #fff8e6; /* 메뉴 카드·말풍선 원 */
  --ink: #1a110b; /* 카드 테두리·검정 태그 */
  --ink-soft: #6b5a4c;
  --green: #2f9e44;
  --red: #d9381e;

  --font-display: 'Black Han Sans', 'Pretendard', sans-serif; /* 감튀 픽업 · 숫자 */
  --font-latin: 'Lilita One', 'Black Han Sans', sans-serif; /* PICK-UP · FRIEZ */
  --font-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --border: 3px solid var(--ink);
  --sticker-shadow: 4px 4px 0 var(--ink);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* 버튼 — 메뉴판 카드처럼 검정 테두리 + 오프셋 그림자 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 800;
  box-shadow: var(--sticker-shadow);
  transition: transform 0.06s, box-shadow 0.06s;
  touch-action: manipulation;
  text-decoration: none;
  color: var(--ink);
}
.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-primary {
  background: var(--orange-deep);
  color: var(--cream);
}
.btn-yellow {
  background: var(--yellow);
}
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
}

/* 검정 태그 (메뉴판의 no.1 라벨) */
.tag {
  display: inline-block;
  padding: 4px 12px 5px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-latin);
  letter-spacing: 0.02em;
  border-radius: 8px;
  transform: rotate(-3deg);
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: var(--border);
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  box-shadow: var(--sticker-shadow);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
#toast[data-type='error'] {
  background: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
