/* w-hud — 게임 화면 배치와 모양. w-hud.js가 요소를 칸(slot)에 옮기고, 여기서 칸의 자리와 모양을 정해요.
   휴대폰(≤720px): 위 — 미니맵 · 레벨 · 날씨 · 동네 / 그 아래 알림 한 줄기(feed) / 아래 — 독(dock) + 전투 버튼.
   넓은 화면: 왼쪽 위 한 줄기(동네 · 레벨 · 미니맵 · 땅) / 가운데 위 알림 / 아래 가운데 독 / 오른쪽 아래 전투 버튼.
   색: 남색 #16233a · 주홍 #b8432f · 한지 #f7f3ec / #efe4cc. 보라 그라데이션 · 네온 · 이모지 아이콘 없음. */

body.hud2{
  --h-navy:#16233a;--h-navy2:#24344f;--h-ver:#b8432f;--h-ver-d:#953423;--h-paper:#f7f3ec;--h-paper2:#efe4cc;
  --h-surface:rgba(250,247,240,.95);--h-line:rgba(22,35,58,.13);--h-sub:rgba(22,35,58,.62);--h-gold:#a8741c;
  --h-shadow:0 1px 0 rgba(255,255,255,.75) inset,0 6px 18px rgba(22,35,58,.13),0 1px 2px rgba(22,35,58,.08);
  --h-font:600 13px/1.3 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  --h-dock:64px;--h-safe-b:env(safe-area-inset-bottom,0px);
}
/* the HUD's own palette for everything that still reads the older dark-glass tokens */
body.hud2 .hud-top,body.hud2 .hud-dock,body.hud2 .ui-group-panel,body.hud2 .hud-combat{
  --hud:var(--h-surface);--hud-line:var(--h-line);--hud-ink:var(--h-navy);--hud-sub:var(--h-sub);--hud-gold:var(--h-gold);
  --ot-p:var(--h-ver);--ui-accent:var(--h-navy);--ui-ink:var(--h-navy);--ui-sub:var(--h-sub);--ui-glass:var(--h-surface);--ui-line:var(--h-line);
  --hanji:var(--h-paper);
}

/* ---------- 1. top stack (phone first) ---------- */
body.hud2 .hud-top{position:absolute;z-index:6;top:10px;left:calc(10px + env(safe-area-inset-left,0px));right:calc(10px + env(safe-area-inset-right,0px));
  display:grid;grid-template-columns:72px minmax(0,1fr) auto;grid-template-areas:"mm badge weather" "mm place place" "mm hp hp" "feed feed feed" "land land land";
  column-gap:8px;row-gap:6px;align-items:start;pointer-events:none;font:var(--h-font);color:var(--h-navy)}
body.hud2 .hud-top:has(.mm.big){z-index:40}
body.hud2 .hud-top>*{pointer-events:auto;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;margin:0!important;z-index:auto!important;max-width:none!important;min-width:0!important}
body.hud2 .hud-top>.mm{grid-area:mm}
body.hud2 .hud-top>.g-badge{grid-area:badge}
body.hud2 .hud-top>#weather{grid-area:weather}
body.hud2 .hud-top>.map-top{grid-area:place;display:flex!important;gap:0!important;padding:0!important}
body.hud2 .hud-top>.g-hp{grid-area:hp}
body.hud2 .hud-top>.land-pill{grid-area:land;justify-self:start}
body.hud2 .hud-top>.hud-feed{grid-area:feed}

