/* 손글씨 제목 글꼴: 신영복체 (못 불러오면 KOTRA 송글씨 → 나눔붓글씨) */
@font-face {
  font-family: 'ShinYoungbok';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.3/TlabShinYBA1.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KotraHandwritingFont';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10-21@1.0/KOTRA_SONGEULSSI.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
:root {
  --ink: #3b2a20;
  --muted: #8a7363;
  --paper: #fffaf0;
  --paper-2: #f6ecdc;
  --line: #e7d8c3;
  --accent: #b9574e;
  --accent-ink: #ffffff;
  --accent-2: #3b6fd8;
  --glass: rgba(16, 22, 48, 0.55);
  --glass-line: rgba(255, 255, 255, 0.18);
  --on-glass: #fff8ee;
  --radius: 22px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --title: 'ShinYoungbok', 'KotraHandwritingFont', "Nanum Brush Script", "Noto Sans KR", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f6ecdc;
    --muted: #c4b19f;
    --paper: #221a17;
    --paper-2: #2e2420;
    --line: #4a3b33;
  }
}
:root[data-theme="dark"] {
  --ink: #f6ecdc;
  --muted: #c4b19f;
  --paper: #221a17;
  --paper-2: #2e2420;
  --line: #4a3b33;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1027;
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }

#scene {
  touch-action: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

/* ---------- 화면 전환 ---------- */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2;
}
.screen.active { display: flex; }

#home, #ticket {
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(5, 8, 25, 0.15), rgba(5, 8, 25, 0.45));
}

