/* =====================================================================
   백년시장 상생투어 v4 — 배경(옛 大田역 사진 · 비둘기호 · 옛 승차권)은 그대로,
   그 위 UI는 '철도 안내 사인' 체계: 남색 평면 패널 · 크림 바탕 · 가는 선 · 번호 배지 · 노선 번호 원
   (그라데이션 · 유리 블러 · 네온 없음). 첫 화면 · 예약 조회 · 관리자 공통
   ===================================================================== */
:root {
  --navy: #15233f;
  --navy-2: #0c1529;
  --navy-3: #26406b;
  --accent: #1f4f9a;
  --accent-2: #173d7a;
  --cream: #efe6d1;
  --paper: #f9f3e5;
  --white: #ffffff;
  --ink: #18202f;
  --ink-2: #3a4356;
  --muted: #687083;
  --line: #d9c9a8;
  --line-2: #bfa982;
  --yellow: #e8b52e;
  --red: #b5302a;
  --ok: #2f7d32;
  --r: 3px;
  --font: 'IBM Plex Sans KR', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --display: 'Black Han Sans', 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  --panel-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 40px rgba(10,16,30,.35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); overflow-x: hidden; line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--navy); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main { max-width: 1160px; margin: 0 auto; padding: 40px 20px 30px; }
main.page { padding-top: 120px; min-height: 70vh; }
main.wide { max-width: 1240px; }
.floor, .perf { display: none !important; }

/* 번호 배지 (01 · 02 …) */
.no { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; margin-right: 8px; border-radius: 2px;
  font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--navy); vertical-align: 1px; }