/* chips: level · weather · district */
body.hud2 .hud-top>.g-badge{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;column-gap:8px;row-gap:3px;height:40px;width:100%;box-sizing:border-box;
  padding:5px 12px 6px 5px!important;border:1px solid var(--h-line)!important;border-radius:999px!important;background:var(--h-surface)!important;box-shadow:var(--h-shadow)!important;color:var(--h-navy)!important;cursor:pointer;-webkit-tap-highlight-color:transparent;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.hud2 .g-badge .g-lv{grid-row:1/3;display:grid;place-items:center;height:30px;min-width:30px;padding:0 8px;box-sizing:border-box;border-radius:999px;background:var(--h-navy)!important;color:var(--h-paper)!important;font:800 11.5px/1 system-ui,-apple-system,sans-serif!important;letter-spacing:-.01em;white-space:nowrap}
body.hud2 .g-badge .g-title{grid-column:2;align-self:end;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--h-navy)!important;font:700 12.5px/1.15 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important}
body.hud2 .g-badge .g-bar{grid-column:2;display:block;height:3px!important;width:100%!important;margin:0!important;border-radius:2px;background:rgba(22,35,58,.1)!important;overflow:hidden}
body.hud2 .g-badge .g-bar b{background:var(--h-gold)!important;border-radius:2px}
body.hud2 .hud-top>#weather{height:40px;min-width:0!important;padding:0 12px!important;border:1px solid var(--h-line)!important;border-radius:999px!important;background:var(--h-surface)!important;box-shadow:var(--h-shadow)!important;color:var(--h-navy)!important;font:700 13px/1 system-ui,-apple-system,sans-serif!important;white-space:nowrap;font-variant-numeric:tabular-nums}
body.hud2 .hud-top>.map-top select{width:100%;max-width:100%!important;height:34px;box-sizing:border-box;padding:0 30px 0 12px!important;border:1px solid var(--h-line)!important;border-radius:999px!important;
  background:var(--h-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316233a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center/14px!important;
  -webkit-appearance:none;appearance:none;box-shadow:var(--h-shadow)!important;color:var(--h-navy)!important;font:700 16px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;text-overflow:ellipsis}
body.hud2 .hud-top>.g-hp{display:flex!important;align-items:center;gap:8px;justify-self:start;padding:4px 10px!important;border:1px solid var(--h-line)!important;border-radius:999px!important;background:var(--h-surface)!important;box-shadow:var(--h-shadow)!important;color:var(--h-navy)!important;font:700 11.5px/1 system-ui,sans-serif!important}
body.hud2 .hud-top>.g-hp[hidden]{display:none!important}
body.hud2 .g-hp i{background:rgba(22,35,58,.1)!important}
body.hud2 .g-hp b{background:var(--h-ver)!important}

/* minimap: warm paper disc, fine double rim */
body.hud2 .hud-top>.mm{width:72px!important;color:var(--h-navy)}
body.hud2 .mm-face{width:72px!important;height:72px!important;border:2px solid #fffaf0!important;background:radial-gradient(circle at 50% 38%,var(--h-paper),var(--h-paper2))!important;
  box-shadow:0 0 0 1px rgba(22,35,58,.28),0 6px 16px rgba(22,35,58,.18)!important}
body.hud2 .mm.guiding .mm-face{box-shadow:0 0 0 1.5px var(--h-navy),0 6px 16px rgba(22,35,58,.18)!important}
body.hud2 .mm-tag{left:36px!important;top:64px!important;padding:2px 8px!important;font-size:10.5px!important;background:var(--h-navy)!important;border-color:var(--h-navy)!important;box-shadow:0 3px 8px rgba(22,35,58,.2)!important}
body.hud2 .mm-tag b{color:var(--h-paper)!important}
body.hud2 .mm-tag span{color:rgba(247,243,236,.72)!important}
body.hud2 .mm.arrived .mm-tag b{color:#f3d58a!important}
body.hud2 .mm-go{left:50px!important;top:-6px!important;width:28px!important;height:28px!important;border:2px solid #fffaf0!important;background:var(--h-navy)!important;box-shadow:0 3px 8px rgba(22,35,58,.3)!important}
body.hud2 .mm-go svg{width:16px!important;height:16px!important}
body.hud2 .mm.big .mm-card:not([hidden]),body.hud2 .mm.big .mm-legend:not([hidden]){background:var(--h-surface)!important;border-color:var(--h-line)!important;color:var(--h-navy)!important;box-shadow:var(--h-shadow)!important}
body.hud2 .mm-head b{color:var(--h-navy)!important}
body.hud2 .mm-head small{color:var(--h-ver)!important}
body.hud2 .mm-follow{background:var(--h-navy)!important}
body.hud2 .mm-x{color:var(--h-sub)!important;border-color:var(--h-line)!important}
body.hud2 .mm-legend .me{background:var(--h-navy)!important}
body.hud2 .mm-legend .goal{border-color:var(--h-navy)!important}
body.hud2 .mm-legend .foe{background:var(--h-ver)!important}
body.hud2 .mm-legend .lm{background:#8a5a12!important}
body.hud2 .mm-legend .shop{background:#2f6f5e!important}
body.hud2 .hud-top>.mm.big{position:fixed!important;left:12px!important;right:12px!important;top:calc(64px + env(safe-area-inset-top,0px))!important;width:auto!important;z-index:40!important}
body.hud2 .mm.big .mm-face{width:100%!important;height:min(440px,54vh)!important;border-radius:22px!important}

/* land board: light card in its own slot */
body.hud2 .hud-top>.land-pill{width:min(232px,100%)!important;box-sizing:border-box;background:var(--h-surface)!important;color:var(--h-navy)!important;border:1px solid var(--h-line)!important;box-shadow:var(--h-shadow)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.hud2 .land-pill[hidden]{display:none!important}
body.hud2 .land-pill .lt-left{color:var(--h-gold)!important}
body.hud2 .land-pill .lt-change{border-color:var(--h-line)!important;color:var(--h-sub)!important}
body.hud2 .land-pill .lt-pick{background:rgba(22,35,58,.05)!important;border-color:var(--h-line)!important}
body.hud2 .land-pill li i,body.hud2 .land-pill .lt-teams i{box-shadow:0 0 0 1px rgba(22,35,58,.08)}

/* ---------- 2. the feed: banners, hints, toasts — stacked, never on top of each other ---------- */
body.hud2 .hud-feed{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;pointer-events:none}
body.hud2 .hud-feed>*{pointer-events:auto;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;margin:0!important;z-index:auto!important;
  max-width:100%!important;min-width:0!important;width:auto!important;box-sizing:border-box}
body.hud2 .hud-feed>.hud-wait,body.hud2 .hud-feed>.hud-quiet{position:absolute!important;visibility:hidden!important;pointer-events:none!important;animation:none!important}
body.hud2 .hud-feed>.hud-quiet{display:none!important}
body.hud2 .hud-feed>[hidden]{display:none!important}
body.hud2 .hud-feed>.hud-item:not(.hud-wait){animation:hud-in .24s cubic-bezier(.2,.8,.2,1) both}
@keyframes hud-in{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
/* 출몰 배너 */
body.hud2 .hud-feed>.g-event{display:flex!important;align-items:center;gap:10px;padding:7px 7px 7px 14px!important;border:1px solid var(--h-line)!important;border-left:3px solid var(--h-ver)!important;border-radius:16px!important;
  background:var(--h-surface)!important;color:var(--h-navy)!important;box-shadow:var(--h-shadow)!important;font:600 12.5px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.hud2 .hud-feed>.g-event b{color:var(--h-navy)!important;font-weight:800}
body.hud2 .hud-feed>.g-event span{color:var(--h-sub)!important;font-variant-numeric:tabular-nums}
body.hud2 .hud-feed>.g-event>*:not(button){min-width:0}
body.hud2 .hud-feed button{-webkit-tap-highlight-color:transparent}
body.hud2 .hud-feed>.g-event button,body.hud2 .hud-feed>.course-pill button:not([data-x]),body.hud2 .hud-feed>.gw-pill button{margin-left:auto;min-height:36px;padding:0 16px!important;border:0!important;border-radius:12px!important;background:var(--h-ver)!important;color:#fff!important;
  font:800 13px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;box-shadow:inset 0 -2px 0 rgba(0,0,0,.16),0 2px 6px rgba(149,52,35,.28)!important;white-space:nowrap}
body.hud2 .hud-feed button:active{scale:.96}
/* 안내 한 줄 */
body.hud2 .hud-feed>#status{display:block;margin:0!important;padding:8px 12px!important;border:0!important;border-radius:12px!important;background:rgba(22,35,58,.9)!important;color:var(--h-paper)!important;
  font:600 12.5px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;box-shadow:0 4px 14px rgba(22,35,58,.2)!important;max-width:100%!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body.hud2 .hud-feed>#status:empty{display:none!important}
/* 첫 걸음 · 코스 */
body.hud2 .hud-feed>.course-pill{background:var(--h-surface)!important;color:var(--h-navy)!important;border:1px solid var(--h-line)!important;border-radius:16px!important;box-shadow:var(--h-shadow)!important;padding:8px 8px 8px 14px!important}
body.hud2 .hud-feed>.course-pill *{color:inherit}
body.hud2 .hud-feed>.course-pill small,body.hud2 .hud-feed>.course-pill em{color:var(--h-sub)!important}
body.hud2 .hud-feed>.course-pill [data-x]{background:rgba(22,35,58,.06)!important;color:var(--h-navy)!important}
body.hud2 .hud-feed>.course-pill button:not([data-x]){color:#fff!important}
/* 보상 · 보스 · 꼬리잡기 · 따라가기 · 배달 */
body.hud2 .hud-feed>.g-toast{align-self:center;background:var(--h-surface)!important;color:var(--h-navy)!important;border:1px solid var(--h-line)!important;border-top:3px solid var(--h-gold)!important;box-shadow:var(--h-shadow)!important}
body.hud2 .hud-feed>.g-toast b{color:var(--h-navy)!important}body.hud2 .hud-feed>.g-toast span{color:#2f8f6e!important}body.hud2 .hud-feed>.g-toast strong{color:#b8432f!important} /* v914: the toast sits on paper now; the white text from the old dark toast was unreadable */
body.hud2 .hud-feed>.g-bossbar{width:100%!important}
body.hud2 .hud-feed>.tag-pill,body.hud2 .hud-feed>.follow-pill,body.hud2 .hud-feed>.gw-buff{align-self:flex-start}
body.hud2 .hud-feed>.gw-pill{width:100%!important;min-width:0!important}

/* ---------- 3. the dock (phone: bottom bar) ---------- */
body.hud2 .map-actions.hud-dock{position:absolute!important;z-index:7!important;left:calc(8px + env(safe-area-inset-left,0px))!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:auto!important;bottom:calc(8px + var(--h-safe-b))!important;
  transform:none!important;translate:none!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:2px!important;height:var(--h-dock);box-sizing:border-box;padding:5px 6px!important;
  border:1px solid var(--h-line)!important;border-radius:22px!important;background:var(--h-surface)!important;box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 10px 28px rgba(22,35,58,.16),0 1px 3px rgba(22,35,58,.08)!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);overflow:visible!important;max-height:none!important}
body.hud2 .hud-dock>button{position:relative;flex:1 1 0;min-width:0!important;width:auto!important;height:52px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center;align-content:center;gap:4px!important;
  border:0!important;border-radius:16px!important;background:transparent!important;box-shadow:none!important;color:var(--h-navy)!important;-webkit-tap-highlight-color:transparent;transition:background-color .15s,scale .12s}
body.hud2 .hud-dock>button[hidden]{display:none!important}
body.hud2 .hud-dock .ui-i{width:22px!important;height:22px!important;stroke-width:1.7!important}
body.hud2 .hud-dock .ui-l{display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 10.5px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;letter-spacing:-.02em!important;color:var(--h-sub)!important}
body.hud2 .hud-dock>button.on,body.hud2 .hud-dock>button[aria-expanded="true"]{background:rgba(22,35,58,.08)!important;color:var(--h-navy)!important}
body.hud2 .hud-dock>button.on .ui-l,body.hud2 .hud-dock>button[aria-expanded="true"] .ui-l{color:var(--h-navy)!important;font-weight:800!important}
body.hud2 .hud-dock>button.on::before{content:"";position:absolute;top:3px;left:50%;width:16px;height:3px;margin-left:-8px;border-radius:2px;background:var(--h-ver)}
body.hud2 .hud-dock>button.has-on:not(.on)::after{content:"";position:absolute;top:7px;right:calc(50% - 16px);width:7px;height:7px;border-radius:50%;background:var(--h-ver);box-shadow:0 0 0 2px var(--h-paper)}
body.hud2 .hud-dock>button:active{scale:.94}
body.hud2 .hud-dock>button:focus-visible{outline:2px solid var(--h-navy)!important;outline-offset:-2px}
body.hud2 .hud-dock>.ui-grip,body.hud2 .rail-tip{display:none!important}
body.hud2 .hud-dock #chat-open[data-unread]::after{background:var(--h-ver)!important;top:3px!important;right:calc(50% - 20px)!important}

/* 더보기 sheet (w-simple: one sheet, four sections): phone — a sheet above the dock */
body.hud2 .ui-group-panel{position:fixed!important;z-index:45!important;left:calc(8px + env(safe-area-inset-left,0px))!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:auto!important;bottom:calc(var(--h-dock) + 16px + var(--h-safe-b))!important;
  display:block!important;max-height:min(72vh,600px);overflow:auto;overscroll-behavior:contain;padding:6px 10px 10px!important;box-sizing:border-box;transform:none!important;translate:none!important;
  border:1px solid var(--h-line)!important;border-radius:22px!important;background:var(--h-surface)!important;box-shadow:0 18px 44px rgba(22,35,58,.22),0 2px 6px rgba(22,35,58,.08)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  animation:hud-sheet .22s cubic-bezier(.2,.8,.2,1) both}
body.hud2 .ui-group-panel[hidden]{display:none!important}
@keyframes hud-sheet{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
body.hud2 .ui-sec-grid>button{position:relative;width:auto!important;height:auto!important;min-height:66px;margin:0!important;padding:8px 2px!important;display:grid!important;place-items:center;align-content:center;gap:5px!important;
  border:0!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important;color:var(--h-navy)!important;-webkit-tap-highlight-color:transparent}
body.hud2 .ui-sec-grid>button[hidden]{display:none!important}
body.hud2 .ui-group-panel .ui-i{width:22px!important;height:22px!important;stroke-width:1.7!important}
body.hud2 .ui-group-panel .ui-l{display:block!important;max-width:100%;font:650 11px/1.15 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;color:var(--h-navy)!important;text-align:center;white-space:normal;word-break:keep-all}
body.hud2 .ui-sec-grid>button.on{background:rgba(22,35,58,.08)!important}
body.hud2 .ui-sec-grid>button.on::after{content:"";position:absolute;top:8px;right:calc(50% - 18px);width:6px;height:6px;border-radius:50%;background:var(--h-ver)}
body.hud2 .ui-sec-grid>button:active{scale:.95}

/* 탈것 menu and 말 걸기: open above the dock on phones */
@media(max-width:720px){
  body.hud2 #sky-menu:not([hidden]){position:fixed!important;z-index:45!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--h-dock) + 16px + var(--h-safe-b))!important;width:auto!important;transform:none!important}
  body.hud2 #chat:not([hidden]){z-index:45!important;bottom:calc(var(--h-dock) + 16px + var(--h-safe-b))!important;top:auto!important}
  /* 장소 찾기: the dock's 장소 button opens it as a sheet; closed, it leaves the map alone */
  body.hud2:not(.explore-open) #explore-panel{transform:translateY(calc(100% + 24px))!important;visibility:hidden;pointer-events:none}
  body.hud2.explore-open #explore-panel{z-index:44!important;transition:transform .26s cubic-bezier(.2,.8,.2,1)}
  body.hud2 .map-bottom{display:none!important}
  body.hud2 .hud-combat>.ui-grip{display:none!important}
  body.hud2 .hud-combat{translate:none!important}
}
body.hud2 .hud-dock>.hud-places{display:none!important}
@media(max-width:720px){body.hud2 .hud-dock>.hud-places{display:grid!important}}

/* ---------- 4. combat cluster ---------- */
body.hud2 .action-cluster.hud-combat{position:absolute!important;z-index:7!important;left:auto!important;top:auto!important;right:calc(12px + env(safe-area-inset-right,0px))!important;bottom:calc(var(--h-dock) + 20px + var(--h-safe-b))!important;
  width:156px!important;height:136px!important;display:block!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important;pointer-events:none;--cd:320ms}
body.hud2 .hud-combat>button{position:absolute!important;pointer-events:auto;margin:0!important;padding:0!important;display:grid!important;place-items:center;align-content:center;gap:2px!important;border-radius:50%!important;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:scale .09s ease-out,box-shadow .12s;inset:auto!important;transform:none!important}
body.hud2 .hud-combat>button[hidden]{display:none!important}
/* primary: 공격 */
body.hud2 .hud-combat>.g-fire{right:0!important;bottom:0!important;width:84px!important;height:84px!important;border:0!important;color:#fff7ec!important;
  background:radial-gradient(circle at 50% 30%,#d0634a 0%,#b8432f 52%,#9b3725 100%)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.28),inset 0 -5px 0 rgba(90,22,12,.32),0 0 0 4px rgba(250,247,240,.92),0 0 0 5px rgba(22,35,58,.18),0 10px 22px rgba(110,30,18,.34)!important}
body.hud2 .hud-combat>.g-fire .ui-i{width:30px!important;height:30px!important;stroke-width:1.9!important}
body.hud2 .hud-combat>.g-fire span{font:800 12px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;letter-spacing:.02em;color:#fff7ec!important}
body.hud2 .hud-combat>.g-fire:active{scale:.92;box-shadow:inset 0 3px 6px rgba(70,16,8,.35),0 0 0 4px rgba(250,247,240,.92),0 0 0 5px rgba(22,35,58,.18),0 4px 10px rgba(110,30,18,.3)!important}
/* secondary: 무기 · 낚시 — on an arc around the attack button */
body.hud2 .hud-combat>.g-weapon,body.hud2 .hud-combat>.g-fish{width:56px!important;height:56px!important;border:1px solid var(--h-line)!important;background:var(--h-surface)!important;color:var(--h-navy)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -3px 0 rgba(22,35,58,.08),0 6px 14px rgba(22,35,58,.16)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.hud2 .hud-combat>.g-weapon{right:86px!important;bottom:22px!important}
body.hud2 .hud-combat>.g-fish{right:40px!important;bottom:90px!important;width:48px!important;height:48px!important}
body.hud2 .hud-combat>.g-weapon .ui-i,body.hud2 .hud-combat>.g-fish .ui-i{width:21px!important;height:21px!important;stroke-width:1.8!important}
body.hud2 .hud-combat>.g-weapon .ui-l,body.hud2 .hud-combat>.g-fish .ui-l{display:block!important;font:700 10px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;color:var(--h-navy)!important;white-space:nowrap}
body.hud2 .hud-combat>.g-fish .ui-l{font-size:9.5px!important}
body.hud2 .hud-combat>.g-weapon:active,body.hud2 .hud-combat>.g-fish:active{scale:.9}
body.hud2 .hud-combat>.g-weapon.has-more::after{content:"";position:absolute;right:-2px;top:-2px;width:18px;height:18px;border-radius:50%;background:var(--h-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ec' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4L3.5 7.5 7 11M3.5 7.5h13M17 13l3.5 3.5L17 20M20.5 16.5h-13'/%3E%3C/svg%3E") no-repeat center/11px;box-shadow:0 0 0 2px var(--h-paper)}
/* press feedback: a short ripple; the attack button also runs its rhythm (320 ms) as a ring */
body.hud2 .hud-combat>button::before{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:0}
body.hud2 .hud-combat>button.hud-hit::before{animation:hud-ripple .38s ease-out}
@keyframes hud-ripple{from{opacity:.55;box-shadow:0 0 0 0 rgba(184,67,47,.45)}to{opacity:0;box-shadow:0 0 0 16px rgba(184,67,47,0)}}
@property --hud-p{syntax:"<percentage>";inherits:false;initial-value:0%}
body.hud2 .hud-combat>.g-fire::after{content:"";position:absolute;inset:-9px;border-radius:50%;pointer-events:none;opacity:0;
  background:conic-gradient(from 0deg,rgba(22,35,58,.55) var(--hud-p),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px))}
body.hud2 .hud-combat>.g-fire.hud-cd::after{animation:hud-cd var(--cd) linear}
@keyframes hud-cd{from{opacity:1;--hud-p:100%}to{opacity:1;--hud-p:0%}}
body.hud2 .hud-combat>.ui-grip{position:absolute!important;right:0!important;top:0!important;width:28px!important;height:28px!important;padding:0!important;border:1px solid var(--h-line)!important;border-radius:50%!important;background:var(--h-surface)!important;color:var(--h-sub)!important;box-shadow:none!important;opacity:.7}
body.hud2 .hud-combat>.ui-grip .ui-i{width:15px!important;height:15px!important}

/* ---------- 5. wide screens (tablet · desktop) ---------- */
@media(min-width:721px){
  body.hud2 .hud-top{top:16px;left:16px;right:16px;grid-template-columns:200px 52px;justify-content:start;grid-template-areas:"place weather" "badge badge" "hp hp" "mm mm" "land land";row-gap:8px}
  body.hud2 .hud-top>.map-top select{height:40px;font-size:14px!important}
  body.hud2 .hud-top>#weather{width:52px;padding:0!important}
  body.hud2 .hud-top>.g-badge{height:46px;padding:6px 14px 7px 6px!important}
  body.hud2 .g-badge .g-lv{height:34px;min-width:34px;font-size:12.5px!important}
  body.hud2 .g-badge .g-title{font-size:13.5px!important}
  body.hud2 .hud-top>.mm{width:148px!important;justify-self:start}
  body.hud2 .mm-face{width:148px!important;height:148px!important;border-width:3px!important}
  body.hud2 .mm-tag{left:74px!important;top:136px!important;font-size:11.5px!important;padding:3px 10px!important}
  body.hud2 .mm-go{left:112px!important;top:4px!important;width:34px!important;height:34px!important}
  body.hud2 .mm-go svg{width:19px!important;height:19px!important}
  body.hud2 .hud-top>.mm.big{left:16px!important;right:auto!important;top:16px!important;width:min(460px,calc(100vw - 32px))!important;position:absolute!important}
  body.hud2 .mm.big .mm-face{height:min(420px,calc(100vh - 300px))!important}
  body.hud2 .hud-top>.land-pill{width:252px!important}
  /* feed: top centre between the left stack and the 장소 찾기 panel */
  body.hud2 .hud-top>.hud-feed{position:absolute!important;top:0!important;left:276px!important;right:256px!important;align-items:center}
  body.hud2.explore-open .hud-top>.hud-feed{right:356px!important}
  body.hud2 .hud-feed>*{width:auto!important;max-width:min(520px,100%)!important}
  body.hud2 .hud-feed>.g-bossbar,body.hud2 .hud-feed>.gw-pill{width:min(480px,100%)!important}
  body.hud2 .hud-feed>.tag-pill,body.hud2 .hud-feed>.follow-pill,body.hud2 .hud-feed>.gw-buff{align-self:center}
  /* dock: a floating bar at the bottom centre, icons with names */
  body.hud2 .map-actions.hud-dock{left:50%!important;right:auto!important;bottom:18px!important;translate:-50% 0!important;height:68px;padding:6px 8px!important;gap:4px!important;border-radius:24px!important}
  body.hud2 .hud-dock>button{flex:0 0 auto;width:62px!important;height:56px!important}
  body.hud2 .ui-group-panel{left:auto!important;right:auto!important;width:420px!important;max-width:calc(100vw - 24px)!important;bottom:104px!important}
  /* combat: bottom right; on narrower wide screens, lifted above the dock line */
  body.hud2 .action-cluster.hud-combat{right:24px!important;bottom:24px!important;width:164px!important;height:144px!important}
  body.hud2 .hud-combat>.g-fire{width:92px!important;height:92px!important}
  body.hud2 .hud-combat>.g-weapon{right:96px!important;bottom:20px!important;width:58px!important;height:58px!important}
  body.hud2 .hud-combat>.g-fish{right:46px!important;bottom:100px!important}
  body.hud2 .map-bottom{bottom:20px!important;left:16px!important;max-width:300px!important;padding:8px 12px!important;background:rgba(250,247,240,.82)!important;border:1px solid var(--h-line)!important;border-radius:12px!important;box-shadow:none!important;color:var(--h-sub)!important}
  body.hud2 .map-bottom .key-hint{color:var(--h-navy)!important;font:600 12px/1.3 system-ui,sans-serif!important}
}
@media(min-width:721px) and (max-width:1099px){
  body.hud2 .hud-top>.hud-feed{top:96px!important;right:0!important}
  body.hud2.explore-open .hud-top>.hud-feed{right:356px!important;top:0!important}
  body.hud2 .map-bottom{display:none!important}
}

/* hover only where a real pointer hovers */
@media(hover:hover) and (pointer:fine){
  body.hud2 .hud-dock>button:hover,body.hud2 .ui-sec-grid>button:hover{background:rgba(22,35,58,.06)!important}
  body.hud2 .hud-top>.g-badge:hover,body.hud2 .hud-top>#weather:hover{border-color:rgba(22,35,58,.28)!important}
  body.hud2 .hud-combat>.g-fire:hover{filter:brightness(1.05)}
  body.hud2 .hud-combat>.g-weapon:hover,body.hud2 .hud-combat>.g-fish:hover{border-color:rgba(22,35,58,.3)!important}
}
@media(prefers-reduced-motion:reduce){
  body.hud2 .hud-feed>.hud-item,body.hud2 .ui-group-panel,body.hud2 .hud-combat>button::before,body.hud2 .hud-combat>.g-fire::after{animation:none!important}
  body.hud2 .hud-dock>button,body.hud2 .hud-combat>button,body.hud2.explore-open #explore-panel{transition:none!important}
}
/* 잠긴 동네 안내 (w-land) joins the feed as a light card */
body.hud2 .hud-feed>.land-lock{width:100%!important;background:var(--h-surface)!important;color:var(--h-navy)!important;border:1px solid var(--h-line)!important;box-shadow:var(--h-shadow)!important}
body.hud2 .hud-feed>.land-lock b{color:var(--h-ver)!important}
body.hud2 .hud-feed>.land-lock button{background:rgba(22,35,58,.07)!important;color:var(--h-navy)!important}
body.hud2 .hud-feed>.land-lock button.primary{background:var(--h-ver)!important;color:#fff!important}
body.hud2 .land-pill .lt-mode{border-color:var(--h-line)!important}
body.hud2 .land-pill .lt-find{background:var(--h-navy)!important;color:var(--h-paper)!important}
body.hud2 .land-pill .lt-flow span{background:rgba(22,35,58,.06)!important}
/* phones: the land card scrolls inside its slot instead of covering the map; map credits sit small above the dock on the left */
@media(max-width:720px){
  body.hud2 .hud-top>.land-pill{max-height:38vh;overflow:auto;overscroll-behavior:contain}
  body.hud2 .maplibregl-ctrl-bottom-right{left:8px!important;right:auto!important;bottom:calc(var(--h-dock) + 14px + var(--h-safe-b))!important;max-width:calc(100% - 196px)}
  body.hud2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{font-size:9.5px;line-height:1.25;opacity:.8}
}
/* the land card never runs under the dock or the combat buttons: w-hud.js sets --hud-land-max from the free space */
body.hud2 .hud-top>.land-pill{max-height:var(--hud-land-max,42vh);overflow:auto;overscroll-behavior:contain}
/* 매일 출석 card: over the map, not over the HUD; brand colours instead of the old two-tone gradient */
body.hud2 .dl-check{top:auto!important;bottom:calc(var(--h-dock) + 190px + var(--h-safe-b))!important;background:var(--h-paper)!important;color:var(--h-navy)!important;box-shadow:0 18px 44px rgba(22,35,58,.28),inset 0 0 0 1px rgba(22,35,58,.2)!important}
body.hud2 .dl-check small{color:var(--h-ver)!important}
body.hud2 .dl-check>b{color:var(--h-navy)!important}
body.hud2 .dl-check>span{color:var(--h-ver)!important}
body.hud2 .dl-check .dl-ladder li{background:rgba(22,35,58,.06)!important}
body.hud2 .dl-check .dl-ladder li.ok{background:var(--h-navy)!important}
body.hud2 .dl-check button{background:var(--h-navy)!important;color:var(--h-paper)!important}
@media(min-width:721px){
  body.hud2 .dl-check{bottom:auto!important;top:96px!important}
}
@media(min-width:1100px){
  body.hud2 .action-cluster.hud-combat{bottom:44px!important}
  body.hud2 .map-bottom small{display:none!important}
}
/* team chips keep their colour as a tint, the name stays readable on paper */
body.hud2 .land-pill .lt-pick button{color:var(--h-navy)!important;text-shadow:none!important}
/* map credits: maplibre's own compact (i) button until tapped, so they never sit under the dock or the buttons */
@media(min-width:721px) and (max-width:1099px){
  body.hud2 .action-cluster.hud-combat{bottom:126px!important}
  body.hud2 .maplibregl-ctrl-bottom-right{bottom:92px!important}
}
/* group sheets span the width on phones; the open group button has no leftover ring from older styles */
@media(max-width:720px){body.hud2 .ui-group-panel{width:auto!important;max-width:none!important}}
body.hud2 .hud-dock>button.ui-group[aria-expanded="true"],body.hud2 .hud-dock>button.ui-group{box-shadow:none!important;outline:0;border:0!important}
/* the big map stands alone: the land card and the feed step aside while it is open */
body.hud2 .hud-top:has(.mm.big)>.land-pill,body.hud2 .hud-top:has(.mm.big)>.hud-feed{visibility:hidden}
/* v848: chat lines were dark text on the dark chat panel — readable colours for every line type */
#chat #chat-log li span{color:var(--hanji,#f3ead8)!important}
#chat #chat-log li b,#chat #chat-log li.ai b{color:#9fb6ff!important}
#chat #chat-log li.mine b{color:#f2c56b!important}
#chat #chat-log li.tome{background:rgba(255,255,255,.08)!important}
#chat #chat-log li .ai-tr{color:rgba(243,234,216,.62)!important}
/* v851 밤 밝게: keep a cool night mood but lift the darkness (tint opacity is set inline, so !important wins) */
body.night-bright #night-tint{mix-blend-mode:multiply;background:radial-gradient(ellipse at 50% 58%,rgba(70,95,170,.32) 0,rgba(45,65,140,.5) 55%,rgba(18,28,80,.85) 100%)} /* v924: the opacity comes from applyDaylight */
/* w-simple (owner 11/13): 더보기 sections · 은행 표시 · 출발지 고르기 in the brand colours */
body.hud2 .ui-sec[hidden]{display:none!important}
body.hud2 .ui-sec+.ui-sec{margin-top:4px;padding-top:6px;border-top:1px solid var(--h-line)}
body.hud2 .ui-sec-h{margin:6px 4px 2px;font:800 11px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:.08em;color:var(--h-ver)}
body.hud2 .ui-sec-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
body:not(.econ-tags) .ec-tag{display:none!important}
#start-sheet{--ot-p:#b8432f;--ot-p2:#953423;--ot-grad:linear-gradient(135deg,#16233a,#b8432f);--ot-ink:#16233a;--ot-sub:rgba(22,35,58,.62);--ot-line:rgba(22,35,58,.13);--ot-soft:#f7f3ec}
#start-sheet .ss-panel{background:#fbf8f2!important}
#start-sheet .ss-slot>button[data-start]:not(.ss-reroll){background:#f3ecdf!important}
#start-sheet .ss-slot>button.hot,#start-sheet .ss-slot>button[data-mode].hot{box-shadow:0 10px 26px rgba(22,35,58,.16)!important}
#start-sheet .ss-slot>button[data-start]:not(.ss-reroll):focus-visible,#start-sheet .ss-slot>button[data-mode]:focus-visible{box-shadow:0 12px 28px rgba(184,67,47,.18)!important}
@media(hover:hover) and (pointer:fine){#start-sheet .ss-slot>button[data-mode]:hover,#start-sheet .ss-slot>button[data-start]:not(.ss-reroll):hover:not(:disabled){box-shadow:0 12px 28px rgba(184,67,47,.18)!important}}
#start-sheet .ss-back[hidden]{display:none!important}
/* v934 시안 2B (owner 11/18): the start step asks one question — '광화문에서 시작할까요?' with the recommended spot as a single
   wide card and two buttons (여기서 시작 · 다른 곳); the other two places and '여기서 그냥 시작' unfold only after 다른 곳. Keys unchanged. */
#start-sheet .ss-step[data-step=start] .ss-head{margin-bottom:14px!important}
#start-sheet .ss-step[data-step=start] .ss-head b{font-size:22px!important}
#start-sheet .ss-step[data-step=start] .ss-cards{grid-template-columns:1fr!important;gap:8px!important}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start]:not(.ss-reroll){min-height:0!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;padding:10px 14px!important;text-align:left!important}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] strong,#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] small{margin:0!important;line-height:1.25!important}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] .ss-art{width:40px!important;height:30px!important;margin:0!important;flex:none}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] .ss-k{display:none!important}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] strong{font-size:17px!important}
#start-sheet .ss-step[data-step=start] .ss-slot>button[data-start] small{display:block}
#start-sheet .ss-step[data-step=start] kbd,#start-sheet .ss-step[data-step=start] .ss-tag{display:none!important}
#start-sheet .ss-step[data-step=start] .ss-reroll{top:50%!important;transform:translateY(-50%)!important}
#start-sheet:not(.more) .ss-alt{display:none!important}
#start-sheet .ss-go{display:flex;gap:8px;margin-top:10px}
#start-sheet .ss-go button{flex:1;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;height:48px!important;min-height:0!important;padding:0 14px!important;margin:0!important;border:0!important;border-radius:14px!important;font:700 15px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;cursor:pointer}
#start-sheet .ss-go-btn{background:var(--ot-p);color:#fff}
#start-sheet .ss-more-btn{background:var(--ot-soft);color:var(--ot-ink)}
#start-sheet .ss-go button[hidden]{display:none}
#start-sheet.more .ss-go-btn{flex:1 1 100%}
#start-sheet.more .ss-stay{margin-top:4px}
body.hud2 .hud-dock>#sky-open:not(.on){display:none!important} /* w-simple: 탈것 is in 더보기 → 함께; 내리기 shows on the dock while riding */
/* v873 (owner 11/15) 모험 수첩 · 탐험 · ⚙ 설정: the dock is 땅따먹기 · 탐험 · 전투 · 수첩, with 탐험 big in the middle */
body.hud2 .hud-dock>button{order:9}
body.hud2 .hud-dock>button[data-dock="0"]{order:1}body.hud2 .hud-dock>.hud-explore{order:2}body.hud2 .hud-dock>button[data-dock="2"]{order:3}body.hud2 .hud-dock>.ui-book{order:4}
body.hud2 .hud-dock>.hud-explore{flex:1.25 1 0!important;height:66px!important;margin-top:-22px!important;border-radius:20px!important;background:var(--h-ver)!important;color:#fff!important;box-shadow:0 5px 0 var(--h-ver-d),0 12px 24px rgba(184,67,47,.32)!important}
body.hud2 .hud-dock>.hud-explore .ui-i{width:28px!important;height:28px!important;stroke-width:2!important}
body.hud2 .hud-dock>.hud-explore .ui-l{color:#fff!important;font-weight:800!important;font-size:12.5px!important}
body.hud2 .hud-dock>.hud-explore:active{translate:0 3px;box-shadow:0 2px 0 var(--h-ver-d),0 6px 14px rgba(184,67,47,.3)!important}
@media(min-width:721px){body.hud2 .hud-dock>.hud-explore{width:84px!important;height:70px!important;margin-top:-26px!important}}
body.hud2 .hud-dock>button.has-new::after{content:"";position:absolute;top:6px;right:calc(50% - 17px);width:8px;height:8px;border-radius:50%;background:var(--h-ver);box-shadow:0 0 0 2px var(--h-paper)}
/* the book (above the 출석 card and other pop-ups) */
body.hud2 .ui-book-sheet:not([hidden]),body.hud2 .ui-gear-sheet:not([hidden]){z-index:70!important}
body.hud2 .ui-book-sheet .book-head,body.hud2 .ui-gear-sheet .book-head{padding:8px 4px 4px}
body.hud2 .ui-book-sheet h2,body.hud2 .ui-gear-sheet h2{margin:0;font:800 18px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--h-navy)}
body.hud2 .ui-book-sheet .book-sub{margin:2px 0 6px;font:600 12px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--h-sub)}
body.hud2 .book-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:stretch;padding:5px 0!important;margin:0!important;border-top:0!important}
body.hud2 .book-lv{position:relative;display:grid;place-items:center;border-radius:12px;background:var(--h-navy);color:#fff;font:800 12px/1 system-ui,-apple-system,sans-serif}
body.hud2 .book-row .ui-sec-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
body.hud2 .book-row .ui-sec-grid>button{background:#fff!important;border:1px solid var(--h-line)!important;min-height:62px}
body.hud2 .book-row.locked .book-lv{background:#cfc9bd}
body.hud2 .book-row.locked .ui-sec-grid>button{background:#f1ede4!important;opacity:.55;filter:grayscale(1)}
body.hud2 .book-row.fresh .book-lv::after{content:"NEW";position:absolute;top:-6px;right:-6px;padding:1px 4px;border-radius:6px;background:var(--h-ver);color:#fff;font:800 8px/1.3 system-ui,sans-serif}
/* ⚙ 설정: beside 내 계정 in the header; its sheet drops from the top right */
.hud-gear{display:inline-grid;place-items:center;width:38px;height:38px;padding:0!important;border-radius:50%!important;border:1px solid rgba(22,35,58,.15)!important;background:#fffdf8!important;color:#16233a!important;cursor:pointer;flex:none}
.hud-gear .ui-l{display:none}.hud-gear .ui-i{width:20px;height:20px}
body.hud2 .ui-gear-sheet{top:calc(64px + env(safe-area-inset-top,0px))!important;bottom:auto!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;width:min(380px,calc(100vw - 16px))!important}
/* level up: what just opened */
.book-unlock{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(16,24,21,.45);animation:hud-sheet .22s ease both}
.book-unlock .bu-card{width:min(340px,100%);padding:26px 18px 16px;border-radius:24px;background:#fbf8f2;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.3);font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
.book-unlock .bu-lv{display:grid;place-items:center;width:72px;height:72px;margin:-62px auto 6px;border-radius:50%;background:#d9a441;border:6px solid #fbf8f2;color:#fff;font:900 26px/1 system-ui,sans-serif}
.book-unlock h3{margin:0 0 12px;font:800 20px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#16233a}
.book-unlock .bu-tiles{display:flex;justify-content:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.book-unlock .bu-tile{display:grid;place-items:center;gap:4px;width:76px;padding:10px 4px;border-radius:14px;background:#fff;border:1px solid rgba(22,35,58,.12);color:#16233a}
.book-unlock .bu-tile .ui-i{width:24px;height:24px}.book-unlock .bu-tile i{font:700 11px/1.2 system-ui,sans-serif;font-style:normal;word-break:keep-all}
.book-unlock .bu-go{display:block;width:100%;padding:13px;border:0;border-radius:14px;background:#b8432f;color:#fff;font:800 15px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;cursor:pointer}
.book-unlock .bu-later{margin-top:6px;padding:8px;border:0;background:none;color:rgba(22,35,58,.6);font:600 13px system-ui,sans-serif;cursor:pointer}
/* v879 여행자 · 내 숙소 동네 */
.visit-welcome{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:12px;background:rgba(16,24,21,.5);animation:hud-sheet .25s ease both;font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
.visit-welcome.out{opacity:0;transition:opacity .25s}
.visit-welcome .vw-panel{width:min(420px,100%);max-height:calc(100dvh - 24px);overflow:auto;border-radius:28px;background:#fbf8f2;box-shadow:0 30px 70px rgba(0,0,0,.35)}
.visit-welcome .vw-hero{position:relative;height:clamp(150px,30vh,230px);background:url(img/art/hero.jpg) center 60%/cover}
.visit-welcome .vw-hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.visit-welcome .vw-logo{position:absolute;left:14px;top:14px;padding:5px 11px;border-radius:999px;background:rgba(255,253,248,.9);color:#16233a;font:800 14px/1.2 system-ui,sans-serif}.visit-welcome .vw-logo i{color:#b8432f;font-weight:600}
.visit-welcome .vw-body{padding:16px 18px 18px}
.visit-welcome h2{margin:0;font:800 24px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:-.02em;color:#16233a;text-wrap:balance}
.visit-welcome .vw-sub{margin:6px 0 4px;color:#6b746f;font-size:13.5px;line-height:1.5}
.visit-welcome .vw-q{margin:14px 0 6px;font:800 11.5px/1 system-ui,sans-serif;letter-spacing:.06em;color:#b8432f}.visit-welcome .vw-q span{color:#6b746f;letter-spacing:0;font-weight:600}
.visit-welcome .vw-chips{display:flex;flex-wrap:wrap;gap:6px}
.visit-welcome .vw-chips button{padding:8px 13px;border-radius:999px;border:1px solid rgba(22,35,58,.14);background:#fff;color:#16233a;font:650 14px/1 system-ui,sans-serif;cursor:pointer}
.visit-welcome .vw-chips button.on{background:#16233a;border-color:#16233a;color:#fff}
.visit-welcome .vw-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px} /* v921: date fields shrink to fit small phones */
.visit-welcome .vw-dates label{display:grid;min-width:0;gap:4px;padding:8px 10px;border-radius:12px;border:1px solid rgba(22,35,58,.14);background:#fff;font:600 11px system-ui,sans-serif;color:#6b746f}
.visit-welcome .vw-dates input{border:0;padding:0;min-width:0;font:700 16px system-ui,sans-serif;color:#16233a;background:transparent;width:100%}
.visit-welcome .vw-priv{margin:12px 0;font-size:11.5px;color:#6b746f;text-align:center}
.visit-welcome .vw-go{display:block;width:100%;padding:15px;border:0;border-radius:16px;background:#b8432f;color:#fff;font:800 16px/1 system-ui,sans-serif;box-shadow:0 5px 0 #953423;cursor:pointer}
.visit-welcome .vw-go:active{translate:0 3px;box-shadow:0 2px 0 #953423}
.visit-welcome .vw-skip{display:block;margin:10px auto 0;padding:6px;border:0;background:none;color:#6b746f;font:600 13px system-ui,sans-serif;text-decoration:underline;cursor:pointer}
.stay-pin{width:34px;height:34px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:#b8432f;border:3px solid #fff;box-shadow:0 6px 14px rgba(184,67,47,.45)}
.stay-pin::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}
.stay-sheet{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:72;max-width:460px;margin:0 auto;max-height:min(70dvh,560px);overflow:auto;padding:8px 14px 12px;border-radius:24px;background:#fffdf8;box-shadow:0 -10px 40px rgba(22,35,58,.25);animation:hud-sheet .22s ease both;font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#16233a}
.stay-sheet .ss2-grab{width:40px;height:4px;border-radius:2px;background:#d8d2c6;margin:0 auto 8px}
.stay-sheet header{display:flex;align-items:center;justify-content:space-between}.stay-sheet header b{font:800 16px/1.2 system-ui,sans-serif}
.stay-sheet .ss2-x,.stay-card .sc-x{width:32px;height:32px;border-radius:50%;border:0;background:rgba(22,35,58,.07);color:#16233a;font-size:18px;cursor:pointer}
.stay-sheet .ss2-chips{display:flex;gap:6px;overflow-x:auto;padding:10px 0 6px;scrollbar-width:none}
.stay-sheet .ss2-chips button{flex:none;padding:7px 12px;border-radius:999px;border:1px solid rgba(22,35,58,.12);background:#fff;color:#16233a;font:700 12.5px/1 system-ui,sans-serif;cursor:pointer}
.stay-sheet .ss2-chips button.on{background:#16233a;color:#fff;border-color:#16233a}
.stay-sheet ul{list-style:none;margin:0;padding:0}
.stay-sheet li>button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 0;border:0;border-top:1px solid rgba(22,35,58,.1);background:none;text-align:left;color:#16233a;cursor:pointer}
.stay-sheet .ss2-thumb{flex:none;width:46px;height:46px;border-radius:12px;background-size:cover;background-position:center;box-shadow:0 2px 6px rgba(22,35,58,.15)}
.stay-sheet .ss2-t{min-width:0;flex:1}.stay-sheet .ss2-t b{display:block;font:700 14px/1.3 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stay-sheet .ss2-t small{font-size:11.5px;color:#6b746f}
.stay-sheet .ss2-w{text-align:right}.stay-sheet .ss2-w b{display:block;font:800 14px/1.2 system-ui,sans-serif}.stay-sheet .ss2-w small{font-size:11px;color:#6b746f}
.stay-sheet .ss2-none{padding:16px 0;color:#6b746f;font-size:13px}
.stay-card{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:12px;background:rgba(16,24,21,.45);font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#16233a}
.stay-card .sc-in{width:min(380px,100%);max-height:calc(100dvh - 24px);overflow:auto;border-radius:24px;background:#fbf8f2;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.stay-card .sc-img{position:relative;height:200px;background-size:cover;background-position:center 55%}
.stay-card .sc-img span{position:absolute;left:12px;bottom:10px;padding:3px 9px;border-radius:8px;background:#16233a;color:#fff;font:800 11px/1.4 system-ui,sans-serif}
.stay-card .sc-x{position:absolute;right:10px;top:10px;background:#fff}
.stay-card .sc-body{padding:14px 16px 16px}.stay-card h3{margin:0;font:800 20px/1.2 system-ui,sans-serif;letter-spacing:-.01em}
.stay-card .sc-m{margin:4px 0 10px;font-size:12.5px;color:#6b746f}
.stay-card .sc-fact{margin:0 0 8px;padding:8px 10px;border-radius:12px;background:#fff;border:1px solid rgba(22,35,58,.1)}.stay-card .sc-fact small{display:block;font-size:11px;color:#6b746f}.stay-card .sc-fact b{font-size:13px}
.stay-card .sc-go,.day-sheet .sc-go{display:block;width:100%;margin-top:6px;padding:13px;border:0;border-radius:14px;background:#b8432f;color:#fff;font:800 15px/1 system-ui,sans-serif;box-shadow:0 4px 0 #953423;cursor:pointer}
.stay-card .sc-dir,.day-sheet .sc-dir{display:block;margin-top:8px;padding:12px;border-radius:14px;border:1px solid rgba(22,35,58,.14);background:#fff;color:#16233a;text-align:center;font:800 14px/1 system-ui,sans-serif;text-decoration:none}
.stay-card .sc-src,.day-sheet .sc-src{margin:10px 0 0;font-size:10.5px;color:#9aa19c;text-align:center}
/* v881 같은 기간 여행자 · 친구 */
.stay-pill .sp-trav{background:#16233a!important}
.trav-sheet header{gap:8px}.trav-sheet header b{flex:1}
.trav-sheet .tv-back{width:32px;height:32px;border-radius:50%;border:0;background:rgba(22,35,58,.07);color:#16233a;font-size:20px;cursor:pointer}
.trav-sheet .tv-trip-img{height:110px;margin:8px 0 10px;border-radius:16px;background:url(img/art/hero.jpg) center 62%/cover;position:relative}
.trav-sheet .tv-trip-img span{position:absolute;left:10px;bottom:8px;padding:3px 10px;border-radius:999px;background:rgba(255,253,248,.92);font:800 11px system-ui,sans-serif}
.trav-sheet .vw-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px} /* v921: date fields shrink to fit small phones */
.trav-sheet .vw-dates label{display:grid;min-width:0;gap:4px;padding:8px 10px;border-radius:12px;border:1px solid rgba(22,35,58,.14);background:#fff;font:600 11px system-ui,sans-serif;color:#6b746f}
.trav-sheet .vw-dates input{border:0;padding:0;min-width:0;font:700 16px system-ui,sans-serif;color:#16233a;background:transparent;width:100%}
.trav-sheet .tv-q,.trav-sheet .tv-sub{margin:12px 0 2px;font:800 11.5px/1 system-ui,sans-serif;letter-spacing:.05em;color:#b8432f}.trav-sheet .tv-q span{color:#6b746f;letter-spacing:0;font-weight:600}
.trav-sheet .tv-int{flex-wrap:wrap}
.trav-sheet .tv-tog{display:flex;gap:10px;align-items:flex-start;margin:12px 0 6px;padding:12px;border-radius:16px;background:#fff;border:1px solid rgba(22,35,58,.12);cursor:pointer}
.trav-sheet .tv-tog input{position:absolute;opacity:0;pointer-events:none}
.trav-sheet .tv-sw{flex:none;width:44px;height:26px;margin-top:2px;border-radius:13px;background:#cfc9bd;position:relative;transition:background .2s}.trav-sheet .tv-sw::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s}
.trav-sheet .tv-tog input:checked+.tv-sw{background:#2f8f6e}.trav-sheet .tv-tog input:checked+.tv-sw::after{left:21px}
.trav-sheet .tv-tog b{display:block;font:700 14px/1.3 system-ui,sans-serif}.trav-sheet .tv-tog small{display:block;font-size:11.5px;color:#6b746f;line-height:1.45;margin-top:2px}
.trav-sheet .tv-shares{margin:4px 0 8px;padding-left:18px;font-size:11.5px;color:#6b746f}.trav-sheet .tv-shares b{color:#16233a}
.trav-sheet .tv-err{min-height:16px;margin:4px 0;color:#b8432f;font-size:12.5px}
.trav-sheet .tv-hd{margin:6px 0 4px}.trav-sheet .tv-hd b{display:block;font:800 18px/1.3 system-ui,sans-serif}.trav-sheet .tv-hd small{font-size:12px;color:#6b746f}
.trav-sheet .tv-here{display:inline-block;margin:2px 0 0;padding:1px 7px;border-radius:999px;background:#e6f2ec;color:#2f8f6e;font:800 11px system-ui,sans-serif;font-style:normal}
.trav-sheet .tv-here.tv-else{background:#eef4fa;color:#16233a}
.trav-sheet .tv-ride{display:block;margin-top:3px;font:600 11.5px system-ui,sans-serif;color:#6b746f}
.trav-sheet .tv-row>button.tv-go{background:#b8432f;margin-right:6px}
.trav-sheet .tv-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(22,35,58,.1)}
.trav-sheet .tv-av{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font:800 18px system-ui,sans-serif;color:#16233a;box-shadow:0 0 0 3px #fff,0 2px 8px rgba(22,35,58,.18)}
.trav-sheet .tv-t{min-width:0;flex:1}.trav-sheet .tv-t b{display:block;font:700 14px/1.3 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trav-sheet .tv-t em{font-style:normal;font:800 11px system-ui,sans-serif;color:#2f8f6e}
.trav-sheet .tv-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.trav-sheet .tv-tags i{font-style:normal;font:800 10px/1.5 system-ui,sans-serif;padding:1px 7px;border-radius:7px;background:#eef3e6;color:#47622c}
.trav-sheet .tv-row>button{flex:none;padding:8px 11px;border:0;border-radius:12px;background:#16233a;color:#fff;font:800 12px system-ui,sans-serif;cursor:pointer}.trav-sheet .tv-row>button.tv-f{background:#b8432f}.trav-sheet .tv-row>button:disabled{background:#eef3e6;color:#47622c}
.trav-sheet .tv-edit{display:block;margin:10px auto 0;padding:6px;border:0;background:none;color:#16233a;font:700 13px system-ui,sans-serif;text-decoration:underline;cursor:pointer}
.trav-sheet .tv-safe{margin:6px 0 0;font-size:11px;color:#6b746f;text-align:center}
.tv-chat-sheet{display:flex;flex-direction:column;height:min(78dvh,620px)}
.tv-chat-sheet .tv-chat{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:8px 0}
.tv-chat-sheet .tv-msg{max-width:80%;padding:9px 12px;border-radius:16px;background:#fff;border:1px solid rgba(22,35,58,.12);font-size:13.5px;line-height:1.4}.tv-chat-sheet .tv-msg p{margin:0}
.tv-chat-sheet .tv-msg.me{align-self:flex-end;background:#16233a;color:#fff;border:0}
.tv-chat-sheet .tv-plancard{max-width:100%;align-self:stretch;padding:0;overflow:hidden;background:#fff!important;color:#16233a!important;border:1px solid rgba(22,35,58,.12)!important}
.tv-chat-sheet .tv-plancard>p{padding:9px 12px 0}
.tv-chat-sheet .tp-img{height:80px;background:url(img/art/sight.jpg) center 40%/cover}
.tv-chat-sheet .tp-b{padding:8px 12px}.tv-chat-sheet .tp-b small{display:block;font:800 10.5px system-ui,sans-serif;color:#b8432f}.tv-chat-sheet .tp-b b{display:block;font-size:14px}.tv-chat-sheet .tp-b span{font-size:11.5px;color:#6b746f}
.tv-chat-sheet .tp-go{display:block;width:calc(100% - 24px);margin:0 12px 10px;padding:10px;border:0;border-radius:12px;background:#b8432f;color:#fff;font:800 13px system-ui,sans-serif;cursor:pointer}
.tv-chat-sheet .tv-input{display:flex;gap:6px;align-items:center;padding:6px;border:1px solid rgba(22,35,58,.12);border-radius:999px;background:#fff}
.tv-chat-sheet .tv-input input{flex:1;min-width:0;border:0;font:500 16px system-ui,sans-serif;background:transparent;color:#16233a;outline:none}
.tv-chat-sheet .tv-plan,.tv-chat-sheet .tv-send{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:#efe9dd;color:#16233a;font-size:18px;cursor:pointer}.tv-chat-sheet .tv-send{background:#b8432f;color:#fff}
.tv-chat-sheet .tv-plan-form{display:grid;gap:6px;margin-bottom:6px;padding:10px;border-radius:14px;background:#fff;border:1px solid rgba(22,35,58,.12)}.tv-chat-sheet .tv-plan-form[hidden]{display:none}
.tv-chat-sheet .tv-plan-form input:not([type=checkbox]){padding:9px 10px;border:1px solid rgba(22,35,58,.14);border-radius:10px;font:500 16px system-ui,sans-serif}
.tv-chat-sheet .tv-plan-form div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tv-chat-sheet .tv-plan-form label{font-size:12px;color:#6b746f}
.tv-chat-sheet .tv-plan-send{padding:10px;border:0;border-radius:12px;background:#16233a;color:#fff;font:800 13px system-ui,sans-serif}
.tv-chat-sheet .tv-more{display:flex;justify-content:center;gap:14px;margin-top:6px}.tv-chat-sheet .tv-more button{border:0;background:none;color:#6b746f;font:600 12px system-ui,sans-serif;text-decoration:underline;cursor:pointer}
.trav-sheet li.tv-row>button{display:inline-block!important;width:auto!important;flex:none!important;padding:8px 12px!important;border-top:0!important;border-radius:12px!important;text-align:center!important}
.stay-pill [data-near],.stay-pill [data-trav]{white-space:nowrap}
.tv-chat-sheet .tv-chat>*{flex:none}
/* v882 앱 설치 안내 */
.app-steps .as-icon{display:block;margin:-60px auto 8px;border-radius:20px;border:5px solid #fbf8f2;box-shadow:0 8px 20px rgba(22,35,58,.2)}
.app-steps .as-steps{margin:0 0 10px;padding:0;list-style:none;counter-reset:s;text-align:left}
.app-steps .as-steps li{counter-increment:s;display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid rgba(22,35,58,.1);font:500 14px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#16233a}
.app-steps .as-steps li::before{content:counter(s);flex:none;width:24px;height:24px;border-radius:50%;background:#16233a;color:#fff;display:grid;place-items:center;font:800 12px system-ui,sans-serif}
.app-steps .as-note{margin:0 0 12px;font-size:12px;color:#6b746f}
/* v885 탭 지연 없애기: iPhone waits ~0.35 s after a tap to see whether it is a double-tap zoom before the click fires;
   on slower phones that reads as 'the first tap did nothing'. Buttons and links never double-tap zoom, so say so. */
button,a,[role=button],summary,label,select,input[type=checkbox],input[type=date],.shop-pin,.hx-pin{touch-action:manipulation}
/* v886 우리 동네 생활 */
.local-sheet .ll-sub{margin:4px 0 8px;font-size:12px;color:#6b746f}
.local-sheet .ll-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.local-sheet .ll-mini{display:grid;gap:2px;text-align:left;padding:10px 12px;border-radius:16px;border:1px solid rgba(22,35,58,.12);background:#fff;color:#16233a;cursor:pointer;font-family:inherit}
.local-sheet .ll-mini small{font:800 10.5px system-ui,sans-serif;color:#6b746f}.local-sheet .ll-mini b{font:800 18px/1.2 system-ui,sans-serif}.local-sheet .ll-mini span{font:700 11px system-ui,sans-serif;color:#2f8f6e}
.local-sheet .ll-tile{display:block;width:100%;margin:0 0 10px;padding:0;border-radius:18px;border:1px solid rgba(22,35,58,.12);background:#fffdf8;overflow:hidden;text-align:left;color:#16233a;cursor:pointer;font-family:inherit}
.local-sheet .ll-ti{display:block;height:96px;background-size:cover;background-position:center}
.local-sheet .ll-tb{display:block;padding:10px 12px}.local-sheet .ll-tb small{display:block;font:800 10px system-ui,sans-serif;letter-spacing:.06em;color:#b8432f}.local-sheet .ll-tb b{display:block;font:800 15px/1.3 system-ui,sans-serif}.local-sheet .ll-tb span{font-size:12px;color:#6b746f}
.local-sheet.ll-card{padding:0;overflow:auto}.local-sheet.ll-card .ss2-grab{display:none}
.local-sheet .ll-hero{position:relative;height:180px;background-size:cover;background-position:center 55%}
.local-sheet .ll-hero span{position:absolute;left:12px;bottom:10px;padding:3px 10px;border-radius:999px;background:rgba(255,253,248,.92);font:800 11px system-ui,sans-serif;color:#16233a}
.local-sheet .ll-hero .sc-x{position:absolute;right:10px;top:10px;width:32px;height:32px;border-radius:50%;border:0;background:#fff;color:#16233a;font-size:18px}
.local-sheet .ll-body{padding:12px 16px 16px}.local-sheet .ll-body h3{margin:0;font:800 21px/1.25 system-ui,sans-serif;color:#16233a}
.local-sheet .ll-big{display:flex;align-items:baseline;gap:8px;margin:2px 0 10px}.local-sheet .ll-big b{font:800 25px/1.2 system-ui,sans-serif;letter-spacing:-.02em;color:#16233a}.local-sheet .ll-big small{font-size:12px;color:#6b746f}
.local-sheet .ll-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.local-sheet .ll-facts p{margin:0;padding:7px 9px;border-radius:12px;background:#fff;border:1px solid rgba(22,35,58,.1)}.local-sheet .ll-facts small{display:block;font-size:10.5px;color:#6b746f}.local-sheet .ll-facts b{font-size:13.5px;color:#16233a}
.local-sheet .sc-go{display:block;width:100%;margin-top:6px;padding:13px;border:0;border-radius:14px;background:#b8432f;color:#fff;font:800 15px/1 system-ui,sans-serif;box-shadow:0 4px 0 #953423;cursor:pointer}
.local-sheet .sc-dir{display:block;margin-top:8px;padding:12px;border-radius:14px;border:1px solid rgba(22,35,58,.14);background:#fff;color:#16233a;text-align:center;font:800 14px/1 system-ui,sans-serif;text-decoration:none}
.local-sheet .sc-src{margin:10px 0 0;font-size:10.5px;color:#9aa19c;text-align:center}
.local-sheet .sc-m{margin:4px 0 10px;font-size:12.5px;color:#6b746f}
/* v889: a long card title (two lines in English) pushed into the facts below: the header keeps its full height */
.history-card.hx-sheet header{min-height:min-content!important;height:auto!important;flex:none}
/* v890 AI 쇼핑 나들이: what an AI resident is doing, under its name tag */
.npc-tag.ai-shopping{flex-wrap:wrap}
.npc-tag .ai-doing{display:block;flex-basis:100%;margin-top:2px;padding:2px 7px;border-radius:8px;background:#fbe9e4;color:#953423;font:700 10.5px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;white-space:nowrap}
.trav-sheet .tv-ai .ai-badge{display:inline-grid;place-items:center;margin-left:4px;padding:0 5px;border-radius:6px;background:#16233a;color:#fff;font:800 9.5px/1.6 system-ui,sans-serif;font-style:normal;vertical-align:middle}
.trav-sheet .tv-ai em{color:#6b746f!important}
.stay-card .sc-subway,.local-sheet .sc-subway{margin:0 0 8px;padding:8px 10px;border-radius:12px;background:#eef4fa;color:#16233a;font:600 12.5px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
.hud-feed>.way-pill small{color:#2b6cb0!important}
.hud-feed>.plan-pill small{color:#b8432f!important}.plan-pill em{display:block;font-style:normal;font-size:12px;color:#6b746f}.plan-pill [data-walk]{margin-left:auto;padding:8px 12px;border:0;border-radius:12px;background:#b8432f;color:#fff;font:800 13px system-ui,sans-serif}
.trav-sheet .tv-av-plan{font:800 12px/1 system-ui,sans-serif;background:#f3e3cf!important;color:#7a4b12}.trav-sheet .tv-planrow small{display:block;font-size:11.5px;color:#6b746f}

/* v909 하루 코스 */
.stay-sheet .dc-open{display:grid;gap:2px;width:100%;margin:2px 0 10px;padding:12px 14px;border:0;border-radius:14px;background:linear-gradient(135deg,#b8432f,#d9774f);color:#fff;text-align:left;cursor:pointer;box-shadow:0 3px 0 #953423}
.stay-sheet .dc-open b{font:800 15px/1.2 system-ui,sans-serif}.stay-sheet .dc-open span{font:600 12px/1.3 system-ui,sans-serif;opacity:.9}
.day-sheet .dc-sub{margin:2px 0 10px;font:600 12.5px/1.4 system-ui,sans-serif;color:#6b746f}
.day-sheet .dc-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:0}
.day-sheet .dc-stop{display:grid;grid-template-columns:44px 14px 1fr;gap:8px;align-items:start;padding:8px 0;position:relative}
.day-sheet .dc-stop:not(:last-child)::after{content:"";position:absolute;left:58px;top:24px;bottom:-8px;width:2px;background:rgba(22,35,58,.12)}
.day-sheet .dc-time{font:800 12.5px/1.6 system-ui,sans-serif;color:#16233a;font-variant-numeric:tabular-nums}
.day-sheet .dc-dot{width:12px;height:12px;margin-top:4px;border-radius:50%;background:#16233a;box-shadow:0 0 0 3px #fffdf8;position:relative;z-index:1}
.day-sheet .dc-dot[data-k=food]{background:#b8432f}.day-sheet .dc-dot[data-k=cafe]{background:#8a6b3e}.day-sheet .dc-dot[data-k=beauty]{background:#c98a9b}.day-sheet .dc-dot[data-k=daiso]{background:#d9a441}.day-sheet .dc-dot[data-k=home]{background:#2f8f6e}
.day-sheet .dc-t{display:grid;gap:1px;min-width:0}.day-sheet .dc-t small{font:700 11px system-ui,sans-serif;color:#6b746f}.day-sheet .dc-t b{font:800 14px/1.3 system-ui,sans-serif;color:#16233a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.day-sheet .dc-t em{font:600 11.5px system-ui,sans-serif;font-style:normal;color:#2f8f6e}
.day-sheet .dc-stop.done b{color:#6b746f;text-decoration:line-through}
.day-sheet .sc-go,.day-sheet .sc-dir,.day-sheet .tv-edit{display:block;width:100%;margin-top:8px;text-align:center;box-sizing:border-box}
.day-pill [data-open]{cursor:pointer}
.hud-feed>.day-pill small{color:#b8432f!important}
/* v910 새 실거래 알림 */
.hud-feed>.life-pill small{color:#2f8f6e!important}

/* v923: narrow phones — header buttons stay on one line, the stay card's buttons shrink instead of widening the page */
header #change-character,header #account{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;flex-shrink:1}
@media(max-width:374px){header{padding-left:max(10px,env(safe-area-inset-left,0px))!important;padding-right:max(10px,env(safe-area-inset-right,0px))!important;gap:5px!important}header .ot-logo{gap:7px!important}header .ot-logo .ot-name{font-size:16px}header .ot-logo .ot-t{width:6.6px;height:16px}header .ot-logo .ot-mascot{width:24px;height:24px;border-radius:6px}header #change-character,header #account{padding-left:9px!important;padding-right:9px!important}}
.stay-pill [data-near],.stay-pill [data-trav]{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* v929 첫 1분은 첫 걸음만: while the first quest is pending, only the 첫 걸음 card competes for attention */
body.hud2.first-min .hud-feed>.g-event,body.hud2.first-min .hud-feed>.g-bossbar,body.first-min .g-event,body.first-min .g-bossbar,body.first-min .land-pill{display:none!important} /* outranks body.hud2 .hud-feed>.g-event{display:flex!important} */
/* v933 윗줄 한 줄 (owner 11/18, 시안 1A "심플하고 세련되게"): the level chip is one line — Lv · name · money, no progress bar;
   the neighbourhood is plain text under it (still the same select); the minimap's distance tag shows only inside the big map */
body.hud2 .hud-top>.g-badge{grid-template-rows:1fr!important;height:38px!important;padding:4px 14px 4px 4px!important;row-gap:0!important}
body.hud2 .g-badge .g-title{align-self:center!important;font-size:13.5px!important;letter-spacing:-.01em}
body.hud2 .g-badge .g-bar{display:none!important}
body.hud2 .hud-top>#weather{height:38px!important}
body.hud2 .hud-top>.map-top select{height:26px!important;padding:0 20px 0 2px!important;border:0!important;background-color:transparent!important;box-shadow:none!important;background-position:right 2px center!important;background-size:12px!important;
  font:600 13px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;color:rgba(22,35,58,.72)!important;text-shadow:0 1px 0 rgba(255,255,255,.6)}
body.hud2 .mm:not(.big) .mm-tag{display:none!important}
body.hud2 .hud-top .hood-chip{height:26px!important;padding:0 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:5px!important;
  font:700 13.5px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;color:rgba(22,35,58,.86)!important;text-shadow:none!important}
body.hud2 .hud-top .hood-chip svg{width:13px!important;height:13px!important;opacity:.85}
body.hud2 .hud-top .hood-chip>svg:first-child{color:var(--h-gold)!important}
body.hud2 .hud-feed>.course-pill small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} /* '오늘의 목표 · 이번 주 미션' wrapped mid-word */
/* v935 장소 가까운 순 (owner 11/18 시안 3A): rows with an icon, the name and '카페 · 1분'; eight rows first, the rest and the
   search box behind 더 보기. */
#explore-panel #places button.place-row{display:flex!important;align-items:center;gap:12px;width:100%;padding:11px 4px!important;text-align:left;border:0!important;border-bottom:1px solid var(--ot-line,#e7e9ee)!important;background:transparent!important}
#explore-panel #places button.place-row::after{content:none!important}
#explore-panel #places button.place-row .pr-ic{flex:none;width:36px;height:36px;border-radius:11px;background:var(--ot-soft,#f2f3f7);display:grid;place-items:center;font-size:17px;font-style:normal}
#explore-panel #places button.place-row .pr-t{flex:1;min-width:0;display:grid;gap:2px}
#explore-panel #places button.place-row .pr-t b{font:700 14.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-ink,#0d1117);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#explore-panel #places button.place-row .pr-t small{font:500 12px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-sub,#5b6472)}
#explore-panel #places button.place-row .pr-go{flex:none;color:var(--ot-sub,#5b6472);font-size:14px}
#explore-panel #places.trim>button:nth-child(n+9){display:none!important}
#explore-panel #more-places{display:block;width:100%;margin:10px 0 4px;min-height:44px;border:0;border-radius:14px;background:var(--ot-soft,#f2f3f7);color:var(--ot-ink,#0d1117);font:700 14px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;cursor:pointer}
#explore-panel #more-places[hidden]{display:none}
/* Keep the list's expanded state for the return trip from a place. */
#explore-content:has(> #detail:not([hidden])) > :is(#search, #count, #more-places){display:none!important}
#explore-panel #count{font-size:11.5px;color:var(--ot-sub,#5b6472)}
/* v936 동네 생활 (owner 11/18 시안 4A): numbers + two short lists, no picture cards on the overview */
.local-sheet .ll-k{margin:12px 2px 2px;font:800 11.5px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:.06em;color:#6b746f}
.local-sheet ul.ll-list{list-style:none;margin:0;padding:0}
.local-sheet .ll-list button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 2px;border:0;border-top:1px solid rgba(22,35,58,.08);background:none;text-align:left;color:#16233a;font-family:inherit;cursor:pointer}
.local-sheet .ll-list li:first-child button{border-top:0}
.local-sheet .ll-list i{flex:none;width:34px;height:34px;border-radius:10px;background:#f1efe8;display:grid;place-items:center;font-style:normal;font-size:16px}
.local-sheet .ll-list span{flex:1;min-width:0;display:grid;gap:2px}
.local-sheet .ll-list b{font:700 14px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.local-sheet .ll-list small{font:500 11.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#6b746f}
.local-sheet .ll-list em{font-style:normal;color:#9aa19c}
.local-sheet .ll-mini b{font-size:22px!important}
/* v937 모험 수첩 (owner 11/18 시안 5A): no level band; open tiles only, locked levels folded into two lines */
body.hud2 .book-row{grid-template-columns:minmax(0,1fr)!important}
body.hud2 .book-row .book-lv{display:none!important}
body.hud2 .book-row.fresh{position:relative}body.hud2 .book-row.fresh::before{content:"NEW";position:absolute;top:-2px;left:2px;z-index:1;padding:1px 5px;border-radius:6px;background:var(--h-ver);color:#fff;font:800 8px/1.3 system-ui,sans-serif}
body.hud2 .book-row.locked{display:none!important}
body.hud2 .ui-book-sheet.show-next .book-row.locked[data-fold="next"],body.hud2 .ui-book-sheet.show-later .book-row.locked[data-fold="later"]{display:grid!important}
body.hud2 .ui-book-sheet .book-fold{display:flex!important;align-items:center;gap:8px;width:100%!important;height:auto!important;min-height:0;margin:6px 0 0;padding:11px 12px!important;border:1px dashed rgba(22,35,58,.22)!important;border-radius:14px!important;background:rgba(255,255,255,.55)!important;color:var(--h-navy);font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;text-align:left;cursor:pointer;transform:none!important}
body.hud2 .book-fold b{flex:none;font:800 13px/1.2 inherit}
body.hud2 .book-fold small{flex:1;min-width:0;font:500 12px/1.2 inherit;color:var(--h-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.hud2 .book-fold i{font-style:normal;color:var(--h-sub);transition:rotate .18s}
body.hud2 .book-fold[aria-expanded="true"] i{rotate:90deg}
/* v939 첫 방문 캐릭터 고르기 (owner 11/18): two big cards, 소녀 · 소년, before the start place */
#start-sheet .ss-step[data-step=who] .ss-head{margin-bottom:14px!important}
#start-sheet .ss-step[data-step=who] .ss-head b{font-size:22px!important}
#start-sheet .ss-who{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
#start-sheet .ss-who>button{display:grid!important;gap:0!important;padding:0 0 12px!important;min-height:0!important;border-radius:20px!important;overflow:hidden;background:#141a26!important;border:2px solid rgba(22,35,58,.14)!important;color:#f6efe2!important;text-align:center;cursor:pointer}
#start-sheet .ss-who>button img{display:block;width:100%;height:auto;aspect-ratio:360/349;object-fit:cover;background:#131821}
#start-sheet .ss-who>button video{display:block;width:100%;height:auto;aspect-ratio:360/349;object-fit:cover;background:#131821}/* v951 moving cards */
#start-sheet .ss-who>button strong{display:block;margin:10px 0 0!important;font:800 18px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
#start-sheet .ss-who>button.hot,#start-sheet .ss-who>button:focus-visible{border-color:#e3b35d!important;box-shadow:0 0 0 3px rgba(227,179,93,.25)}
#start-sheet .ss-who>button:disabled{opacity:.6}
#start-sheet .ss-who>button:active{scale:.98}
#start-sheet .ss-note{margin:12px 2px 0;font:500 12.5px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:rgba(22,35,58,.6);text-align:center}
/* v950: zoomed out, the 내 위치 mark is a ring around your character instead of a disc on top of it */
.me-spot b{width:44px;height:44px;background:transparent!important;border:3px solid #fff;box-shadow:0 0 0 3px rgba(184,67,47,.6),0 0 0 10px rgba(184,67,47,.14),0 4px 14px rgba(0,0,0,.25)!important}

/* v953 첫 방문 (owner 11/19 감사 1번): before the start only the map and the logo are on screen — the HUD waits (visibility keeps the layout the modules measure) */
body:not([data-started]) #world>:not(#map),body:not([data-started]) header>:not(a),body:not([data-started]) .hud-gear,body:not([data-started]) .rail-tip{visibility:hidden!important}
#start-sheet.wait .ss-panel{visibility:hidden}
#start-sheet .ss-kick{display:block;text-align:center;font:800 11px/1 system-ui,-apple-system,sans-serif;letter-spacing:.14em;color:#b8432f;margin:0 0 6px}
#start-sheet .ss-lang{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:-4px 0 14px}
#start-sheet .ss-lang button{display:inline-block!important;width:auto!important;min-height:34px!important;padding:7px 11px!important;border-radius:999px!important;border:1px solid rgba(22,35,58,.16)!important;background:#fff!important;color:#16233a!important;font:700 12.5px/1 system-ui,-apple-system,sans-serif!important;box-shadow:none!important}
#start-sheet .ss-lang button.on{background:#16233a!important;border-color:#16233a!important;color:#fff!important}
#start-sheet .ss-note{font-size:13.5px!important;color:#4a5568!important}
@media(max-width:600px){#start-sheet{padding:10px!important}#start-sheet .ss-step[data-step=who] .ss-who{margin:0 -6px}#start-sheet .ss-who>button video,#start-sheet .ss-who>button img{aspect-ratio:5/6}}
.visit-welcome .vw-lite .vw-body{padding:22px 18px 18px}
.visit-welcome .vw-kick{display:block;font:800 11px/1 system-ui,sans-serif;letter-spacing:.14em;color:#b8432f;margin-bottom:8px}
.visit-welcome .vw-lite .vw-chips{margin-top:14px}
/* v955 HUD 한 줄 (owner 11/19 감사 3번, phones): header = logo + ≡; smaller minimap; the 동네 picker lives in the menu; 44 px targets, 12 px floor; weapon only in a fight */
@media(max-width:720px){
 body.hud2 header{justify-content:space-between}
 .hud-gear{width:44px!important;height:44px!important;margin-left:auto}
 body.hud2 .hud-top{grid-template-columns:52px minmax(0,1fr) auto}
 body.hud2 .hud-top>.mm{width:52px!important}body.hud2 .mm-face{width:52px!important;height:52px!important}body.hud2 .mm-tag{left:26px!important;top:44px!important}
 body.hud2 .hud-top>.map-top:not(:has(.hood-chip)){display:none!important}
 body.hud2 .hud-dock .ui-l{font-size:12px!important}
 body.hud2 .hud-feed small{font-size:12px!important}
 body.hud2 .g-badge .g-lv{font-size:12px!important}body.hud2 .hud-top>.g-hp{font-size:12px!important}
 body.hud2:not(.fighting) .hud-combat>.g-weapon{display:none!important}
 .ui-gear-sheet .gear-acct{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 10px}
 .ui-gear-sheet .gear-acct button{width:100%!important;max-width:none!important;min-height:44px;margin:0!important;padding:10px 8px!important;border-radius:12px!important;overflow:visible!important;font:700 14px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;white-space:nowrap!important}
 .ui-gear-sheet .gear-dong{display:grid;gap:5px;margin:0 0 12px;font:800 11px/1 system-ui,-apple-system,sans-serif;letter-spacing:.08em;color:#b8432f}
 .ui-gear-sheet .gear-dong .hood-chip{display:flex!important;align-items:center;gap:8px;width:100%!important;max-width:none!important;min-height:44px!important;height:auto!important;padding:0 12px!important;border-radius:12px!important;border:1px solid rgba(22,35,58,.16)!important;background:#fff!important;color:#16233a!important;font:700 15px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;box-shadow:none!important;letter-spacing:0!important;text-transform:none!important}
}
/* v956 내 이름 (nickname sheet from my own name tag) */
.me-sheet .me-form{display:flex;gap:8px;padding:14px 16px 4px}.me-sheet .me-form input{flex:1;min-width:0;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid rgba(22,35,58,.16);font:700 16px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#16233a;background:#fff}
.me-sheet .me-form button{min-height:44px;padding:0 14px;border-radius:12px;border:0;background:#16233a;color:#fff;font:800 14px/1 system-ui,sans-serif}
.me-sheet .me-note{margin:4px 16px 10px;font-size:12.5px;color:#6b746f}
.me-sheet .me-acts{display:flex;gap:8px;padding:0 16px 16px}.me-sheet .me-acts button{flex:1;min-height:44px;border-radius:12px;font:800 14px/1 system-ui,sans-serif}.me-sheet .me-login{background:#b8432f!important;color:#fff!important;border:0!important}
/* v958: when autoplay is refused (iOS Low Power Mode) the pick cards wear a ▶ until the first touch */
#start-sheet.ss-noplay .ss-who>button{position:relative}#start-sheet.ss-noplay .ss-who>button::after{content:"▶";position:absolute;left:50%;top:42%;translate:-50% -50%;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.9);color:#16233a;display:grid;place-items:center;font:800 16px/1 system-ui,sans-serif;padding-left:3px;box-sizing:border-box;box-shadow:0 4px 14px rgba(0,0,0,.25);pointer-events:none}
/* v959 내 캐릭터 (owner 11/19 캐릭터 A): paper sheet, the two moving cards, the 3D stage behind a toggle */
#characters{background:#fbf8f2!important;color:#16233a!important;border:0!important;border-radius:24px!important;box-shadow:0 30px 70px rgba(0,0,0,.35)!important;width:min(520px,94vw)!important;padding:18px 18px 16px!important}
#characters .intro small{color:#b8432f!important;letter-spacing:.12em!important;font:800 11px/1 system-ui,-apple-system,sans-serif!important}
#characters .intro h1{color:#16233a!important;font:900 22px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;letter-spacing:-.02em!important;margin:6px 0 0!important}
#characters #close-characters{background:#fff!important;border:1px solid rgba(22,35,58,.14)!important;color:#16233a!important;border-radius:999px!important;min-height:36px}
#characters .ch-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
#characters .ch-cards>button{display:grid;gap:0;padding:0 0 10px!important;border:2px solid transparent!important;border-radius:18px!important;overflow:hidden;background:#141a26!important;color:#fff!important;text-align:center;position:relative;box-shadow:none!important}
#characters .ch-cards>button.on{border-color:#b8432f!important}
#characters .ch-cards>button.on::before{content:"✓";position:absolute;right:8px;top:8px;z-index:1;width:24px;height:24px;border-radius:50%;background:#b8432f;color:#fff;display:grid;place-items:center;font:800 13px/1 system-ui,sans-serif}
#characters .ch-clip{display:block;width:100%;height:auto;aspect-ratio:5/6;object-fit:cover;background:#131821}
#characters .ch-cards strong{display:block;margin:8px 8px 0;font:800 15px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
#characters .ch-cards em{display:block;margin:3px 8px 0;font:500 10.5px/1.35 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;font-style:normal;color:rgba(255,255,255,.72)}
#characters .ch-3d{display:block;margin:10px auto 0;padding:9px 14px!important;border-radius:999px!important;border:1px solid rgba(22,35,58,.16)!important;background:#fff!important;color:#16233a!important;font:700 12.5px/1 system-ui,-apple-system,sans-serif!important;min-height:36px}
#characters:not(.show3d) .selection-stage,#characters:not(.show3d) .stage-copy{display:none!important}
#characters .stage-copy p,#characters #character-note,#characters small{color:#5b6472!important}
#characters .stage-copy{margin-top:8px!important}#characters .stage-copy h2{color:#16233a!important;text-shadow:none!important;font:800 20px/1.2 system-ui,-apple-system,sans-serif!important}
#characters #character-index{color:#b8432f!important}
#characters #start{background:#16233a!important;color:#fff!important;border:0!important;border-radius:14px!important;min-height:52px;font:800 16px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important}
#characters #start:disabled{opacity:.5}
#characters .pet-pick{display:none!important}
#characters .outfit-pick{background:#fff!important;border:1px solid rgba(22,35,58,.12)!important;border-radius:14px!important;color:#16233a!important}#characters .outfit-pick b{color:#16233a!important}#characters .outfit-pick small{color:#5b6472!important}
#characters #character-prev,#characters #character-next,#characters #motion-controls button{background:#fff!important;border:1px solid rgba(22,35,58,.14)!important;color:#16233a!important}
#characters #motion-controls button[aria-pressed="true"]{background:#16233a!important;color:#fff!important}
/* v960 출발지 여섯 갈래 (owner 11/19 시안) */
#start-sheet .ss-six{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 4px}
#start-sheet .ss-six>button{display:grid!important;gap:2px;justify-items:start;min-height:72px;padding:9px 10px!important;border-radius:14px!important;border:2px solid transparent!important;background:#f3ede2!important;color:#16233a!important;text-align:left;box-shadow:none!important}
#start-sheet .ss-six>button i{font-style:normal;font-size:16px;line-height:1}
#start-sheet .ss-six>button b{font:800 12.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
#start-sheet .ss-six>button small{font:500 10.5px/1.25 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#6b746f;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%}
#start-sheet .ss-six>button.on{border-color:#b8432f!important;background:#fff!important}
#start-sheet .ss-six>button:disabled{opacity:.45}
#start-sheet .ss-six~.ss-cards{display:none!important}
#start-sheet .ss-six~.ss-go [data-start=more]{display:none!important}/* v961: 다른 곳 only unfolded the hidden single card */
#start-sheet .ss-six~.ss-go .ss-go-btn{flex:1 1 100%}
#start-sheet .ss-step[data-step=start] .ss-head{margin-bottom:12px!important}
@media(max-width:380px){#start-sheet .ss-six{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v962 탭 A (owner 11/19 시안): phones — four equal tabs 지도 · 장소 · 퀘스트 · 내 것, the chosen one filled, a dot for news; the quest sheet */
@media(max-width:720px){
 body.hud2 .hud-dock>.hud-explore{flex:1 1 0!important;height:52px!important;margin-top:0!important;border-radius:16px!important;background:transparent!important;color:var(--h-navy)!important;box-shadow:none!important}
 body.hud2 .hud-dock>.hud-explore .ui-i{width:22px!important;height:22px!important;stroke-width:1.7!important}
 body.hud2 .hud-dock>.hud-explore .ui-l{color:var(--h-sub)!important;font-weight:650!important;font-size:12px!important}
 body.hud2 .hud-dock>.hud-explore:active{translate:none!important;box-shadow:none!important;scale:.94}
 body.hud2 .hud-dock>button[data-dock="0"]{order:1}body.hud2 .hud-dock>.hud-places{order:2}body.hud2 .hud-dock>.hud-explore{order:3}body.hud2 .hud-dock>.ui-book{order:4}
 body.hud2 .hud-dock>button.on,body.hud2 .hud-dock>button[aria-expanded="true"],body.hud2 .hud-dock>.hud-explore.on{background:#f3ede2!important;border-radius:14px!important}
 body.hud2 .hud-dock>button.on::before{display:none}
 body.hud2 .hud-dock>button.on .ui-l,body.hud2 .hud-dock>.hud-explore.on .ui-l{color:var(--h-navy)!important;font-weight:800!important}
 .ui-quest-sheet .q-list{display:grid;gap:6px;padding:4px 0 8px}
 .ui-quest-sheet .q-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;width:100%!important;min-height:52px;height:auto!important;margin:0!important;padding:9px 12px!important;border-radius:14px!important;border:1px solid var(--h-line)!important;background:#fff!important;color:var(--h-navy)!important;box-shadow:none!important}
 .ui-quest-sheet .q-row span{min-width:0}
 .ui-quest-sheet .q-row b{display:block;font:800 13.5px/1.25 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ui-quest-sheet .q-row small{display:block;margin-top:2px;font:500 11.5px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--h-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ui-quest-sheet .q-row em{font:800 12px/1 system-ui,-apple-system,sans-serif;font-style:normal;color:#fff;background:var(--h-ver);border-radius:999px;padding:8px 11px;white-space:nowrap}
 .ui-quest-sheet .q-empty{margin:0;padding:6px 4px 10px;font-size:12.5px;color:var(--h-sub)}
 .ui-quest-sheet .q-foot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-top:1px solid var(--h-line);padding-top:8px}
}
/* v969 전투 한 손 규칙: thumb stick bottom-left while fighting, tabs dimmed */
body.hud2 .fight-stick{position:absolute;z-index:8;left:calc(16px + env(safe-area-inset-left,0px));bottom:calc(var(--h-dock) + 30px + var(--h-safe-b));width:112px;height:112px;border-radius:50%;border:1px solid var(--h-line);background:rgba(255,253,248,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(22,35,58,.18);display:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
body.hud2 .fight-stick i{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:var(--h-navy);box-shadow:0 3px 10px rgba(22,35,58,.3);transition:transform .05s linear}
body.hud2 .fight-stick.on{background:rgba(255,253,248,.75)}
body.hud2.fighting .fight-stick{display:block}
body.hud2.fighting .hud-dock{opacity:.45;transition:opacity .25s}
/* v973 녹화용 ?hud=0: only the map and the walkers stay on screen */
html.hud-off #world>:not(#map),html.hud-off #explore-panel,html.hud-off header,html.hud-off .hud-gear,html.hud-off .tutorial,html.hud-off .ui-group-panel,html.hud-off .rail-tip,html.hud-off .visit-welcome,html.hud-off .maplibregl-ctrl-attrib{visibility:hidden!important}
html.hud-off #start-sheet{visibility:visible!important}
/* v975 품질 패스: my name tag and the status line in the paper palette (the yellow pill and the navy block pulled the eye off the city) */
.live-tag.me .live-name{background:#fffdf8!important;color:#16233a!important;border:1px solid rgba(22,35,58,.2)!important;font-size:11.5px!important;box-shadow:0 2px 6px rgba(22,35,58,.15)}
body.hud2 .hud-feed>#status{background:rgba(255,253,248,.94)!important;color:#16233a!important;border-left:3px solid #b8432f!important;box-shadow:0 2px 8px rgba(22,35,58,.1)}
/* 웹 화면 (v913, owner 11/16 "(나)야 … 이 시안대로"): on a computer (≥ 1100 px) the map game becomes a web page — a
   400 px sidebar on the left that is always open (장소 · 동네 생활 · 여행 친구 · 수첩), the level, money, weather and
   neighbourhood in the top bar, wider alert cards in the middle of the map, a keyboard guide top-right, the minimap and
   my land bottom-left of the map, attack bottom-right. Phones and tablets keep their layout (nothing here applies). */
@media (min-width: 1100px) {
  body.hud2.wide { --side: 400px; --top: 58px; }
  /* the map area starts right of the sidebar */
  body.hud2.wide main { margin-left: var(--side) !important; width: calc(100vw - var(--side)) !important; }
  /* the top bar's level · neighbourhood · weather live in the map's layer but sit on the header row, so the map layer goes above the header (it never covers it otherwise: main starts below) */
  body.hud2.wide header { position: relative; z-index: 1; }
  body.hud2.wide main { position: relative; z-index: 2; }

  /* ---- top bar: neighbourhood, level · money, weather join the logo row ---- */
  body.hud2.wide .hud-top > .map-top { position: fixed !important; top: 9px !important; left: 214px !important; width: 300px !important; z-index: 75 !important; }
  body.hud2.wide .hud-top > .map-top select, body.hud2.wide .hood-chip { height: 40px !important; font-size: 15px !important; }
  body.hud2.wide .hud-top > .g-badge { position: fixed !important; top: 6px !important; left: 528px !important; width: 260px !important; height: 46px !important; z-index: 75 !important; }
  body.hud2.wide .hud-top > #weather { position: fixed !important; top: 9px !important; left: 800px !important; width: 64px !important; height: 40px !important; z-index: 75 !important; }
  body.hud2.wide .hud-top > .g-hp { position: fixed !important; top: 62px !important; left: calc(var(--side) + 16px) !important; z-index: 40 !important; }

  /* ---- sidebar: the 장소 찾기 panel, always open, full height ---- */
  body.hud2.wide #explore-panel { position: fixed !important; left: 0 !important; right: auto !important; top: var(--top) !important; bottom: 0 !important; width: var(--side) !important; max-width: none !important; height: auto !important; max-height: none !important;
    transform: none !important; visibility: visible !important; pointer-events: auto !important; border-radius: 0 !important; border: 0 !important; border-right: 1px solid rgba(22,35,58,.1) !important;
    box-shadow: none !important; background: #fbf8f1 !important; color: #16233a !important; z-index: 50 !important; display: flex !important; flex-direction: column !important; padding: 0 !important; overflow: hidden !important; }
  body.hud2.wide #panel-toggle { display: none !important; }
  body.hud2.wide #explore-content { display: flex !important; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 0 16px 92px !important; }
  body.hud2.wide #explore-content[hidden] { display: flex !important; }
  body.hud2.wide #search { font-size: 15px !important; padding: 12px 14px !important; border-radius: 12px !important; }
  body.hud2.wide #places { font-size: 15px !important; }
  /* tabs on top of the sidebar */
  .wide-tabs { display: none; }
  body.hud2.wide .wide-tabs { display: flex; gap: 4px; padding: 14px 16px 10px; flex: none; }
  body.hud2.wide .wide-tabs button { flex: 1; padding: 9px 0; border: 0; border-radius: 10px; background: transparent; color: #6a6f68; font: 700 14px/1 system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif; cursor: pointer; }
  body.hud2.wide .wide-tabs button[aria-pressed="true"] { background: #16233a; color: #fff; }
  body.hud2.wide .wide-tabs button:focus-visible { outline: 2px solid #b8432f; outline-offset: 2px; }

  /* every bottom sheet (동네 생활, 여행 친구, 숙소 주변, 하루 코스, 장소 카드) opens in the sidebar instead */
  body.hud2.wide .stay-sheet, body.hud2.wide .stay-card { position: fixed !important; left: 0 !important; right: auto !important; top: calc(var(--top) + 56px) !important; bottom: 0 !important; width: var(--side) !important; max-width: none !important;
    max-height: none !important; margin: 0 !important; border-radius: 0 !important; box-shadow: 8px 0 30px rgba(22,35,58,.08) !important; z-index: 55 !important; animation: none !important; }
  body.hud2.wide .stay-card { display: block !important; background: #fffdf8 !important; overflow: auto !important; padding: 0 !important; }
  body.hud2.wide .stay-card .sc-in { width: 100% !important; max-width: none !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
  body.hud2.wide .stay-sheet .ss2-grab { display: none !important; }

  /* the bottom dock sits at the foot of the sidebar */
  body.hud2.wide .map-actions.hud-dock { position: fixed !important; left: 0 !important; bottom: 0 !important; translate: none !important; width: var(--side) !important; height: 80px !important; border-radius: 0 !important;
    justify-content: space-around !important; background: #fbf8f1 !important; border: 0 !important; border-top: 1px solid rgba(22,35,58,.1) !important; box-shadow: none !important; z-index: 58 !important; padding: 8px 12px !important; }
  body.hud2.wide .ui-group-panel { left: calc(var(--side) + 16px) !important; bottom: 96px !important; }

  /* ---- the map: wide cards in the middle at the top, minimap + my land bottom-left, keys top-right ---- */
  body.hud2.wide .hud-top { top: 16px !important; left: 16px !important; right: 16px !important; }
  body.hud2.wide .hud-top > .hud-feed { left: 50% !important; right: auto !important; translate: -50% 0 !important; width: 560px !important; max-width: calc(100% - 420px) !important; top: 0 !important; }
  body.hud2.wide .hud-feed > * { max-width: 100% !important; width: 100% !important; font-size: 15px; }
  body.hud2.wide .hud-feed b { font-size: 16px !important; }
  body.hud2.wide .hud-top > .mm { position: fixed !important; left: calc(var(--side) + 18px) !important; bottom: 20px !important; top: auto !important; }
  body.hud2.wide .hud-top > .mm.big { top: auto !important; bottom: 20px !important; left: calc(var(--side) + 18px) !important; }
  body.hud2.wide .hud-top > .land-pill { position: fixed !important; left: calc(var(--side) + 182px) !important; bottom: 22px !important; top: auto !important; width: 280px !important; }
  body.hud2.wide .map-bottom { display: none !important; }
  .wide-keys { display: none; }
  body.hud2.wide .wide-keys { display: block; position: absolute; right: 18px; top: 16px; z-index: 30; padding: 10px 14px; border-radius: 12px; background: rgba(22,35,58,.82); color: #fff; font: 500 12.5px/1.75 system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif; pointer-events: none; }
  body.hud2.wide .wide-keys b { display: inline-block; min-width: 22px; padding: 0 6px; margin-right: 4px; border-radius: 5px; background: rgba(255,255,255,.18); text-align: center; font-weight: 700; }
  body.hud2.wide .action-cluster.hud-combat { right: 24px !important; bottom: 24px !important; }
  body.hud2.wide .dl-check { left: calc(50% + var(--side) / 2) !important; top: auto !important; bottom: 120px !important; } /* below the character, clear of the alert cards */
}
@media (min-width: 1100px) {
  body.hud2.wide .hud-dock > button { width: 78px !important; height: 60px !important; flex: 0 0 auto !important; }
  body.hud2.wide .hud-dock > .hud-explore { width: 96px !important; height: 66px !important; }
}
@media (min-width: 1100px) {
  /* 수첩 opens in the sidebar too */
  body.hud2.wide .ui-group-panel.ui-book-sheet { left: 0 !important; right: auto !important; top: calc(var(--top) + 56px) !important; bottom: 80px !important; width: var(--side) !important; max-width: none !important;
    max-height: none !important; overflow: auto !important; border-radius: 0 !important; translate: none !important; transform: none !important; box-shadow: 8px 0 30px rgba(22,35,58,.08) !important; z-index: 55 !important; }
}
@media(hover:hover) and (pointer:fine){body.hud2.wide .wide-tabs button:hover{background:#f1ece0;color:#16233a}}
