:root {
  --mint: #1fb5a6;
  --mint-soft: #3fe0cf;
  --ink: #ffffff;
  --ink-soft: #d8e4ea;
  --ink-mute: #9fb2bd;
  --glass: rgba(12, 28, 40, .55);
  --glass-strong: rgba(12, 28, 40, .84);
  --line: rgba(255, 255, 255, .16);
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0f2a3a; color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
#scene { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; touch-action: none; } /* 주소창·툴바 뒤까지 3D 화면 */

/* 장면별로 보이는 요소 */
[data-only] { display: none !important; }
body[data-stage="cabin"] [data-only~="cabin"],
body[data-stage="dest"] [data-only~="dest"] { display: flex !important; }
body[data-stage="title"] .hud-top, body[data-stage="title"] .dock { display: none; }

/* ---------- 첫 화면 ---------- */
.title { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: max(28px, env(safe-area-inset-top)) 16px 32px;
  background: linear-gradient(180deg, #2b74cf 0%, #5c9ee6 34%, #a9d0f3 62%, #e2eff9 82%, #f4f1ea 100%); color: #10283a; transition: opacity .7s, visibility .7s; }
.title.gone { opacity: 0; visibility: hidden; }
.title.off { display: none; }
.title-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.title-sky .c { position: absolute; width: 240px; height: 110px; animation: drift 140s linear infinite; filter: drop-shadow(0 8px 14px rgba(40,90,150,.12)); }
.title-sky .c1 { top: 5%; left: 4%; width: 260px; height: 119px; animation-duration: 170s; animation-delay: -40s; }
.title-sky .c2 { top: 14%; left: 62%; width: 190px; height: 87px; opacity: .85; animation-duration: 210s; animation-delay: -120s; }
.title-sky .c3 { top: 2%; left: 80%; width: 130px; height: 60px; opacity: .7; animation-duration: 240s; animation-delay: -10s; }
.title-sky .c4 { top: 24%; left: 30%; width: 110px; height: 50px; opacity: .55; animation-duration: 260s; animation-delay: -200s; }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(60vw); } }
.cloud-bank { position: absolute; left: -5%; right: -5%; bottom: -30px; height: 150px; display: flex; justify-content: space-between; opacity: .9; }
.cloud-bank svg { width: 34%; height: 150px; margin: 0 -6%; }
.cloud-bank svg:nth-child(2) { transform: translateY(26px) scale(1.1); }
.cloud-bank svg:nth-child(3) { transform: translateY(12px); }
.cloud-bank svg:nth-child(4) { transform: translateY(30px) scale(1.15); }
.title-head { position: relative; text-align: center; margin: 4vh auto 26px; color: #fff; text-shadow: 0 2px 18px rgba(10,40,80,.35); }
.logo { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--mint); font-weight: 800; letter-spacing: 3px; font-size: 13px; }
.logo-img { display: block; width: clamp(150px, 22vw, 220px); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 10px rgba(10,40,80,.3)); }
.title-sub { margin: 14px 0 0 !important; font-size: clamp(15px, 2.4vw, 19px) !important; font-weight: 700; letter-spacing: -.2px; }
.title-head h1 { margin: 6px 0 6px; font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; word-break: keep-all; overflow-wrap: normal; text-wrap: balance; }
.title-head .title-sub { word-break: keep-all; text-wrap: balance; } /* 좁은 화면: 띄어쓰기에서만 줄바꿈, 줄 길이 고르게 */
.title-head p { margin: 0; font-size: 15px; opacity: .95; }
.cards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; }
.card { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 20px; overflow: hidden; text-align: left; background: #fff; color: #10283a;
  box-shadow: 0 10px 30px rgba(16,40,58,.18); transition: transform .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,40,58,.28); outline: none; }