/* ===== 위쪽 메뉴 ===== */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 clamp(14px, 3vw, 36px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.home .top, body.sub .top, body.admin .top { position: fixed; left: 0; right: 0; }
.home .top { background: rgba(251,248,240,.96); }
.sign { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.sign-mark { width: 40px; height: 28px; flex: 0 0 auto; color: var(--navy); }
.sign-mark svg { width: 100%; height: 100%; display: block; }
.sign-text { display: flex; align-items: center; gap: 14px; }
.sign-text b { font-size: 21px; font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.sign-text small { padding-left: 14px; border-left: 1.5px solid var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .32em; color: var(--navy); }
.plates { display: flex; align-items: center; height: 100%; }
.plate {
  display: flex; align-items: center; height: 26px; padding: 0 20px;
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-left: 1px solid var(--line-2);
}
.plate:first-child { border-left: 0; }
.plate:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.plate.on { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.plate.cta { height: 40px; margin-left: 12px; padding: 0 18px; border: 0; color: #fff; background: var(--navy); border-radius: var(--r); }
.plate.cta:hover { background: var(--navy-3); text-decoration: none; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 6px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 20px; height: 20px; }

/* ===== 첫 화면: 옛 大田역 승강장 사진 (배경 · 기차는 그대로) ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #2a2018; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene-box { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; filter: sepia(.12) contrast(1.02); }
.train {
  position: absolute; left: 0; bottom: 14%;
  height: 30%; width: auto; max-width: none;
  will-change: transform; transform: translate3d(200vw, 0, 0);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)) sepia(.15) saturate(.92) brightness(.96);
}
.smoke-layer { position: absolute; inset: 0; pointer-events: none; }
.puff {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, rgba(88,80,74,.95), rgba(58,52,48,.65) 45%, rgba(50,46,42,0) 70%);
  filter: blur(3px); opacity: 0; animation: puff 3s ease-out forwards;
}
@keyframes puff {
  0%   { opacity: var(--o, .5); transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(var(--dx, 40px), var(--dy, -80px)) scale(2.6); }
}
.scene-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(20,10,0,.5) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.35'/></svg>");
  mix-blend-mode: overlay;
}
/* 왼쪽 제목이 잘 읽히게 왼쪽만 살짝 어둡게 */
.scene::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,10,8,.55) 0%, rgba(12,10,8,.25) 38%, rgba(12,10,8,0) 60%); }
.scene .scene-box::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: rgba(12,10,8,.28); opacity: 0; transition: opacity .8s; }
.hero.booth-open .scene .scene-box::after { opacity: 1; }

/* 왼쪽 제목 */
.hero-copy { position: absolute; z-index: 5; left: clamp(20px, 6vw, 96px); top: clamp(110px, 20vh, 190px); max-width: 560px; color: #fff; pointer-events: none; transition: opacity .5s; }
.hero-copy h1 { margin: 0; font-size: clamp(44px, 6.2vw, 88px); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 8px 30px rgba(0,0,0,.35); }
.hero-tag { margin: 18px 0 0; }
.hero-tag span { display: inline-block; padding: 8px 30px 9px 24px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; letter-spacing: .02em; color: #fff; background: var(--navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.hero-sub { margin: 26px 0 0; padding-left: 18px; border-left: 2px solid rgba(255,255,255,.85); font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; line-height: 1.7; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-sub b { display: inline-block; margin-top: 4px; color: var(--yellow); font-weight: 800; }
.scene-cta {
  position: absolute; z-index: 5; left: clamp(20px, 6vw, 96px); top: calc(clamp(110px, 20vh, 190px) + clamp(330px, 34vw, 430px));
  display: inline-flex; align-items: center; gap: 22px;
  font-size: 18px; font-weight: 800; color: #fff; white-space: nowrap;
  padding: 15px 22px 15px 26px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .5s, background .2s;
}
.scene-cta:hover { background: var(--navy-3); }
.scene[data-phase="wait"] .scene-cta, .scene[data-phase="arrive"] .scene-cta, .scene[data-phase="stop"] .scene-cta { opacity: 1; pointer-events: auto; }
.hero.booth-open .scene-cta { opacity: 0 !important; pointer-events: none !important; }

/* 열차 출발 안내판 */
.board {
  position: absolute; z-index: 5; left: clamp(14px, 6vw, 96px); bottom: clamp(16px, 4vh, 36px);
  width: min(420px, calc(100% - 28px));
  background: #0d1424; color: #fff; border: 1px solid #2c3a55; border-radius: var(--r);
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
  transition: opacity .4s;
}
.board-title { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 800; font-size: 16px; background: var(--navy); }
.board-title::before { content: ''; width: 5px; height: 18px; background: var(--yellow); }
.board table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { padding: 6px 12px; text-align: left; font-size: 12px; font-weight: 700; color: #9aa6bd; border-bottom: 1px solid #2c3a55; }
.board td { padding: 9px 12px; font-weight: 700; border-left: 1px solid #2c3a55; }
.board th + th { border-left: 1px solid #2c3a55; }
.board td:first-child { border-left: 0; }
.board-name { white-space: nowrap; }
.board-route { white-space: nowrap; }
.board-status { color: var(--yellow); }
.scene[data-phase="stop"] .board-status { animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }

.sound-btn {
  position: absolute; z-index: 5; right: clamp(14px, 3vw, 36px); bottom: clamp(16px, 4vh, 36px);
  font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: var(--r);
  color: var(--navy); background: var(--paper); border: 1px solid var(--line-2); cursor: pointer;
}
.sound-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== 정차하면 나타나는 예매 패널 ===== */
.booth {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 16px 60px;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s .6s;
  pointer-events: none;
}
.hero.booth-open .booth { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.booth .window { width: 100%; max-width: 540px; margin: 0; }
.booth .issued { width: 100%; max-width: 820px; margin: 0; }
.booth.done .window { display: none; }

/* 패널: 남색 머리 + 크림 바탕 */
.window { margin: 0 auto; }
.window-frame { position: relative; max-width: 540px; margin: 0 auto; background: var(--paper); border: 1px solid #0b1a33; border-radius: 4px; box-shadow: var(--panel-shadow); overflow: hidden; }
.window-label { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: #fff; background: var(--navy); }
.window-label svg { width: 34px; height: 34px; flex: 0 0 auto; }
.window-label b { font-size: clamp(22px, 3vw, 28px); font-weight: 900; letter-spacing: -.02em; }
.window-label small { margin-left: auto; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.5); font-size: 13px; font-weight: 600; line-height: 1.35; }
.paper-form { position: relative; max-width: none; margin: 0; padding: 18px 20px 20px; background: var(--paper); }
.paper-form h1 { margin: 0 0 4px; font-size: 19px; font-weight: 900; letter-spacing: -.02em; color: var(--navy); }
.lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.booth .paper-form > h1, .booth .paper-form > .lead { display: none; }
.booth .paper-form.closed-sign > h1, .booth .paper-form.closed-sign > .lead { display: block; }

.fields { display: grid; gap: 14px; }
.fields.rows { gap: 0; border-top: 1px solid var(--line); }
.fields.rows .field { grid-template-columns: 128px 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 15px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.field input, .field select {
  width: 100%; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--white); border: 1px solid #a9a28f; border-radius: 2px;
  padding: 9px 11px; outline: none; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2315294b' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(21,41,75,.18); }
.field input::placeholder { color: #9a9a92; }
.error { margin: 12px 0 0; padding: 9px 12px; border-left: 4px solid var(--red); background: #fbeceb; color: #9b211b; font-weight: 700; font-size: 14px; }
.error[hidden] { display: none; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.btn-reserve {
  display: flex; align-items: center; justify-content: center; gap: 8px; position: relative;
  width: 100%; margin: 18px 0 0; padding: 15px 20px;
  font-size: 22px; font-weight: 900; letter-spacing: .06em; text-decoration: none;
  color: #fff; background: var(--navy); border: 0; border-radius: var(--r); cursor: pointer;
  transition: background .15s;
}
.btn-reserve::after { content: '→'; position: absolute; right: 22px; font-weight: 700; }
.btn-reserve:hover { background: var(--navy-3); }
.btn-reserve.busy { opacity: .7; cursor: progress; }
.window.is-done .paper-form { opacity: .55; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; font-size: 14.5px; padding: 10px 16px; border-radius: var(--r);
  color: var(--navy); background: var(--paper); border: 1px solid var(--navy); cursor: pointer;
}
.btn-sub:hover { background: #fff; }

/* 코스 고르기: 노선 번호 원 + 연한 바탕 + 색 테두리 */
[data-palette="red"]   { --pa: #c8322b; --ps: #fbeae6; --pi: #a3231d; }
[data-palette="blue"]  { --pa: #1f4f9c; --ps: #e8eff9; --pi: #1a417f; }
[data-palette="mint"]  { --pa: #148a7b; --ps: #e3f3ef; --pi: #0f6d61; }
[data-palette="green"] { --pa: #2f7d32; --ps: #e8f2e2; --pi: #276a2a; }
.paper-form fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.paper-form legend { width: 100%; padding: 0 0 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.paper-form legend span { font-size: 15px; font-weight: 800; color: var(--navy); }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.course-opt { position: relative; cursor: pointer; }
.course-opt input { position: absolute; opacity: 0; pointer-events: none; }
.course-face {
  display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "n b" "n e"; column-gap: 10px; align-items: center;
  height: 100%; padding: 10px 12px; background: var(--ps); border: 1.5px solid color-mix(in srgb, var(--pa) 45%, transparent); border-radius: var(--r);
  transition: border-color .15s, background .15s;
}
.course-face .line-no { grid-area: n; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 15px; font-weight: 900; color: #fff; background: var(--pa); }
.course-face small { display: none; }
.course-face b { grid-area: b; font-size: 20px; font-weight: 900; letter-spacing: -.03em; color: var(--pi); line-height: 1.2; }
.course-face em { grid-area: e; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.course-opt:hover .course-face { border-color: var(--pa); }
.course-opt input:checked + .course-face { border: 2px solid var(--pa); padding: 9.5px 11.5px; box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px color-mix(in srgb, var(--pa) 25%, transparent); background: #fff; }
.course-opt input:focus-visible + .course-face { outline: 3px solid var(--yellow); outline-offset: 2px; }
.course-opt.off { cursor: not-allowed; }
.course-opt.off .course-face { opacity: .45; filter: grayscale(1); }

.chk-line { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.chk-line[hidden] { display: none; }
.paper-form .chk-line input, .field .chk-line input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; border: 0; box-shadow: none; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--navy); flex: 0 0 auto; }
.chk-line small { font-weight: 500; color: var(--muted); }
.agree { margin-top: 12px; }
.agree details { margin: 4px 0 0 27px; font-size: 13px; color: var(--muted); }
.agree summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.agree details p { margin: 6px 0 0; line-height: 1.65; }

/* 예약 여는 날 전 / 운영 끝 */
.closed-sign { text-align: left; }
.closed-sign h1 { font-size: 24px; }
.closed-big { display: inline-block; margin: 6px 0 12px; padding: 4px 0; font-size: clamp(30px, 5vw, 42px); font-weight: 900; letter-spacing: -.03em; color: var(--navy); border-bottom: 5px solid var(--yellow); }
.closed-sign .btn-reserve { margin-top: 8px; }

/* ===== 발권된 승차권 ===== */
.issued { margin-top: 34px; text-align: center; }
.issued-title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 18px; border-radius: var(--r); font-size: 17px; font-weight: 900; color: #fff; background: var(--navy); }
.issued-title::before { content: ''; width: 5px; height: 18px; background: var(--yellow); }
.ticket-holder { position: relative; max-width: 760px; margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.ticket-svg { display: block; width: 100%; height: auto; }
.one-ticket + .one-ticket { margin-top: 16px; }
.ticket-holder.print .ticket-svg { animation: print 1.1s cubic-bezier(.2,.7,.2,1) both; }
.ticket-holder.print .punch-hole { animation: punch .25s 1.3s both; transform-box: fill-box; transform-origin: center; }
@keyframes print { 0% { clip-path: inset(0 100% 0 0); transform: translateX(-30px); } 100% { clip-path: inset(0 0 0 0); transform: translateX(0); } }
@keyframes punch { from { transform: scale(0); } to { transform: scale(1); } }
.issued-note { display: inline-block; margin: 18px auto 0; max-width: 560px; padding: 10px 14px; border-radius: var(--r); font-size: 14.5px; line-height: 1.6; color: var(--ink); background: var(--paper); border-left: 4px solid var(--navy); text-align: left; }
.issued-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .ticket-holder.print .ticket-svg, .ticket-holder.print .punch-hole { animation: none; }
  .scene[data-phase="stop"] .board-status { animation: none; }
}
.stamp { position: absolute; z-index: 3; right: 26%; top: 22%; padding: 6px 16px; border: 4px double currentColor; border-radius: 6px;
  font-family: 'Black Han Sans', sans-serif; font-size: clamp(18px, 4vw, 34px); letter-spacing: .2em; transform: rotate(-12deg); opacity: .82; mix-blend-mode: multiply; background: rgba(255,255,255,.15); }
.stamp-confirmed { color: #1d4ed8; } .stamp-used { color: #555; } .stamp-canceled { color: #c62828; }

/* ===== 아래 안내 구역 (크림 바탕) ===== */
main.wall { max-width: 1160px; padding-top: 70px; }
main.wall > section + section { margin-top: 90px; }
.wall-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.wall-title span { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.035em; color: var(--navy); }
.wall-title span::before { content: attr(data-kicker); display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 6px; border-radius: 2px; font-size: 16px; font-weight: 900; color: #fff; background: var(--navy); }
.wall-lead { margin: 0 0 20px; max-width: 760px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }

/* 행사 소개 */
.tt-rows { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); background: var(--paper); }
.tt-rows > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.tt-rows > div:first-child { border-left: 0; }
.tt-rows dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.tt-rows dt::before { content: ''; width: 4px; height: 14px; background: var(--navy); }
.tt-rows dd { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.tt-rows small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* 1번 코스 노선도 */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.route { background: var(--paper); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.route-head { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--ps); border-bottom: 3px solid var(--pa); }
.route-head::before { content: ''; grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--pa); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--pa); }
.route-head b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--pi); line-height: 1.15; }
.route-head span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.route-map { height: 230px; background: #e7e1d2; border-bottom: 1px solid var(--line); }
.route-line { list-style: none; margin: 0; padding: 16px 16px 12px; position: relative; }
.route-line::before { content: ''; position: absolute; left: 30px; top: 30px; bottom: 32px; width: 6px; background: var(--pa); }
.route-line li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 6px 0 10px; }
.route-line .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--ink); background: #fff; border: 3px solid var(--pa); }
.route-line .stop-end .dot { background: var(--pa); border-color: var(--pa); box-shadow: inset 0 0 0 4px #fff; }
.route-line b { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.route-line p { margin: 3px 0 2px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.route-line small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* 2번 달려가슈 */
.run-board { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px 24px; align-items: start; }
.run-side { display: grid; gap: 14px; align-content: start; }
.run-rules { margin: 0; padding: 0; list-style: none; counter-reset: r; background: var(--paper); border: 1px solid var(--line-2); }
.run-rules li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 16px; font-size: 14.5px; line-height: 1.6; border-top: 1px solid var(--line); }
.run-rules li:first-child { border-top: 0; }
.run-rules li::before { content: counter(r); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 900; color: #fff; background: var(--ok); }
.run-map { height: 300px; border: 1px solid var(--line-2); }
.c1 { --cc: #c8322b; } .c2 { --cc: #1f4f9c; } .c3 { --cc: #d08a1c; } .c4 { --cc: #6b45a8; } .c5 { --cc: #c25480; } .c6 { --cc: #148a7b; }

/* 표 */
.fare { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper); border: 1px solid var(--line-2); }
.fare caption { caption-side: top; text-align: left; padding: 0 0 10px; font-weight: 900; font-size: 17px; color: var(--navy); }
.fare caption small { font-weight: 500; font-size: 13px; color: var(--muted); }
.fare th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 13.5px; }
.fare th + th { border-left: 1px solid rgba(255,255,255,.2); }
.fare td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.fare td + td { border-left: 1px solid var(--line); }

/* 달려가슈 출현 시간표 (역 발차 전광판) */
.run-clock { grid-column: 1 / -1; background: #0d1424; color: #fff; border: 1px solid #2c3a55; border-radius: var(--r); overflow: hidden; }
.rc-head { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; background: var(--navy); }
.rc-head b { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; }
.rc-head b::before { content: ''; width: 5px; height: 18px; background: var(--yellow); }
.rc-head span { font-size: 13px; color: #b8c2d6; }
.rc-note { margin: 0; padding: 10px 16px 0; font-size: 13.5px; color: #ffb3a8; }
.rc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.rc-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid #2c3a55; border-left: 1px solid #2c3a55; }
.rc-item:nth-child(3n+1) { border-left: 0; }
.rc-item.live { background: #16233d; box-shadow: inset 4px 0 0 var(--yellow); }
.rc-item.done { opacity: .45; }
.rc-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #fff; font-size: 18px; font-weight: 900; }
.rc-item.live .rc-badge { animation: nmPulse 1.4s ease-in-out infinite; }
.rc-body { display: grid; gap: 1px; min-width: 0; }
.rc-body b { font-size: 15.5px; }
.rc-state { font-size: 13px; font-weight: 700; color: #9aa6bd; }
.rc-item.live .rc-state { color: var(--yellow); }
.rc-left { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--yellow); }
.rc-body small { font-size: 11.5px; color: #7a869e; }
.rc-body details { margin-top: 4px; font-size: 12px; }
.rc-body summary { cursor: pointer; color: #9aa6bd; }
.rc-body details p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rc-body details span { padding: 1px 5px; background: #1c2944; font-family: var(--mono); font-weight: 700; }
.rc-body details span.past { opacity: .35; text-decoration: line-through; }
.rc-body details span.now { background: var(--yellow); color: #0d1424; }

/* 지도 표식 (네이버 지도 위) */
.nm-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font: 900 13px/1 var(--font); background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.nm-base { background: var(--navy); color: #fff; }
.nm-char { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 900 18px/1 var(--font); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--yellow), 0 3px 8px rgba(0,0,0,.45); animation: nmPulse 1.4s ease-in-out infinite; }
@keyframes nmPulse { 50% { box-shadow: 0 0 0 7px rgba(243,194,47,.35), 0 3px 8px rgba(0,0,0,.45); } }
.nm-info { padding: 6px 10px; background: var(--paper); border: 1.5px solid var(--navy); font: 700 13px/1.3 var(--font); white-space: nowrap; }

/* 참여 순서 */
.flow-steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line-2); background: var(--paper); }
.flow-steps li { position: relative; padding: 16px 14px; border-left: 1px solid var(--line); }
.flow-steps li:first-child { border-left: 0; }
.step-no { display: grid; place-items: center; width: 32px; height: 26px; margin-bottom: 10px; border-radius: 2px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 900; }
.flow-steps li:not(:last-child)::after { content: ''; position: absolute; right: -7px; top: 22px; width: 12px; height: 12px; background: var(--paper); border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: rotate(45deg); z-index: 1; }
.flow-steps b { display: block; font-size: 16px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.flow-steps p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* 승차권 4종 (옛날 승차권 그대로) */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
.shelf-item { margin: 0; display: grid; gap: 10px; }
.shelf-ticket { filter: drop-shadow(0 8px 12px rgba(40,30,10,.25)); }
.shelf-board { display: none; }
.price-tag { display: flex; align-items: center; gap: 8px; }
.tag-name { font-size: 15px; font-weight: 900; color: var(--ink); }
.tag-price { font-size: 12px; font-weight: 800; color: #fff; background: var(--navy); padding: 2px 8px; border-radius: 2px; }
.tag-price em { font-style: normal; margin-right: 3px; opacity: .75; }

/* 이용 안내 */
.notice-paper { position: relative; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line-2); border-left: 6px solid var(--navy); }
.notice-paper h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; color: var(--navy); }
.notice-text { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.notice-link { margin: 16px 0 0; }
.notice-link a { font-weight: 800; }
.pin { display: none; }

/* ===== 아래쪽 ===== */
.foot { margin-top: 100px; background: var(--navy-2); color: #b2bccf; font-size: 13px; }
.foot-stripe { display: none; }
.foot-stripe.a { display: block; height: 6px; background: linear-gradient(90deg, #c8322b 0 25%, #1f4f9c 25% 50%, #148a7b 50% 75%, #2f7d32 75%); }
.foot-body { max-width: 1160px; margin: 0 auto; padding: 28px 20px 34px; display: grid; grid-template-columns: 2fr 1fr; gap: 10px 30px; }
.foot-body > div { display: flex; flex-wrap: wrap; gap: 2px 14px; line-height: 22px; }
.foot-body b { width: 100%; color: #fff; font-size: 14px; }
.foot-copy { grid-column: 1 / -1; padding-top: 12px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12); color: #7f8aa3; }

/* ===== 예약 조회 화면 (옛 매표소 사진 배경) ===== */
body.sub { background: #2a2118; }
body.sub::before { content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,10,8,.45), rgba(12,10,8,.3) 40%, rgba(12,10,8,.6)), #3b3022 url("../img/ticket-office.jpg") center 38% / cover no-repeat; }
body.sub .issued { margin-top: 40px; }
body.sub .foot { margin-top: 80px; }

/* ===== 관리자 ===== */
body.admin { background: var(--cream); }
.admin-login { max-width: 440px; margin: 0 auto; border: 1px solid var(--line-2); border-top: 6px solid var(--navy); }
.admin-login h1 { font-size: 24px; }
.ledger { padding: clamp(16px, 3vw, 28px); background: var(--paper); border: 1px solid var(--line-2); border-top: 6px solid var(--navy); }
.ledger-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ledger h1 { margin: 0; font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.ledger-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--navy); border-radius: var(--r); overflow: hidden; }
.ledger-tabs a { padding: 8px 14px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14px; border-left: 1px solid var(--navy); }
.ledger-tabs a:first-child { border-left: 0; }
.ledger-tabs a.on { background: var(--navy); color: #fff; }
.ledger .ok { padding: 9px 12px; border-left: 4px solid var(--ok); background: #e9f3e6; color: var(--ok); font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--navy); }
.filters input, .filters select, .row-form input, .row-form select, .settings input, .settings textarea, .settings select,
.course-edit select, .course-edit input[type=time], .course-edit input[type=date] { font: inherit; font-weight: 500; padding: 7px 9px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; color: var(--ink); }
.filters button, .row-form button { font: inherit; font-weight: 800; padding: 7px 16px; background: var(--navy); color: #fff; border: 0; border-radius: var(--r); cursor: pointer; }
.filters .csv { margin-left: auto; font-weight: 800; }
.day-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.day-sum span { background: #fff; border: 1px solid var(--line-2); padding: 4px 9px; font-size: 13px; }
.sum { font-weight: 800; margin: 6px 0 12px; }
.scroll { overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; white-space: nowrap; }
.ledger th { color: #fff; background: var(--navy); font-size: 13px; font-weight: 700; }
.ledger .mono { font-family: var(--mono); font-weight: 700; color: var(--red); }
.ledger td small { color: var(--muted); }
.ledger tr.st-canceled td { color: #9a9483; text-decoration: line-through; }
.ledger tr.st-canceled td:last-child { text-decoration: none; }
.ledger tr.st-confirmed td:first-child { box-shadow: inset 4px 0 0 var(--navy); }
.row-form { display: flex; gap: 6px; }
.row-form input { width: 160px; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
.settings fieldset { border: 1px solid var(--line-2); margin: 0 0 16px; padding: 14px 16px; display: grid; gap: 10px; background: #fff; }
.settings legend { font-weight: 900; color: var(--navy); padding: 0 6px; }
.settings label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.settings textarea { width: 100%; line-height: 1.6; }
.weekdays { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 700; font-size: 14px; }
.weekdays .chk { display: inline-flex; gap: 4px; font-weight: 500; }
.course-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 4px; font-weight: 800; font-size: 12.5px; color: var(--pi, var(--ink)); background: var(--ps, #eee); border: 1px solid var(--pa, #999); border-radius: 2px; }
.course-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pa, #999); }

/* 관리자: 코스 관리 */
.admin main.wide:has(.course-edit) { max-width: 1480px; }
.course-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.course-tabs a { position: relative; display: grid; grid-template-columns: 26px auto; grid-template-areas: "n s" "n b"; column-gap: 10px; align-items: center; padding: 8px 16px 8px 10px; text-decoration: none; color: var(--ink); background: var(--ps); border: 1.5px solid color-mix(in srgb, var(--pa) 45%, transparent); border-radius: var(--r); }
.course-tabs a::before { content: ''; grid-area: n; width: 24px; height: 24px; border-radius: 50%; background: var(--pa); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--pa); }
.course-tabs a small { grid-area: s; font-size: 11px; font-weight: 700; color: var(--muted); }
.course-tabs a b { grid-area: b; font-size: 17px; font-weight: 900; color: var(--pi); }
.course-tabs a em { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--red); padding: 0 6px; border-radius: 2px; }
.course-tabs a.on { border: 2px solid var(--pa); background: #fff; }
.note { padding: 10px 14px; border-left: 4px solid var(--yellow); background: #fdf6dc; font-size: 14px; }
.course-edit-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.course-edit .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.course-edit .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.course-edit .grid2 > label, .course-edit .grid3 > label { min-width: 0; }
.course-edit label.chk { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.course-edit label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.course-edit input[type=text], .course-edit input[type=number], .course-edit textarea { width: 100%; min-width: 0; }
.spot-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ledger .spot-table th { color: var(--muted); background: none; font-size: 12px; padding: 5px; white-space: nowrap; }
.spot-table td { padding: 5px; border-top: 1px solid var(--line); vertical-align: top; }
.spot-table input[type=text], .spot-table input[type=number], .spot-table textarea, .spot-table select { width: 100%; font: inherit; padding: 6px 7px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; }
.spot-table td.no { display: table-cell; min-width: 0; height: auto; margin: 0; padding: 11px 5px 5px; border-radius: 0; background: none; font-weight: 900; color: var(--navy); text-align: center; }
.spot-table td:nth-child(2) { min-width: 130px; }
.spot-table td:nth-child(3) { min-width: 200px; }
.spot-table td:nth-child(4) { min-width: 140px; }
.spot-table td.ll { width: 120px; min-width: 110px; }
.spot-table td.ll input + input { margin-top: 4px; }
.spot-table td.ops { width: 150px; white-space: normal !important; }
.spot-table td.ops .mini { margin: 0 2px 4px 0; }
.spot-table input.num { width: 70px; }
.spot-table tr.picking td { background: #fdf6dc; }
.spot-table td.times span { display: inline-block; margin: 0 4px 4px 0; padding: 1px 6px; background: #fff; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
.char-table td:nth-child(n) { min-width: 0 !important; width: auto; }
.char-table input.num { width: 64px; }
.ledger .spot-table td, .ledger .spot-table th { white-space: normal; }
.ledger .spot-table td.ops, .ledger .run-preview td:first-child { white-space: nowrap; }
.run-preview td:nth-child(2) { white-space: nowrap; }
.run-preview td.times > div { max-height: 132px; overflow: auto; }
.mini { font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 8px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; color: var(--ink); cursor: pointer; }
.mini:hover { border-color: var(--navy); }
.mini.danger { color: var(--red); }
.mini.add { margin-top: 8px; color: var(--navy); border-style: dashed; }
.mini.picking { background: var(--yellow); border-color: #c99d16; }
.hint-sm { margin: 4px 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.warn { margin: 6px 0; color: var(--red); font-weight: 700; font-size: 13.5px; }
.base-ops { margin: 6px 0 0; }
.save-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: sticky; bottom: 0; z-index: 5; padding: 10px 0; background: var(--paper); border-top: 2px solid var(--navy); }
.save-bar .btn-reserve { width: auto; margin: 0; padding: 12px 54px 12px 24px; font-size: 17px; }
.save-bar .btn-reserve span { white-space: nowrap; }
.link-danger { font: inherit; background: none; border: 0; color: var(--red); text-decoration: underline; cursor: pointer; font-size: 13px; }
.map-panel { position: sticky; top: 90px; }
.admin-map { height: 520px; background: #e7e1d2; border: 1px solid var(--line-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.admin-map > p { padding: 20px; }
.map-status { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--navy); min-height: 2.6em; }

/* ===== 반응형 ===== */
/* 넓은 화면: 제목은 왼쪽, 예매 패널은 오른쪽 (시안과 같은 배치) */
@media (min-width: 1100px) {
  .booth { align-items: flex-end; padding-right: clamp(24px, 6vw, 96px); }
  .booth.done { align-items: center; padding-right: 16px; }
}
@media (max-width: 1099px) {
  .hero.booth-open .hero-copy, .hero.booth-open .board { opacity: 0; }
}
.hero.booth-open:has(.booth.done) .hero-copy { opacity: 0; }
@media (max-width: 1100px) {
  .course-edit-wrap { grid-template-columns: 1fr; }
  .map-panel { position: static; order: -1; }
  .admin-map { height: 360px; }
  .tt-rows { grid-template-columns: repeat(2, 1fr); }
  .tt-rows > div:nth-child(3) { border-left: 0; }
  .tt-rows > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plate { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .route-grid { grid-template-columns: 1fr; max-width: 620px; }
  .run-board { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps li { border-top: 1px solid var(--line); }
  .flow-steps li:nth-child(odd) { border-left: 0; }
  .flow-steps li::after { display: none; }
  .rc-list { grid-template-columns: repeat(2, 1fr); }
  .rc-item:nth-child(3n+1) { border-left: 1px solid #2c3a55; }
  .rc-item:nth-child(odd) { border-left: 0; }
  .shelf { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 860px) {
  .sign-text small { display: none; }
  .plates .plate:not(.cta) { display: none; }
  .menu-btn { display: inline-flex; }
  .plates.open { position: absolute; top: 100%; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; padding: 6px 14px 14px; background: var(--paper); border-bottom: 2px solid var(--navy); }
  .plates.open .plate:not(.cta) { display: flex; height: 48px; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 4px; }
  .plates.open .plate.cta { margin: 12px 0 0; justify-content: center; height: 46px; }
  .plates.open .menu-btn { position: absolute; top: -54px; right: 14px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  main { padding-left: 14px; padding-right: 14px; }
  .top { height: 60px; padding: 0 12px; }
  .sign { gap: 8px; }
  .sign-mark { width: 32px; height: 23px; }
  .sign-text b { font-size: 17px; }
  .plate.cta { height: 36px; padding: 0 12px; font-size: 13.5px; margin-left: 0; }
  .plates.open .menu-btn { top: -50px; right: 12px; }

  .hero-copy { left: 18px; right: 18px; top: 92px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-tag { margin-top: 12px; }
  .hero-tag span { font-size: 20px; padding: 6px 24px 7px 16px; }
  .hero-sub { margin-top: 16px; font-size: 14.5px; padding-left: 12px; }
  .scene-cta { left: 18px; top: auto; bottom: 168px; font-size: 16px; padding: 13px 18px; }
  .board { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .board table { font-size: 13px; }
  .board td, .board th { padding: 6px 9px; }
  .sound-btn { top: 74px; right: 12px; bottom: auto; padding: 6px 10px; font-size: 12px; }
  .hero.booth-open .sound-btn { opacity: 0; pointer-events: none; }
  .booth { padding: 74px 8px 40px; justify-content: flex-start; }
  .window-label { padding: 12px 14px; gap: 10px; }
  .window-label svg { width: 28px; height: 28px; }
  .window-label small { font-size: 12px; }
  .paper-form { padding: 14px 14px 16px; }
  .fields.rows .field { grid-template-columns: 1fr; gap: 6px; }
  .course-face { grid-template-columns: 26px 1fr; padding: 9px 10px; }
  .course-face .line-no { width: 24px; height: 24px; font-size: 13px; }
  .course-face b { font-size: 17px; }
  .course-face em { font-size: 11.5px; }
  .btn-reserve { font-size: 19px; }
  .tt-rows { grid-template-columns: 1fr; }
  .tt-rows > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .tt-rows > div:first-child { border-top: 0; }
  .rc-list { grid-template-columns: 1fr; }
  .rc-item:nth-child(n) { border-left: 0; }
  .fare { font-size: 13.5px; }
  .fare td, .fare th { padding: 9px 10px; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li:nth-child(n) { border-left: 0; }
  main.wall > section + section { margin-top: 70px; }
  .route-map { height: 200px; }
  .course-edit .grid2, .course-edit .grid3 { grid-template-columns: 1fr; }
  .foot-body { grid-template-columns: 1fr; }
  main.page, body.sub main.page { padding-top: 96px; }
}

/* ===== v4.1 — 시안 2(아래 구역) 맞춤: 비스듬한 남색 구역 탭 · 행사 안내 표 ===== */
.wall-title { gap: 0; padding: 0; border-bottom: 3px solid var(--navy); }
.wall-title span { gap: 10px; padding: 9px 44px 9px 12px; font-size: clamp(19px, 2.4vw, 24px); color: #fff; background: var(--navy); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
.wall-title span::before { min-width: 34px; height: 26px; font-size: 14px; color: var(--navy); background: #fff; }
.wall-title + * { margin-top: 0; }
.wall-lead { margin-top: 16px; }
.about-grid { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line-2); border-top: 0; background: var(--paper); }
.about-intro { position: relative; padding: 24px 24px 90px; border-right: 1px solid var(--line); color: var(--navy); }
.about-intro small { font-size: 16px; font-weight: 800; }
.about-intro b { display: block; margin: 2px 0 12px; font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.about-intro p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.about-station { position: absolute; left: 24px; right: 24px; bottom: 16px; width: calc(100% - 48px); height: 64px; color: var(--navy); }
.about-grid .tt-rows { display: block; border: 0; background: none; }
.about-grid .tt-rows > div { display: grid; grid-template-columns: 150px 1fr; border-left: 0; border-top: 1px solid var(--line); padding: 0; }
.about-grid .tt-rows > div:first-child { border-top: 0; }
.about-grid .tt-rows dt { margin: 0; padding: 16px 18px; color: #fff; background: var(--navy); border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.about-grid .tt-rows > div:first-child dt { border-top: 0; }
.about-grid .tt-rows dt::before { background: var(--yellow); }
.about-grid .tt-rows dd { padding: 16px 18px; font-size: 15.5px; }
.route-grid, .run-board, .flow-steps, .notice-paper { margin-top: 18px; }
.board { width: min(480px, calc(100% - 28px)); }
.board-status { white-space: nowrap; }
.hero.booth-open:not(:has(.booth.done)) .sound-btn { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .about-grid .tt-rows > div { grid-template-columns: 1fr; }
  .about-grid .tt-rows > div:nth-child(n) { border-top: 0; }
  .about-grid .tt-rows dt { padding: 10px 14px; }
  .about-grid .tt-rows dd { padding: 12px 14px; }
  .about-intro b { font-size: 36px; }
  .wall-title span { padding-right: 34px; }
  .fields.rows .field { grid-template-columns: 92px 1fr; align-items: center; }
  .board-status { white-space: normal; }
}
.hero.booth-open:has(.booth.done) .board { opacity: 0; pointer-events: none; }


/* ===== 캐릭터 (캐릭터 시안 반영, v13) ===== */
/* 첫 화면: 예매 버튼 옆 캐릭터 얼굴 줄 */
.hero-actions { position: absolute; z-index: 5; left: clamp(20px, 6vw, 96px); top: calc(clamp(110px, 20vh, 190px) + clamp(330px, 34vw, 430px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions .scene-cta { position: static; }
.hero-friends { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 12px; color: var(--ink); text-decoration: none;
  background: var(--paper); border-left: 4px solid var(--yellow); border-radius: var(--r); box-shadow: 0 10px 24px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .2s; }
.hero-friends:hover { transform: translateY(-2px); }
.scene[data-phase="wait"] .hero-friends, .scene[data-phase="arrive"] .hero-friends, .scene[data-phase="stop"] .hero-friends { opacity: 1; pointer-events: auto; }
.hero.booth-open .hero-friends { opacity: 0 !important; pointer-events: none !important; }
.hf-faces { display: flex; padding-left: 8px; }
.hf-faces img { width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; background: var(--cream); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--cc); }
.hf-text { display: grid; line-height: 1.3; }
.hf-text b { font-size: 14.5px; font-weight: 900; }
.hf-text small { font-size: 12px; color: var(--muted); }

/* 달려가슈: 캐릭터 소개 (큰 그림 + 고르는 목록) */
.cast { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-bottom: 20px; background: var(--paper); border: 1px solid var(--line-2); }
.cast-stage { min-width: 0; border-right: 1px solid var(--line-2); }
.cast-card { margin: 0; animation: castIn .35s ease-out; }
.cast-card[hidden] { display: none; }
@keyframes castIn { from { opacity: 0; } to { opacity: 1; } }
.cast-pic { position: relative; aspect-ratio: 746 / 456; overflow: hidden; background: var(--navy); }
.cast-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cast-letter { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 900; color: #fff; background: var(--cc); }
.cast-no { position: absolute; left: 0; top: 0; padding: 6px 12px; font: 700 12px/1 var(--mono); letter-spacing: .08em; color: #fff; background: var(--navy); }
.cast-card figcaption { padding: 18px 22px 20px; border-top: 4px solid var(--cc); }
.cast-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.cast-name b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.cast-name small { font-size: 13px; font-weight: 700; color: var(--muted); }
.cast-intro { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.cast-kw { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cast-kw li { padding: 3px 9px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.cast-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.cast-btn { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 0; padding: 14px 8px 12px;
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.cast-btn:nth-child(2n) { border-left: 1px solid var(--line); }
.cast-btn:nth-last-child(-n+2) { border-bottom: 0; }
.cast-btn:hover { background: #fff; }
.cast-btn.on { background: #fff; box-shadow: inset 0 -4px 0 var(--cc); }
.cast-btn.on::before { content: ''; position: absolute; left: 0; top: 0; border-style: solid; border-width: 14px 14px 0 0; border-color: var(--cc) transparent transparent transparent; }
.cast-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.cast-thumb { display: block; width: 100%; height: 130px; margin-bottom: 8px; }
.cast-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .25s; filter: drop-shadow(0 6px 6px rgba(60,40,20,.18)); }
.cast-btn:hover .cast-thumb img, .cast-btn.on .cast-thumb img { transform: translateY(-4px); }
.cast-thumb i { margin: 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-style: normal; font-size: 28px; font-weight: 900; color: #fff; background: var(--cc); }
.cast-btn b { font-size: 16px; font-weight: 900; }
.cast-btn small { font-size: 12px; color: var(--muted); }

/* 규칙 + 지도: 나란히 (지도가 없으면 규칙만) */
.run-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
.run-side:not(:has(.run-map)) { grid-template-columns: 1fr; }

/* 출현 시간표 · 지도 표시에 캐릭터 얼굴 */
.rc-item { grid-template-columns: 48px 1fr; }
.rc-badge { width: 48px; height: 48px; }
.rc-badge.has-img { overflow: hidden; background: var(--cream); box-shadow: 0 0 0 2px var(--cc); }
.rc-badge img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nm-char.has-img { width: 44px; height: 44px; overflow: hidden; background-color: var(--cream) !important; }
.nm-char img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .cast { grid-template-columns: 1fr; }
  .cast-stage { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cast-list { grid-template-columns: repeat(6, 1fr); }
  .cast-btn:nth-child(n) { border-bottom: 0; border-left: 1px solid var(--line); }
  .cast-btn:first-child { border-left: 0; }
  .cast-thumb { height: 84px; }
  .cast-thumb i { margin-top: 20px; }
  .run-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-actions { left: 18px; right: 18px; top: auto; bottom: 168px; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .hero-friends { padding: 6px 12px 6px 8px; gap: 10px; }
  .hf-faces img { width: 32px; height: 32px; margin-left: -9px; }
  .hf-text b { font-size: 13.5px; }
  .hf-text small { font-size: 11.5px; }
  .cast-card figcaption { padding: 14px 14px 16px; }
  .cast-name b { font-size: 23px; }
  .cast-intro { font-size: 14px; }
  .cast-list { grid-template-columns: repeat(3, 1fr); }
  .cast-btn:nth-child(n) { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .cast-btn:nth-child(3n+1) { border-left: 0; }
  .cast-btn:nth-last-child(-n+3) { border-bottom: 0; }
  .cast-thumb { height: 70px; margin-bottom: 4px; }
  .cast-btn b { font-size: 14.5px; }
  .cast-btn small { font-size: 11px; }
  .rc-item { grid-template-columns: 44px 1fr; }
  .rc-badge { width: 44px; height: 44px; }
}

/* ===== 일행 화면 (trip.php) · 위치 현황 (관리자) v15 ===== */
.trip-cta { display: grid; gap: 2px; max-width: 560px; margin: 14px auto 0; padding: 12px 16px; text-align: left; text-decoration: none;
  color: #fff; background: var(--navy); border-left: 5px solid var(--yellow); border-radius: var(--r); }
.trip-cta b { font-size: 17px; font-weight: 900; }
.trip-cta b::after { content: ' →'; }
.trip-cta small { font-size: 12.5px; color: #c9d2e4; }
.trip-cta:hover { background: var(--navy-3); }
.trip-cta[hidden] { display: none; }

body.trip main.page { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; padding-bottom: 60px; }
body.trip h2 { display: flex; align-items: center; gap: 2px; margin: 0 0 10px; font-size: 19px; font-weight: 900; color: var(--navy); }
.trip-empty { max-width: 560px; margin: 40px auto; padding: 24px; background: var(--paper); border: 1px solid var(--line-2); }
.trip-head { padding: 18px 22px; color: #fff; background: var(--navy); border-radius: var(--r); }
.trip-kicker { margin: 0; font-size: 13px; color: #c9d2e4; }
.trip-kicker .no { background: var(--yellow); color: var(--navy); }
.trip-head h1 { margin: 6px 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -.02em; }
.trip-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.trip-meta div { display: flex; gap: 8px; align-items: baseline; }
.trip-meta dt { font-size: 12.5px; color: #9fb0cc; }
.trip-meta dd { margin: 0; font-size: 16px; font-weight: 800; }
.trip-meta em { font-style: normal; font-size: 12px; padding: 1px 6px; margin-left: 4px; color: var(--navy); background: var(--yellow); border-radius: 2px; }

.trip-share, .trip-near, .trip-live, .trip-tickets { margin-top: 18px; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line-2); }
.trip-share p, .near-lead { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row input { flex: 1 1 260px; min-width: 0; font: 600 14px var(--mono); padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.share-done { margin: 8px 0 0 !important; font-weight: 700; color: var(--ok) !important; }

.trip-map { height: 380px; border: 1px solid var(--line-2); }
.near-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 12px 0; }
.near-bar .btn-reserve { width: auto; padding: 12px 52px 12px 20px; font-size: 16px; }
.near-note { font-size: 13px; color: var(--muted); }
.near-note.bad, .loc-status.bad { color: var(--red); font-weight: 700; }
.near-list .empty, .member-list .empty { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--muted); background: var(--cream); border: 1px dashed var(--line-2); list-style: none; }
.near-title { margin: 0 0 8px; font-size: 14px; font-weight: 900; color: var(--navy); }
.near-list ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.near-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.near-item button { display: grid; grid-template-columns: 78px 1fr; gap: 12px; width: 100%; height: 100%; padding: 12px; text-align: left; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--r); cursor: pointer; }
.near-item button:hover { border-color: var(--c); }
.near-item.pick:first-child button { box-shadow: inset 0 0 0 2px var(--c); }
.near-item.here button { background: #fffbe6; }
.near-d { font: 800 18px/1.1 var(--mono); color: var(--navy); }
.near-d small { display: block; margin-top: 4px; font: 600 11.5px/1.3 var(--font); color: var(--muted); }
.near-body b { display: block; font-size: 15.5px; font-weight: 900; }
.near-body em { display: inline-block; margin-top: 2px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--c); }
.near-body p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.near-body small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.near-more { margin-top: 10px; }
.near-more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--navy); padding: 4px 0 8px; }
.near-more .near-item button { grid-template-columns: 78px 1fr; padding: 9px 12px; }

.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.trip-grid > section { margin-top: 18px; }
.member-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.member-list li:not(.empty) { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); }
.member-list li.old { opacity: .5; }
.member-list i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 900; color: #fff; }
.member-list b { font-size: 15px; }
.member-list small { font-weight: 600; color: var(--muted); }
.member-list span { font-size: 12px; color: var(--muted); }
.loc-card { padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); }
.loc-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 900; color: var(--navy); }
.loc-card h3 small { font-size: 12px; color: var(--muted); }
.loc-terms { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.loc-name { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.loc-name input { font: inherit; font-size: 15px; padding: 9px 10px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.loc-agree { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; font-weight: 700; }
.loc-agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-actions .btn-reserve { width: auto; padding: 12px 52px 12px 20px; font-size: 16px; }
.loc-actions [hidden] { display: none; }
.loc-status { margin: 8px 0 0; font-size: 13px; color: var(--ok); font-weight: 700; min-height: 1em; }
.trip-tickets .ticket-holder { margin: 0 auto; }
.trip-tickets .issued-note { display: block; margin: 8px 0 14px; }
.trip-hint { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* 지도 표시: 순서 없는 스팟 · 일행 · 나 */
.nm-spot { position: relative; width: 18px; height: 18px; }
.nm-spot i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.nm-spot span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 2px 6px; font: 800 12px/1.2 var(--font); color: var(--ink);
  background: rgba(251,248,240,.95); border: 1px solid var(--c); border-radius: 2px; }
.nm-member { position: relative; width: 32px; height: 32px; }
.nm-member i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 900 14px/1 var(--font); font-style: normal; color: #fff;
  background: var(--mc); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--mc), 0 3px 8px rgba(0,0,0,.4); }
.nm-member span { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); white-space: nowrap; padding: 1px 6px; font: 800 11.5px/1.3 var(--font); color: #fff; background: var(--mc); border-radius: 2px; }
.nm-member.old { opacity: .5; }
.nm-me { width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(26,115,232,.22), 0 2px 6px rgba(0,0,0,.4); }

/* 관리자 > 위치 현황 */
.live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.live-head p { margin: 0; font-size: 14px; color: var(--ink-2); }
.live-head form { margin: 0; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.live-map { height: 620px; border: 1px solid var(--line-2); }
.live-list { max-height: 620px; overflow: auto; display: grid; gap: 8px; align-content: start; }
.live-sum { margin: 0; font-weight: 900; color: var(--navy); }
.live-group { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gc); cursor: pointer; }
.live-group:hover, .live-group:focus { border-color: var(--gc); outline: none; }
.lg-head { margin: 0 0 6px; display: grid; grid-template-columns: 14px 1fr; gap: 2px 8px; align-items: center; }
.lg-head i { width: 14px; height: 14px; border-radius: 50%; background: var(--gc); }
.lg-head b { font-size: 15px; }
.lg-head span { grid-column: 2; font-size: 12px; color: var(--muted); white-space: normal; }
.live-group ul { margin: 0; padding: 0 0 0 22px; font-size: 13.5px; }
.live-group li.old { opacity: .5; }
.live-group small { color: var(--muted); }

@media (max-width: 1000px) {
  .near-top { grid-template-columns: 1fr; }
  .trip-grid { grid-template-columns: 1fr; gap: 0; }
  .live-grid { grid-template-columns: 1fr; }
  .live-map { height: 420px; }
}
@media (max-width: 760px) {
  body.trip main.page { padding-left: 12px; padding-right: 12px; }
  .trip-head { padding: 16px; }
  .trip-share, .trip-near, .trip-live, .trip-tickets { padding: 14px; }
  .trip-map { height: 320px; }
  .near-bar .btn-reserve, .loc-actions .btn-reserve { width: 100%; }
  .near-item button { grid-template-columns: 70px 1fr; }
}
.near-item.here .near-d { font-size: 15px; white-space: nowrap; }

/* 관리자 캐릭터 · 쿠폰 표 v18 */
.char-table { table-layout: auto; }
.ledger .char-table th { white-space: nowrap; line-height: 1.25; vertical-align: bottom; }
.ledger .char-table th small { font-size: 11px; font-weight: 600; }
.char-table td.c-on { width: 40px; text-align: center; padding-top: 12px; }
.char-table td.c-name { min-width: 150px !important; }
.char-table .c-namebox { display: flex; align-items: center; gap: 8px; }
.char-table .c-face { flex: none; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; }
.char-table .c-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-table .c-face b { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 14px; font-weight: 900; }
.char-table { min-width: 760px; }
.cp-table { min-width: 480px; }
.char-table td.c-name input { min-width: 90px; }
.char-table:not(.cp-table) td:nth-child(3) { min-width: 125px !important; }
.char-table:not(.cp-table) td:nth-child(4) { min-width: 110px !important; }
.char-table td.c-kw { min-width: 200px !important; }
.char-table td.c-kw textarea { resize: vertical; min-height: 40px; line-height: 1.4; }
.char-table td.c-num, .char-table th.c-num { width: 74px; text-align: center; }
.char-table td.c-del { width: 36px; }
.cp-table td.c-n { width: 32%; }
.course-edit, .course-edit fieldset { min-width: 0; }
.course-edit fieldset > * { max-width: 100%; } .run-preview { overflow-x: auto; } .course-edit label.inline { flex-wrap: wrap; } .course-edit label.inline input { max-width: 100%; }

/* 시운전 (테스트 플레이) v19 */
.test-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: var(--yellow); color: var(--navy); border-top: 3px solid var(--navy); font-size: 13.5px; line-height: 1.35; }
.test-strip b { flex: none; padding: 3px 8px; background: var(--navy); color: var(--yellow); font-weight: 900; letter-spacing: .04em; }
.test-strip span { flex: 1; min-width: 0; font-weight: 700; }
.test-strip a { flex: none; padding: 4px 10px; border: 2px solid var(--navy); color: var(--navy); font-weight: 900; text-decoration: none; background: #fff; }
body:has(.test-strip) { padding-bottom: 52px; }
.test-wrap { display: grid; gap: 14px; max-width: 860px; }
.test-card { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line-2); }
.test-card h2 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.test-card h2 small { margin-left: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.test-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.test-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.test-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 12px 0 8px; }
.test-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
.test-form input { font: inherit; padding: 9px 10px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; }
.test-form .btn-reserve { width: auto; padding: 12px 52px 12px 20px; font-size: 15px; }
.test-now { padding: 10px 12px; background: #fffbe6; border: 1px solid var(--yellow); font-weight: 700; }
.test-card .share-row { margin-bottom: 8px; }
.inline-form { display: inline; }
@media (max-width: 760px) {
  .test-strip { flex-wrap: wrap; font-size: 12.5px; padding: 7px 12px; gap: 6px 8px; }
  .test-strip span { flex-basis: calc(100% - 140px); }
  body:has(.test-strip) { padding-bottom: 70px; }
  .test-form .btn-reserve { width: 100%; }
}

/* 참여 순서 8단계: 넓은 화면은 4칸 × 2줄 (v20) */
@media (min-width: 1001px) {
  .flow-steps { grid-template-columns: repeat(4, 1fr); }
  .flow-steps li:nth-child(4n+1) { border-left: 0; }
  .flow-steps li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .flow-steps li:nth-child(4n)::after { display: none; }
}

/* 참가자 스팟 추천 · 시장 칠판 (v20) */
.rec-btn { border-style: dashed; }
.rec-form[hidden], .note-form[hidden] { display: none; }
.rec-form, .note-form { display: grid; gap: 10px; margin: 0 0 14px; padding: 16px; background: var(--cream); border: 1px solid var(--line-2); }
.rec-form h3 { margin: 0; font-size: 16px; color: var(--navy); }
.rec-form h3 small { margin-left: 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rec-form label, .note-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; color: var(--navy); }
.rec-form input[type=text], .note-form input[type=text], .note-form select, .board-filter select { width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; color: var(--ink); }
.rec-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rec-pos { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.rec-pos.bad, .form-msg.bad { color: var(--red); }
#recPick.picking { background: var(--yellow); border-color: var(--navy); }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.photo-pick small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.photo-btn { cursor: pointer; }
.photo-prev { max-height: 120px; max-width: 160px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rec-actions .btn-reserve { width: auto; padding: 11px 50px 11px 18px; font-size: 15px; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 13.5px; font-weight: 700; color: var(--green, #2f7d32); }
.note-terms { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.trip-board { margin-top: 18px; padding: 18px 20px 22px; background: var(--paper); border: 1px solid var(--line-2); }
.trip-board h2 small { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.done-card { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 2px solid var(--navy); }
.done-card > b { font-size: 14px; color: var(--navy); }
.done-card ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.done-card li { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.done-card li i { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; }
.done-card li.ok i { border-color: #2f7d32; background: #2f7d32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.done-card li em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.done-card li.ok em { color: #2f7d32; }
.done-card li.na { color: var(--muted); }
.done-card li.na i { border-style: dashed; }
.done-card > small { font-size: 12px; color: var(--muted); }
.board-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.board-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--navy); flex: 1 1 240px; max-width: 420px; }
.board-bar .btn-reserve { width: auto; padding: 11px 50px 11px 18px; font-size: 15px; }

.chalkboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; align-items: start; min-height: 220px; padding: 30px 24px 34px;
  background: #2b4334; border: 12px solid #6b4a2b; box-shadow: inset 0 0 0 2px #22362a, inset 0 0 40px rgba(0,0,0,.35), 0 2px 0 #4c3420; }
.chalk-empty { grid-column: 1 / -1; align-self: center; margin: 0; text-align: center; font: 28px/1.3 'Nanum Pen Script', var(--font); color: #e9efe6; opacity: .85; }
.chalk-note { position: relative; padding: 14px 12px 10px; background: #fff6c9; color: #2a2620; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 4px 10px rgba(0,0,0,.4); transition: transform .15s; }
.chalk-note:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.chalk-note.c1 { background: #ffe0e4; } .chalk-note.c2 { background: #dcf1e2; } .chalk-note.c3 { background: #e1eafb; }
.chalk-note.rec-note { grid-column: 1 / -1; max-width: 420px; background: #fff; outline: 2px dashed #c98a00; outline-offset: -6px; transform: none; }
.chalk-note .pin { display: block; z-index: 2; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #c8322b; box-shadow: inset -2px -3px 0 rgba(0,0,0,.25), 0 2px 3px rgba(0,0,0,.4); }
.chalk-note.c1 .pin { background: #1f4f9c; } .chalk-note.c2 .pin { background: #f3c22f; } .chalk-note.c3 .pin { background: #148a7b; }
.note-photo { display: block; width: 100%; margin: 0; padding: 0; border: 4px solid #fff; background: #fff; cursor: zoom-in; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.note-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chalk-note .memo { margin: 8px 2px 4px; font: 24px/1.18 'Nanum Pen Script', var(--font); word-break: keep-all; overflow-wrap: anywhere; }
.chalk-note .sub { margin: 0 2px 6px; font-size: 13px; line-height: 1.5; color: #4a443a; }
.chalk-note footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11.5px; color: #5d5649; }
.note-spot { padding: 0; border: 0; background: none; font: inherit; font-weight: 900; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chalk-note footer em { font-style: normal; color: #b0611a; font-weight: 800; }
.note-tool { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 11px; color: #8a8172; text-decoration: underline; cursor: pointer; }
.photo-view { max-width: min(92vw, 900px); padding: 10px; border: 0; background: #fff; }
.photo-view::backdrop { background: rgba(10,10,10,.75); }
.photo-view img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto 8px; }
.nm-user i { display: grid; place-items: center; width: 22px; height: 22px; background: var(--yellow); color: var(--navy); font-size: 13px; font-style: normal; line-height: 1; border: 2px solid var(--navy); }
.nm-user span { left: 26px; background: #fffbe6; border-color: #c98a00; }
.nm-new i { background: #fff; animation: none; }
@media (max-width: 760px) {
  .trip-board { padding: 14px; }
  .chalkboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 20px 12px 24px; border-width: 8px; }
  .chalk-note { padding: 12px 8px 8px; }
  .rec-actions .btn-sub { width: 100%; }
  .chalk-note .memo { font-size: 20px; }
  .board-bar .btn-reserve, .rec-actions .btn-reserve { width: 100%; }
  .board-filter { max-width: none; }
}
/* 관리자 칠판 관리 */
.ugc-wrap h3 { margin: 22px 0 8px; font-size: 16px; color: var(--navy); }
.ugc-wrap h3 small { font-size: 13px; color: var(--muted); }
.ugc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; }
.ugc-head p { margin: 0; flex: 1 1 380px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ugc-approve label { font-size: 14px; font-weight: 800; color: var(--navy); }
.ugc-approve small { font-weight: 600; color: var(--muted); }
.ugc-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.ugc-filter a { padding: 6px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.ugc-filter a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ugc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.ugc-table th { padding: 6px 8px; text-align: left; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ugc-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.ugc-table td.empty { color: var(--muted); text-align: center; }
.ugc-ph { width: 92px; }
.ugc-ph img { display: block; width: 84px; height: 63px; object-fit: cover; border: 1px solid var(--line-2); }
.ugc-ph span { font-size: 12px; color: var(--muted); }
.ugc-table td.ops { white-space: nowrap; }
.ugc-hidden td { background: #f3f0ea; color: var(--muted); }
.ugc-wait td { background: #fffbe6; }
.ugc-st { font-size: 12px; font-weight: 800; color: var(--navy); }
.ugc-rep { color: var(--red); font-weight: 800; }
.mono-s { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* 플레이 화면 (trip.php 단순화 v21): 지도 → 스팟 목록 → 캐릭터, 나머지는 접기 */
body.play main.page { max-width: 880px; }
.play-head { padding: 14px 18px; color: #fff; background: var(--navy); border-radius: var(--r); }
.play-head h1 { margin: 0 0 6px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; letter-spacing: -.02em; }
.play-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; font-weight: 800; color: #d9e0ee; }
.play-meta em { font-style: normal; font-size: 12px; padding: 1px 6px; margin-left: 4px; color: var(--navy); background: var(--yellow); border-radius: 2px; }
.play-meta .chip { padding: 2px 8px; color: #fff; background: var(--c); border: 1px solid rgba(255,255,255,.35); border-radius: 2px; font-size: 13px; }
.play-map { margin-top: 12px; }
.play-map .trip-map { height: min(58vh, 520px); min-height: 320px; border: 1px solid var(--line-2); }
.play-map .near-bar { margin: 10px 0 4px; }
.play-map .near-note { display: block; margin: 0; }
.play-spots, .play-run { margin-top: 16px; padding: 16px 18px 18px; background: var(--paper); border: 1px solid var(--line-2); }
.play-spots h2 small, .play-run h2 small { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.spots-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.spots-head h2 { margin: 0 !important; }
.play-spots .rec-form { margin-bottom: 12px; }
.spot-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spot-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.spot-row .sr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.spot-row .sr-main:hover { background: #fff; }
.sr-dot { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c); font-style: normal; font-size: 10px; color: var(--navy); }
.spot-row.user .sr-dot { width: 22px; height: 22px; border-radius: 0; background: var(--yellow); border: 2px solid var(--navy); box-shadow: none; }
.sr-body { flex: 1; min-width: 0; }
.sr-body b { font-size: 16px; font-weight: 900; }
.sr-body em { margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--c); }
.spot-row.user .sr-body em { color: #9a6a00; }
.sr-body small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-d { flex: none; text-align: right; font: 800 15px/1.15 var(--mono); color: var(--navy); }
.sr-d small { display: block; font: 600 11.5px/1.3 var(--font); color: var(--muted); }
.spot-row.first .sr-main { background: #fffbe6; }
.spot-row.first .sr-d b::before { content: '가장 가까워요 '; font: 800 11px var(--font); color: #9a6a00; }
.spot-row.here .sr-main { background: #fff3c4; }
.sr-review { flex: none; align-self: center; margin-left: 6px; padding: 6px 10px; font: 800 13px var(--font); color: var(--navy); background: #fff; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; }
.sr-review:hover { border-color: var(--navy); }
.play-run .run-clock { margin: 0; }

.play-more { display: grid; gap: 8px; margin-top: 16px; }
details.more { background: var(--paper); border: 1px solid var(--line-2); }
details.more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 44px 14px 16px; position: relative; list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.more > summary b { font-size: 16px; font-weight: 900; color: var(--navy); }
.more-sub { font-size: 13px; color: var(--muted); font-weight: 700; }
.more-sub.ok { color: #2f7d32; }
details.more .more-body { margin: 0; padding: 0 16px 16px; background: none; border: 0; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 760px) {
  .play-map .trip-map { height: 42vh; min-height: 260px; }
  .play-spots, .play-run { padding: 14px 12px; }
  .play-map .near-bar .btn-reserve { width: auto; flex: 1; }
  .spots-head .rec-btn { width: 100%; }
  .sr-body small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.play-map { padding: 10px 10px 12px; background: var(--paper); border: 1px solid var(--line-2); }
.play-map .near-bar { margin: 10px 0 6px; }
.sr-d b { font-family: var(--font); }
@media (max-width: 760px) {
  .play-map { padding: 8px 8px 10px; }
  .sr-body em { display: block; margin: 1px 0 0; }
  .play-run h2 small, .play-spots h2 small { display: block; margin: 2px 0 0; }
  .play-run h2, .play-spots h2 { display: block !important; }
}
.test-strip em { font-style: normal; }
@media (max-width: 760px) {
  .test-strip { flex-wrap: nowrap; }
  .test-strip span { flex-basis: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .test-strip em { display: none; }
  body:has(.test-strip) { padding-bottom: 50px; }
}

/* v22 · 지도 실패 안내 + 스팟 팝업 칠판 */
.route-map.failed { display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px dashed var(--line-2); }
.map-fail { margin: 0; padding: 20px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--red); }
.spot-pop { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #0b1a33; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: var(--panel-shadow); overflow: auto; overscroll-behavior: contain; }
.spot-pop::backdrop { background: rgba(10,16,30,.6); }
.pop-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.pop-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.pop-title { flex: 1 1 auto; min-width: 0; }
.pop-title h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
.pop-title small { display: block; font-size: 12.5px; font-weight: 600; color: #c9d3e6; }
.pop-x { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.pop-x:hover { background: rgba(255,255,255,.12); }
.pop-story { margin: 0; padding: 12px 16px 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.pop-bar b { font-size: 14px; color: var(--navy); }
.pop-slot:empty { display: none; }
.pop-slot { padding: 0 16px 12px; }
.pop-slot .note-form { margin: 0; }
.spot-pop .pop-board { margin: 0 16px 16px; min-height: 180px; }
@media (max-width: 640px) {
  .spot-pop { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 10px 10px 0 0; border-width: 1px 0 0; }
  .pop-bar .btn-reserve { flex: 1 1 100%; }
  .spot-pop .pop-board { margin: 0 10px 14px; }
}
.spot-pop .pop-title h2 { color: #fff; font-family: var(--font); letter-spacing: 0; }
.pop-bar .btn-reserve { width: auto; min-width: 240px; margin: 0; }
.pop-slot .note-form > label:first-child { display: none; }   /* 팝업에선 스팟이 이미 정해져 있음 */
.test-ledger { margin: 0 0 16px; padding: 10px 14px; background: var(--yellow); color: var(--navy); border-left: 5px solid var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; }
.test-ledger b { margin-right: 8px; padding: 2px 8px; background: var(--navy); color: var(--yellow); }
.test-ledger a { color: var(--navy); font-weight: 900; }

/* =====================================================================
   v24 · 어르신 · 아이 동반 가족 기준 수정 (첫 화면 / 예약 / 자세히 보기 / 예약 확인)
   본문 16px 이상, 누르는 곳 44px 이상, 숫자 배지 없앰
   ===================================================================== */
.wall-title span:not([data-kicker])::before { display: none; }
.btn-big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 2px solid var(--navy); border-radius: var(--r);
  font: inherit; font-size: 19px; font-weight: 900; letter-spacing: -.01em; color: #fff; background: var(--navy); text-decoration: none; cursor: pointer; }
.btn-big:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn-big.sub { color: var(--navy); background: var(--paper); }
.btn-big.sub:hover { background: #fff; }
.btn-big:disabled { opacity: .6; cursor: progress; }
.plate { height: 44px; font-size: 16px; }
.plate.cta { height: 44px; font-size: 16px; }
.menu-btn { width: 44px; height: 44px; }

/* ---------- 첫 화면 ---------- */
.front .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.front .scene .scene-box::after { opacity: 1; background: linear-gradient(90deg, rgba(12,10,8,.55), rgba(12,10,8,.15) 60%); }
.front-wrap { position: relative; z-index: 6; width: 100%; max-width: 1240px; margin: 0 auto; padding: 100px clamp(18px, 5vw, 64px) 48px;
  display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: 32px; align-items: center; }
.front-copy { color: #fff; }
.front-copy h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 8px 30px rgba(0,0,0,.35); }
.front-line { margin: 22px 0 0; max-width: 460px; padding-left: 16px; border-left: 3px solid var(--yellow); font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; line-height: 1.55; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.front-card { background: var(--paper); border: 1px solid #0b1a33; border-top: 8px solid var(--navy); border-radius: 4px; box-shadow: var(--panel-shadow); padding: 22px 22px 18px; }
.front-facts { margin: 0; display: grid; gap: 12px; }
.front-facts div { display: grid; gap: 2px; }
.front-facts dt { font-size: 16px; font-weight: 800; color: var(--muted); }
.front-facts dd { margin: 0; font-size: 21px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.front-facts .big dd { font-size: 26px; color: var(--navy); }
.front-note { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.front-soon { margin: 14px 0 0; padding: 10px 12px; font-size: 17px; font-weight: 700; background: #fff6d6; border-left: 4px solid var(--yellow); }
.front-actions { display: grid; gap: 10px; margin-top: 18px; }
.front-actions .btn-big { width: 100%; }
.front-actions .btn-big:first-child:not(.sub) { min-height: 64px; font-size: 22px; }
.front-tel { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.front-tel a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 900; color: var(--navy); }
.front-main { max-width: 1160px; padding-top: 56px; }
.front-courses h2 { margin: 0 0 16px; font-size: 26px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fc-list a { display: grid; gap: 6px; height: 100%; min-height: 120px; padding: 16px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-top: 6px solid var(--pa, var(--navy)); border-radius: 3px; }
.fc-list a:hover { background: #fff; }
.fc-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fc-name b { font-size: 22px; font-weight: 900; color: var(--pa, var(--navy)); }
.fc-name small { font-size: 15px; font-weight: 700; color: var(--muted); }
.fc-short { font-size: 18px; font-weight: 800; }
.fc-faces, .pc-faces { display: flex; gap: 2px; margin-top: 2px; }
.fc-faces img, .pc-faces img { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--cc, #ccc); object-fit: contain; }
.fc-more { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); }
.front-main .notice-wrap { margin-top: 56px; }
.notice-text { font-size: 17px; line-height: 1.75; }
.notice-link a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 800; }
[data-palette="red"] { --pa: #c0392b; } [data-palette="blue"] { --pa: #2a55b0; } [data-palette="mint"] { --pa: #c9762c; } [data-palette="green"] { --pa: #26408f; }

/* ---------- 예약 (book.php) ---------- */
.book-page { max-width: 760px; }
.book-form { background: var(--paper); border: 1px solid #0b1a33; border-top: 8px solid var(--navy); border-radius: 4px; box-shadow: var(--panel-shadow); padding: 22px clamp(16px, 4vw, 34px) 26px; scroll-margin-top: 84px; }
.book-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.book-top h1 { margin: 0; font-size: 26px; font-weight: 900; color: var(--navy); }
.book-progress { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink-2); }
.book-progress span { color: var(--navy); font-size: 20px; }
.book-bar { flex: 1 0 100%; height: 8px; margin-top: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.book-bar i { display: block; height: 100%; width: 20%; background: var(--navy); transition: width .3s; }
.bk-step { margin-top: 22px; }
.bk-step h2 { margin: 0; font-size: clamp(24px, 3.4vw, 30px); font-weight: 900; letter-spacing: -.03em; color: var(--ink); outline: none; }
.q-help { margin: 8px 0 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 4px; }
.pick-card { position: relative; display: block; cursor: pointer; }
.pick-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-body { display: grid; gap: 4px; align-content: start; min-height: 132px; height: 100%; padding: 16px 16px 14px 18px; background: #fff; border: 2px solid var(--line-2); border-left: 10px solid var(--pa); border-radius: 4px; transition: background .15s, border-color .15s; }
.pc-body small { font-size: 15px; font-weight: 800; color: var(--muted); }
.pc-body b { font-size: 25px; font-weight: 900; color: var(--pa); letter-spacing: -.03em; }
.pc-body strong { font-size: 19px; font-weight: 900; color: var(--ink); }
.pc-body em { font-style: normal; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.pc-check { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; z-index: 1; }
.pick-card input:checked + .pc-check { border-color: var(--pa); background: var(--pa); }
.pick-card input:checked + .pc-check::after { content: ''; position: absolute; left: 11px; top: 5px; width: 10px; height: 19px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.pick-card input:checked ~ .pc-body { border-color: var(--pa); background: color-mix(in srgb, var(--pa) 9%, #fff); box-shadow: 0 0 0 2px var(--pa); }
.pick-card input:focus-visible ~ .pc-body { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pick-card.off { cursor: not-allowed; opacity: .55; }
.bad.pick-grid, .bad.day-grid, .bad.steppers { outline: 3px solid var(--red); outline-offset: 4px; }
.f-err { margin: 10px 0 0; padding: 10px 14px; border-left: 5px solid var(--red); background: #fbeceb; color: #9b211b; font-size: 17px; font-weight: 800; line-height: 1.5; }
.big-check { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; margin-top: 16px; padding: 12px 16px; background: #fff; border: 2px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.big-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-box { flex: 0 0 auto; position: relative; width: 36px; height: 36px; border: 3px solid var(--navy); border-radius: 4px; background: #fff; }
.big-check input:checked + .bc-box { background: var(--navy); }
.big-check input:checked + .bc-box::after { content: ''; position: absolute; left: 9px; top: 2px; width: 9px; height: 18px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.big-check input:focus-visible + .bc-box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.big-check:has(input:checked) { border-color: var(--navy); background: #eef2f9; }
.bc-text { display: grid; gap: 2px; }
.bc-text b { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.bc-text small { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.big-check.dim { opacity: .5; cursor: not-allowed; }
.big-check.bad { border-color: var(--red); }
.guide-link { margin: 14px 0 0; }
.guide-link a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 800; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; border-radius: 4px; }
.day-btn { position: relative; display: grid; gap: 0; min-height: 76px; padding: 10px 12px; align-content: center; text-align: center; background: #fff; border: 2px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.day-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-btn b { font-size: 21px; font-weight: 900; color: var(--ink); }
.day-btn span { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.day-btn small { font-size: 15px; font-weight: 800; color: var(--red); }
.day-btn:has(input:checked) { background: var(--navy); border-color: var(--navy); }
.day-btn:has(input:checked) b, .day-btn:has(input:checked) span { color: #fff; }
.day-btn:has(input:checked) small { color: var(--yellow); }
.day-btn:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.day-btn.full { opacity: .5; cursor: not-allowed; }
.steppers { display: grid; gap: 12px; border-radius: 4px; }
.stepper { display: grid; grid-template-columns: 1fr 60px 64px 30px 60px; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border: 2px solid var(--line-2); border-radius: 4px; }
.st-label { display: grid; }
.st-label b { font-size: 22px; font-weight: 900; }
.st-label small { font-size: 16px; color: var(--ink-2); }
.st-btn { width: 60px; height: 60px; border: 2px solid var(--navy); border-radius: 50%; background: var(--paper); color: var(--navy); font: inherit; font-size: 32px; font-weight: 900; line-height: 1; cursor: pointer; }
.st-btn:hover { background: #fff; }
.st-btn:disabled { opacity: .35; cursor: not-allowed; }
.st-val { font-size: 34px; font-weight: 900; text-align: center; color: var(--navy); }
.st-unit { font-size: 19px; font-weight: 800; }
.gift-note { margin: 16px 0 0; padding: 12px 14px; font-size: 17px; line-height: 1.6; background: #fff6d6; border-left: 5px solid var(--yellow); }
.big-field { display: grid; gap: 6px; margin-top: 14px; }
.big-field > span { font-size: 18px; font-weight: 900; color: var(--navy); }
.big-field input { width: 100%; min-height: 58px; padding: 0 14px; font: inherit; font-size: 21px; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--line-2); border-radius: 4px; }
.big-field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,41,75,.2); }
.big-field input.bad, .big-field input[aria-invalid="true"] { border-color: var(--red); }
.big-field input::placeholder { color: #8d8d86; font-weight: 500; }
.big-details { margin-top: 10px; }
.big-details summary { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 800; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.big-details p { margin: 6px 0 0; padding: 12px 14px; font-size: 16px; line-height: 1.7; background: #fff; border: 1px solid var(--line); }
.confirm-list { margin: 0; display: grid; border: 2px solid var(--navy); border-radius: 4px; background: #fff; }
.confirm-list > div { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; padding: 14px 14px; border-top: 1px solid var(--line); }
.confirm-list > div:first-child { border-top: 0; }
.confirm-list dt { font-size: 17px; font-weight: 800; color: var(--muted); }
.confirm-list dd { margin: 0; font-size: 21px; font-weight: 900; color: var(--ink); line-height: 1.45; }
.fix-btn { min-height: 44px; min-width: 72px; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 800; color: var(--navy); background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r); cursor: pointer; }
.confirm-two { margin: 0; padding: 12px 14px; font-size: 17px; font-weight: 700; background: #fff6d6; border-top: 1px solid var(--line); }
.confirm-where { margin: 14px 0 0; font-size: 18px; }
.book-nav { display: flex; gap: 10px; margin-top: 26px; }
.book-nav .btn-big { flex: 1 1 0; min-height: 62px; font-size: 21px; }
.book-nav #prevBtn { flex: 0 0 auto; }
.book-nav .go { background: #b3261e; border-color: #b3261e; }
.book-nav .go:hover { background: #8f1d17; border-color: #8f1d17; }
.book .issued .issued-title { font-size: 21px; }
.book .issued-note, .lookup .issued-note { font-size: 17px; }
.issued-actions .btn-big { min-height: 52px; font-size: 17px; }
.trip-cta b { font-size: 20px; }
.trip-cta small { font-size: 16px; }
.closed-big { font-size: 30px; }

/* ---------- 예약 확인 ---------- */
.look-form h1 { margin: 0 0 12px; font-size: 26px; font-weight: 900; color: var(--navy); }
.look-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.look-tabs a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 10px; text-align: center; font-size: 17px; font-weight: 800; color: var(--navy); text-decoration: none; background: #fff; border: 2px solid var(--navy); border-radius: var(--r); line-height: 1.3; }
.look-tabs a.on { color: #fff; background: var(--navy); }
.look-form .lead { font-size: 17px; color: var(--ink-2); }
.look-form .btn-big { width: 100%; margin-top: 18px; min-height: 60px; font-size: 21px; }

/* ---------- 자세히 보기 ---------- */
.guide-main { padding-top: 110px; }
.guide-head h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.guide-head p { margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-jump a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--paper); border: 2px solid var(--line-2); border-left: 8px solid var(--pa, var(--navy)); border-radius: 3px; }
.guide-main > section { margin-top: 56px !important; scroll-margin-top: 84px; }
.guide-main .route { scroll-margin-top: 84px; }
.wall-lead { font-size: 17px; }
.route-head b { font-size: 21px; }
.route-head span { font-size: 16px; color: var(--ink-2); }
.route-line b { font-size: 18px; }
.route-line p { font-size: 16px; }
.route-line small { font-size: 15px; color: #4a5263; font-weight: 600; }
.route-line .dot { font-size: 15px; }
.run-when { margin: 0 0 18px; padding: 12px 16px; font-size: 18px; line-height: 1.6; background: #fff6d6; border-left: 5px solid var(--yellow); }
.run-side h3 { margin: 0 0 10px; font-size: 21px; font-weight: 900; color: var(--navy); }
.run-rules li { font-size: 17px; grid-template-columns: 30px 1fr; }
.run-rules li::before { width: 28px; height: 28px; font-size: 15px; }
.map-cap { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); }
.fare { font-size: 17px; }
.fare caption { font-size: 20px; }
.fare caption small { font-size: 16px; color: var(--ink-2); display: block; margin-top: 2px; }
.fare th { font-size: 16px; }
.cast-name b { font-size: 24px; }
.cast-name small { font-size: 16px; }
.cast-intro { font-size: 17px; line-height: 1.65; }
.cast-btn { min-height: 64px; }
.cast-btn b { font-size: 16px; }
.flow-steps.three { grid-template-columns: repeat(3, 1fr); }
.flow-steps.three li { padding: 20px 18px; }
.flow-steps.three b { font-size: 21px; }
.flow-steps.three p { font-size: 17px; line-height: 1.6; }
.flow-steps.three .step-no { width: 38px; height: 38px; font-size: 19px; }
.guide-cta { margin: 48px 0 0; text-align: center; }
.guide-cta .btn-big { min-width: min(100%, 360px); min-height: 64px; font-size: 22px; }

/* ---------- 지도: 큰 확대 · 축소 버튼 ---------- */
.zm-btns { position: absolute; right: 10px; top: 10px; z-index: 100; display: grid; gap: 6px; }
.zm-btns button { width: 46px; height: 46px; font: inherit; font-size: 28px; font-weight: 900; line-height: 1; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.18); }

/* ---------- 투어 화면 시간표 ---------- */
.rc-head b { font-size: 19px; }
.rc-head span { font-size: 15px; }
.rc-note { font-size: 16px; }
.rc-body b { font-size: 18px; }
.rc-state { font-size: 16px; }
.rc-item small { font-size: 15px; }
.rc-item summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  .front .hero { align-items: stretch; }
  .front-wrap { grid-template-columns: 1fr; gap: 18px; padding: 86px 16px 24px; align-content: start; }
  .front-copy h1 { font-size: 42px; }
  .front-copy .hero-tag { margin-top: 10px; }
  .front-line { margin-top: 14px; font-size: 18px; }
  .front-card { padding: 18px 16px 14px; }
  .front-facts .big dd { font-size: 24px; }
  .fc-list { grid-template-columns: 1fr 1fr; }
  .fc-list a { min-height: 104px; padding: 14px 12px; }
  .fc-name b { font-size: 20px; }
  .fc-short { font-size: 17px; }
  .book-page { padding-left: 12px; padding-right: 12px; padding-top: 88px; }
  .book-form { padding: 18px 14px 20px; }
  .pick-grid { grid-template-columns: 1fr; }
  .pc-body { min-height: 0; padding: 14px 60px 14px 16px; }
  .day-grid { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: 1fr 56px 48px 22px 56px; padding: 12px; gap: 6px; }
  .st-btn { width: 56px; height: 56px; }
  .st-val { font-size: 30px; }
  .confirm-list > div { grid-template-columns: 1fr auto; }
  .confirm-list dt { grid-column: 1 / -1; }
  .confirm-list dd { grid-column: 1; font-size: 20px; }
  .confirm-list .fix-btn { grid-column: 2; grid-row: 2; }
  .book-nav .btn-big { font-size: 19px; padding: 0 14px; }
  .guide-main { padding-top: 90px; }
  .flow-steps.three { grid-template-columns: 1fr; }
  .flow-steps.three li { border-left: 0; border-top: 1px solid var(--line); }
  .flow-steps.three li:first-child { border-top: 0; }
  .look-tabs a { font-size: 16px; }
}
.route-line small { font-size: 16px; color: #3f4757; }
.route-line .dot { font-size: 16px; }
.pc-body small, .fc-name small { font-size: 16px; }
.nm-pin { font-size: 15px; }
.trip-empty .btn-sub { font-size: 16px; min-height: 44px; }
/* 자세히 보기는 읽을 게 많아서 밝은 종이 바탕 (사진 배경 없이) */
body.sub.guide { background: var(--cream); }
body.sub.guide::before { display: none; }
.fare td:first-child { white-space: nowrap; }

/* =====================================================================
   v25 · 휴대폰 화면 정리 (폭 넘침 없애기, 칸 폭 맞추기, 작은 글씨 키우기)
   ===================================================================== */
/* 칸 안 내용이 길어도 열이 밀리지 않게 */
.pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fc-faces, .pc-faces { flex-wrap: wrap; }
.pc-body > *, .fc-list a > * { min-width: 0; }

/* 예약 확인 결과: 승차권 한 장 = 카드 한 장 */
/* 예약 확인: 찾은 승차권이 위, 예약 확인 상자가 아래 */
.lookup .page > .look-found-title:first-child, .lookup .look-done + .look-found-title { margin-top: 0; }
.lookup .look-card ~ .window { margin-top: 30px; }
.look-found-title { max-width: 760px; margin: 34px auto 0; padding: 10px 16px; font-size: 20px; font-weight: 900; color: #fff; background: var(--navy); border-left: 6px solid var(--yellow); border-radius: var(--r); }
.lookup .look-card { max-width: 760px; margin: 14px auto 0; padding: 14px; text-align: left; background: var(--paper); border: 1px solid #0b1a33; border-top: 6px solid var(--navy); border-radius: 4px; box-shadow: var(--panel-shadow); }
.look-card .ticket-holder { filter: none; }
.look-card .issued-note { display: block; max-width: none; margin: 12px 0 0; padding: 0; background: none; border: 0; font-size: 17px; line-height: 1.6; }
.look-go { margin: 12px 0 0; }
.look-card .trip-cta { max-width: none; margin: 0; }

/* 예약 완료 화면: 모든 칸 같은 폭 */
.book .issued { max-width: 560px; margin-left: auto; margin-right: auto; }
.book .issued-title { display: flex; justify-content: center; text-align: center; }
.book .issued-note { display: block; max-width: none; }
.book .trip-cta { max-width: none; }
.book .issued-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book .issued-actions #saveBtn { grid-column: 1 / -1; }

/* 투어 화면 글씨 (16px 아래로 안 내려가게) */
.play-meta, .play-meta .chip { font-size: 16px; }
.play-meta em { font-size: 15px; }
.near-note, .more-sub, .sr-body small, .rec-pos, .note-terms, .loc-terms, .trip-hint, .board-filter, .loc-name, .play-spots .spots-head small { font-size: 16px; }
.sr-body em { font-size: 15px; }
.sr-review { min-width: 56px; min-height: 44px; padding: 0 12px; font-size: 16px; }
.rec-btn, .btn-sub { min-height: 44px; font-size: 16px; }
.play .btn-reserve { min-height: 48px; font-size: 17px; }
.rc-item small, .rc-left, .rc-item summary { font-size: 16px; }
.trip-tickets .issued-note, .share-done { font-size: 16px; }

@media (max-width: 760px) {
  /* 첫 화면 코스: 한 줄에 하나씩, 같은 폭 */
  .fc-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fc-list a { position: relative; min-height: 0; padding: 14px 52px 14px 16px; gap: 4px; border-top-width: 1px; border-left: 8px solid var(--pa, var(--navy)); }
  .fc-list a::after { content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 34px; font-weight: 700; line-height: 1; color: var(--pa, var(--navy)); }
  .fc-name b { font-size: 22px; }
  .fc-faces img { width: 32px; height: 32px; }
  .front-main { padding-left: 16px; padding-right: 16px; }
  .front-main .notice-wrap { margin-top: 40px; }
  .front-main .notice-paper { margin-left: 0; margin-right: 0; padding: 20px 18px; transform: none; }

  /* 예약: 카드 · 인원 칸이 상자 밖으로 안 나가게 */
  .book-page { padding-left: 16px; padding-right: 16px; }
  .book-form { padding: 18px 16px 20px; }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-body { padding: 14px 58px 14px 16px; }
  .pc-faces img { width: 32px; height: 32px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 10px 8px; padding: 14px 16px 16px; }
  .st-label { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .st-label small { font-size: 16px; line-height: 1.3; }
  .st-btn { width: 56px; height: 56px; font-size: 30px; }
  .st-val { font-size: 34px; white-space: nowrap; }
  .st-unit { display: none; }
  .st-val::after { content: '명'; margin-left: 2px; font-size: 18px; font-weight: 800; color: var(--ink); }
  .book-nav #prevBtn { padding: 0 16px; }

  /* 예약 완료 · 예약 확인 */
  .book .issued, .lookup .look-card, .look-found-title { margin-left: 0; margin-right: 0; }
  .book .issued-title { font-size: 20px; padding: 12px 14px; }
  .book .issued-actions { grid-template-columns: minmax(0, 1fr); }
  .book .issued-actions .btn-big { width: 100%; }
  .lookup .look-card { padding: 12px; }

  /* 자세히 보기 */
  .guide-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-jump a { padding: 0 12px; }
  .guide-jump a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fare, .fare tbody, .fare tr, .fare td { display: block; width: 100%; }
  .fare thead { display: none; }
  .fare caption { display: block; padding: 16px 16px 12px; background: #fff; border-bottom: 3px solid var(--navy); line-height: 1.4; }
  .fare caption small { margin-top: 6px; line-height: 1.5; }
  .fare tr { padding: 14px 16px !important; }
  .fare tr { border-top: 1px solid var(--line-2); padding: 10px 14px; }
  .fare tbody tr:first-child { border-top: 0; }
  .fare td, .fare td + td { padding: 2px 0; border: 0; white-space: normal !important; }
  .fare td::before { content: attr(data-label); display: block; font-size: 15px; font-weight: 800; color: var(--muted); }
  .fare td:first-child::before { display: none; }
  .fare td:first-child { font-size: 19px; font-weight: 900; color: var(--navy); }
  .fare td + td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; margin-top: 4px; }
  .fare td + td::before { display: block; }

  /* 투어 화면 */
  .play-head h1 { font-size: 24px; }
}
/* 아주 좁은 휴대폰(360px 이하): 윗줄 간판이 넘치지 않게 */
@media (max-width: 370px) {
  .top { gap: 8px; padding: 0 10px; }
  .sign { flex: 0 1 auto; min-width: 0; gap: 6px; }
  .sign-mark { width: 28px; height: 20px; }
  .sign-text b { font-size: 16px; white-space: nowrap; }
  .plates { flex: 0 0 auto; gap: 6px; }
  .plate.cta { padding: 0 10px; font-size: 15px; }
}
@media (max-width: 340px) {
  .sign-text b { font-size: 14.5px; letter-spacing: -.05em; }
}

/* =====================================================================
   v26 · 캐릭터 잡기 (투어 화면)
   ===================================================================== */
.head-catch { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 10px; font-size: 16px; font-weight: 800; color: var(--navy); background: var(--yellow); border-radius: 2px; text-decoration: none; }
.head-catch b { font-size: 18px; }
.catch-bar { margin: 0 0 14px; padding: 16px; background: var(--paper); border: 2px solid var(--navy); border-radius: 4px; color: var(--ink); }
.cb-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.cb-count { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 800; }
.cb-count > span { font-size: 17px; color: var(--ink-2); }
.cb-count b { font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.cb-faces { display: flex; flex-wrap: wrap; gap: 4px; }
.cb-face { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #e4e1d8; border: 2px solid #c9c4b6; color: #fff; font-weight: 900; filter: grayscale(1); opacity: .45; }
.cb-face img { width: 100%; height: 100%; object-fit: contain; }
.cb-face.on { filter: none; opacity: 1; background: #fff; border-color: var(--cc); box-shadow: 0 0 0 2px var(--yellow); }
.cb-near { margin: 12px 0 0; padding: 12px 14px; font-size: 18px; line-height: 1.5; font-weight: 700; background: #fff6d6; border-left: 5px solid var(--yellow); }
.cb-near small { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.cb-help { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.rc-item.got .rc-badge { box-shadow: 0 0 0 3px var(--yellow); }
.rc-got { display: inline-block; margin-left: 6px; padding: 1px 8px; font-style: normal; font-size: 14px; font-weight: 900; color: var(--navy); background: var(--yellow); border-radius: 2px; vertical-align: 2px; }
.catch-pop { width: min(92vw, 420px); padding: 26px 20px 20px; text-align: center; color: var(--ink); background: var(--paper); border: 0; border-top: 8px solid var(--navy); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.catch-pop::backdrop { background: rgba(10,16,30,.6); }
.cp-face { width: 132px; height: 132px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid var(--cc, var(--navy)); box-shadow: 0 0 0 5px var(--yellow); animation: cpBob 1.2s ease-in-out infinite; }
.cp-face img { width: 100%; height: 100%; object-fit: contain; }
.cp-face span { font-size: 56px; font-weight: 900; color: var(--cc, var(--navy)); }
@keyframes cpBob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .cp-face { animation: none; } }
body.trip .catch-pop h2 { display: block; width: 100%; text-align: center; margin: 18px 0 0; justify-content: center; font-size: 25px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.cp-dist { margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.cp-msg { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.cp-msg.bad { padding: 10px 12px; text-align: left; color: #9b211b; background: #fbeceb; border-left: 5px solid var(--red); font-weight: 800; }
.cp-msg.ok { color: var(--ink); }
.cp-btns { display: grid; gap: 10px; margin-top: 18px; }
.cp-btns .btn-big { width: 100%; }
#cpGo { min-height: 64px; font-size: 24px; background: #b3261e; border-color: #b3261e; }
#cpGo:disabled { opacity: .7; }
/* 잡은 캐릭터: 얼굴 + 이름 + 잡은 시각 */
.cb-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px 4px; margin-top: 12px; }
.cb-char { display: grid; justify-items: center; gap: 2px; text-align: center; }
.cb-char .cb-face { width: 48px; height: 48px; }
.cb-char b { font-size: 16px; font-weight: 800; color: var(--muted); line-height: 1.2; }
.cb-char small { font-size: 14px; font-weight: 700; color: #9a958a; }
.cb-char.on b { color: var(--ink); }
.cb-char.on small { padding: 0 6px; color: var(--navy); background: var(--yellow); border-radius: 2px; }
.cb-list { margin: 10px 0 0; font-size: 17px; font-weight: 800; color: var(--navy); }
.cb-faces { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { .cb-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; } }
.cb-char.on .cb-face { filter: none; opacity: 1; background: #fff; border-color: var(--cc); box-shadow: 0 0 0 3px var(--yellow); }
.cb-char .cb-face { width: 56px; height: 56px; }

/* ===== 버전2 (과업지시서 반영): 다국어 · 예약 변경/취소 · 스팟 분류 · 관리자 추가 탭 ===== */
html[lang="zh-Hans"] { --font: 'Pretendard Variable', Pretendard, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
html[lang="ja"] { --font: 'Pretendard Variable', Pretendard, 'Hiragino Sans', 'Yu Gothic', Meiryo, 'Noto Sans JP', system-ui, sans-serif; }
html[lang="en"] body, html[lang="zh-Hans"] body, html[lang="ja"] body { word-break: normal; }
.lang-pick { position: relative; margin-left: 10px; }
.lang-pick summary { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 800; color: var(--navy); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); white-space: nowrap; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary svg { width: 18px; height: 18px; }
.lang-pick[open] summary { background: var(--cream); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; padding: 6px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 10px 24px rgba(10,16,30,.18); }
.lang-list a { display: flex; align-items: center; height: 42px; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 2px; }
.lang-list a:hover { background: var(--cream); }
.lang-list a.on { color: #fff; background: var(--navy); }
@media (max-width: 860px) {
  .lang-pick { margin: 0 0 0 6px; }
  .lang-pick summary { height: 40px; padding: 0 8px; }
  .plates.open .lang-pick { display: none; }
}
@media (max-width: 400px) { .lang-pick summary span { display: none; } }
.kind-chip { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11.5px; font-weight: 800; line-height: 1.6; border-radius: 2px; vertical-align: 2px; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line-2); }
.kind-chip.k-food { color: #8a2a1f; background: #fbe9e4; border-color: #e7b3a6; }
.kind-chip.k-exp { color: #1d5a35; background: #e6f4ea; border-color: #a9d3b6; }
.look-done { max-width: 620px; margin: 18px auto 0; padding: 12px 16px; font-weight: 800; color: #1d5a35; background: #e6f4ea; border-left: 4px solid var(--ok); border-radius: var(--r); }
.look-edit { max-width: 620px; margin: 14px auto 0; padding: 14px 16px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.look-edit .big-details { margin: 8px 0 12px; }
.look-edit .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.look-edit select, .look-edit input[type=number] { width: 100%; font: inherit; font-size: 17px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.look-edit-note { max-width: 620px; margin: 10px auto 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left; }
.look-cancel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-big.danger { color: var(--red); border-color: var(--red); }
.i18n-table td { vertical-align: top; font-size: 13.5px; line-height: 1.55; }
.i18n-table input, .i18n-table textarea { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid #a9a28f; border-radius: 2px; }
.i18n-table tr.tr-miss td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.miss { color: var(--red); }
.map-usage { margin: 10px 0 4px; font-size: 14px; }
.map-terms { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.map-terms summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.map-terms li { margin: 4px 0; }
.kind-sel { margin-top: 4px; }
/* 좁은 휴대폰: 로고 글자가 길어도(외국어) 단추가 밀려나지 않게 */
@media (max-width: 480px) {
  .top .sign { min-width: 0; flex: 1 1 auto; }
  .top .sign-text { min-width: 0; }
  .top .sign-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .top .plates { flex: 0 0 auto; }
  .lang-pick summary span { display: none; }
  .lang-pick summary { padding: 0 9px; }
  .menu-btn { margin-left: 4px; }
}

/* ---------- 휴대폰: 첫 화면 안내·예약 상자를 지금의 80% 크기로 ---------- */
@media (max-width: 760px) {
  .front-card { width: 80%; justify-self: center; padding: 14px 13px 11px; border-top-width: 6px; }
  .front-facts { gap: 10px; }
  .front-facts dt { font-size: 13px; }
  .front-facts dd { font-size: 17px; }
  .front-facts .big dd { font-size: 19px; }
  .front-note { margin-top: 8px; font-size: 13px; }
  .front-soon { margin-top: 11px; padding: 8px 10px; font-size: 14px; }
  .front-actions { gap: 8px; margin-top: 14px; }
  .front-actions .btn-big { min-height: 45px; padding: 0 16px; font-size: 15px; gap: 8px; }
  .front-actions .btn-big:first-child:not(.sub) { min-height: 51px; font-size: 18px; }
  .front-tel { margin-top: 11px; font-size: 13px; }
  .front-tel a { min-height: 40px; font-size: 16px; }
}
@media (max-width: 360px) { .front-card { width: 88%; } }
.front .sound-btn { z-index: 7; }

/* =====================================================================
   v30 · "AI 느낌" 걷어내기 — 시장 간판 · 옛 인쇄물 느낌
   글꼴: 제목 Black Han Sans(페인트 간판) · 본문 IBM Plex Sans KR · 한 줄 소개 Gowun Batang
   색: 남색 → 남색, 주요 버튼은 간판 빨강. 흐린 그림자 → 인쇄물처럼 딱 떨어지는 그림자
   (크기 · 배치 · 기능은 그대로, 모양만 바꿈)
   ===================================================================== */
body {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  letter-spacing: -.005em;
}

/* 큰 제목은 모두 간판 글꼴 (한 가지 굵기만 있어 굵게 흉내내지 않음) */
.front-copy h1, .hero-copy h1, .hero-tag span, .sign-text b,
.wall-title span, .guide-head h1, .book-top h1, .paper-form h1, .front-courses h2,
.notice-paper h2, .route-head b, .fc-name b, .trip-empty h1, main h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -.01em;
}
.front-copy h1 { letter-spacing: 0; line-height: 1.08; text-shadow: 3px 3px 0 rgba(20,12,6,.55); }
.hero-tag span { clip-path: none; padding: 6px 18px 8px; background: var(--accent); color: #fff7e6; border: 2px solid #fff7e6; outline: 2px solid var(--accent); transform: rotate(-2deg); letter-spacing: .04em; }
.front-line, .hero-sub, .wall-lead, .guide-head p, .fc-more, .front-note, .route-line p {
  font-family: var(--serif);
}
.front-line { font-weight: 700; border-left-color: var(--yellow); }

/* 머리띠 메뉴 */
.top, .home .top { background: var(--paper); border-bottom: 2px solid var(--navy); box-shadow: none; }
.sign-text b { font-size: 23px; color: var(--navy); }
.sign-text small { font-family: var(--serif); font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.sign-mark { color: var(--accent); }
.plate { font-weight: 600; }
.plate.cta { background: var(--accent); color: #fff7e6; border-radius: 2px; box-shadow: 2px 2px 0 var(--navy); }
.plate.cta:hover { background: var(--accent-2); }

/* 버튼: 주 버튼은 간판 빨강, 보조는 테두리 */
.btn-big { border-radius: 2px; font-weight: 700; box-shadow: 3px 3px 0 var(--navy); border-color: var(--navy); }
.btn-big:not(.sub):not(.danger) { background: var(--accent); border-color: var(--navy); color: #fff7e6; }
.btn-big:not(.sub):not(.danger):hover { background: var(--accent-2); }
.btn-big.sub { background: var(--paper); color: var(--navy); }
.btn-big.sub:hover { background: #fff; }
.btn-big:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }

/* 안내 상자 · 예약 상자: 흐린 그림자 대신 종이를 겹쳐 놓은 느낌 */
.front-card, .book-form, .window-frame, .notice-paper {
  border: 2px solid var(--navy); border-top-width: 2px; border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(16,28,52,.85);
  background: var(--paper);
}
.front-card { position: relative; border-top: 2px solid var(--navy); }
.front-card::before { content: ''; display: block; height: 6px; margin: -12px -10px 14px; background: repeating-linear-gradient(90deg, var(--accent) 0 22px, #fff7e6 22px 30px); }
.front-facts dt { font-family: var(--serif); font-weight: 700; color: var(--accent); }
.front-facts dd { font-weight: 700; }
.front-facts .big dd { font-family: var(--display); font-weight: 400; color: var(--navy); letter-spacing: 0; }
.front-soon { background: #fbefc8; border-left-color: var(--accent); }

/* 코스 카드: 시장 차양 줄무늬 */
.fc-list a { position: relative; border: 2px solid var(--navy); border-top: 0; border-radius: 0; padding-top: 26px; background: var(--paper); transition: transform .12s, box-shadow .12s; }
.fc-list a::before { content: ''; position: absolute; left: -2px; right: -2px; top: 0; height: 12px; border: 2px solid var(--navy); border-bottom: 0;
  background: repeating-linear-gradient(90deg, var(--pa, var(--navy)) 0 16px, #fff7e6 16px 32px); }
.fc-list a:hover { background: #fff; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--navy); }
.fc-short { font-weight: 600; }
[data-palette="red"] { --pa: #b5302a; } [data-palette="blue"] { --pa: #2d5a8a; } [data-palette="mint"] { --pa: #c47a1f; } [data-palette="green"] { --pa: #3d6b3a; }

/* 섹션 제목: 간판 띠 */
.wall-title { border-bottom: 3px double var(--navy); }
.wall-title span { background: var(--navy); color: #fff7e6; clip-path: none; padding: 8px 16px 9px; }
.guide-head h1, .front-courses h2, .notice-paper h2, .book-top h1 { color: var(--navy); }
.front-courses h2::after, .guide-head h1::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 8px; background: var(--accent); }

/* 코스 상세 */
.route { border-radius: 0; border: 2px solid var(--navy); box-shadow: 5px 5px 0 rgba(16,28,52,.18); }
.route-head { border-radius: 0; }

/* 번호 배지 · 작은 꼬리표 */
.no { border-radius: 0; background: var(--accent); font-family: var(--mono); }
.kind-chip { border-radius: 0 !important; font-weight: 600; }

/* 이용 안내 쪽지 */
.notice-paper { background: #fbf5e3; }
.notice-text { font-family: var(--serif); }

/* 기차 소리 버튼 */
.sound-btn { border-radius: 2px; border: 2px solid var(--navy); box-shadow: 2px 2px 0 var(--navy); font-weight: 700; }

/* 아래 정보 띠 */
.foot { background: var(--navy); }
.foot-stripe.a, .foot-stripe.b { background: repeating-linear-gradient(90deg, var(--accent) 0 28px, #fff7e6 28px 40px, var(--yellow) 40px 68px, #fff7e6 68px 80px); }

/* 휴대폰: 예약 상자 80% 너비 유지, 장식만 조금 줄임 */
@media (max-width: 640px) {
  .front-card { box-shadow: 4px 4px 0 rgba(16,28,52,.85); }
  .front-card::before { margin: -8px -7px 10px; height: 5px; }
  .hero-tag span { transform: rotate(-2deg); }
}

/* v31 · 대전왔슈를 사이트 이름으로, 로고는 시장 도장(낙관) 모양 */
.sign-mark, .top .sign-mark { width: 44px; height: 44px; color: var(--accent); transform: rotate(-4deg); filter: drop-shadow(2px 2px 0 rgba(16,28,52,.9)); }
.sign-text b { font-size: 28px; letter-spacing: .01em; }
.sign-text small { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--ink-2); border-left-color: var(--line-2); }
.front-copy h1 { font-size: clamp(60px, 8.4vw, 116px); }
@media (max-width: 900px) { .sign-mark, .top .sign-mark { width: 38px; height: 38px; } .sign-text b { font-size: 24px; } }
@media (max-width: 640px) { .sign-mark, .top .sign-mark { width: 34px; height: 34px; } .top .sign-text b { font-size: 21px; } .front-copy h1 { font-size: 56px; } }

/* =====================================================================
   v33 · 남색 중심 다시 디자인 — 옛 철도 안내판(남색 판 + 겨자색 글자) 느낌
   머리띠 · 아래띠는 남색 판, 강조는 겨자색, 주 버튼은 철도 파랑
   ===================================================================== */
:root { --accent: #2456a6; --accent-2: #1a4385; --mustard: #e9b83a; --cream-ink: #f6efdd; }
body { background-color: #eee8da; }

/* 머리띠: 남색 안내판 */
.top, .home .top, .home .top.solid { background: var(--navy); border-bottom: 4px solid var(--mustard); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.sign-text b { color: var(--cream-ink); }
.sign-text small { color: #b9c6dc; border-left-color: rgba(246,239,221,.35); }
.sign-mark, .top .sign-mark { color: var(--mustard); filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); }
.sign-mark text { fill: var(--navy); }
.sign-mark rect + rect { stroke: var(--navy); }
.plate { color: var(--cream-ink); border-left-color: rgba(246,239,221,.22); }
.plate:hover, .plate.on { color: var(--mustard); text-decoration-color: var(--mustard); }
.plate.cta { background: var(--mustard); color: var(--navy); box-shadow: 2px 2px 0 rgba(0,0,0,.35); font-weight: 700; }
.plate.cta:hover { background: #f3c955; color: var(--navy); text-decoration: none; }
.lang-pick summary, .menu-btn { background: transparent; color: var(--cream-ink); border-color: rgba(246,239,221,.45); }
@media (max-width: 900px) {
  .plates.open { background: var(--navy); border-bottom: 4px solid var(--mustard); }
  .plates.open .plate:not(.cta) { border-bottom-color: rgba(246,239,221,.15); }
}

/* 첫 화면 */
.hero-tag span { background: var(--navy); color: var(--mustard); border-color: var(--mustard); outline-color: var(--navy); }
.front-line { border-left-color: var(--mustard); }
.front-card { border-color: var(--navy); box-shadow: 6px 6px 0 var(--navy); }
.front-card::before { height: 8px; background: repeating-linear-gradient(90deg, var(--navy) 0 26px, var(--mustard) 26px 34px); }
.front-facts dt { color: var(--accent); }
.front-soon { background: #fbf0cc; border-left-color: var(--mustard); }
.front-tel a { color: var(--navy); }

/* 버튼 */
.btn-big { box-shadow: 3px 3px 0 var(--navy); border-color: var(--navy); }
.btn-big:not(.sub):not(.danger) { background: var(--accent); color: #fff; }
.btn-big:not(.sub):not(.danger):hover { background: var(--accent-2); }
.btn-big.sub { background: #fbf7ec; color: var(--navy); }

/* 섹션 제목 · 강조 줄 */
.wall-title { border-bottom: 3px solid var(--navy); }
.wall-title span { background: var(--navy); color: var(--cream-ink); border-left: 10px solid var(--mustard); }
.front-courses h2::after, .guide-head h1::after { background: var(--mustard); height: 5px; }
.no { background: var(--accent); }

/* 아래띠 */
.foot { background: var(--navy-2); }
.foot-stripe.a, .foot-stripe.b { height: 6px; background: repeating-linear-gradient(90deg, var(--mustard) 0 30px, var(--navy) 30px 38px, var(--accent) 38px 68px, var(--navy) 68px 76px); }
.sound-btn { background: var(--navy); color: var(--cream-ink); border-color: var(--mustard); box-shadow: 2px 2px 0 rgba(0,0,0,.35); }

/* v34 · 코스 완주 보상 (사진 + 이름) */
.reward-box { margin: 0 16px 18px; padding: 14px 14px 12px; background: #fbf6e8; border: 2px dashed var(--navy); border-radius: 2px; }
.run > .reward-box { margin: 22px 0 0; }
.reward-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.reward-title b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--navy); }
.reward-title b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--mustard, #e9b83a); border: 2px solid var(--navy); transform: rotate(45deg) translateY(-2px); }
.reward-title small { font-size: 14px; color: var(--muted); }
.reward-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.reward-list li { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 8px; background: #fff; border: 1px solid var(--line-2); }
.rw-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.rw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-img i { font-style: normal; font-size: 36px; }
.reward-list b { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
/* 관리자 */
.reward-table td { vertical-align: middle; }
.rw-thumb { width: 84px; }
.rw-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; border: 1px solid var(--line-2); }
.rw-thumb span { display: grid; place-items: center; width: 72px; height: 72px; font-size: 12px; color: var(--muted); background: var(--cream); border: 1px dashed var(--line-2); }
.reward-table input[type="file"] { max-width: 230px; font-size: 13px; }
@media (max-width: 640px) { .reward-box { margin: 0 10px 14px; } .reward-list { grid-template-columns: repeat(2, 1fr); } }

/* v35 · 예약 확인 문자 인증 */
.look-steps { list-style: none; display: flex; gap: 0; margin: 6px 0 14px; padding: 0; counter-reset: lk; }
.look-steps li { flex: 1; counter-increment: lk; padding: 8px 6px; font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); background: #f1ece0; border: 1px solid var(--line-2); }
.look-steps li + li { border-left: 0; }
.look-steps li::before { content: counter(lk) '. '; }
.look-steps li.on { color: #fff; background: var(--navy); border-color: var(--navy); }
.look-steps li.past { color: var(--navy); background: #e3e9f3; }
.look-info { margin: 0 0 10px; padding: 10px 12px; font-size: 16px; font-weight: 600; background: #e3e9f3; border-left: 4px solid var(--accent, var(--navy)); }
.look-dev { margin: 0 0 10px; padding: 8px 12px; font-size: 15px; background: #fbf0cc; border: 1px dashed var(--navy); }
.look-dev b { font-family: var(--mono); font-size: 20px; letter-spacing: .1em; }
#lkCode { font-family: var(--mono); font-size: 26px; letter-spacing: .35em; text-align: center; }
.look-form > form + form { margin-top: 10px; }
.look-form .btn-big { width: 100%; margin-top: 12px; }
.look-resend .btn-big { min-height: 48px; font-size: 17px; }
.link-btn { display: block; margin: 12px auto 0; padding: 8px; font: inherit; font-size: 15px; color: var(--navy); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.ok-inline { color: var(--ok); }

/* ===== v36: 시운전 전용 달려가슈 ===== */
.test-card h3 small { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.test-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.test-run-form { display: grid; gap: 10px; }
.test-run-form .chk.big { font-size: 15px; font-weight: 800; color: var(--navy); display: flex; gap: 8px; align-items: center; }
.test-run-form .chk.big input { width: 20px; height: 20px; }
.test-map { height: 340px; }
.test-run-form .blk { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
.test-run-form textarea { font: 13px/1.5 'IBM Plex Mono', monospace; padding: 8px 10px; border: 1px solid #a9a28f; border-radius: 2px; }
.test-run-form .base-ops { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.test-run-form .base-ops .num { width: 78px; padding: 5px 6px; }
.test-run-form fieldset { border: 1px solid var(--line-2); padding: 10px 12px; margin: 0; }
.test-run-form legend { font-size: 13px; font-weight: 800; color: var(--navy); padding: 0 4px; }
.test-time-set { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.test-time-set label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--navy); }
.test-time-set input, .test-time-set select { font: inherit; font-size: 14px; padding: 7px 8px; border: 1px solid #a9a28f; border-radius: 2px; background: #fff; }
.test-time-set .num, .tchar-row .num { width: 84px; }
.tchar-row input[type=checkbox] { width: 18px; height: 18px; }
.test-run-form .save-bar { margin-top: 4px; }
.mini.picking { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .test-map { height: 260px; } }

/* ---------- 지도 잠금 (휴대폰에서 페이지 스크롤이 지도에 막히지 않게) ---------- */
.map-lock { position: absolute; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 14px; margin: 0; background: rgba(0,0,0,.04); border: 0; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.map-lock span { padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 800; color: #fff; background: rgba(20,30,60,.78); border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.map-relock { position: absolute; left: 10px; bottom: 10px; z-index: 100; min-height: 40px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.map-lock[hidden], .map-relock[hidden] { display: none; }

/* ---------- 관리자: 가짜 GPS 의심 표시 (catch.php) ---------- */
.gps-warn { display: inline-block; margin-top: 2px; padding: 1px 6px; font-size: 12px; font-weight: 800; color: #fff; background: #c0392b; border-radius: 3px; cursor: help; white-space: nowrap; }

/* ===== 일행 위치 + 이 화면 보내기 (한 칸으로 합침) ===== */
.trip-live .live-who { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.trip-live .member-list li[data-m] { cursor: pointer; }
.trip-live .member-list li[data-m]:hover { border-color: var(--navy); }
.trip-live .live-step { margin: 14px 0 0; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); }
.trip-live .live-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 16px; font-weight: 900; color: var(--navy); }
.trip-live .live-step h3 i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px; color: #fff; background: var(--navy); flex: 0 0 auto; }
.trip-live .live-step h3 small { font-size: 12px; font-weight: 700; color: var(--muted); }
.trip-live .trip-share p { margin: 0 0 10px; }
@media (max-width: 640px) { .trip-live .live-step { padding: 12px; } }
