/* 해외 마케팅 팀 공개 페이지 공통. 색: 흰 바탕 · 검정 구조 · 핑크 표식(결정 61 · 2단계 11-28). 휴대폰(375px) 먼저. */
:root {
  /* 2단계(11-28 · 결정 61 검정 · 핑크 + 흰 · 시안 _작업/시안-1127/가이드.md 1절). 대비는 run.js 시험이 값으로 잼 */
  --paper: #FFFFFF;
  --ink: #000000;
  --card: #FFFFFF;
  --muted: #5C5C5C;        /* 흰 위 6.7:1 · fill 위 6.0:1 */
  --line: #DADADA;         /* 꾸밈 구분선(정보 없음) */
  --line-strong: #767676;  /* 눌리는 것의 경계(흰 위 4.5:1) */
  --danger: #B00020;
  --pink: #FF2E88;         /* 채움 · 표식 전용. 흰 위 글자로 쓰지 않음(3.5:1) */
  --on-pink: #000000;      /* 핑크 위 글자는 검정만(6.0:1) */
  --pink-ink: #C8005F;     /* 흰 위 핑크 글자(드물게 · 5.8:1) */
  --pink-wash: #FFE8F2;    /* 광고 칸 바탕(결정 62 안 A) */
  --muted-on-ink: #B3B3B3; /* 검정 위 보조 글자(10:1) */
  --fill: #F2F2F2;         /* 시트 · 칸 바탕 · 사진 없는 자리 */
  --float: 0 6px 18px -8px rgba(0, 0, 0, 0.45); /* 지도 위에 뜬 것에만 */
  --r-btn: 6px;
  --r-sheet: 14px;
  /* 옛 이름(별칭 — talk.css · review.css 가 아직 씀 · 새 화면은 쓰지 않음). 초록 값은 없음 */
  --green: var(--ink);
  --on-green: var(--paper);
  --rail: 4px;
  --gutter: 16px;
  /* 글꼴: 바깥 글꼴을 부르지 않음(CSP · 개인정보 — 대장 11-28). 폰에 든 글꼴만 */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --font-tw: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  --font-ko: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}
/* 언어별 선택자는 :lang() 꼴로 통일(zh 는 zh-TW · zh-Hant 를 다 잡음) */
:lang(ja) { font-family: var(--font-ja); }
:lang(zh) { font-family: var(--font-tw); }
:lang(ko) { font-family: var(--font-ko); }

/* 줄바꿈: 한국어는 어절 단위(keep-all — 일본어 · 중국어에 걸면 줄이 안 바뀌어 넘치므로 한국어에만).
   일본어 · 번체는 금칙 엄격 + 외톨이 글자 줄이기, 일본어는 되는 브라우저에서 문절 단위(auto-phrase). 영어는 외톨이 낱말 줄이기. */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
:lang(ja), :lang(zh) { line-break: strict; text-wrap: pretty; overflow-wrap: break-word; }
:lang(ja) { word-break: auto-phrase; }
:lang(en) { text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 2px; } /* 초점 = 핑크 바깥 선(흰 · 검정 바탕 모두 3:1 넘음) */