.card:focus-visible { box-shadow: 0 0 0 3px var(--mint), 0 16px 40px rgba(16,40,58,.28); }
.card[disabled] { opacity: .6; cursor: wait; }
.art { display: block; height: 140px; background: #cfe3f2; overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .art img { transform: scale(1.05); }
.art svg { width: 100%; height: 100%; display: block; }
.meta { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.meta b { font-size: 19px; }
.meta small { color: #50707f; font-size: 12.5px; }
.meta em { font-style: normal; font-size: 13.5px; margin-top: 4px; color: #23404f; }
.meta .ft { font-style: normal; margin-top: 8px; font-size: 12px; color: var(--mint); font-weight: 700; }
.stamps { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 11.5px; font-weight: 700; color: #10283a; }
.stamps:empty { display: none; }
.title-note { position: relative; text-align: center; color: #31525f; font-size: 12.5px; margin-top: 18px; }

/* ---------- 상단 ---------- */
.hud-top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.45); min-width: 0; }
.brand strong { font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.brand span { font-size: 12.5px; color: var(--ink-soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; white-space: nowrap; }
.chip.icon { width: 34px; padding: 0; }
.chip b { color: var(--mint-soft); }
.chip[aria-pressed="false"] { color: var(--ink-mute); }
/* 캐릭터(남/여) 작은 토글 — 소리 버튼 옆 */
.gender-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; }
.gender-seg button { min-width: 28px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-mute); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gender-seg button.on { background: #00CE7C; color: #fff; }
.popover { position: fixed; z-index: 12; top: calc(max(14px, env(safe-area-inset-top)) + 42px); right: 16px; min-width: 190px; max-width: calc(100vw - 32px); padding: 10px 12px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); font-size: 13px; line-height: 1.9; }
.popover .me { color: var(--mint-soft); }
.popover .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.popover small { color: var(--ink-mute); margin-left: 6px; }

/* ---------- 계절 · 지역 탭 ---------- */
.place-tabs { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); top: calc(max(14px, env(safe-area-inset-top)) + 46px); display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: calc(100vw - 24px); }
.season-row { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stab { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.stab:hover { background: rgba(255,255,255,.08); }
.stab.on { background: #fff; color: #10283a; }
.place-row { display: flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.place-row::-webkit-scrollbar { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 5px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft); white-space: nowrap; flex: 0 0 auto; }
.tab b { font-size: 13px; font-weight: 600; }
.tab small { font-size: 10.5px; color: var(--ink-mute); }
.tab:hover { background: rgba(255,255,255,.08); }
.tab.on { background: var(--mint); color: #fff; }
.tab.on small { color: rgba(255,255,255,.85); }
body .dock button[hidden] { display: none !important; }
body[data-stage="dest"] .place-tabs:not([hidden]) ~ .sit-chip { top: calc(max(14px, env(safe-area-inset-top)) + 150px); }

/* ---------- 비행 ---------- */
.flight-chip { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); top: calc(max(14px, env(safe-area-inset-top)) + 50px); width: min(420px, calc(100vw - 32px));
  flex-direction: column; gap: 7px; padding: 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.flight-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.flight-top span { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--mint-soft)); }

/* ---------- 하단 도구 ---------- */
.dock { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 2px; padding: 6px; max-width: calc(100vw - 16px);
  border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dock button { flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 8px 8px; border: 0; border-radius: 16px; background: transparent; font-size: 12px; color: var(--ink-soft); transition: background .2s, color .2s; }
.dock button:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.dock button.on { background: rgba(31,181,166,.28); color: var(--ink); }
.dock .ico { font-size: 18px; line-height: 22px; }

/* ---------- 패널 ---------- */
.panel { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px)); width: min(360px, calc(100vw - 32px));
  padding: 14px 16px 12px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 18px; line-height: 1; }
.panel-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-mute); }
.passport-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; overflow-x: hidden; padding: 4px 4px 4px 0; scrollbar-width: thin; }
.pp-dest { font-size: 12.5px; color: var(--ink-soft); }
.pp-dest b { color: var(--ink); margin-right: 6px; }
.pp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 5px; }
.pp-stamp { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 4px; border-radius: 50%; aspect-ratio: 1; border: 2px dashed rgba(255,255,255,.2); font-size: 10.5px; text-align: center; color: var(--ink-mute); line-height: 1.25; min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.pp-stamp.got { border: 2px solid #ff7a59; color: #ffb39f; background: rgba(255,122,89,.12); transform: rotate(-8deg); font-weight: 700; }

/* 스탬프 카드 */
.stamp-card { position: fixed; z-index: 25; left: 50%; top: 22%; transform: translateX(-50%); width: min(300px, calc(100vw - 32px)); padding: 18px; border-radius: 18px; text-align: center;
  background: #fffaf1; color: #3a2a20; box-shadow: 0 20px 50px rgba(0,0,0,.35); flex-direction: column; align-items: center; display: flex; }
.stamp-card[hidden] { display: none; }
.stamp-card.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: translateX(-50%) scale(1.6) rotate(-10deg); opacity: 0; } to { transform: translateX(-50%) scale(1) rotate(0); opacity: 1; } }
.stamp-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; border: 4px double #e0553a; color: #e0553a; transform: rotate(-9deg); }
.stamp-ring span { font-size: 11px; letter-spacing: 3px; font-weight: 800; }
.stamp-ring b { font-size: 21px; margin: 6px 0; padding: 0 10px; }
.stamp-ring small { font-size: 11px; font-weight: 700; }
.stamp-card p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; }

/* 쉬기 */
.sit-chip { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); top: calc(max(14px, env(safe-area-inset-top)) + 120px); display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
body[data-stage="dest"] .sit-chip { top: calc(max(14px, env(safe-area-inset-top)) + 54px); }
.sit-chip[hidden] { display: none; }
.sit-chip b { color: var(--ink); font-weight: 500; }
.breath { position: relative; width: 20px; height: 20px; }
.breath i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(63,224,207,.9), rgba(63,224,207,.15)); animation: breath 6s ease-in-out infinite; }
@keyframes breath { 0%, 100% { transform: scale(.5); } 50% { transform: scale(1); } }

