/* 넷항해시대(netsail 모듈) 기본 스킨 — 티드립 색(초록 · 레몬 · 코랄 · 먹색)과 Noto Sans KR. 크림색 · 세리프 · 둥근 카드 겹겹이를 쓰지 않는다.
   판(흰 바탕) 색은 사이트에 티드립 토큰(--td-*)이 있으면 따라 밝은 · 어두운 화면이 바뀌고, 없으면 괄호 안 기본값. 강조색(--ns-accent)은 관리자 설정 */
.netsail {
  --ns-accent: #008741;
  --ns-accent-dark: color-mix(in srgb, var(--ns-accent) 72%, #000);
  --ns-ink: #141A16; --ns-ink-2: #232B26; --ns-ink-3: #34403A;
  --ns-lemon: #FFE15A; --ns-coral: #F0533F; --ns-sky: #2F7DE1;
  --ns-sea: #2563B8; --ns-land: #3E9B63; --ns-land-dark: #2B744A; --ns-sand: #F2D46B;
  --ns-paper: var(--td-surface, #FFFFFF); --ns-paper-2: var(--td-surface-2, #F8F9F6); --ns-paper-3: var(--td-surface-3, #EEF0EB);
  --ns-line: var(--td-line, #E4E7E0); --ns-line-2: var(--td-line-strong, #D2D7CE);
  --ns-text: var(--td-text, #141A16); --ns-text-2: var(--td-text-2, #47504A); --ns-muted: var(--td-text-3, #687069);
  --ns-up: var(--td-brand-text, #007A3B); --ns-down: var(--td-hot-text, #C53A27);
  display: grid; gap: 14px; color: var(--ns-text); font-family: "Noto Sans KR", var(--td-font, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif); letter-spacing: -0.01em; }
.netsail * { box-sizing: border-box; }
.netsail.is-busy { cursor: progress; }
.ns__boot { display: grid; justify-items: center; gap: 12px; padding: 80px 20px; color: var(--ns-muted); text-align: center; }
.ns__boot-ship { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--ns-line); border-top-color: var(--ns-accent); animation: ns-spin 1s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }

/* 아이콘 · 초상 */
.ns-i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ns-i--inline { width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px; }
.ns-face { display: block; width: 100%; height: 100%; }
.ns-avatar, .ns-face-wrap { display: block; flex: none; overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-paper-3); }
.ns-avatar { width: 46px; height: 46px; }
.ns-avatar--sm { width: 34px; height: 34px; border-radius: 9px; }
.ns-avatar--lg { width: 72px; height: 72px; border-radius: 16px; }
.ns-face-wrap { width: 64px; height: 64px; border-radius: 14px; }

/* 단추: 꽉 찬 색 + 아래 그림자(누르는 느낌). 그러데이션 없음 */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 2px solid var(--ns-ink); border-radius: 10px; background: var(--ns-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 0 var(--ns-ink); text-decoration: none; transition: transform .08s, box-shadow .08s, filter .15s; }
.ns-btn:hover { filter: brightness(1.06); color: #fff; }
.ns-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ns-ink); }
.ns-btn:disabled { background: var(--ns-paper-3); color: var(--ns-muted); border-color: var(--ns-line-2); box-shadow: none; cursor: not-allowed; filter: none; transform: none; }
.ns-btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.ns-btn--ghost { background: var(--ns-paper); color: var(--ns-text); }
.ns-btn--ghost:hover { color: var(--ns-text); }
.ns-btn--sell { background: var(--ns-coral); }
.ns-btn--go { width: 100%; height: 50px; font-size: 16px; font-weight: 900; }
.ns-btn--go .ns-i { width: 22px; height: 22px; }
.ns-btn.is-armed { background: var(--ns-coral); animation: ns-armed .9s ease-in-out infinite; }
@keyframes ns-armed { 50% { filter: brightness(1.15); } }
.ns-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ns-muted); cursor: pointer; }
.ns-x:hover { background: var(--ns-paper-3); color: var(--ns-text); }
.ns-link { padding: 0; border: 0; background: none; color: var(--ns-muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.ns-muted { margin: 0; color: var(--ns-muted); font-size: 13px; line-height: 1.6; }
.ns-right { margin: 6px 0 0; text-align: right; }
.ns-center { text-align: center; }

/* 상단 먹색 띠: 선장 · 살림 · 위치 */
.ns-game { display: grid; gap: 12px; }
.ns-hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--ns-ink); color: #fff; --ns-ic-on: var(--ns-ink); }
.ns-hud__cap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ns-hud__cap .ns-avatar { border-color: var(--ns-lemon); background: var(--ns-ink-2); }
.ns-hud__cap b { display: block; font-size: 15px; font-weight: 900; }
.ns-hud__cap small { display: block; color: #C9D1CB; font-size: 12px; }
.ns-hud__bar { display: block; width: 140px; height: 5px; margin-top: 5px; border-radius: 3px; background: var(--ns-ink-3); overflow: hidden; }
.ns-hud__bar > i { display: block; height: 100%; background: var(--ns-lemon); }
.ns-hud__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ns-hud__stats > span { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 9px; border-radius: 8px; background: var(--ns-ink-2); color: #fff; font-variant-numeric: tabular-nums; }
.ns-hud__stats .ns-i { width: 16px; height: 16px; color: #9FB0A6; align-self: center; }
.ns-hud__stats b { font-size: 14px; font-weight: 700; }
.ns-hud__stats small { color: #9FB0A6; font-size: 11px; }
.ns-hud__stats .is-gold .ns-i, .ns-hud__stats .is-gold b { color: var(--ns-lemon); }
.ns-hud__where { display: flex; align-items: center; gap: 6px; text-align: right; }
.ns-hud__where .ns-i { width: 20px; height: 20px; color: var(--ns-coral); }
.ns-hud__where small { display: block; color: #9FB0A6; font-size: 11px; }
.ns-hud__where b { display: block; color: var(--ns-lemon); font-size: 16px; font-weight: 900; }

/* 지도: 파란 바다 · 초록 땅 · 모래 해안 */
.ns-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 12px; align-items: start; }
.ns-map { position: relative; height: min(68vh, 640px); min-height: 380px; overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 14px; background: var(--ns-sea); touch-action: none; }
.ns-map__svg { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; }
.ns-map__svg:active { cursor: grabbing; }
.ns-sea { fill: var(--ns-sea); }
.ns-grid line { stroke: rgba(255, 255, 255, .1); stroke-width: calc(1px * var(--k, 1)); }
.ns-grid line.is-eq { stroke: rgba(255, 225, 90, .35); stroke-dasharray: 6 6; }
.ns-land { fill: var(--ns-land); stroke: var(--ns-sand); stroke-width: 1.4; paint-order: stroke; }
/* 도트 지도: 바다 · 육지는 PNG 한 장(확대하면 도트가 커진다). 글자 · 점은 확대와 상관없이 같은 크기(--u = 화면 1px 의 지도 단위) */
.ns-mappx { image-rendering: crisp-edges; image-rendering: pixelated; }
.ns-map__svg.is-pixel .ns-land { display: none; }
/* 1번 처음 지도: 남색 바다 · 양피지 육지 · 옅은 물결과 위경선 */
.ns-map[data-style="1"] { background: #0B2A4F; }
.ns-map__svg[data-style="1"] .ns-sea { fill: url(#ns-deep); }
.ns-map__svg[data-style="1"] .ns-wave { opacity: .45; }
.ns-map__svg[data-style="1"] .ns-land { fill: url(#ns-parch); stroke: #A8925E; stroke-width: calc(var(--u, .5) * 1px); }
.ns-map__svg[data-style="1"] .ns-grid line { stroke: rgba(241, 228, 196, .08); }
.ns-map__svg[data-style="1"] .ns-grid line.is-eq { stroke: rgba(241, 228, 196, .2); }
.ns-map__svg[data-style="1"] .ns-region { fill: rgba(241, 228, 196, .55); stroke: none; }
.ns-map__svg:not(.is-pixel) .ns-mappx { display: none; }
.ns-map__ctrl .ns-map__style { position: relative; }
.ns-map__style b { position: absolute; right: 2px; bottom: 1px; font-size: 10px; font-weight: 900; line-height: 1; }
.ns-map__svg.is-pixel .ns-grid line { stroke: rgba(255, 255, 255, .07); }
.ns-region { fill: rgba(255, 255, 255, .82); font-family: "Noto Sans KR", sans-serif; font-size: calc(var(--u, .5) * 11px); font-weight: 700; letter-spacing: .16em; text-anchor: middle; paint-order: stroke; stroke: rgba(20, 26, 22, .45); stroke-width: calc(var(--u, .5) * 2.5px); stroke-linejoin: round; pointer-events: none; }
.ns-port__in { transform: scale(var(--u, .5)); }
.ns-port { cursor: pointer; }
.ns-port__hit { fill: transparent; }
.ns-port__dot { fill: #fff; stroke: var(--ns-ink); stroke-width: 2; shape-rendering: crispEdges; }
.ns-port:hover .ns-port__dot { fill: var(--ns-lemon); }
.ns-port__name { display: none; fill: var(--ns-ink); font-family: "Noto Sans KR", sans-serif; font-size: 10px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.is-zoomed .ns-port__name, .ns-port.is-here .ns-port__name, .ns-port.is-sel .ns-port__name, .ns-port.is-dest .ns-port__name { display: block; }
.ns-port__dot { transform-box: fill-box; transform-origin: center; }
.ns-port.is-here .ns-port__dot { transform: scale(1.5); fill: var(--ns-lemon); }
.ns-port.is-sel .ns-port__dot, .ns-port.is-dest .ns-port__dot { transform: scale(1.5); fill: var(--ns-coral); }
.ns-port.is-here .ns-port__name, .ns-port.is-sel .ns-port__name, .ns-port.is-dest .ns-port__name { font-weight: 900; }
.ns-port.is-quest::after { content: none; }
.ns-route { fill: none; stroke: #fff; stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.ns-route.is-sailing { stroke: var(--ns-lemon); stroke-width: 2.6; animation: ns-dash 1.2s linear infinite; }
@keyframes ns-dash { to { stroke-dashoffset: -22; } }
.ns-fleet { pointer-events: none; transition: opacity .25s; }
.ns-fleet.is-hidden { opacity: 0; }
/* 지도에 마우스를 올리면 배는 반투명해져 밑의 섬 · 항구가 보인다(항구는 배보다 위 층이라 늘 누를 수 있다) */
.ns-map:hover .ns-fleet:not(.is-hidden) { opacity: .4; }
.ns-fleet__body > g { transform-box: fill-box; transform-origin: 50% 90%; }
.ns-fleet.is-sailing .ns-fleet__body > g { animation: ns-bob 1.6s steps(1) infinite; }
@keyframes ns-bob { 50% { transform: translateY(-2px); } }
.ns-compass text { fill: var(--ns-lemon); font-family: "Noto Sans KR", sans-serif; font-size: 14px; font-weight: 900; }
.ns-map__ctrl { position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; gap: 6px; --ns-ic-on: var(--ns-ink); }
.ns-map__ctrl button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 2px solid var(--ns-ink); border-radius: 10px; background: #fff; color: var(--ns-ink); cursor: pointer; box-shadow: 0 2px 0 var(--ns-ink); }
.ns-map__ctrl button:active { transform: translateY(1px); box-shadow: none; }
.ns-map__ctrl .ns-i { width: 20px; height: 20px; }
.ns-map__hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; background: var(--ns-ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }

/* 오른쪽 판: 항구 풍경 · 장소 탭 · 사람 · 목록(카드를 겹치지 않고 줄로 나눈다) */
.ns-side { display: grid; overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 14px; background: var(--ns-paper); }
.ns-scene { position: relative; }
.ns-harbor-wrap { position: relative; height: 150px; overflow: hidden; }
.ns-harbor { display: block; width: 100%; height: 100%; }
.ns-harbor__wave { animation: ns-wave 3.2s ease-in-out infinite; }
@keyframes ns-wave { 50% { transform: translateX(6px); } }
.ns-harbor__ships { position: absolute; left: 6%; bottom: 4px; display: flex; gap: 2px; }
.ns-harbor__ship { width: 76px; animation: ns-bob 2.4s steps(1) infinite; animation-delay: calc(var(--i) * -.6s); }
.ns-ship { shape-rendering: crispEdges; }
.ns-harbor__ship .ns-ship, .ns-shipcard__art .ns-ship, .ns-shopitem__art .ns-ship, .ns-voyage__ship .ns-ship, .ns-intro__ship .ns-ship { display: block; width: 100%; height: auto; }
.ns-scene__name { position: absolute; left: 12px; bottom: 10px; padding: 5px 12px 6px; border: 2px solid var(--ns-ink); border-radius: 10px; background: #fff; color: var(--ns-ink); }
.ns-scene__name small { display: block; color: #687069; font-size: 11px; font-weight: 700; }
.ns-scene__name h2 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.2; }
.ns-scene__idx { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 8px; background: var(--ns-ink); color: var(--ns-lemon); font-size: 12px; font-weight: 700; }
.ns-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ns-ink); border-bottom: 1px solid var(--ns-line); background: var(--ns-paper); }
.ns-tabs button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 2px 8px; border: 0; background: none; color: var(--ns-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ns-tabs button .ns-i { width: 22px; height: 22px; }
.ns-tabs button[aria-selected="true"] { color: var(--ns-text); }
.ns-tabs button[aria-selected="true"] .ns-i { color: var(--ns-accent); }
.ns-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ns-accent); }
.ns-tabs button.has-quest::before { content: "!"; position: absolute; top: 4px; right: 18%; display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--ns-ink); border-radius: 50%; background: var(--ns-lemon); color: var(--ns-ink); font-size: 11px; font-weight: 900; }
.ns-body { display: grid; }

/* 그 장소 사람: 초상 + 말풍선 */
.ns-npc { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--ns-paper-2); border-bottom: 1px solid var(--ns-line); }
.ns-npc__talk { position: relative; flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-paper); }
.ns-npc__talk::before { content: ""; position: absolute; left: -9px; top: 18px; width: 14px; height: 14px; border-left: 2px solid var(--ns-ink); border-bottom: 2px solid var(--ns-ink); background: var(--ns-paper); transform: rotate(45deg); }
.ns-npc__name { display: inline-block; margin-bottom: 3px; color: var(--ns-accent); font-size: 12px; font-weight: 900; }
.ns-npc__talk p { margin: 0; font-size: 14px; line-height: 1.6; }
.ns-npc__talk p b { color: var(--ns-up); }
.ns-npc__step { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ns-lemon); color: var(--ns-ink); font-size: 11px; font-weight: 900; }

/* 목록 묶음 */
.ns-sec { position: relative; padding: 14px; border-bottom: 1px solid var(--ns-line); }
.ns-sec:last-child { border-bottom: 0; }
.ns-sec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ns-sec h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 900; }
.ns-sec h3 .ns-i { color: var(--ns-accent); }
.ns-sec h3 small { margin-left: 4px; color: var(--ns-muted); font-size: 12px; font-weight: 500; }
.ns-sec__x { position: absolute; right: 8px; top: 8px; }
.ns-rows { display: grid; }
.ns-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px dashed var(--ns-line); }
.ns-rows > .ns-row:first-child, .ns-sec > .ns-row:first-of-type { border-top: 0; }
.ns-row__name { min-width: 0; }
.ns-row__name b { font-size: 14px; font-weight: 700; }
.ns-row__name small { display: block; margin-top: 1px; color: var(--ns-muted); font-size: 12px; line-height: 1.45; }
.ns-row__name em { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 700; }
.ns-row__name em.is-up { background: #E8F5ED; color: #007A3B; }
.ns-row__name em.is-down { background: #FFECE8; color: #C53A27; }
.ns-row__price { min-width: 64px; text-align: right; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ns-row__price small { margin-left: 2px; color: var(--ns-muted); font-size: 11px; font-weight: 500; }
.ns-row__price.is-up small { color: var(--ns-up); font-weight: 700; }
.ns-row__price.is-down small { color: var(--ns-down); font-weight: 700; }
.ns-step { display: inline-flex; align-items: center; height: 34px; border: 1.5px solid var(--ns-line-2); border-radius: 9px; overflow: hidden; background: var(--ns-paper); }
.ns-step button { display: grid; place-items: center; width: 28px; height: 100%; padding: 0; border: 0; background: none; color: var(--ns-text-2); cursor: pointer; }
.ns-step button .ns-i { width: 14px; height: 14px; }
.ns-step input { width: 44px; height: 100%; padding: 0; border: 0; border-left: 1px solid var(--ns-line); border-right: 1px solid var(--ns-line); background: none; color: var(--ns-text); font: inherit; font-size: 13px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.ns-step input::-webkit-inner-spin-button, .ns-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ns-step .ns-step__max { width: auto; padding: 0 8px; border-left: 1px solid var(--ns-line); font-size: 11px; font-weight: 700; }

/* 항해 계획 */
.ns-plan__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ns-plan__nums span { padding: 8px 10px; border-radius: 10px; background: var(--ns-paper-3); }
.ns-plan__nums small { display: block; color: var(--ns-muted); font-size: 11px; font-weight: 700; }
.ns-plan__nums b { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ns-plan__nums b i { margin-left: 1px; font-size: 11px; font-style: normal; font-weight: 500; color: var(--ns-muted); }
.ns-plan__nums .is-bad { background: #FFECE8; }
.ns-plan__nums .is-bad b { color: #C53A27; }
.ns-warn { margin: 0 0 10px; padding: 9px 12px; border-left: 4px solid var(--ns-coral); border-radius: 0; background: #FFF4F1; color: #8A2617; font-size: 13px; line-height: 1.55; }
.ns-stop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ns-stop p { flex: 1 1 220px; margin: 0; }
.ns-style { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ns-style label { cursor: pointer; }
.ns-style input { position: absolute; opacity: 0; pointer-events: none; }
.ns-style span { display: grid; gap: 2px; height: 100%; padding: 8px 9px; border: 2px solid var(--ns-line); border-radius: 10px; }
.ns-style b { font-size: 13px; font-weight: 900; }
.ns-style small { color: var(--ns-muted); font-size: 11px; line-height: 1.4; }
.ns-style input:checked + span { border-color: var(--ns-ink); background: var(--ns-lemon); color: var(--ns-ink); }
.ns-style input:checked + span small { color: #4A4A2A; }
.ns-style input:focus-visible + span { outline: 3px solid var(--ns-accent); outline-offset: 1px; }
.ns-plan__goods { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 10px; }
.ns-plan__goods small { width: 100%; color: var(--ns-muted); font-size: 12px; font-weight: 700; }
.ns-plan__goods span { padding: 3px 8px; border-radius: 6px; background: var(--ns-paper-3); font-size: 12px; }
.ns-plan__goods span b { font-weight: 900; }
.ns-plan__goods .is-up { background: #E8F5ED; color: #00602E; }
.ns-plan__goods .is-down { background: #FFECE8; color: #9E2A1B; }

/* 함대 · 배 가게 · 장비 */
.ns-fleetlist { display: grid; gap: 8px; }
.ns-shipcard { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--ns-line); border-radius: 12px; }
.ns-shipcard__art { display: block; padding: 2px; border-radius: 9px; background: #A9D7FA; }
.ns-shipcard b { font-size: 14px; font-weight: 900; }
.ns-shipcard small { display: block; color: var(--ns-muted); font-size: 12px; }
.ns-hp { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--ns-paper-3); overflow: hidden; }
.ns-hp > i { display: block; height: 100%; background: var(--ns-accent); }
.ns-hp.is-low > i { background: var(--ns-coral); }
.ns-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ns-items span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--ns-ink); color: #fff; font-size: 12px; font-weight: 700; --ns-ic-on: var(--ns-ink); }
.ns-items .ns-i { width: 15px; height: 15px; color: var(--ns-lemon); }
.ns-items small { color: #C9D1CB; font-weight: 500; }
.ns-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ns-shopitem { display: grid; gap: 3px; justify-items: start; padding: 8px; border: 1.5px solid var(--ns-line); border-radius: 12px; }
.ns-shopitem__art { display: block; width: 100%; border-radius: 9px; background: #A9D7FA; }
.ns-shopitem b { font-size: 14px; font-weight: 900; }
.ns-shopitem small { color: var(--ns-muted); font-size: 11px; }
.ns-shopitem .ns-btn { width: 100%; margin-top: 3px; }

/* 술집 · 광장 */
.ns-bubble { position: relative; margin: 0 0 8px; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--ns-paper-3); font-size: 13px; line-height: 1.55; }
.ns-sage { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ns-sage .ns-face-wrap { width: 48px; height: 48px; border-radius: 12px; }
.ns-sage p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ns-text-2); }
.ns-quest { display: grid; gap: 6px; padding: 12px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-lemon); color: var(--ns-ink); --ns-ic-on: var(--ns-lemon); }
.ns-quest small { font-size: 11px; font-weight: 900; }
.ns-quest p { margin: 0; font-size: 14px; line-height: 1.6; }
.ns-quest b { font-size: 13px; }
.ns-quest__place { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--ns-ink); color: var(--ns-lemon); font-size: 11px; filter: blur(0); }
.ns-mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ns-mates > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: var(--ns-paper-3); }
.ns-mates .ns-avatar { grid-row: span 2; }
.ns-mates b { font-size: 13px; }
.ns-mates small { color: var(--ns-muted); font-size: 11px; }
.ns-fame { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ns-fame span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 10px; background: var(--ns-ink); color: #fff; --ns-ic-on: var(--ns-ink); }
.ns-fame .ns-i { width: 22px; height: 22px; color: var(--ns-lemon); }
.ns-fame b { font-size: 16px; font-weight: 900; }
.ns-fame small { color: #9FB0A6; font-size: 11px; }

/* 항해 중 */
.ns-voyage { display: grid; }
.ns-voyage__scene { position: relative; height: 200px; overflow: hidden; background: #6FB6F2; border-bottom: 2px solid var(--ns-ink); }
.ns-voyage__scene::before { content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 40px; background: #A9D7FA; }
.ns-voyage__sun { position: absolute; right: 40px; top: 22px; width: 46px; height: 46px; border: 2px solid var(--ns-ink); border-radius: 50%; background: var(--ns-lemon); }
.ns-voyage__cloud { position: absolute; top: 30px; left: -90px; width: 84px; height: 22px; border-radius: 99px; background: #fff; animation: ns-cloud 24s linear infinite; }
.ns-voyage__cloud.is-2 { top: 58px; width: 60px; height: 16px; animation-duration: 34s; animation-delay: -14s; }
@keyframes ns-cloud { to { transform: translateX(calc(100vw + 120px)); } }
.ns-voyage__ship { position: absolute; left: 50%; bottom: 52px; width: 150px; margin-left: -75px; animation: ns-sail 2.6s steps(1) infinite; transform-origin: 50% 90%; }
@keyframes ns-sail { 50% { transform: translateY(-3px); } }
.ns-voyage__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: var(--ns-sea); border-top: 2px solid var(--ns-ink); }
.ns-voyage__waves i { position: absolute; left: -40px; right: -40px; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .55) 22px 40px); border-radius: 6px; animation: ns-waves 3s linear infinite; }
.ns-voyage__waves i:nth-child(1) { top: 10px; }
.ns-voyage__waves i:nth-child(2) { top: 28px; animation-duration: 4.2s; opacity: .7; }
.ns-voyage__waves i:nth-child(3) { top: 44px; animation-duration: 5.4s; opacity: .45; }
@keyframes ns-waves { to { transform: translateX(-40px); } }
.ns-voyage__route { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 14px 6px; font-size: 18px; font-weight: 900; }
.ns-voyage__route .ns-i { width: 22px; height: 22px; color: var(--ns-accent); }
.ns-voyage__bar { height: 12px; margin: 4px 14px; border: 2px solid var(--ns-ink); border-radius: 99px; background: var(--ns-paper-3); overflow: hidden; }
.ns-voyage__bar > i { display: block; height: 100%; background: var(--ns-lemon); transition: width 1s linear; }
.ns-voyage__left { margin: 6px 0 2px; font-size: 20px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.ns-voyage > .ns-muted { padding: 0 14px 10px; }
.ns-events { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ns-events li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--ns-paper-3); font-size: 13px; line-height: 1.55; }
.ns-events li .ns-i { width: 20px; height: 20px; margin-top: 0; color: var(--ns-sky); }
.ns-events li.is-storm .ns-i, .ns-events li.is-headwind .ns-i { color: #5A6B7A; }
.ns-events li.is-pirate .ns-i, .ns-events li.is-sunk .ns-i { color: var(--ns-ink); }
.ns-events li.is-pirate.is-lost, .ns-events li.is-sunk, .ns-events li.is-rescue { background: #FFECE8; }
.ns-events li.is-wreck .ns-i, .ns-events li.is-flotsam .ns-i { color: #B8860B; }
.ns-events li.is-dolphin .ns-i, .ns-events li.is-tailwind .ns-i, .ns-events li.is-calm .ns-i { color: var(--ns-accent); }

/* 창 */
.ns-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; }
.ns-modal__dim { position: absolute; inset: 0; background: rgba(20, 26, 22, .6); }
.ns-modal__box { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; border: 2px solid var(--ns-ink); border-radius: 16px; background: var(--ns-paper); box-shadow: 0 6px 0 var(--ns-ink); animation: ns-pop .2s ease-out; }
@keyframes ns-pop { from { transform: translateY(10px); opacity: 0; } }
.ns-modal__x { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--ns-paper); }
.ns-modal__h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.ns-modal__h .ns-i { width: 24px; height: 24px; color: var(--ns-accent); }
.ns-modal__acts { display: flex; gap: 8px; margin-top: 16px; }
.ns-modal__acts .ns-btn { flex: 1; height: 46px; }
.is-arrive .ns-modal__box { padding-top: 0; }
.ns-arrive__art { position: relative; margin: 0 -20px 14px; border-bottom: 2px solid var(--ns-ink); }
.ns-arrive__title { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 2px solid var(--ns-ink); border-radius: 12px; background: #fff; color: var(--ns-ink); --ns-ic-on: #fff; }
.ns-arrive__title .ns-i { width: 26px; height: 26px; color: var(--ns-accent); }
.ns-arrive__title small { display: block; color: #687069; font-size: 11px; }
.ns-arrive__title b { font-size: 20px; font-weight: 900; }
.ns-story { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.ns-story .ns-face-wrap { width: 56px; height: 56px; }
.ns-story__talk .ns-npc__talk p { font-size: 15px; line-height: 1.6; }
.ns-story__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-lemon); color: var(--ns-ink); --ns-ic-on: var(--ns-lemon); }
.ns-story__icon .ns-i { width: 26px; height: 26px; }
.ns-story p { flex: 1; margin: 0; padding: 10px 12px; border: 2px solid var(--ns-ink); border-radius: 12px; font-size: 15px; line-height: 1.65; }
.ns-found { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-ink); color: #fff; --ns-ic-on: var(--ns-ink); }
.ns-found .ns-i { width: 34px; height: 34px; color: var(--ns-lemon); }
.ns-found b { display: block; color: var(--ns-lemon); font-size: 17px; font-weight: 900; }
.ns-found small { color: #C9D1CB; font-size: 12px; }
.ns-rank { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.ns-rank li { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.ns-rank li.is-me { background: var(--ns-lemon); color: var(--ns-ink); }
.ns-rank__no { font-size: 15px; font-weight: 900; text-align: center; }
.ns-rank li:nth-child(-n+3) .ns-rank__no { color: var(--ns-accent); }
.ns-rank__who b { display: block; font-size: 14px; }
.ns-rank__who small, .ns-rank__fame small { display: block; color: var(--ns-muted); font-size: 11px; }
.ns-rank__fame { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.ns-codex { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 10px; }
.ns-codex span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; background: var(--ns-paper-3); color: var(--ns-muted); text-align: center; }
.ns-codex span .ns-i { width: 26px; height: 26px; }
.ns-codex span b { font-size: 12px; line-height: 1.35; }
.ns-codex span.is-found { background: var(--ns-ink); color: #fff; --ns-ic-on: var(--ns-ink); }
.ns-codex span.is-found .ns-i { color: var(--ns-lemon); }
.ns-log { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.ns-log li { display: flex; gap: 8px; padding: 8px 4px; border-top: 1px dashed var(--ns-line); font-size: 13px; line-height: 1.55; }
.ns-log li .ns-i { width: 18px; height: 18px; color: var(--ns-accent); }
.ns-log time { margin-right: 6px; color: var(--ns-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ns-help { display: grid; gap: 10px; margin-top: 10px; }
.ns-help__item { display: flex; gap: 10px; }
.ns-help__item .ns-i { width: 22px; height: 22px; color: var(--ns-accent); }
.ns-help__item p { margin: 0; font-size: 14px; line-height: 1.65; }
.ns-help__item p > b:first-child { display: block; font-weight: 900; }

/* 아래 단추 줄 */
.ns-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-foot button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 2px solid var(--ns-ink); border-radius: 10px; background: var(--ns-paper); color: var(--ns-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 var(--ns-ink); --ns-ic-on: var(--ns-paper); }
.ns-foot button .ns-i { color: var(--ns-accent); }
.ns-foot button:active { transform: translateY(1px); box-shadow: none; }

/* 시작 화면 */
.ns-intro { overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 16px; background: var(--ns-paper); }
.ns-intro__art { position: relative; height: 300px; overflow: hidden; border-bottom: 2px solid var(--ns-ink); }
.ns-intro__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ns-intro__wave { animation: ns-wave 3s ease-in-out infinite; animation-delay: var(--d); }
.ns-intro__ship { position: absolute; left: 50%; bottom: 34px; width: 230px; margin-left: -60px; animation: ns-sail 3s steps(1) infinite; transform-origin: 50% 90%; }
.ns-intro__title { position: absolute; left: 24px; top: 22px; max-width: min(460px, calc(100% - 48px)); color: #fff; }
.ns-intro__title h1 { display: inline-block; margin: 0; padding: 2px 12px 6px; border: 3px solid var(--ns-ink); border-radius: 12px; background: var(--ns-ink); color: #fff; font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; box-shadow: 0 5px 0 var(--ns-lemon); }
.ns-intro__title p { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(20, 26, 22, .72); font-size: 14px; font-weight: 500; line-height: 1.6; }
.ns-intro__body { display: grid; gap: 12px; padding: 20px; }
.ns-intro__body.ns-center { justify-items: center; }
.ns-intro__body .ns-btn--go { max-width: 420px; }
.ns-intro__body.ns-center .ns-btn--go { width: auto; padding: 0 28px; }
.ns-intro__body h2 { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 17px; font-weight: 900; }
.ns-intro__body h2 span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ns-ink); color: var(--ns-lemon); font-size: 13px; }
.ns-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ns-pick button { display: grid; gap: 3px; justify-items: start; padding: 12px; border: 2px solid var(--ns-line); border-radius: 12px; background: var(--ns-paper); color: var(--ns-text); font: inherit; text-align: left; cursor: pointer; }
.ns-pick button .ns-i { width: 20px; height: 20px; color: var(--ns-coral); }
.ns-pick button b { font-size: 15px; font-weight: 900; }
.ns-pick button small { color: var(--ns-muted); font-size: 12px; }
.ns-pick button > span:last-child { font-size: 12px; line-height: 1.5; color: var(--ns-text-2); }
.ns-pick button[aria-pressed="true"] { border-color: var(--ns-ink); background: var(--ns-lemon); color: var(--ns-ink); box-shadow: 0 3px 0 var(--ns-ink); }
.ns-pick button[aria-pressed="true"] small, .ns-pick button[aria-pressed="true"] > span:last-child { color: #3A3A1E; }
.ns-pick--captain { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ns-pick--captain button { justify-items: center; text-align: center; }
.ns-statbar { display: grid; gap: 3px; width: 100%; margin-top: 4px; }
.ns-statbar i { position: relative; display: block; padding: 1px 6px; border-radius: 5px; background: var(--ns-paper-3); font-size: 11px; font-style: normal; font-weight: 700; text-align: left; overflow: hidden; z-index: 0; }
.ns-statbar i::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--v) * 1.6%); background: rgba(0, 135, 65, .3); }

/* 알림창 */
.ns-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; max-width: min(92vw, 460px); padding: 11px 18px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-ink); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.ns-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ns-toast.is-good { background: var(--ns-accent); }
.ns-toast.is-bad, .ns-toast.is-warn { background: var(--ns-coral); }
.ns-stop .ns-btn .ns-i { color: #fff; }

/* 휴대폰 · 좁은 화면 */
@media (max-width: 1023px) {
  .ns-stage { grid-template-columns: 1fr; }
  .ns-map { height: 52vh; min-height: 320px; }
  .ns-hud { grid-template-columns: 1fr auto; }
  .ns-hud__stats { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ns-hud { padding: 10px; gap: 10px; }
  .ns-hud__bar { width: 110px; }
  .ns-hud__stats > span { padding: 5px 7px; }
  .ns-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ns-row .ns-step { grid-column: 1; justify-self: start; }
  .ns-row > .ns-btn { grid-column: 2; }
  .ns-intro__art { height: 250px; }
  .ns-intro__title h1 { font-size: 34px; }
  .ns-intro__title p { font-size: 13px; }
  .ns-intro__ship { width: 150px; margin-left: -10px; bottom: 26px; }
  .ns-plan__nums b { font-size: 14px; }
  .ns-npc { padding: 12px; }
  .ns-face-wrap { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .netsail *, .netsail *::before, .netsail *::after { animation: none !important; } }

/* 바다 발견물 그림(사건 줄 · 도감) */
.ns-find { display: block; width: 100%; height: 100%; }
.ns-findpic { display: block; flex: none; width: 34px; height: 34px; overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 9px; background: #fff; }
.ns-events li .ns-findpic { margin-top: -2px; }
.ns-codex__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ns-codex__tabs button { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 2px solid var(--ns-line); border-radius: 10px; background: var(--ns-paper); color: var(--ns-text); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.ns-codex__tabs button .ns-i { color: var(--ns-accent); }
.ns-codex__tabs button small { color: var(--ns-muted); font-size: 11px; font-weight: 700; }
.ns-codex__tabs button[aria-pressed="true"] { border-color: var(--ns-ink); background: var(--ns-lemon); color: var(--ns-ink); box-shadow: 0 2px 0 var(--ns-ink); }
.ns-codex.is-pics span { padding: 8px 6px 10px; background: var(--ns-paper-3); color: var(--ns-muted); }
.ns-codex.is-pics .ns-findpic { width: 56px; height: 56px; border-radius: 12px; filter: grayscale(1) brightness(.35) opacity(.35); }
.ns-codex.is-pics span.is-found { background: var(--ns-paper); border: 2px solid var(--ns-ink); color: var(--ns-text); }
.ns-codex.is-pics span.is-found .ns-findpic { filter: none; }
.ns-codex.is-pics span.is-found.r3 { background: var(--ns-lemon); color: var(--ns-ink); }
.ns-codex.is-pics small { font-size: 10px; font-weight: 700; }
.ns-codex.is-pics span.r3 small { color: #B5462E; }

/* 칭호 · 훈장 · 해도 · 업적 */
.ns-medal { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: -5px; }
.ns-badge { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 7px 1px 3px; border-radius: 99px; background: var(--ns-ink-2, #232B26); color: var(--ns-lemon); font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; vertical-align: 1px; }
.ns-badge .ns-medal { width: 16px; height: 16px; }
.ns-rank__who .ns-badge, .ns-mates .ns-badge { background: var(--ns-ink); }
.ns-hud__stats .is-map .ns-i, .ns-hud__stats .is-map b { color: #9FD3FF; }
/* 안 가 본 항구: 속이 빈 작은 점선 네모(간 곳은 꽉 찬 흰 네모) */
.ns-port.is-unseen .ns-port__dot { fill: rgba(20, 26, 22, .28); stroke: #fff; stroke-dasharray: 2 2; transform: scale(.8); }
.ns-port.is-unseen .ns-port__name { fill: var(--ns-text-2); font-weight: 500; }
.ns-port.is-unseen:hover .ns-port__dot { fill: var(--ns-lemon); }
.ns-npc--modal { margin: 10px 0 12px; padding: 0; background: none; border: 0; }
.ns-meter { display: block; height: 8px; border: 1.5px solid var(--ns-ink); border-radius: 99px; background: var(--ns-paper-3); overflow: hidden; }
.ns-meter > i { display: block; height: 100%; background: var(--ns-accent); }
.ns-atlas__all { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; margin-bottom: 12px; }
.ns-atlas__all b { font-size: 26px; font-weight: 900; }
.ns-atlas__all span { color: var(--ns-muted); font-size: 13px; font-weight: 700; }
.ns-atlas__all .ns-meter { grid-column: 1 / -1; height: 12px; }
.ns-atlas { display: grid; gap: 8px; margin-bottom: 10px; }
.ns-atlas__row { display: grid; grid-template-columns: 90px 1fr 46px; align-items: center; gap: 10px; font-size: 13px; }
.ns-atlas__row b { font-weight: 900; }
.ns-atlas__row span { color: var(--ns-muted); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ns-atlas__row.is-done .ns-meter > i { background: var(--ns-lemon); }
.ns-ach { display: grid; gap: 8px; margin-top: 10px; }
.ns-ach__item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--ns-line); border-radius: 12px; color: var(--ns-muted); }
.ns-ach__item .ns-medal { width: 34px; height: 34px; filter: grayscale(1) opacity(.45); }
.ns-ach__item small { display: block; font-size: 11px; font-weight: 700; }
.ns-ach__item b { display: block; color: var(--ns-text); font-size: 15px; font-weight: 900; }
.ns-ach__item span { display: block; font-size: 12px; line-height: 1.45; }
.ns-ach__item .ns-meter { margin-top: 5px; height: 6px; border-width: 1px; }
.ns-ach__num { margin-top: 2px; font-variant-numeric: tabular-nums; }
.ns-ach__item.is-done { border: 2px solid var(--ns-ink); color: var(--ns-text-2); }
.ns-ach__item.is-done .ns-medal { filter: none; }
.ns-ach__item.is-done.t4 { background: var(--ns-lemon); color: #3A3A1E; }
.ns-achieved { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 2px solid var(--ns-ink); border-radius: 12px; background: var(--ns-ink); color: #fff; }
.ns-achieved .ns-medal { width: 44px; height: 44px; }
.ns-achieved small { display: block; color: var(--ns-lemon); font-size: 11px; font-weight: 900; }
.ns-achieved b { display: block; font-size: 18px; font-weight: 900; }
.ns-achieved span { display: block; color: #C9D1CB; font-size: 12px; }
.ns-foot { --ns-ic-on: var(--ns-paper); }
.ns-foot .ns-foot__sound[aria-pressed="false"] { color: var(--ns-muted); }
.ns-foot .ns-foot__sound[aria-pressed="false"] .ns-i { color: var(--ns-muted); opacity: .5; }

/* 해적 전투(일기토) */
.ns-fight b .ns-i { color: var(--ns-coral); }
.ns-events__act { background: none !important; padding: 0 !important; justify-content: flex-end; }
.ns-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 8px; }
.ns-duel__side { display: grid; justify-items: center; gap: 3px; text-align: center; }
.ns-duel__side b { font-size: 15px; font-weight: 900; }
.ns-duel__side small { color: var(--ns-muted); font-size: 11px; font-weight: 700; }
.ns-duel__side.is-foe .ns-avatar { border-color: var(--ns-coral); }
.ns-duel__hp { width: 100%; height: 10px; }
.ns-duel__hp.is-low > i { background: var(--ns-coral); }
.ns-duel__vs { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ns-ink); border-radius: 50%; background: var(--ns-lemon); color: var(--ns-ink); font-size: 15px; font-weight: 900; }
.ns-duel__sea { position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 92px; margin: 10px 0; padding: 0 12px; overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 12px; background: linear-gradient(#8CC8F5 0 55%, #2563B8 55%); }
.ns-duel__ship { width: 130px; margin-bottom: -6px; animation: ns-sail 2.4s steps(1) infinite; transform-origin: 50% 90%; }
.ns-duel__ship.is-foe { transform: scaleX(-1); animation: none; }
.ns-duel__log { display: grid; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.ns-duel__log li { padding: 7px 10px; border-radius: 8px; background: var(--ns-paper-3); font-size: 13px; line-height: 1.5; }
.ns-duel__log li:last-child { border: 2px solid var(--ns-ink); background: var(--ns-paper); font-weight: 700; }
.ns-duel__moves { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; margin-top: 8px; }
.ns-duel__moves .ns-btn { height: 48px; font-size: 16px; font-weight: 900; }
.ns-duel__end { display: grid; gap: 4px; padding: 14px; border: 2px solid var(--ns-ink); border-radius: 12px; text-align: center; }
.ns-duel__end b { font-size: 24px; font-weight: 900; }
.ns-duel__end span { font-size: 13px; line-height: 1.5; }
.ns-duel__end.is-win, .ns-duel__end.is-escape { background: var(--ns-lemon); color: var(--ns-ink); }
.ns-duel__end.is-lose { background: #FFECE8; color: #8A2617; }
@media (max-width: 560px) { .ns-duel__moves { grid-template-columns: repeat(3, 1fr); } .ns-duel__moves .ns-btn--ghost { grid-column: 1 / -1; height: 40px; } .ns-duel__ship { width: 96px; } }

/* 항구 마을(RPG 걷기, 도트) */
.ns-town { position: relative; overflow: hidden; background: #5DAA4F; }
.ns-town__map { display: block; width: 100%; height: auto; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ns-town__map:focus-visible { outline: 3px solid var(--ns-lemon); outline-offset: -3px; }
.ns-town__img { image-rendering: crisp-edges; image-rendering: pixelated; }
.ns-town__label { font-size: 9px; font-weight: 900; text-anchor: middle; fill: #141A16; letter-spacing: -.02em; pointer-events: none; }
.ns-town__hit { fill: transparent; cursor: pointer; }
.ns-town__hit:hover { fill: rgba(255, 255, 255, .14); }
.ns-town__spot { cursor: pointer; }
.ns-town__me { transition: transform .11s linear; pointer-events: none; }
.ns-walk__f1 { display: none; }
.ns-town__me.is-walking .ns-walk__f0 { animation: ns-f0 .28s steps(1) infinite; }
.ns-town__me.is-walking .ns-walk__f1 { display: inline; animation: ns-f1 .28s steps(1) infinite; }
@keyframes ns-f0 { 50% { opacity: 0; } }
@keyframes ns-f1 { 0% { opacity: 0; } 50% { opacity: 1; } }
.ns-town__mate { animation: ns-wander 7s steps(1) infinite; animation-delay: calc(var(--i) * -1.9s); }
@keyframes ns-wander { 25% { transform: translateX(2px); } 50% { transform: none; } 75% { transform: translateX(-2px); } }
.ns-town__boat { animation: ns-float 2.4s steps(1) infinite; animation-delay: calc(var(--i) * -.9s); }
@keyframes ns-float { 50% { transform: translateY(2px); } }
.ns-town__glint { opacity: 0; animation: ns-glint 2.6s steps(1) infinite; animation-delay: calc(var(--i) * -.43s); pointer-events: none; }
@keyframes ns-glint { 35% { opacity: .9; } 55% { opacity: 0; } }
.ns-scene.is-town .ns-scene__name { left: 8px; bottom: 6px; padding: 3px 10px 4px; }
.ns-scene.is-town .ns-scene__name h2 { font-size: 17px; }
.ns-scene__toggle { position: absolute; right: 10px; top: 40px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 2px solid var(--ns-ink); border-radius: 8px; background: #fff; color: var(--ns-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; --ns-ic-on: #fff; }
.ns-scene__toggle .ns-i { width: 15px; height: 15px; }
@media (max-width: 560px) { .ns-scene__toggle { width: 30px; padding: 0; justify-content: center; } .ns-scene__toggle span { display: none; } }

/* 모험 목적지: 초록 점 + 위에 반짝이는 '!' 표식, 이름은 늘 보이게(안 가 본 항구 회색보다 앞서도록 맨 뒤에) */
.ns-port__quest { display: none; pointer-events: none; shape-rendering: crispEdges; }
.ns-port.is-quest .ns-port__quest { display: inline; animation: ns-quest 1.2s steps(1) infinite; }
@keyframes ns-quest { 0%, 100% { transform: translate(0, -30px); } 50% { transform: translate(0, -33px); } }
.ns-port.is-quest .ns-port__dot, .ns-port.is-quest.is-unseen .ns-port__dot { transform: scale(1.5); fill: var(--ns-accent); stroke: #fff; }
.ns-port.is-quest .ns-port__name { display: block; fill: var(--ns-accent-dark); font-weight: 900; }

/* 순위 페이지 · 회원 설정 '넷항해시대 칭호' */
.ns-page { max-width: 760px; margin: 0 auto; padding: 4px 0 28px; }
.ns-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ns-page__head h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ns-page__head p { margin: 4px 0 0; color: var(--ns-muted); font-size: 13px; }
.ns-page__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ns-page__tabs::-webkit-scrollbar { display: none; }
.ns-page__tabs a { flex: none; padding: 7px 13px; border: 2px solid var(--ns-line-2); border-radius: 99px; color: var(--ns-text-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.ns-page__tabs a[aria-current="page"] { border-color: var(--ns-ink); background: var(--ns-ink); color: #fff; }
.ns-board { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ns-ink); }
.ns-board li { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--ns-line); }
.ns-board li.is-me { background: var(--ns-lemon); color: var(--ns-ink); }
.ns-board__no { font-size: 16px; font-weight: 900; text-align: center; }
.ns-board li:nth-child(-n+3) .ns-board__no { color: var(--ns-accent); }
.ns-board li.is-me .ns-board__no { color: var(--ns-ink); }
.ns-board__who { min-width: 0; }
.ns-board__who a { color: inherit; font-size: 14px; font-weight: 800; text-decoration: none; }
.ns-board__who small { display: block; color: var(--ns-muted); font-size: 12px; }
.ns-board li.is-me .ns-board__who small { color: var(--ns-ink-3); }
.ns-board__val { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-board__val i { margin-left: 2px; font-size: 12px; font-style: normal; font-weight: 700; }
.ns-page__sub { margin: 6px 0 -6px; color: var(--ns-muted); font-size: 12px; font-weight: 700; }
.ns-page__empty { padding: 18px; border: 2px dashed var(--ns-line-2); border-radius: 12px; color: var(--ns-muted); text-align: center; }
.ns-page__foot { text-align: right; font-size: 13px; font-weight: 700; }
.ns-page__ok { padding: 10px 14px; border: 2px solid var(--ns-ink); border-radius: 10px; background: var(--ns-lemon); color: var(--ns-ink); font-weight: 800; }
.ns-mytitle { display: grid; gap: 14px; }
.ns-mytitle fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.ns-mytitle legend { margin-bottom: 6px; font-size: 15px; font-weight: 900; }
.ns-mytitle legend small { margin-left: 6px; color: var(--ns-muted); font-size: 12px; font-weight: 700; }
.ns-mytitle__opt, .ns-mytitle__switch { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ns-line); border-radius: 12px; cursor: pointer; }
.ns-mytitle__switch { grid-template-columns: auto minmax(0, 1fr); }
.ns-mytitle__opt:has(input:checked) { border-color: var(--ns-ink); background: var(--ns-lemon); color: var(--ns-ink); }
.ns-mytitle__opt input, .ns-mytitle__switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--ns-ink); }
.ns-mytitle__opt b, .ns-mytitle__switch b { display: block; font-size: 14px; font-weight: 800; }
.ns-mytitle__opt small, .ns-mytitle__switch small { display: block; color: var(--ns-muted); font-size: 12px; }
.ns-mytitle__opt:has(input:checked) small { color: var(--ns-ink-3); }
.ns-mytitle__medal { display: grid; place-items: center; width: 30px; height: 30px; }
.ns-mytitle__medal.is-none { border: 2px dashed var(--ns-line-2); border-radius: 50%; width: 26px; height: 26px; }
.ns-mytitle__acts { display: flex; align-items: center; gap: 14px; }
.ns-mytitle__acts .ns-btn { flex: none; min-width: 140px; }
.ns-mytitle__acts a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.ns-page--my { max-width: 720px; margin: 0; }
@media (max-width: 560px) { .ns-page__head h1 { font-size: 19px; } .ns-board li { grid-template-columns: 28px auto minmax(0, 1fr) auto; gap: 8px; } }

/* 바다 위 포인트 상점: 여는 단추와 창(레이어) */
.ns-pshop__open { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 10px 14px; text-align: left; }
.ns-pshop__open > .ns-i { width: 24px; height: 24px; color: var(--ns-accent); }
.ns-pshop__open b { display: block; font-size: 15px; font-weight: 900; }
.ns-pshop__open small { display: block; color: var(--ns-muted); font-size: 12px; font-weight: 700; }
.ns-pshop__note { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 12px; padding: 10px 12px; border: 2px solid var(--ns-ink); border-radius: 10px; background: var(--ns-lemon); color: var(--ns-ink); font-size: 13px; line-height: 1.5; --ns-ic-on: var(--ns-lemon); }
.ns-pshop__note b { font-weight: 900; }
.ns-pshop { display: grid; gap: 8px; }
.ns-pshop__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ns-line); border-radius: 12px; }
.ns-pshop__item > .ns-i { width: 28px; height: 28px; color: var(--ns-accent); }
.ns-pshop__item b { display: block; font-size: 15px; font-weight: 900; }
.ns-pshop__item small { display: block; color: var(--ns-muted); font-size: 12px; line-height: 1.45; }
.ns-pshop__item .ns-btn { min-width: 96px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .ns-pshop__item { grid-template-columns: auto minmax(0, 1fr); } .ns-pshop__item .ns-btn { grid-column: 1 / -1; width: 100%; } }

/* 선택 사건: 바다 장면(도트) · 고를 것 · 낚시 손맛 */
.ns-codex__tabs { grid-template-columns: repeat(5, 1fr); }
.ns-sea-scene { overflow: hidden; margin: 8px 0 10px; border: 2px solid var(--ns-ink); border-radius: 12px; background: #8CC8F5; }
.ns-sea-scene__svg { display: block; width: 100%; height: auto; }
.ns-choice__text { margin: 0 0 10px; font-size: 15px; line-height: 1.6; text-align: center; word-break: keep-all; }
.ns-choice__text.is-good { color: var(--ns-up); font-weight: 800; }
.ns-choice__text.is-bad { color: var(--ns-down); font-weight: 800; }
.ns-choice__opts { display: grid; gap: 8px; }
.ns-choice__opts .ns-btn { height: 46px; font-size: 15px; }
.ns-fish__pull { height: 64px !important; font-size: 22px !important; letter-spacing: .1em; }
.ns-bobber { animation: ns-bobber 1.2s steps(1) infinite; }
@keyframes ns-bobber { 50% { transform: translateY(2px); } }
.is-bite .ns-bobber { animation: ns-dip .24s steps(1) infinite; }
@keyframes ns-dip { 50% { transform: translateY(9px); } }
.ns-bite-mark { display: none; }
.is-bite .ns-bite-mark { display: inline; }
.ns-flame__b { opacity: 0; }
.ns-flame__a { animation: ns-fl-a .36s steps(1) infinite; animation-delay: calc(var(--i) * -.12s); }
.ns-flame__b { animation: ns-fl-b .36s steps(1) infinite; animation-delay: calc(var(--i) * -.12s); }
@keyframes ns-fl-a { 50% { opacity: 0; } }
@keyframes ns-fl-b { 50% { opacity: 1; } }
.ns-smoke { animation: ns-smoke 2.4s linear infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes ns-smoke { to { transform: translateY(-40px); opacity: 0; } }
/* 가라앉은 배 장면의 물방울(술집 소문 말풍선 .ns-bubble 과 이름이 겹치지 않게) */
.ns-scene-bubble { animation: ns-scene-bubble 3s linear infinite; animation-delay: calc(var(--i) * -.5s); }
@keyframes ns-scene-bubble { to { transform: translateY(-110px); opacity: 0; } }
.ns-grumble { fill: #F0533F; font-size: 14px; font-weight: 900; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
@media (prefers-reduced-motion: reduce) { .ns-flame__b { opacity: 0; } }

/* 시간 막대: 그대로 두면 다 줄어들 때 선원들이 알아서 */
.ns-autobar { display: grid; gap: 5px; margin-top: 12px; }
.ns-autobar > i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: var(--ns-paper-3); }
.ns-autobar > i > b { display: block; height: 100%; border-radius: 99px; background: var(--ns-accent); transform-origin: left center; animation: ns-autobar var(--t) linear forwards; }
@keyframes ns-autobar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ns-autobar small { color: var(--ns-muted); font-size: 12px; font-weight: 700; text-align: center; }

/* 툴팁(게임 안): 먹색 말풍선 · 레몬색 줄 · 첫 줄 굵게 · 꼬리 */
.ns-tip { position: fixed; z-index: 10000; max-width: 250px; padding: 8px 12px 9px; border-radius: 10px; background: #141A16; color: #fff; font-family: "Noto Sans KR", sans-serif; font-size: 12.5px; line-height: 1.55; letter-spacing: -.01em; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.ns-tip.is-on { opacity: 1; transform: none; }
.ns-tip b { display: block; color: #FFE15A; font-size: 13px; font-weight: 900; }
.ns-tip span { display: block; margin-top: 2px; color: #E6EAE7; }
.ns-tip::after { content: ""; position: absolute; left: var(--ax, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #141A16; }
.ns-tip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #141A16; }
.ns-badge[data-ns-tip] { cursor: help; }

/* 첫 화면(도트, 해 질 녘 항구) */
.ns-intro__art { height: 360px; background: #16224A; }
.ns-intro__px { position: absolute; inset: 0; width: 100%; height: 100%; }
.ns-intro__img { image-rendering: crisp-edges; image-rendering: pixelated; }
.ns-intro__beam { transform-box: view-box; transform-origin: 94px 28px; animation: ns-beam 4s ease-in-out infinite; }
@keyframes ns-beam { 50% { opacity: .05; transform: rotate(-8deg); } }
.ns-intro__glint { opacity: 0; animation: ns-glint 2.4s steps(1) infinite; animation-delay: calc(var(--i) * -.37s); }
.ns-intro__gull { animation: ns-gull 14s linear infinite; animation-delay: calc(var(--i) * -4.5s); }
@keyframes ns-gull { from { transform: translateX(-90px); } to { transform: translateX(200px); } }
.ns-intro__ship { animation: ns-float 2.6s steps(1) infinite; }
.ns-intro__ripple { animation: ns-ripple 3.2s steps(4) infinite; animation-delay: calc(var(--i) * -.5s); }
@keyframes ns-ripple { 50% { transform: translateX(4px); } }
.ns-intro__title { left: 28px; top: 26px; max-width: min(520px, calc(100% - 56px)); }
.ns-intro__title h1 { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #FFE15A; font-size: 68px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em;
  text-shadow: 3px 0 0 #141A16, -3px 0 0 #141A16, 0 3px 0 #141A16, 0 -3px 0 #141A16, 3px 3px 0 #141A16, -3px -3px 0 #141A16, 3px -3px 0 #141A16, -3px 3px 0 #141A16, 7px 7px 0 #C8463A; }
.ns-intro__title p { margin: 14px 0 0; padding: 0; border-radius: 0; background: none; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; text-shadow: 2px 2px 0 #141A16, -1px -1px 0 #141A16; }
.ns-intro__facts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 9px 12px; background: rgba(20, 26, 22, .78); color: #fff; font-size: 13px; font-weight: 700; --ns-ic-on: #141A16; }
.ns-intro__facts span { display: inline-flex; align-items: center; gap: 6px; }
.ns-intro__facts .ns-i { width: 18px; height: 18px; color: #FFE15A; }
@media (max-width: 560px) {
  .ns-intro__art { height: 280px; }
  .ns-intro__title { left: 16px; top: 18px; }
  .ns-intro__title h1 { font-size: 44px; text-shadow: 2px 0 0 #141A16, -2px 0 0 #141A16, 0 2px 0 #141A16, 0 -2px 0 #141A16, 2px 2px 0 #141A16, -2px -2px 0 #141A16, 5px 5px 0 #C8463A; }
  .ns-intro__title p { font-size: 13px; }
  .ns-intro__facts { gap: 2px 10px; font-size: 11.5px; }
}

/* ---------- 바다 사건 그림: 일지 줄을 누르면 장면 · 새 소식 그림 카드 · 장면 움직임 · 보물 지도 ---------- */
.ns-events li[data-sc] { cursor: pointer; transition: background .15s; }
.ns-events li[data-sc]:hover, .ns-events li[data-sc]:focus-visible { background: #E6EEF7; outline: none; }
.ns-events li[data-sc] > span:not(.ns-findpic) { flex: 1; }
.ns-events li .ns-events__more { flex: none; width: 14px; height: 14px; margin-top: 3px; color: #9AA29B; transition: transform .2s; }
.ns-events li.is-open .ns-events__more { transform: rotate(45deg); color: var(--ns-ink); }
.ns-events li.ns-events__scene { display: block; padding: 0; background: none; }
.ns-events__scene .ns-sea-scene { margin: 0 0 4px; }
.ns-arrive__art.is-scene .ns-sea-scene__svg { display: block; width: 100%; height: auto; }
.ns-evcard { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: grid; grid-template-columns: 132px 1fr; gap: 0; width: min(420px, calc(100vw - 32px)); overflow: hidden; border: 2px solid var(--ns-ink); border-radius: 14px; background: #fff; color: var(--ns-ink); box-shadow: 0 6px 0 rgba(20, 26, 22, .22); opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
.ns-evcard.is-on { opacity: 1; transform: none; }
.ns-evcard__scene { display: block; padding: 0; border: 0; border-right: 2px solid var(--ns-ink); background: #8CC8F5; cursor: zoom-in; }
.ns-evcard__scene svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-evcard__body { min-width: 0; padding: 10px 34px 14px 12px; }
.ns-evcard__body b { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 900; }
.ns-evcard__body b .ns-i { width: 18px; height: 18px; color: var(--ns-accent); }
.ns-evcard.is-bad .ns-evcard__body b .ns-i { color: var(--ns-coral); }
.ns-evcard__body p { display: -webkit-box; margin: 3px 0 0; overflow: hidden; color: #3F4741; font-size: 12.5px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ns-evcard__x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; }
.ns-evcard__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(20, 26, 22, .08); }
.ns-evcard__bar b { display: block; height: 100%; background: var(--ns-lemon); transform-origin: left; animation: ns-autobar 8s linear forwards; }
@media (max-width: 640px) { .ns-evcard { right: 16px; left: 16px; bottom: 12px; width: auto; grid-template-columns: 112px 1fr; } }
.ns-sea-scene__svg g[class^="ns-sc-"], .ns-sea-scene__svg g[class*=" ns-sc-"], .ns-evcard__scene g[class^="ns-sc-"] { transform-box: fill-box; transform-origin: center bottom; animation-delay: calc(var(--i, 0) * -.45s); }
.ns-sc-bob { animation: ns-sc-bob 2.4s ease-in-out infinite; }
@keyframes ns-sc-bob { 50% { transform: translateY(3px) rotate(2deg); } }
.ns-sc-drift { animation: ns-sc-drift 9s ease-in-out infinite alternate; }
@keyframes ns-sc-drift { to { transform: translateX(16px); } }
.ns-sc-fog { animation: ns-sc-drift 6s ease-in-out infinite alternate; }
.ns-sc-rain { animation: ns-sc-rain .6s linear infinite; }
@keyframes ns-sc-rain { from { transform: translate(2px, -14px); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-4px, 16px); opacity: .2; } }
.ns-sc-flash { animation: ns-sc-flash 3.2s steps(1) infinite; }
@keyframes ns-sc-flash { 0%, 64%, 74%, 82%, 100% { opacity: 0; } 66%, 78% { opacity: 1; } }
.ns-sc-wind { animation: ns-sc-wind 1.4s linear infinite; }
.ns-sc-wind.is-left { animation-name: ns-sc-wind-l; }
@keyframes ns-sc-wind { from { transform: translateX(-30px); opacity: 0; } 30%, 70% { opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
@keyframes ns-sc-wind-l { from { transform: translateX(40px); opacity: 0; } 30%, 70% { opacity: 1; } to { transform: translateX(-30px); opacity: 0; } }
.ns-sc-fly { animation: ns-sc-fly 2.6s ease-in-out infinite; }
@keyframes ns-sc-fly { 50% { transform: translate(6px, -5px); } }
.ns-sc-note { animation: ns-sc-note 2.4s ease-out infinite; }
@keyframes ns-sc-note { from { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-16px); opacity: 0; } }
.ns-sc-twinkle { animation: ns-sc-twinkle 1.6s steps(2) infinite; }
@keyframes ns-sc-twinkle { 50% { opacity: .2; } }
.ns-sc-float { animation: ns-sc-float 3s ease-in-out infinite; }
@keyframes ns-sc-float { 50% { transform: translateY(-6px); } }
.ns-sc-ghost { animation: ns-sc-ghost 4s ease-in-out infinite; opacity: .6; }
@keyframes ns-sc-ghost { 50% { opacity: .22; transform: translateX(-6px); } }
.ns-sc-leap { animation: ns-sc-leap 2.8s ease-in-out infinite; }
@keyframes ns-sc-leap { 0%, 100% { transform: translateY(16px); opacity: 0; } 20%, 80% { opacity: 1; } 50% { transform: translateY(-8px) rotate(-6deg); } }
.ns-sc-rise { animation: ns-sc-rise 2.2s ease-in-out infinite; }
@keyframes ns-sc-rise { 50% { transform: translateY(-5px) rotate(-3deg); } }
.ns-sc-sink { animation: ns-sc-sink 3s ease-in forwards; }
@keyframes ns-sc-sink { to { transform: translateY(12px) rotate(10deg); opacity: .55; } }
.ns-sc-spout { animation: ns-sc-spout 2.2s ease-out infinite; }
@keyframes ns-sc-spout { 0% { transform: scaleY(.2); opacity: 0; } 30% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1.1) translateY(-4px); opacity: 0; } }
.ns-port__tre { display: none; pointer-events: none; shape-rendering: crispEdges; }
.ns-port.is-treasure .ns-port__tre { display: inline; animation: ns-tre 1.2s steps(1) infinite; }
@keyframes ns-tre { 0%, 100% { transform: translate(9px, -22px); } 50% { transform: translate(9px, -25px); } }
.ns-port.is-treasure .ns-port__name { display: block; }
.ns-hud__stats .is-treasure .ns-i, .ns-hud__stats .is-treasure b, .ns-hud__stats .is-tmap .ns-i { color: #F5C26B; }
/* 쾌속 돛(8시간 속도 두 배): 상단 속도 칸 강조 · 상점에 남은 시간 · 항구에서 못 사는 물건 */
.ns-hud__stats .is-boost .ns-i, .ns-hud__stats .is-boost b { color: #7FE3B0; }
.ns-hud__stats .is-boost .ns-i { animation: ns-boost 1.6s ease-in-out infinite; }
@keyframes ns-boost { 50% { transform: translateX(2px); } }
.ns-pshop__on { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #E3F6EA; color: #1F7A45; font-size: 11px; font-style: normal; font-weight: 800; }
.ns-pshop__item.is-sea { opacity: .55; }