.wrap { max-width: 34rem; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 언어 고르기(손님 화면 머리는 place.css 가 글자 + 핑크 밑줄로 다시 그림) */
.langs { display: flex; gap: 6px; padding: 12px 0; }
.langs button {
  flex: 1;
  min-height: 44px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.note { color: var(--muted); font-size: 0.875rem; }
.error { color: var(--danger); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  border: 0; border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.btn.ghost { background: var(--paper); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- 메뉴판 ---------- */
.shop-head { padding: 28px 0 4px; }
.shop-head h1 { margin: 0; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.01em; }
.shop-head h1 .ko { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.shop-head p { margin: 6px 0 0; }

.point {
  margin: 8px 0 20px;
  padding: 10px 14px;
  background: var(--card);
  border-left: var(--rail) solid var(--ink);
  font-weight: 600;
}

/* 노선도처럼: 왼쪽 초록 선 위에 음식마다 역 동그라미 */
.dishes { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.dishes::before {
  content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px;
  width: var(--rail); background: var(--ink); border-radius: 2px;
}
.dish { position: relative; padding: 0 0 28px; }
.dish::before {
  content: ""; position: absolute; left: -26px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--card); border: var(--rail) solid var(--ink);
}
.dish-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dish-top h2 { margin: 0; }
/* 주문용 한국어 이름: 화면 언어 제목보다 작게, 가리키기 좋게 상자 안에 */
.dish .dish-order {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  margin: 8px 0 0; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.dish-order .label { flex-basis: 100%; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.dish-ko { font-size: 1.375rem; line-height: 1.3; font-weight: 800; }
.price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-roman { color: var(--muted); font-size: 0.875rem; }
.dish-name { font-size: 1.625rem; line-height: 1.25; font-weight: 800; }
.dish p { margin: 4px 0 0; }
.dish dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.9375rem; }
.dish dt { color: var(--muted); font-weight: 600; }
.dish dd { margin: 0; }
.dish .ko-ing { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8125rem; }
.dish .ko-ing .label { display: block; font-weight: 600; }

.coupon-cta { margin: 8px 0 24px; padding: 20px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.coupon-cta p { margin: 0 0 12px; }
.coupon-cta .btn { width: 100%; }

.foot { padding: 20px 0 40px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; }

/* ---------- 쿠폰 ---------- */
.ticket { margin: 20px 0; background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.ticket-perk { background: var(--ink); color: var(--paper); padding: 22px 20px; }
.ticket-perk .shop { margin: 0 0 6px; font-weight: 600; font-size: 0.9375rem; }
.ticket-perk h1 { margin: 0; font-size: 1.75rem; line-height: 1.25; }
.ticket-body { padding: 20px; position: relative; }
.ticket-body::before {
  /* 표 뜯는 선 */
  content: ""; position: absolute; left: 20px; right: 20px; top: 0;
  border-top: 2px dashed var(--line);
}
.code {
  margin: 6px 0 4px;
  font-size: clamp(1.75rem, 8.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  word-break: keep-all;
  white-space: nowrap;
}
.status { display: inline-block; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; }
.status.used { background: var(--ink); color: var(--paper); }
.ticket.used .ticket-perk { background: var(--muted); }
.meta { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 0.9375rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

.staff { margin: 0 0 24px; }
.staff details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
.staff summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.staff form { padding: 4px 0 16px; }

label { display: block; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="password"], select {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.25rem;
}
input.code-input { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.row .btn { flex: 1; }
.result { margin: 14px 0 0; min-height: 1.6em; font-weight: 700; }
.result.ok { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); }

table.stats { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
table.stats th, table.stats td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.stats td:last-child, table.stats th:last-child { text-align: right; }
.big-num { font-size: 2.5rem; font-weight: 800; line-height: 1; }

/* ---------- QR 인쇄 ---------- */
.qr-card { margin: 20px 0; padding: 24px; background: var(--card); border-radius: 20px; border: 1px solid var(--line); text-align: center; }
.qr-card h1 { margin: 0 0 4px; font-size: 1.75rem; }
.qr-card .langs-line { margin: 0 0 16px; font-weight: 600; }
.qr-box svg { width: min(72vw, 260px); height: auto; display: block; margin: 0 auto; }
.qr-url { word-break: break-all; font-size: 0.8125rem; color: var(--muted); margin: 12px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .result.ok, .status.used { animation: pop 0.28s ease-out; }
  @keyframes pop { from { transform: scale(0.96); opacity: 0.4; } to { transform: none; opacity: 1; } }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .qr-card { border: 2px solid var(--ink); break-inside: avoid; }
}

select { font-size: 1rem; }