.hint { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 86px + var(--promo-h, 0px)); padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.4); font-size: 12px; color: var(--ink-soft); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; transition: opacity 1s; }
.hint.gone { opacity: 0; }
.toast { position: fixed; z-index: 20; left: 50%; top: 26%; transform: translate(-50%, 8px); padding: 11px 18px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; max-width: calc(100vw - 32px); text-align: center; line-height: 1.5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.flash { position: fixed; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.fade { position: fixed; inset: 0; z-index: 35; background: #f4fbff; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.fade.on { opacity: 1; pointer-events: auto; }

.modal { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.4); }
.modal[hidden] { display: none; }
.modal-card { width: min(390px, 100%); padding: 16px 18px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal-card ul { margin: 6px 0 8px; padding-left: 18px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.modal-card li b { color: var(--ink); font-weight: 600; margin-right: 6px; }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .brand span { display: none; }
  .dock button { min-width: 52px; padding: 7px 4px; font-size: 11px; }
  .flight-top { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .title-sky .c, .breath i { animation: none; } }

/* ---------- 여행 계획 시트 (나라 → 계절 → 지역) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,24,38,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-wrap[hidden] { display: none; }
.sheet { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px 18px 16px; border-radius: 22px; background: #fffdf9; color: #10283a; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet-head b { display: block; font-size: 22px; }
.sheet-head small { color: #50707f; font-size: 13px; }
.sheet .x { background: #eef2f4; color: #10283a; width: 40px; height: 40px; }
.sheet-step { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #6b8592; }
.plan-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-seasons .stab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border-radius: 14px; background: #eef3f5; color: #23404f; font-size: 15px; }
.plan-seasons .stab small { font-size: 11.5px; font-weight: 500; color: #6b8592; }
.plan-seasons .stab.on { background: #10283a; color: #fff; }
.plan-seasons .stab.on small { color: #b9cad3; }
.plan-places { display: grid; gap: 8px; }
.plan-place { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid #e3eaee; background: #fff; color: #10283a; }
.plan-place b { font-size: 16px; margin-right: 6px; }
.plan-place small { color: #50707f; font-size: 12.5px; }
.plan-place ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #34505e; line-height: 1.6; }
.plan-place.on { border-color: var(--mint); background: #effbf8; }
.plan-note { margin: 10px 0 0; font-size: 12px; color: #a0623a; }
.plan-note:empty { display: none; }
.go-btn { width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--mint); color: #fff; font-size: 16px; font-weight: 700; }
.go-btn:hover { background: #18a596; }
.ghost-btn { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink-soft); }

/* ---------- 탈것 버튼 (크게, 탑승 상태에 따라 글자가 바뀜) ---------- */
.ride-fab { position: fixed; z-index: 11; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px)); display: flex; align-items: center; gap: 8px;
  min-height: 60px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #ff7a45; color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.ride-fab .ico { font-size: 26px; line-height: 1; }
.ride-fab.on { background: #10283a; box-shadow: 0 0 0 2px #ff7a45, 0 10px 24px rgba(0,0,0,.3); }
.ride-fab[hidden] { display: none; }
body:not([data-stage="dest"]) .ride-fab { display: none; }
/* 동물 옆 말풍선 버튼: 화면 좌표를 매 프레임 따라감 */
.ride-pop { position: fixed; z-index: 11; left: 0; top: 0; display: flex; align-items: center; gap: 8px; min-height: 56px; min-width: 56px; padding: 0 20px 0 14px;
  border: 0; border-radius: 999px; background: #ff7a45; color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.28); will-change: transform; transition: opacity .18s; touch-action: manipulation; }
.ride-pop::before { content: ''; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 0; border-right-color: #ff7a45; }
.ride-pop.on { background: #10283a; box-shadow: 0 0 0 2px #ff7a45, 0 8px 20px rgba(0,0,0,.3); }
.ride-pop.on::before { border-right-color: #10283a; }
.ride-pop.flip::before { left: auto; right: -7px; border-right: 0; border-left: 7px solid #ff7a45; }
.ride-pop.on.flip::before { border-left-color: #10283a; }
.ride-pop .ico { font-size: 22px; line-height: 1; }
.ride-pop[hidden] { display: none; }
.ride-pop:active { transform-origin: center; filter: brightness(.92); }
@media (pointer: coarse) { .ride-pop { min-height: 60px; font-size: 17px; padding: 0 22px 0 16px; } .ride-pop .ico { font-size: 26px; } }
body.force-touch .ride-pop { min-height: 60px; font-size: 17px; padding: 0 22px 0 16px; }
body:not([data-stage="dest"]) .ride-pop, body:not([data-stage="dest"]) .run-btn { display: none; }
/* 장면 상호작용 버튼(쓰다듬기·낚시 …): 대상 머리 위 가운데, 꼬리는 아래로 */
.act-pop { background: #00CE7C; color: #06281a; padding: 0 20px 0 16px; }
.act-pop::before { left: 50%; top: auto; bottom: -7px; margin: 0 0 0 -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #00CE7C; }
/* 탑승 중 달리기 (누르고 있는 동안) */
.run-btn { position: fixed; z-index: 11; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px));
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border: 0; border-radius: 50%;
  background: rgba(16,40,58,.82); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 2px rgba(0,206,124,.7), 0 10px 24px rgba(0,0,0,.3);
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.run-btn .ico { font-size: 24px; line-height: 1.1; }
.run-btn small { font-size: 10px; font-weight: 500; opacity: .6; }
.run-btn.on { background: #00CE7C; color: #06281a; box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0,0,0,.3); transform: scale(.96); }
.run-btn[hidden] { display: none; }
@media (pointer: coarse) { .run-btn small { display: none; } .run-btn { width: 92px; height: 92px; } }
body.force-touch .run-btn small { display: none; }

/* ---------- 조이스틱 (터치 기기) ---------- */
.joy { display: none; position: fixed; z-index: 11; left: max(18px, env(safe-area-inset-left)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 92px + var(--promo-h, 0px)); width: 120px; height: 120px; border-radius: 50%;
  background: rgba(12,28,40,.32); border: 2px solid rgba(255,255,255,.35); touch-action: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .08s; }
.joy.on i { transition: none; }
@media (pointer: coarse) { body[data-stage="dest"] .joy, body[data-stage="cabin"] .joy { display: block; } body[data-stage] .hint { display: none !important; } }
body.force-touch[data-stage="dest"] .joy, body.force-touch[data-stage="cabin"] .joy { display: block; }

/* ---------- 소원 연꽃 입력 ---------- */
.wish-card input { width: 100%; min-height: 50px; margin-top: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 16px; }
.wish-card input::placeholder { color: var(--ink-mute); }
.wish-btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.wish-btns .go-btn { margin: 0; min-height: 48px; background: #ff9f43; }

/* ---------- 모바일 ---------- */
@media (max-width: 640px) {
  .title-head { margin-top: 2vh; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .art { height: 104px; }
  .meta { padding: 10px 12px 12px; }
  .meta b { font-size: 16px; }
  .meta em { display: none; }
  .meta .ft { font-size: 11px; }
  .dock { left: 8px; right: 8px; transform: none; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .dock button { min-width: 0; flex: 1 0 54px; min-height: 56px; }
  .place-tabs { top: calc(max(10px, env(safe-area-inset-top)) + 40px); }
  .tab { padding: 4px 11px; }
  .tab small { display: none; }
  .ride-fab { min-height: 64px; font-size: 15px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px)); }
  .panel { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 80px + var(--promo-h, 0px)); }
  .chip { min-height: 38px; }
  .chip.icon { width: 38px; }
  .gender-seg button { min-width: 32px; height: 32px; padding: 0 6px; }
  /* 좁은 화면: 상단 버튼이 화면 밖으로 밀리지 않게 — 소리는 아이콘만, 제목은 줄임표 */
  .hud-top { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .brand { flex: 1 1 auto; overflow: hidden; }
  .brand strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chips { flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; }
  .chip { padding: 0 9px; }
  #sound-btn .txt { display: none; }
  .flight-chip { top: calc(max(10px, env(safe-area-inset-top)) + 46px); }
}
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } .meta em { display: block; } }

/* ---------- 캐릭터 성별 탭 ---------- */
.gender-row { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(12,32,52,.38); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: none; }
.gender-cap { padding: 0 8px 0 12px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.gtab { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.88); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.gtab:hover { background: rgba(255,255,255,.12); }
.gtab.on { background: #00CE7C; color: #062a1c; }
.plan-gender { display: flex; margin: 0 0 4px; background: #eef3f5; border-color: transparent; }
.plan-gender .gender-cap { display: none; }
.plan-gender .gtab { flex: 1; min-height: 44px; color: #23404f; font-size: 15px; }
.plan-gender .gtab.on { background: #00CE7C; color: #062a1c; }
@media (max-width: 640px) { .gender-row { margin-top: 10px; } .gtab { min-height: 40px; padding: 0 14px; } }

/* ---------- 겨울 눈놀이 (snowplay.js): 던지기·내려놓기 큰 버튼 + 점수판 ---------- */
#snow-btn { position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 146px + var(--promo-h, 0px));
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-width: 150px; min-height: 64px; padding: 8px 26px 8px 20px;
  border: 0; border-radius: 999px; background: #00CE7C; color: #fff; font: 800 17px/1.2 inherit; box-shadow: 0 8px 24px rgba(0,0,0,.28); touch-action: manipulation; white-space: nowrap; }
#snow-btn .ico { font-size: 28px; line-height: 32px; }
#snow-btn .word { max-width: 220px; text-align: center; }
#snow-btn:active { transform: translateX(-50%) scale(.95); }
#snow-btn:disabled { background: rgba(20,30,40,.62); color: #dfe8ee; font-size: 15px; }
#snow-btn[hidden], #snow-hud[hidden] { display: none; }
.dock button[data-action] { display: flex; }
#snow-hud { position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px)); max-width: calc(100vw - 24px); white-space: nowrap;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(15,25,35,.66); color: #fff; font-size: 14px; font-weight: 700; backdrop-filter: blur(8px); }
#snow-hud .stop { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 36px; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: 13px; }
@media (max-width: 600px) { #snow-btn { min-width: 116px; min-height: 60px; padding: 8px 20px 8px 14px; gap: 6px; font-size: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 142px + var(--promo-h, 0px)); } #snow-hud { font-size: 13px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px)); } }

/* ---------- 좁은 휴대폰 화면(≤ 640px): 화면 밖으로 밀리는 것 없이 — 아래 도구 막대·위 버튼 줄이기 ---------- */
html, body { max-width: 100vw; overflow-x: hidden; }
@media (max-width: 640px) {
  .dock { left: 6px; right: 6px; gap: 0; padding: 4px; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dock::-webkit-scrollbar { display: none; }
  .dock button { flex: 1 1 0; min-width: 44px; min-height: 54px; padding: 6px 2px; gap: 1px; font-size: 10.5px; line-height: 1.15; white-space: nowrap; letter-spacing: -.3px; }
  .dock .ico { font-size: 17px; line-height: 20px; }
  .hud-top { gap: 4px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chips { flex: 0 1 auto; min-width: 0; }
  .chip { padding: 0 8px; font-size: 12px; }
}
@media (max-width: 400px) {
  /* 버튼이 많아도(겨울 눈놀이·전통 복장 등 8~9개) 옆으로 밀리지 않게: 긴 이름은 두 줄로 */
  .dock { overflow-x: hidden; }
  .dock button { min-width: 0; flex: 1 1 0; font-size: 10px; letter-spacing: -.4px; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-align: center; padding: 5px 1px; }
  .dock .ico { font-size: 16px; }
  .chips { gap: 3px; }
  .chip { padding: 0 7px; min-height: 34px; }
  .chip.icon { width: 34px; }
  .gender-seg button { min-width: 28px; height: 28px; padding: 0 4px; }
  .brand strong { font-size: 12px; }
  .stab { padding: 0 12px; font-size: 13px; min-height: 34px; }
  .tab { padding: 4px 9px; }
}

/* '다른 여행지'에서 지금 여행으로 돌아가기 */
.title-back { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 45; border: 0; border-radius: 999px;
  padding: 10px 16px; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; color: #fff; background: rgba(20, 30, 40, .72); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.title-back:hover { background: rgba(0, 206, 124, .9); }
.title-back[hidden] { display: none; }

/* ---------- 상품 배너 (조작 탭 바로 위): 타이틀 아래에 CTA 버튼, 닫기 없음 ---------- */
.promo { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); width: min(360px, calc(100vw - 24px));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 14px;
  border-radius: 18px; background: rgba(20,26,34,.9); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28); backdrop-filter: blur(8px);
  animation: promo-in .45s cubic-bezier(.2,.9,.3,1.2); text-align: center; }
.promo[hidden] { display: none; }
.promo-msg { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: 0.7px; }
.promo-cta { display: block; padding: 10px 14px; border-radius: 999px; background: #00CE7C; color: #0b2a1c; font-size: 14px; font-weight: 800;
  text-decoration: none; letter-spacing: -.3px; box-shadow: 0 2px 8px rgba(0,206,124,.35); }
.promo-cta:hover { background: #12e08e; }
@keyframes promo-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
body[data-stage="title"] .promo { display: none; }
@media (max-width: 480px) { .promo { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px); } .promo-msg { font-size: 14px; } .promo-cta { font-size: 13.5px; } }

/* 확인용 #...&debug&clean: 풍경만 보이게 UI 숨김 */
body.clean > *:not(canvas) { display: none !important; }

/* 첫 화면: 서버(방) 고르기 */
.rooms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 10px auto 0; }
.rooms[hidden] { display: none; }
.rooms-label { font-size: 13px; font-weight: 700; opacity: .85; margin-right: 2px; }
.room { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(4px); }
.room small { font-size: 11.5px; opacity: .85; }
.room.on { background: #fff; color: #0b6e4f; border-color: #fff; }
@media (max-width: 400px) { .room { padding: 6px 9px; font-size: 12px; } }

/* 버튼·UI 를 누를 때 글자가 선택(복사)되지 않게 */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
button { -webkit-tap-highlight-color: transparent; }

/* 상품 배너 ✕ (접기) + 오른쪽 플로팅 버튼 */
.promo { padding-top: 14px; }
.promo-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; line-height: 28px; cursor: pointer; padding: 0; }
.promo-x:hover { background: rgba(255,255,255,.24); }
.promo .promo-msg { padding: 0 26px; }
.promo.to-fab { animation: promo-to-fab .26s ease-in forwards; }
@keyframes promo-to-fab { to { opacity: 0; transform: translate(calc(-50% + 38vw), -30vh) scale(.2); } }
.promo-fab { position: fixed; z-index: 11; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 62px; height: 62px; justify-content: center; border: 0; border-radius: 50%; background: #00CE7C; color: #0b2a1c; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 3px rgba(255,255,255,.55); font: inherit; }
.promo-fab[hidden] { display: none; }
.promo-fab .pf-ico { font-size: 20px; line-height: 1; }
.promo-fab .pf-word { font-size: 10.5px; font-weight: 800; letter-spacing: -.3px; }
.promo-fab:hover { background: #12e08e; }
.promo-fab.pop { animation: pf-pop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pf-pop { from { transform: translateY(-50%) scale(.3); opacity: 0; } to { transform: translateY(-50%) scale(1); opacity: 1; } }
body[data-stage="title"] .promo-fab { display: none; }
@media (max-width: 480px) { .promo-fab { width: 54px; height: 54px; right: 10px; } .promo-fab .pf-ico { font-size: 17px; } }

/* 모바일: 상단 버튼 줄(38px)과 여름·겨울 탭이 겹치지 않게 탭을 아래로 */
@media (max-width: 640px) {
  .place-tabs { top: calc(max(14px, env(safe-area-inset-top)) + 62px); }
  body[data-stage="dest"] .place-tabs:not([hidden]) ~ .sit-chip { top: calc(max(14px, env(safe-area-inset-top)) + 158px); }
}
/* 접어 둔 상품 배너 버튼: 달리기 버튼 바로 위에 쌓는다 (달리기·조이스틱 위치는 그대로) */
.promo-fab { top: auto; transform: none; right: calc(max(16px, env(safe-area-inset-right)) + 11px);
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px) + 96px); }
@keyframes pf-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (pointer: coarse) { .promo-fab { right: calc(max(16px, env(safe-area-inset-right)) + 15px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px + var(--promo-h, 0px) + 104px); } }
@media (max-width: 480px) { .promo-fab { right: calc(max(16px, env(safe-area-inset-right)) + 19px); } }

/* ---------- 모바일(터치) 조작: 체험 버튼은 오른쪽 아래 달리기 위에 쌓기 ---------- */
body.mobile-ui .ride-pop { left: auto; top: auto; right: max(14px, env(safe-area-inset-right)); transform: none; max-width: calc(100vw - 28px);
  min-height: 52px; padding: 0 18px 0 14px; font-size: 15px; justify-content: center; }
body.mobile-ui .ride-pop::before { display: none; }
body.mobile-ui #snow-btn { left: auto; right: max(14px, env(safe-area-inset-right)); transform: none; min-width: 0; min-height: 56px; padding: 6px 18px 6px 14px; font-size: 15px; }
body.mobile-ui #snow-btn:active { transform: scale(.95); }
body.mobile-ui #snow-btn .ico { font-size: 22px; line-height: 26px; }
/* 비행 중 안내(항공편·남은 시간): 모바일 상단 버튼 줄과 겹치지 않게 아래로 */
@media (max-width: 640px) { .flight-chip { top: calc(max(14px, env(safe-area-inset-top)) + 64px); } }
/* 비행기: '좌석에서 쉬는 중'은 비행 안내 아래에 (겹치지 않게) */
body[data-stage="cabin"] .sit-chip { top: calc(max(14px, env(safe-area-inset-top)) + 130px); }
@media (max-width: 640px) { body[data-stage="cabin"] .sit-chip { top: calc(max(14px, env(safe-area-inset-top)) + 146px); } }
body[data-stage="cabin"] .sit-chip { white-space: nowrap; }

/* ---------- 하단 고정: 조이스틱(왼쪽)·달리기(오른쪽)는 도구 막대 바로 위 같은 줄에 고정 ---------- */
/* --dock-h = 화면 아래에서 도구 막대 윗선까지 (main.js 가 잰다). 팝업이 떠도 움직이지 않는다. */
.run-btn, .joy { bottom: calc(var(--dock-h, 84px) + 10px) !important; }
body.mobile-ui .joy { width: 112px; height: 112px; }
@media (pointer: coarse) { .joy { width: 112px; height: 112px; } }
/* 모바일에서 달리기와 조이스틱 높이를 맞춘다 (달리기 92px → 조이스틱 가운데에 맞춤) */
body.mobile-ui .run-btn { bottom: calc(var(--dock-h, 84px) + 20px) !important; }

/* ---------- 상품 팝업: 화면 가운데 모달 ---------- */
.promo-dim { position: fixed; inset: 0; z-index: 30; background: rgba(6,12,18,.5); backdrop-filter: blur(2px); animation: dim-in .25s ease-out; }
.promo-dim[hidden] { display: none; }
@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }
.promo { z-index: 31; top: 50%; bottom: auto !important; left: 50%; transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 40px)); padding: 26px 20px 20px; gap: 14px; border-radius: 22px; background: rgba(20,26,34,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: promo-pop .32s cubic-bezier(.2,.9,.3,1.25); }
.promo .promo-msg { font-size: 17px; padding: 0 22px; }
.promo-cta { padding: 13px 14px; font-size: 15px; }
.promo-x { top: 10px; right: 10px; width: 32px; height: 32px; line-height: 32px; font-size: 15px; }
@keyframes promo-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.promo.to-fab { animation: promo-to-fab .3s ease-in forwards; }
@keyframes promo-to-fab { to { opacity: 0; transform: translate(calc(-50% + var(--fx, 38vw)), calc(-50% + var(--fy, 30vh))) scale(.15); } }
body[data-stage="title"] .promo-dim { display: none; }
@media (max-width: 480px) { .promo { bottom: auto !important; } .promo .promo-msg { font-size: 16px; } .promo-cta { font-size: 14px; } }

/* 접어 둔 상품 플로팅 버튼 — 데스크톱: 달리기 버튼 위 / 모바일: 조이스틱 위 (오른쪽은 체험 버튼 자리) */
.promo-fab { bottom: calc(var(--dock-h, 84px) + 10px + 96px); }
@media (pointer: coarse) { .promo-fab { bottom: calc(var(--dock-h, 84px) + 20px + 104px); } }
body.mobile-ui .promo-fab { right: auto; left: calc(max(18px, env(safe-area-inset-left)) + 25px); bottom: calc(var(--dock-h, 84px) + 10px + 112px + 14px); }
body[data-stage="cabin"] .sit-chip { display: none !important; }
body[data-stage="cabin"] .place-tabs { display: none !important; }

/* 도착 안내(토스트): 띄어쓰기 단위로 줄바꿈, 모바일에선 상단 탭(계절·지역) 아래로 */
.toast { word-break: keep-all; overflow-wrap: break-word; max-width: min(340px, calc(100vw - 48px)); }
@media (max-width: 640px) { body[data-stage="dest"] .toast { top: calc(max(14px, env(safe-area-inset-top)) + 200px); } }

/* ---------- 모바일: 달리기 버튼 없음 (조이스틱 바깥 링 = 달리기) · 그 자리에 상품 플로팅 버튼 · 그 위에 체험 버튼 ---------- */
body.mobile-ui .run-btn { display: none !important; }
/* 조이스틱과 밑줄을 맞춘 고정 자리: 도구 막대 위 10px · 크기 62px (main.js PROMO_SLOT_*) */
body.mobile-ui .promo-fab { left: auto; right: calc(max(16px, env(safe-area-inset-right)) + 10px); bottom: calc(var(--dock-h, 84px) + 10px); width: 62px; height: 62px; }
body.mobile-ui .promo-fab .pf-ico { font-size: 20px; }
/* 조이스틱: 바깥쪽까지 밀어 달리기 구간이 되면 초록으로 */
.joy.run { box-shadow: 0 0 0 3px rgba(0,206,124,.75), 0 6px 20px rgba(0,206,124,.35); }
.joy.run i { background: #00CE7C; }

.joy i { z-index: 1; }

/* 남/여 토글: 바깥 여백을 사방 같게(2px), 버튼은 정원 · 바깥 테두리는 완전한 알약 모양 */
.chip.gender-seg { padding: 2px; gap: 2px; border-radius: 999px; }
.chip.gender-seg button { width: 28px; min-width: 0; height: 28px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .chip.gender-seg button { width: 32px; height: 32px; } }
@media (max-width: 400px) { .chip.gender-seg button { width: 28px; height: 28px; } }

/* ---------- iOS 사파리: 주소창·툴바 뒤까지 3D 배경이 보이게 ----------
   사파리(iOS 26)는 화면 위·아래 끝에 닿은 position:fixed 요소의 배경색(투명해도)으로 주소창·툴바 영역을 칠한다.
   → 3D 화면·상단 막대는 일반 배치(absolute)로, 전체 화면 흰 막(전환·사진 플래시)은 쓰는 순간에만 둔다. */
#scene { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; }
.hud-top { position: fixed; } /* 상단 버튼 줄은 화면에 고정 (배경이 투명해서 사파리 주소창 색에는 영향 없음) */
html, body { overscroll-behavior: none; } /* 당겨서 튕길 때 화면이 밀리지 않게 */
.fade { display: none; }
.fade.show { display: block; }
.flash { display: none; }
.flash.go { display: block; }
/* 첫 화면도 같은 방식: 하늘 배경이 주소창·툴바 뒤까지 이어지게 (fixed → absolute, 높이는 툴바 뒤까지 100lvh)
   맨 아래 내용이 툴바에 가리지 않게 툴바 높이(100lvh - 100svh)만큼 아래 여백을 더한다 */
.title { position: absolute; inset: auto; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; padding-bottom: calc(32px + 100lvh - 100svh); }

/* 첫 화면 제목: 흰 구름이 지나가도 읽히게 — 위쪽 은은한 그라데이션 딤 + 글자에 겹 그림자 */
.title-sky::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: min(46vh, 380px); pointer-events: none;
  background: linear-gradient(180deg, rgba(12,48,98,.34) 0%, rgba(12,48,98,.2) 45%, rgba(12,48,98,0) 100%); }
.title-head { text-shadow: 0 1px 2px rgba(8,34,72,.45), 0 2px 10px rgba(8,34,72,.32), 0 4px 26px rgba(8,34,72,.22); }
.title-head img, .title-head svg { filter: drop-shadow(0 1px 2px rgba(8,34,72,.4)) drop-shadow(0 3px 12px rgba(8,34,72,.25)); }
html, body { background-color: #2b74cf; } /* 첫 화면 하늘 맨 위 색 (주소창 색) — 여행지에선 main.js 가 3D 화면 맨 위 색으로 바꾼다 */

/* '앉아서 쉬는 중' 타이머: 한 줄로 (가로로 찌그러지지 않게), 숨쉬기 점은 정원 유지 */
.sit-chip { white-space: nowrap; width: max-content; max-width: calc(100vw - 24px); }
.sit-chip .breath { flex: 0 0 20px; }

/* 왼쪽 위 'TRIPSODA 방구석 모험' · 장소 이름: 넓게 번지는 그림자가 모바일 말줄임(overflow:hidden) 상자에 잘려 네모 얼룩처럼 보였다
   → 글자에 딱 붙는 얇은 그림자로 바꾸고, 잘리지 않게 위아래 여유를 둔다 */
.brand { text-shadow: 0 1px 2px rgba(0,0,0,.38), 0 0 1px rgba(0,0,0,.3); overflow: visible; }
.brand strong, .brand span { padding: 2px 3px; margin: -2px -3px; }

/* 상단 묶음(계절·지역 탭 → 안내·쉬는 중 타이머): 맨 위 버튼 줄 바로 아래 10px 에서 시작 (인도처럼 계절 줄이 없으면 지역 탭이 그 자리)
   --hud-b = 버튼 줄 아랫선 (main.js 가 잰다). 그 아래 안내·타이머는 main.js 가 탭 아래 10px 로 붙인다. */
body .place-tabs { top: calc(var(--hud-b, 52px) + 10px) !important; }
body .flight-chip { top: calc(var(--hud-b, 52px) + 10px) !important; }
.card .stamps { display: none; } /* 첫 화면 카드: 스탬프 수 표시 안 함 */

/* 상품 팝업: ✕ 와 문구 사이 여유 — 상자를 조금 넓히고, ✕ 는 문구 위 오른쪽 모서리에 따로 자리 */
.promo { width: min(360px, calc(100vw - 32px)); padding: 58px 24px 24px; gap: 16px; }
.promo .promo-msg { padding: 0 6px; }
.promo-x { top: 12px; right: 12px; }