.sheet {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 26px 22px;
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.home-sheet { animation: rise 0.6s ease both; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

.eyebrow { margin: 0 0 2px; color: var(--accent); font-family: var(--title); font-size: 22px; line-height: 1.2; letter-spacing: 0.01em; }
h1 {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(52px, 15vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 4px 0 10px;
}
h2, h3 { font-family: var(--title); font-weight: 400; margin: 0 0 12px; }
h2 { font-size: 38px; }
h3 { font-size: 32px; }
.lead { margin: 0 0 18px; line-height: 1.6; color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fineprint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

/* 다음 열차 카드 */
.next-train {
  background: linear-gradient(135deg, #1a2757, #6d4a7c 60%, #ff965a);
  color: #fff8ee;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  position: relative;
}
.next-train.west { background: linear-gradient(135deg, #2a3c78, #d26f5f 60%, #ffbe7a); }
.nt-badge {
  display: inline-block;
  background: #fff3c4;
  color: #6b3b10;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.nt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nt-place { font-family: var(--title); font-size: 34px; }
.nt-time { font-family: var(--font); font-weight: 700; font-size: 28px; }
.nt-row.small { font-size: 14px; opacity: 0.95; margin-top: 2px; }
.nt-count { font-variant-numeric: tabular-nums; font-size: 18px; }
.nt-online { font-size: 13px; margin-top: 8px; opacity: 0.9; min-height: 1em; }

/* 입력 */
.field-label { display: block; font-size: 15px; margin: 14px 0 8px; }
#nick, #petname, #nick-input, textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}
#nick:focus, #petname:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: none; line-height: 1.5; }

.char-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.char-opt {
  border: 2px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 4px 2px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.2;
  transition: transform 0.15s, border-color 0.15s;
}
.char-opt canvas { width: 100%; max-width: 64px; aspect-ratio: 1; }
.char-opt[aria-checked="true"] { border-color: var(--accent); transform: translateY(-2px); background: var(--paper); }

.color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  padding: 0;
}
.swatch[aria-checked="true"] { border-color: var(--ink); }

/* 버튼 */
.btn {
  border: 2px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.1s, filter 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, #f2662b 0%, #d92d4f 100%); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(120, 30, 20, 0.35); box-shadow: 0 6px 18px rgba(217, 45, 79, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; margin-top: 20px; font-size: 21px; min-height: 56px; font-family: var(--font); font-weight: 700; letter-spacing: 0.01em; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.tiny { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1; }
:focus-visible { outline: 3px solid #ffcf5a; outline-offset: 2px; }

/* 승차권 */
.ticket-sheet { text-align: center; }
#ticket-img, #card-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- 탑승 중 ---------- */
#ride { flex-direction: column; justify-content: space-between; pointer-events: none; }
#ride > * { pointer-events: auto; }
.hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: calc(12px + var(--safe-t)) 16px 0;
  color: var(--on-glass);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.hud-special {
  display: inline-block;
  background: #fff3c4;
  color: #6b3b10;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  text-shadow: none;
  margin-bottom: 6px;
}
.hud-place { font-family: var(--title); font-size: 38px; line-height: 1; }
.hud-clock { font-family: var(--font); font-size: 16px; opacity: 0.85; margin-left: 4px; font-variant-numeric: tabular-nums; }
.hud-count { font-size: 15px; margin-top: 2px; }
.hud-count b { font-family: var(--font); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.hud-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pill {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  text-shadow: none;
  white-space: nowrap;
}

.eye-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--on-glass); cursor: pointer; font: inherit; font-size: 13px; }
.eye-btn .eye-on { display: none; }
.eye-btn[aria-pressed="true"] .eye-on { display: inline; }
.eye-btn[aria-pressed="true"] .eye-off { display: none; }
.eye-btn[aria-pressed="true"] { background: rgba(255, 240, 210, 0.28); }

.preview-bar {
  align-self: center;
  margin-top: 10px;
  background: var(--glass);
  color: var(--on-glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.preview-bar[hidden] { display: none; }
.preview-bar .btn { background: rgba(255, 255, 255, 0.15); border-color: transparent; color: var(--on-glass); }

.actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 16px calc(14px + var(--safe-b));
  max-width: 560px;
  width: 100%;
  align-self: center;
}
.act {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--on-glass);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 4px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.act:active { transform: scale(0.94); }
.act-ico { font-size: 22px; line-height: 1; }
.act.glow { background: rgba(255, 160, 80, 0.55); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 190, 120, 0.25); } }

/* ---------- 모달 ---------- */
.modal {
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 22px;
  width: min(92vw, 420px);
  max-height: 90dvh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.modal::backdrop { background: rgba(5, 8, 25, 0.5); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.seg-btn {
  border: 2px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 13.5px;
  cursor: pointer;
  min-height: 44px;
}
.seg-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); }
.help-list { padding-left: 18px; line-height: 1.65; font-size: 15px; margin: 0 0 8px; }
.help-list li { margin-bottom: 6px; }

/* ---------- 덮개 화면 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 25, 0.35);
}
.overlay[hidden] { display: none; }
.small-sheet { max-width: 340px; text-align: center; }
#queue { align-items: flex-start; padding-top: calc(120px + var(--safe-t)); background: transparent; pointer-events: none; }
#queue .sheet { pointer-events: auto; padding: 16px 18px; margin: 0 auto; }
#queue .queue-ico { font-size: 30px; }
#queue h3 { margin-bottom: 4px; }
#queue p { margin: 6px 0; }
.queue-ico { font-size: 44px; }
#queue-pos { font-family: var(--font); font-size: 28px; font-weight: 700; }

.train-overlay { background: #1b2142; flex-direction: column; color: #fff8ee; z-index: 6; padding: 0; }
#train-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.train-copy { position: absolute; left: 0; right: 0; top: 68%; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 0 16px; pointer-events: none; }
.train-pre { margin: 0; font-family: var(--title); font-size: 18px; opacity: 0.85; white-space: pre-line; word-break: keep-all; line-height: 1.4; }
.train-text { font-family: var(--title); font-size: 32px; margin: 0; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); white-space: pre-line; word-break: keep-all; line-height: 1.3; }
.train-skip { margin: 6px 0 0; font-size: 12px; opacity: 0.55; }
.train-overlay.day { color: #fffdf6; }
.train-overlay.day .train-text, .train-overlay.day .train-pre { text-shadow: 0 1px 6px rgba(40, 60, 30, 0.55); }

.toast {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  background: rgba(255, 250, 240, 0.96);
  color: #3b2a20;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  z-index: 7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: calc(100vw - 32px);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toast[hidden] { display: none; }
.toast-x { flex: none; border: 0; background: rgba(59, 42, 32, 0.08); color: #3b2a20; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; line-height: 1; cursor: pointer; margin-right: -8px; }

/* AI 친구 포근이 */
.buddy-modal { width: min(460px, calc(100vw - 24px)); }
/* 포근이와 이야기: 말 걸기 칸이 아래 버튼 줄 자리에 대신 나타남 (사람·말풍선을 가리지 않게) */
.bd-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); z-index: 5; display: flex; align-items: center; gap: 6px; max-width: 520px; width: calc(100% - 32px); padding: 5px 5px 5px 14px; border-radius: 999px; background: rgba(255, 252, 244, 0.94); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22); animation: bdIn 0.3s ease-out; }
.bd-bar[hidden] { display: none; }
#ride.talking .actions { visibility: hidden; }
/* 키보드가 올라와 있는 동안: 가운데 버튼들은 잠깐 숨기고 그림만 */
#ride.typing .itembar, #ride.typing .item-stack, #ride.typing .hud-side, body.kb-up #toast { visibility: hidden; }
#scene { transition: transform 0.25s ease-out; }
.bd-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: #3b2a20; outline: none; font-family: "Noto Sans KR", sans-serif; }
.bd-bar input::placeholder { color: #9a8573; }
.bd-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #d9744b; color: #fff; font-size: 16px; cursor: pointer; }
.bd-send:disabled { opacity: 0.5; }
.bd-send.coin { flex: 1; width: auto; border-radius: 999px; font-size: 15px; font-family: inherit; padding: 0 14px; }
.bd-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(120, 90, 70, 0.12); color: #6b5545; cursor: pointer; }
.bd-left { position: absolute; left: 16px; top: -20px; font-size: 11.5px; color: var(--on-glass); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
@keyframes bdIn { from { opacity: 0; transform: translate(-50%, 6px); } }
.item-btn.bd-talk { background: rgba(217, 116, 75, 0.85); }

/* 알림 · 홈 화면에 놓기 */
.nt-opts { display: grid; gap: 8px; margin: 12px 0 6px; }
.nt-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); cursor: pointer; font-size: 16px; }
.nt-opt input { width: 22px; height: 22px; accent-color: #d9534b; flex: none; }
.nt-status { margin: 6px 0; text-align: center; }
.nt-ios { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 14px; line-height: 1.55; }
.nt-ios ol { margin: 6px 0 0; padding-left: 20px; }
.a2hs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; z-index: 6;
  background: rgba(255, 250, 240, 0.97); color: #3b2a20; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.a2hs[hidden] { display: none; }
.a2hs-ico { font-size: 24px; }
.a2hs-txt { flex: 1; display: grid; gap: 1px; font-size: 14px; line-height: 1.3; }
.a2hs-txt .muted { color: #8a7363; }
.a2hs-go { min-height: 40px; padding: 0 16px; }
.a2hs-x { border: 0; background: rgba(59, 42, 32, 0.08); color: #3b2a20; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex: none; }

.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; color: #fff; z-index: 9; }

@media (prefers-reduced-motion: reduce) {
  .home-sheet, .act.glow { animation: none; }
}

/* 가로 화면: 버튼을 낮고 넓게, 위쪽 표시는 작게 */
@media (orientation: landscape) and (max-height: 520px) {
  .actions { max-width: 520px; padding: 6px calc(16px + env(safe-area-inset-right, 0px)) calc(8px + var(--safe-b)) calc(16px + env(safe-area-inset-left, 0px)); gap: 6px; }
  .act { min-height: 48px; flex-direction: row; gap: 6px; padding: 6px 4px; font-size: 13px; }
  .act-ico { font-size: 18px; }
  .hud { padding: calc(8px + var(--safe-t)) calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px)); }
  .hud-place { font-size: 30px; }
  .hud-side { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 60vw; }
  #home, #ticket { align-items: flex-start; }
  .toast { top: 30%; }
}

/* ---------- 아이템 바 ---------- */
/* 아이템이 늘어도 한 줄 유지: 넘치면 옆으로 밀어서 봄 (두 줄로 쌓여 캐릭터를 가리지 않게) */
.itembar {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding: 2px 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.itembar::-webkit-scrollbar { display: none; }
/* 산 아이템: 버튼 줄 위 오른쪽 가장자리에 세로로 쌓음 (캐릭터·모닥불은 가운데라 겹치지 않음) */
.item-stack { margin-top: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px 8px 0; }
.item-stack + .itembar { margin-top: 0; }
.item-stack .item-btn { width: 44px; height: 44px; padding: 0; font-size: 20px; }
.itembar::before, .itembar::after { content: ''; flex: 1 0 0; } /* 자리가 남으면 가운데, 넘치면 왼쪽부터 */
.itembar > .item-btn { flex: none; white-space: nowrap; }
.item-btn {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--on-glass);
  border-radius: 999px;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.item-btn span { font-size: 13px; }
.item-btn[aria-pressed="true"] { background: rgba(255, 190, 110, 0.45); }
.item-btn.cooling { opacity: 0.45; }
.act { font-size: 12.5px; }

/* ---------- 상점·소원 ---------- */
.coin-line { margin: 4px 0 12px; font-size: 15px; }
.coin-line b { font-size: 20px; }
.test-banner { background: #fff3c4; color: #6b3b10; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 0 0 10px; }
.wish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wish-opt { border: 2px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px 8px; font-size: 14px; cursor: pointer; min-height: 44px; text-align: left; }
.wish-opt:active { transform: scale(0.97); }
.product-list { display: flex; flex-direction: column; gap: 8px; max-height: 46dvh; overflow-y: auto; }
.product { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper-2); }
.product .p-ico { font-size: 26px; text-align: center; }
.product .p-name { font-weight: 700; font-size: 15px; }
.product .p-desc { font-size: 12.5px; color: var(--muted); }
.product .p-own { font-size: 12px; color: #2f8f5b; }
.product .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.restore-box { margin-top: 12px; font-size: 14px; }
.restore-box summary { cursor: pointer; color: var(--muted); }
.restore-row { display: flex; gap: 8px; margin-top: 8px; }
.restore-row input { flex: 1; min-width: 0; border: 2px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px; font-size: 15px; text-transform: uppercase; }
.code-out { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 0.1em; text-align: center; background: var(--paper-2); border-radius: 12px; padding: 10px; user-select: all; }
.fineprint a { color: inherit; }
@media (orientation: landscape) and (max-height: 520px) {
  .actions { max-width: 640px; }
  .itembar { gap: 6px; }
  .item-btn { height: 34px; }
}

.pet-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pet-opt { display: grid; justify-items: center; gap: 2px; border: 2px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 4px 2px 6px; font-size: 11.5px; cursor: pointer; min-height: 44px; color: var(--ink); line-height: 1.2; word-break: keep-all; }
.pet-opt canvas { width: 100%; height: 46px; display: block; }
.petname-wrap { margin-top: 2px; }
.pet-opt[aria-checked="true"] { border-color: var(--accent); background: var(--paper); }
.hair-swatch { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }

.public-wish { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }
.pw-title { font-size: 14px; margin: 0 0 8px; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-chip { border: 2px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.pw-chip[aria-pressed="true"] { border-color: #d9a43a; background: #fff3c4; color: #6b3b10; }

/* ---------- 응원 한마디: 왼쪽에서 서서히 떠올랐다 사라짐 (무게가 클수록 높이·오래) ---------- */
.saylog {
  position: fixed;
  left: calc(14px + env(safe-area-inset-left, 0px));
  bottom: calc(150px + var(--safe-b));
  width: min(66vw, 320px);
  height: 0;
  pointer-events: none;
  z-index: 3;
}
.say {
  position: absolute;
  left: var(--x, 0px);
  bottom: 0;
  white-space: nowrap;
  background: rgba(16, 22, 48, 0.42);
  color: var(--on-glass);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: calc(13px + var(--w, 1) * 0.6px);
  line-height: 1.35;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sayfloat var(--dur, 9s) cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
.say.me { background: rgba(255, 190, 110, 0.4); }
.say .w { font-size: 0.8em; opacity: 0.85; margin-left: 6px; }
.say.heavy { box-shadow: 0 0 14px rgba(255, 170, 120, 0.45); }
@keyframes sayfloat {
  0% { opacity: 0; transform: translateY(16px); }
  8% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--rise, 160px) * -1)); }
}
.saypick {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(150px + var(--safe-b));
  width: min(92vw, 420px);
  display: grid;
  gap: 8px;
  background: var(--paper);
  border-radius: 18px;
  padding: 10px;
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 4;
}
.saypick[hidden] { display: none; }
.saypick .say-grid button, .say-random { border: 2px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 8px; font-size: 14px; cursor: pointer; min-height: 40px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .say { animation-duration: 0.01s; animation-delay: 6s; } }
@media (orientation: landscape) and (max-height: 520px) {
  .saylog { bottom: calc(110px + var(--safe-b)); }
  .saypick { bottom: calc(110px + var(--safe-b)); }
  .say-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* 넓은 화면(PC): 아이템 버튼은 오른쪽 아래 구석으로 빼서 캐릭터와 겹치지 않게 */
@media (min-width: 900px) {
  .itembar {
    position: fixed;
    right: 20px;
    bottom: calc(18px + var(--safe-b));
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .itembar::before, .itembar::after { display: none; }
  .item-stack { position: fixed; right: 20px; bottom: calc(170px + var(--safe-b)); padding: 0; }
  .actions { margin-top: auto; }
}

input, textarea, .code-out { -webkit-user-select: text; user-select: text; }

/* 오늘의 한 줄 · 나의 하루 */
.today-line { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid rgba(255, 200, 140, 0.7); background: rgba(255, 255, 255, 0.06); border-radius: 0 10px 10px 0; }
.today-line blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; }
.today-line figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: right; }
.my-days { margin: -4px 0 14px; font-size: 13px; color: var(--muted); }

/* 상점: 큰 두 갈래 → 고르고 사기 */
.shop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.shop-head h3 { margin: 0; flex: 1; }
.shop-back { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.coin-chip { padding: 6px 12px; border-radius: 999px; background: #fff1c9; color: #6b4210; font-size: 15px; }
.coin-chip b { font-size: 17px; }
.coin-chip.pop { animation: chippop 0.6s ease; }
@keyframes chippop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.shop-view { max-height: 62dvh; overflow-y: auto; padding: 10px 6px 12px; margin: 0 -6px; } /* 테두리·그림자가 잘리지 않게 여유 */
.shop-modal.sub .restore-box { display: none; }
/* 큰 버튼: 아래쪽 두꺼운 그림자로 '눌리는 버튼' 느낌, 오른쪽 › 표시 */
.shop-door { position: relative; display: grid; grid-template-columns: 56px 1fr 18px; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 16px 14px 16px 14px; border-radius: 20px; border: 0; cursor: pointer; color: #3b2a20; font: inherit; width: 100%; box-shadow: 0 5px 0 rgba(120, 70, 30, 0.28), 0 10px 18px rgba(60, 30, 10, 0.16); transition: transform 0.08s, box-shadow 0.08s; -webkit-tap-highlight-color: transparent; }
.shop-door::after { content: '›'; grid-column: 3; grid-row: 1 / 4; font-size: 30px; font-weight: 700; opacity: 0.55; align-self: center; }
.shop-door:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shop-door:focus:not(:focus-visible) { outline: none; }
#shop-main { display: grid; gap: 16px; }
.shop-door.coins { background: linear-gradient(135deg, #fff4cf, #ffd98a); }
.shop-door.items { background: linear-gradient(135deg, #ffe3d6, #f7b4a0); }
.shop-door:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(120, 70, 30, 0.28), 0 3px 8px rgba(60, 30, 10, 0.14); }
.door-ico { grid-row: 1 / 4; font-size: 44px; align-self: center; text-align: center; }
.door-name { font-family: var(--font); font-weight: 700; font-size: 22px; line-height: 1.2; }
.door-sub { font-size: 13px; opacity: 0.8; }
.door-own { font-size: 13.5px; margin-top: 4px; font-weight: 700; }
.coin-tiers { display: grid; gap: 8px; }
.tier { position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.tier.best { border-color: #e2a53b; background: linear-gradient(135deg, var(--paper-2), rgba(255, 210, 120, 0.25)); }
.t-coins { font-size: 15px; white-space: nowrap; }
.t-coins b { font-size: 22px; }
.t-info { display: grid; font-size: 12.5px; color: var(--muted); }
.t-buy { display: grid; justify-items: end; gap: 2px; }
.t-off { font-size: 12px; font-weight: 700; color: #c2412d; }
.t-list { font-size: 11.5px; color: var(--muted); }
.t-buy .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.t-tag { position: absolute; top: -9px; left: 12px; background: #e2a53b; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-card { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper-2); color: var(--ink); font: inherit; cursor: pointer; }
.item-card.wide { grid-column: 1 / -1; }
.item-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(185, 87, 78, 0.25); }
.item-card.own .ic-price { color: #2f8f5b; }
.ic-ico { font-size: 32px; }
.ic-name { font-weight: 700; font-size: 15px; }
.ic-price { font-size: 13px; color: var(--muted); }
.item-detail { margin-top: 10px; padding: 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--paper); }
.id-top { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.id-ico { font-size: 40px; text-align: center; }
.id-name { font-weight: 700; font-size: 17px; }
.id-desc { font-size: 13.5px; color: var(--muted); }
.id-facts { margin: 10px 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.6; }

/* 한마디 상자 */
.say-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 34dvh; overflow-y: auto; }
.say-random { text-align: center !important; font-weight: 700; background: #fff1c9 !important; color: #6b4210; }
.say-custom { display: grid; gap: 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
.say-in { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.say-in input { min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 15px; background: var(--paper-2); color: var(--ink); }
.say-in input:disabled { opacity: 0.5; }
.say-in .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.say-in .btn:disabled { opacity: 0.45; }
.say-note { font-size: 12px; color: var(--muted); }
.say-note.wait { color: #c2412d; font-weight: 700; font-size: 13px; }
.saypick.anchored { transform: none; width: 360px; }
/* 동전 단계는 한 화면에 다 보이게 촘촘히 */
.tier { padding: 8px 10px; grid-template-columns: 84px 1fr auto; }
.t-buy { grid-template-columns: auto auto; align-items: center; column-gap: 8px; }
.t-buy .t-off { grid-column: 1; grid-row: 1; }
.t-buy .t-list { grid-column: 1; grid-row: 2; }
.t-buy .btn { grid-column: 2; grid-row: 1 / 3; }
.coin-tiers { gap: 10px; }
.shop-modal.sub .fineprint { font-size: 11px; margin-top: 8px; }
.shop-modal.sub #shop-coins-view > p { margin: 0 0 8px; font-size: 13px; }

.run-banner { background: linear-gradient(135deg, #fff1d6, #ffe0c2); color: #6b3b10; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; line-height: 1.5; margin: 0 0 6px; text-align: center; }
.test-note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 0 0 8px; }


/* 동전 충전: 다른 버튼과 확실히 구분되는 금빛 */
.btn.coin-btn { background: linear-gradient(135deg, #ffe08a, #f2b544); color: #5a3508; border-color: #e0a12f; font-weight: 700; box-shadow: 0 3px 10px rgba(226, 165, 59, 0.35); }
.btn.coin-btn:hover { filter: brightness(1.05); }

/* 소원 풍등 / 유리병 편지 창: 넓고 시원하게, 나만 보기와 공개 옵션을 분명히 나눔 */
.modal { word-break: keep-all; overflow-wrap: break-word; }
.ritual-modal { width: min(94vw, 540px); padding: 28px 26px; }
.ritual-modal h3 { font-size: 36px; margin-bottom: 6px; }
.rt-desc { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.rt-label { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.rt-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.rt-private textarea { width: 100%; font-size: 17px; padding: 14px; min-height: 72px; border-radius: 14px; }
.rt-public { margin-top: 22px; padding: 18px 16px; border-radius: 18px; border: 2px solid rgba(226, 165, 59, 0.55); background: linear-gradient(135deg, rgba(255, 225, 150, 0.12), rgba(255, 190, 120, 0.06)); }
.rt-opt { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 400; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.rt-coins { display: flex; gap: 10px; align-items: center; margin: 14px 0 14px; flex-wrap: wrap; }
.rt-cost { padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, #f2b544); color: #5a3508; font-weight: 700; font-size: 15px; }
.rt-have { font-size: 15px; }
.rt-have b { font-size: 19px; }
.ritual-modal .pw-chips { gap: 8px; }
.ritual-modal .pw-chip { font-size: 15px; padding: 9px 14px; }
.ritual-modal .btn-row { margin-top: 22px; }
.ritual-modal .btn-row .btn { min-height: 52px; font-size: 16px; }
@media (max-width: 520px) {
  .ritual-modal { padding: 22px 18px; }
  .ritual-modal h3 { font-size: 32px; }
  .rt-desc { margin-bottom: 14px; }
  .rt-public { padding: 14px 12px; margin-top: 16px; }
  .ritual-modal .pw-chips { gap: 6px; }
  .ritual-modal .pw-chip { font-size: 14px; padding: 7px 11px; }
}

/* 인증 사진: 저장 + SNS 바로 공유 */
#card .btn.wide { width: 100%; margin-top: 10px; min-height: 50px; font-size: 16px; }
.sns-title { margin: 16px 0 8px; font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); }
.sns-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sns { display: grid; justify-items: center; gap: 4px; background: none; border: none; color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer; padding: 4px 0; }
.sns-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; font-family: system-ui, sans-serif; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.sns:active .sns-ico { transform: scale(0.94); }
.sns-ico.kakao { background: #fee500; color: #3c1e1e; font-size: 11px; letter-spacing: -0.02em; }
.sns-ico.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sns-ico.threads { background: #111; font-size: 24px; }
.sns-ico.xx { background: #111; }
.sns-ico.fb { background: #1877f2; font-size: 26px; font-family: Georgia, serif; }
.sns-ico.link { background: var(--paper-2); color: var(--ink); border: 2px solid var(--line); font-size: 18px; }
@media (max-width: 380px) { .sns-row { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } }

/* 지금 흐르는 곡 */
.nowplay { position: fixed; left: 16px; top: calc(96px + var(--safe-t)); z-index: 3; display: flex; align-items: center; gap: 8px; max-width: min(calc(100vw - 150px), 360px); padding: 8px 10px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-glass); font-size: 13.5px; opacity: 0; transform: translateY(-6px); transition: opacity 1.4s ease, transform 1.4s ease; pointer-events: none; }
.nowplay.show { opacity: 1; transform: none; pointer-events: auto; }
.np-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-btn { flex: none; border: none; border-radius: 999px; padding: 5px 12px; background: #ffe08a; color: #5a3508; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.track-list { display: grid; gap: 8px; margin: 10px 0 14px; max-height: 50dvh; overflow-y: auto; }
.track { padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper-2); }
.track.on { border-color: #e2a53b; }
.tr-name b { display: block; font-size: 16px; }
.tr-name span { font-size: 13px; color: var(--muted); }
.tr-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tr-link { padding: 6px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; color: #fff; background: #555; }
.tr-link.melon { background: #00cd3c; }
.tr-link.genie { background: #2b7fff; }
.tr-link.spotify { background: #1db954; }
.tr-link.youtube { background: #ff0033; }
.tr-link.apple { background: #fa2d48; }

/* 승차권: 저장 + SNS 공유, 아래에 큰 탑승하기 */
.ticket-share { margin-top: 12px; }
.ticket-share #save-ticket { width: 100%; min-height: 46px; }
.ticket-share .sns-title { margin: 12px 0 6px; }
#ticket #board { width: 100%; margin-top: 14px; min-height: 54px; font-size: 20px; }

/* 첫 화면 제목은 항상 한 줄 (글자 크기는 화면 폭에 맞춰 자동 조절) */
#home-title { white-space: nowrap; overflow: hidden; }

/* 언어 바꾸기 */
.lang-switch { display: flex; justify-content: flex-end; gap: 4px; margin: -6px 0 6px; }
.lang-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); border-color: var(--accent); }

/* 대기실 피켓: 나무 막대에 붙은 손글씨 안내판 */
.today-line.picket { position: relative; margin: 6px auto 30px; max-width: 360px; padding: 26px 18px 16px; border: none; border-radius: 6px; background: linear-gradient(180deg, #f8ecd2, #efdcb6); color: #4a3424; transform: rotate(-1.2deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.today-line.picket::after { content: ''; position: absolute; left: 50%; bottom: -24px; width: 8px; height: 24px; margin-left: -4px; background: linear-gradient(90deg, #7a5233, #9a6a42); border-radius: 0 0 3px 3px; z-index: -1; }
.today-line.picket::before { content: ''; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #c9574e; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.picket-tag { position: absolute; top: 6px; left: 12px; font-size: 11px; letter-spacing: 0.06em; color: #9a7454; }
.today-line.picket blockquote { font-family: var(--title); font-size: 21px; line-height: 1.45; text-align: center; }
.today-line.picket figcaption { color: #8a6a50; }

/* 매표소: 행선지 승차권 */
.booth { margin-bottom: 18px; }
.booth-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.booth-title { font-family: var(--title); font-size: 24px; }
.booth-sub { font-size: 13px; color: var(--muted); }
.dest-list { display: grid; gap: 10px; }
.dest-ticket { position: relative; display: grid; grid-template-columns: 1fr auto; text-align: left; border: none; padding: 0; border-radius: 14px; overflow: hidden; color: #fff8ee; font: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); opacity: 0.78; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; }
.dest-ticket.sunrise { background: linear-gradient(135deg, #1a2757, #6d4a7c 60%, #ff965a); }
.dest-ticket.sunset { background: linear-gradient(135deg, #2a3c78, #d26f5f 60%, #ffbe7a); }
.dest-ticket[aria-checked="true"] { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 0 3px #ffd98a, 0 8px 18px rgba(0, 0, 0, 0.3); }
.dt-main { padding: 12px 14px; }
.dt-country { font-size: 11.5px; letter-spacing: 0.08em; opacity: 0.9; display: flex; gap: 5px; align-items: center; }
.dt-place { font-family: var(--title); font-size: 30px; line-height: 1.15; margin-top: 2px; }
.dt-event { font-size: 13px; opacity: 0.9; }
.dt-special { display: inline-block; margin-top: 4px; background: #fff3c4; color: #6b3b10; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.dt-stub { position: relative; padding: 12px 14px 12px 16px; text-align: right; border-left: 2px dashed rgba(255, 248, 238, 0.55); min-width: 118px; display: grid; align-content: center; gap: 1px; }
.dt-stub::before, .dt-stub::after { content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.dt-stub::before { top: -8px; }
.dt-stub::after { bottom: -8px; }
.dt-time { font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.dt-label { font-size: 12px; opacity: 0.9; }
.dt-count { font-size: 15px; font-variant-numeric: tabular-nums; }
.dt-check { font-size: 12px; color: #ffe3a0; min-height: 1em; font-weight: 700; }
.home-intro, .home-form { min-width: 0; }

/* 영어 손글씨 글꼴: Playwrite US Trad (구글 폰트, OFL 무료·상업적 이용 가능)
   보내주신 Continuous와 비슷한 가는 필기체. 영어 화면에서만 쓰고, 한글은 신영복체로 이어짐 */
html[lang="en"] { --title: 'Playwrite US Trad', 'ShinYoungbok', 'KotraHandwritingFont', "Nanum Brush Script", serif; }
html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .eyebrow, html[lang="en"] .dt-place, html[lang="en"] .booth-title, html[lang="en"] .hud-place, html[lang="en"] .hud-brand, html[lang="en"] .picket blockquote { font-weight: 250; font-size: 0.82em; line-height: 1.35; }


/* 탑승 화면 왼쪽 위 사이트 이름 */
.hud-brand { font-family: var(--title); font-size: 17px; line-height: 1.1; color: rgba(255, 236, 205, 0.88); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); margin-bottom: 2px; letter-spacing: 0.02em; }
html[lang="en"] .hud-brand { white-space: nowrap; font-size: 13px; }
html[lang="en"] #home-title { font-weight: 250; line-height: 1.35; }

/* 간편 로그인 */
#login-email { width: 100%; border: 2px solid var(--line); background: var(--paper-2); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); margin: 6px 0 4px; }
.login-msg { font-size: 14px; line-height: 1.5; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
#login-dev { margin: 6px 0; }
.login-who { font-size: 12.5px; color: var(--muted); text-align: center; margin: 8px 0 0; }
#paypal-buttons { min-height: 60px; margin: 10px 0 12px; }

/* 가까이 온 사람에게: 한마디 건네기 · 하트 */
.person-menu { position: fixed; z-index: 5; width: min(80vw, 260px); padding: 8px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); display: grid; gap: 6px; }
.person-menu[hidden] { display: none; }
.person-menu button { border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 12px; padding: 9px 10px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.person-menu .pm-heart.locked { opacity: 0.5; }
.person-menu .pm-title { font-size: 12.5px; color: var(--muted); padding: 2px 4px; }

/* 간편 로그인 버튼 */
.social { display: grid; gap: 8px; margin: 8px 0 4px; }
.social a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 15px; }
.social .kakao { background: #fee500; color: #191600; }
.social .google { background: #fff; color: #222; border: 1px solid #ddd; }
.social .naver { background: #03c75a; color: #fff; }
.link-btn { display: block; margin: 10px auto 2px; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px; }
.or-line { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.person-menu .pm-nick { font-size: 16px; font-weight: 700; color: var(--ink); padding: 4px 6px 6px; }

/* 이름표 설정 체크 줄 */
.check-row { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-size: 0.95em; cursor: pointer; flex-wrap: wrap; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: #c8453e; flex: none; }
.check-row .muted { font-size: 0.85em; }

/* 1:1 수다톡 */
.talk-invite { position: fixed; z-index: 7; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(92vw, 340px); padding: 12px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: grid; gap: 10px; }
.talk-invite[hidden] { display: none; }
.talk-invite .ti-text { font-size: 15px; line-height: 1.4; }
.talk-invite .ti-row { display: flex; gap: 8px; justify-content: flex-end; }
.talk { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom)); width: min(94vw, 380px); height: min(42vh, 340px); display: flex; flex-direction: column; border-radius: 18px; background: rgba(255, 248, 236, 0.9); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); backdrop-filter: blur(4px); overflow: hidden; }
.talk[hidden] { display: none; }
.talk.mini { height: auto; }
.talk.mini .tk-list, .talk.mini .tk-form { display: none; }
.talk.mini.new .tk-head { background: rgba(200, 69, 62, 0.18); }
.tk-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; font-weight: 700; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.tk-head span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-head button { border: 0; background: transparent; font-size: 16px; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.tk-head button:hover { background: rgba(0,0,0,.06); }
.tk-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-line { align-self: flex-start; max-width: 80%; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 14.5px; line-height: 1.4; word-break: break-word; }
.tk-line.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #f6d7b8; }
.tk-line.sys { align-self: center; max-width: 100%; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.tk-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.tk-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.person-menu .pm-talk { background: #fff3e4; }


/* 편도·왕복 승차권 고르기 */
.trip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 6px; }
.trip-opt { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper-2); cursor: pointer; }
.trip-opt input { margin-top: 3px; accent-color: #c8453e; flex: none; }
.trip-opt span { display: grid; gap: 2px; }
.trip-opt small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.trip-opt:has(input:checked) { border-color: #c8453e; background: rgba(200, 69, 62, 0.16); }
.trip-opt:has(input:checked) b { color: #c8453e; }
@media (prefers-color-scheme: dark) { .trip-opt:has(input:checked) b { color: #ffb4a6; } }
/* 귀가 인증 */
#home-img { width: 100%; border-radius: 12px; display: block; margin: 6px 0 10px; }
.home-reward { margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff3e4; border: 1.5px dashed #e8b48a; }
.home-reward p { margin: 4px 0; }
.home-claim-row { display: flex; gap: 6px; margin: 8px 0 4px; }
.home-claim-row input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.tiny { font-size: 11px; }

/* 별점 · 건의하기 */
.stars { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.stars button { border: 0; background: transparent; font-size: 38px; line-height: 1; color: rgba(150, 130, 115, 0.45); cursor: pointer; padding: 2px; transition: transform 0.12s; }
.stars button.on { color: #f4b53f; }
.stars button:active { transform: scale(0.9); }
.center { text-align: center; }
#fb-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); resize: vertical; margin-top: 8px; }

/* 귀가 보상 칸: 어두운 화면에서도 글씨가 보이게 */
@media (prefers-color-scheme: dark) {
  .home-reward { background: rgba(244, 181, 63, 0.08); border-color: rgba(232, 180, 138, 0.55); }
}

/* 매표소 실시간 표시 */
.booth-right { display: inline-flex; align-items: center; gap: 8px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 7px; border-radius: 999px; background: #d8443a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; font-family: system-ui, sans-serif; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livepulse 2.4s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }

/* 아이폰은 16px보다 작은 글자 칸을 누르면 화면을 확대하고 안 돌아오는 일이 있어 모든 글자 칸을 16px 이상으로 */
input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: max(16px, 1em) !important; }

/* 첫 화면 제목 아래 한마디: 이불특급열차 출발합니데이! */
.eyebrow.tagline { margin: 6px 0 10px; }

/* 2.5D 입체 카드 */
.card3d { perspective: 900px; position: relative; touch-action: pan-y; }
.card3d .c3-inner { position: relative; border-radius: 16px; transform-style: preserve-3d; will-change: transform; }
.card3d .c3-inner > img { margin: 0; }
.card3d .c3-shine { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, rgba(255,255,255,0) 32%, rgba(255,255,255,0.42) 46%, rgba(255,226,190,0.28) 52%, rgba(255,255,255,0) 66%);
  background-size: 260% 260%; opacity: 0.4; }
#home-img + .c3-shine, .card3d:has(#home-img) .c3-inner { border-radius: 12px; }
.card3d:has(#home-img) { margin: 6px 0 10px; }
@media (prefers-reduced-motion: reduce) { .card3d .c3-shine { display: none; } }

/* 이불특급열차 노선도 */
.route-card { margin: 4px 0 12px; padding: 10px 10px 6px; border-radius: 16px; background: #f6ecd9; border: 2px solid #e2cfb1; color: #3b2a20;
  background-image: radial-gradient(rgba(120,90,60,0.08) 1px, transparent 1px); background-size: 6px 6px; }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.route-title { font-family: var(--title); font-size: 18px; }
.route-home { border: 1.5px solid #c8453e; color: #c8453e; background: #fffaf2; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.route-map { width: 100%; }
.rm-svg { display: block; width: 100%; height: auto; max-height: 380px; margin: 0 auto; font-family: "Noto Sans KR", sans-serif; }
.rm-line { fill: none; stroke-linecap: round; }
.rm-line.on { stroke-width: 5; }
.rm-line.plan { stroke-width: 2.5; stroke-dasharray: 6 6; opacity: 0.5; }
.rm-home { fill: #c8453e; stroke: #fff; stroke-width: 3; }
.rm-home-t { font-size: 14px; font-weight: 700; fill: #c8453e; paint-order: stroke; stroke: #f6ecd9; stroke-width: 4px; }
.rm-stop { cursor: pointer; }
.rm-stop text { font-size: 13px; fill: #8a6a52; paint-order: stroke; stroke: #f6ecd9; stroke-width: 3px; }
.rm-stop.on text { font-size: 16px; font-weight: 700; fill: #3b2a20; }
.rm-stop.on .rm-sub { font-size: 11.5px; font-weight: 400; fill: #8a6a52; }
.rm-stop.on circle { stroke: #fff; stroke-width: 3; }
.rm-stop.sel circle { stroke: #3b2a20; stroke-width: 3; }
.rm-stop.plan circle { fill: #fffaf0; stroke-width: 2.5; }
.rm-stop:focus-visible { outline: none; }
.rm-stop:focus-visible circle { stroke: #ffcf5a; stroke-width: 4; }
.rm-abroad { font-size: 13px; fill: #5f8fbf; }
.route-note { margin: 2px 4px 2px; font-size: 12px; color: #8a6a52; }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.region-btn { border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 12px; padding: 9px 4px; font: inherit; font-size: 14px; cursor: pointer; }
.region-btn.on { border-color: #c8453e; background: rgba(200, 69, 62, 0.14); }

/* 구글 지도 노선도 */
.route-map.gm { height: 360px; border-radius: 12px; overflow: hidden; }
.route-map.gm .gm-style { font-family: "Noto Sans KR", sans-serif; }
#shop-title:focus { outline: none; }

/* ---------- 첫 화면: 단계별 (스크롤 없이 한 화면씩) ---------- */
#home { overflow: hidden; }
.wizard { display: flex; flex-direction: column; height: min(calc(100dvh - 32px - var(--safe-t) - var(--safe-b)), 780px); max-width: 460px; padding: 14px 18px 14px; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; margin-bottom: 6px; }
.wz-top .lang-switch { margin: 0; flex: none; }
.wz-dots { display: flex; gap: 4px; flex: 1; min-width: 0; }
.wz-dot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.wz-dot i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--paper-2); border: 1.5px solid var(--line); }
.wz-dot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wz-dot.done i { background: color-mix(in srgb, var(--accent) 25%, var(--paper)); border-color: var(--accent); color: var(--accent); }
.wz-dot.on { color: var(--ink, inherit); font-weight: 700; }
.wz-dot.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.wz-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 2px 6px; display: flex; flex-direction: column; }
.wz-body > form { display: contents; }
.wizard .step { display: none; animation: stepIn 0.28s ease both; }
.wizard[data-step="1"] .step[data-step="1"], .wizard[data-step="2"] .step[data-step="2"], .wizard[data-step="3"] .step[data-step="3"], .wizard[data-step="4"] .step[data-step="4"] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wizard.back .step { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } }
.wz-nav { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 10px; }
.wz-nav .btn.big { margin: 0; min-height: 56px; font-size: 21px; width: 100%; }
.wz-prev { min-height: 54px; padding: 0 16px; }
.wizard[data-step="1"] .wz-nav { grid-template-columns: 1fr; }
.wizard[data-step="1"] .wz-prev { display: none; }
.wizard:not([data-step="4"]) #get-ticket { display: none; }
.wizard[data-step="4"] #wz-next { display: none; }
.wz-quick { flex: none; margin: 8px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.wizard:not([data-step="1"]) .wz-quick { display: none; }

/* 1 대합실: 가운데 모아 보기 */
.step.home-intro { justify-content: center; text-align: center; }
.step.home-intro h1 { margin-top: 0; }
.step.home-intro .today-line.picket { margin-bottom: 34px; }
/* 2 매표소: 승차권이 먼저, 노선도는 남은 높이만큼 */
.step.booth { gap: 8px; }
.step.booth .booth-head { flex: none; }
.step.booth .dest-list { flex: none; }
.step.booth .route-card { flex: 1; min-height: 120px; display: flex; flex-direction: column; margin: 0; }
.step.booth .route-map { flex: 1; min-height: 0; display: flex; }
.step.booth .rm-svg { max-height: 100%; height: 100%; }
.step.booth .route-map.gm { height: auto; min-height: 140px; }
/* 3·4 고르기: 간격을 조금 좁혀 한 화면에 */
.wizard .home-form .field-label { margin: 10px 0 6px; }
.wizard .home-form .step > .field-label:first-child { margin-top: 2px; }
.wizard .step[data-step="4"] .fineprint { margin-top: auto; padding-top: 8px; }

/* PC: 같은 단계 방식, 조금 넓고 큰 글씨 */
@media (min-width: 900px) and (min-height: 600px) {
  .wizard { max-width: 520px; padding: 22px 28px 18px; }
  .step.home-intro h1 { font-size: 68px; }
}
/* 낮은 화면(가로 휴대폰 등): 안에서만 살짝 스크롤 */
@media (max-height: 600px) {
  .step.home-intro h1 { font-size: 44px; }
  .step.home-intro .today-line.picket { margin-bottom: 22px; }
}

/* ---------- 고른 것이 한눈에 (2026-12-05) ---------- */
/* 색 동그라미: 고르면 크게 + 굵은 강조 고리 + 가운데 ✓, 안 고른 것은 살짝 흐리게 */
.color-row { gap: 10px; padding: 4px 2px; }
.swatch { position: relative; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
.color-row:has(.swatch[aria-checked="true"]) .swatch:not([aria-checked="true"]) { opacity: 0.55; }
.swatch[aria-checked="true"] { border-color: transparent; transform: scale(1.15); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 0 3px var(--paper), 0 0 0 6px var(--accent), 0 4px 10px rgba(0, 0, 0, 0.3); opacity: 1; }
.swatch[aria-checked="true"]::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 1px #000; }
/* 모습·친구: 강조 테두리 + 오른쪽 위 ✓ 배지, 안 고른 것은 살짝 흐리게 */
.char-opt, .pet-opt { position: relative; transition: transform 0.15s, border-color 0.15s, opacity 0.15s; }
.char-grid:has([aria-checked="true"]) .char-opt:not([aria-checked="true"]), .pet-row:has([aria-checked="true"]) .pet-opt:not([aria-checked="true"]) { opacity: 0.6; }
.char-opt[aria-checked="true"], .pet-opt[aria-checked="true"] { border: 3px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 6px 14px rgba(0, 0, 0, 0.25); font-weight: 700; opacity: 1; }
.char-opt[aria-checked="true"]::after, .pet-opt[aria-checked="true"]::after { content: '✓'; position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35); }
.char-grid, .pet-row { padding-top: 8px; }
/* 왕복·편도도 같은 방식 */
.trip-opt:has(input:checked) { border: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.trip-row:has(input:checked) .trip-opt:not(:has(input:checked)) { opacity: 0.65; }

/* ---------- 1 대합실: 영화 포스터 ---------- */
.bb-slide { position: relative; overflow: hidden; border-radius: 18px; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; padding: 18px 16px 14px; color: #fbeedd; text-align: center; justify-content: flex-start; isolation: isolate; background: #0d0f24; }
.poster-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.bb-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 10, 30, 0.55) 0%, rgba(8, 10, 30, 0) 30%, rgba(8, 10, 30, 0) 62%, rgba(8, 8, 24, 0.82) 100%); }
.poster-kicker { margin: 0; font-size: 11px; letter-spacing: 0.32em; color: rgba(255, 236, 205, 0.8); }
.bb-slide h1 { margin: 6px 0 2px; color: #fff6e6; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 190, 120, 0.25); }
.bb-slide .tagline { margin: 0; color: #ffc98f; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.poster-space { flex: 1; min-height: 40px; }
.poster-quote { margin: 0 auto 6px; padding: 0; background: none; border: 0; max-width: 340px; }
.poster-quote .picket-tag { position: static; display: block; font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 226, 180, 0.85); margin-bottom: 2px; }
.poster-quote .picket-tag b { color: #ffcf6e; letter-spacing: 0.1em; }
.poster-quote blockquote { margin: 0; font-family: var(--title); font-size: 19px; line-height: 1.4; color: #fff3e0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.poster-quote blockquote::before { content: '“'; } .poster-quote blockquote::after { content: '”'; }
.poster-quote figcaption { font-size: 11px; color: rgba(255, 226, 190, 0.7); margin-top: 2px; text-align: center; }
.bb-slide .lead { margin: 4px 0 6px; font-size: 13px; line-height: 1.5; color: rgba(255, 240, 222, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.poster-billing { margin: 2px 0 0; font-size: 9.5px; line-height: 1.55; letter-spacing: 0.04em; color: rgba(255, 232, 205, 0.62); text-transform: uppercase; }
.poster-billing b { font-weight: 700; color: rgba(255, 238, 215, 0.85); margin: 0 2px 0 6px; }
.poster-billing b:first-child { margin-left: 0; }
@media (max-height: 700px) { .bb-slide .lead { display: none; } }
/* 포스터 부제: 고딕체 (대표님 지정) */
.bb-slide .tagline { font-family: var(--font); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }

/* 대합실 광고판: 좌우로 밀어 넘기기 (대문 · 정동진 · 정서진) */
.step.billboards { margin: 0 -6px; gap: 8px; }
.bb-track { flex: 1; min-height: 0; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 18px; }
.bb-track::-webkit-scrollbar { display: none; }
.ad-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.ad-title { margin: 4px 0 0; font-family: var(--title); font-weight: 400; font-size: 46px; line-height: 1.1; color: #fff6e6; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.bb-slide.ad .tagline { font-size: 15px; word-break: keep-all; }
.ad-points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ad-points li { padding: 7px 8px; border-radius: 12px; background: rgba(14, 12, 34, 0.55); border: 1px solid rgba(255, 230, 200, 0.22); font-size: 13px; font-weight: 700; color: #fff3e0; text-align: left; word-break: keep-all; backdrop-filter: blur(4px); }
.ad-for { margin: 0 0 4px; font-size: 12.5px; color: rgba(255, 226, 190, 0.9); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.ad-live { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #ffd08a; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); min-height: 1.2em; }
.bb-dots { flex: none; display: flex; justify-content: center; gap: 6px; }
.bb-dot { border: 1.5px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; min-height: 30px; }
.bb-dot.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-height: 700px) { .ad-for { display: none; } .ad-title { font-size: 38px; } }
.ad-points li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .ad-points li { font-size: 12px; padding: 6px; } }
.ad-ribbon { position: absolute; top: 20px; right: -36px; transform: rotate(35deg); padding: 4px 40px; background: #f2c46d; color: #4a2c08; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.bb-slide.soon .ad-live { color: #ffe1a8; font-weight: 500; font-size: 12.5px; }
.bb-dots { flex-wrap: wrap; }
.bb-dot { padding: 4px 10px; }
