/* =========================================================
   물색기록소 - 다크테마 공통 스타일
   레퍼런스: 코인 거래소 앱 스타일 (큰 숫자, 다크 배경, 하단 고정 탭)
   ========================================================= */

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
}
@font-face {
  font-family: 'Jalnan2';
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/Jalnan2.woff2') format('woff2');
  font-weight: 400;
}

:root {
  /* 배경/표면 */
  --bg: #0A0E13;          /* 전체 배경 */
  --bg2: #12171F;         /* 헤더/하단바 배경 */
  --card: #151B23;        /* 카드 배경 */
  --card2: #1B222C;       /* 입력창 등 약간 더 밝은 표면 */
  --line: #262E38;        /* 테두리 */

  /* 텍스트 */
  --text: #E9EEF3;        /* 기본(밝은) 텍스트 */
  --muted: #8C98A4;       /* 보조/흐린 텍스트 */

  /* 브랜드/포인트 */
  --navy: #0B2E42;        /* 짙은 네이비 (배경 전용) */
  --teal: #2BD9C9;        /* 포인트 색 (청록) */
  --teal-dark: #17A89A;
  --gold: #F3C14B;        /* 보조 포인트 (랭킹/강조) */
  --danger: #FF6B5E;
  --soft: #B9C2CB;        /* 본문 보조 글자색 */

  /* 물색 단계 색 */
  --lv1: #FF6B5E;  /* 10cm 이내 - 탁함 */
  --lv2: #FFB648;  /* 50cm 이내 */
  --lv3: #2BD9C9;  /* 2m 이내 */
  --lv4: #3DDC84;  /* 2m 이상 - 맑음 */

  /* 안내 박스 */
  --notice-bg: #241E0E; --notice-border: #4A3C14; --notice-text: #F3C14B;
  --notice-safety-bg: #2A1613; --notice-safety-border: #5A2A22; --notice-safety-text: #FF9A8C;
  --notice-gift-bg: #1A1030; --notice-gift-border: #3C2B6B; --notice-gift-text: #C9B6FF;

  --radius: 14px;
  --shadow: 0 2px 14px rgba(0,0,0,.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottomnav-h: 60px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--safe-top);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
.jalnan { font-family: 'Jalnan2', 'Pretendard', sans-serif; font-weight: 400; }

/* ---------- 레이아웃 ---------- */
.layout { max-width: 560px; margin: 0 auto; }
.main-col { min-width: 0; padding: 0 16px 24px; width: 100%; }

/* ---------- 상단 홍보 띠 ---------- */
.promo-banner {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: linear-gradient(90deg, #7B2FF7, #F72F8B);
  color: #fff; font-size: 12.5px; font-weight: 600;
  position: sticky; top: 0; z-index: 31; white-space: nowrap; overflow: hidden;
}
.promo-banner .tag { background: rgba(255,255,255,.25); padding: 2px 7px; border-radius: 6px; font-size: 11px; flex-shrink: 0; }
.promo-banner .msg { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.promo-banner a.link { color: #fff; text-decoration: underline; flex-shrink: 0; }
.promo-banner.empty { background: var(--card2); color: var(--muted); }
.promo-banner.empty a { color: var(--teal); font-weight: 700; }

/* ---------- 상단바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg2); color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--text); }
.topbar .logo .wave { font-size: 16px; }
.topbar .auth-mini { font-size: 12px; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.topbar .auth-mini a, .topbar .auth-mini button {
  background: none; border: none; color: var(--muted); font-size: 12.5px; padding: 2px 4px;
}
.topbar .auth-mini a:hover, .topbar .auth-mini button:hover { color: var(--text); }
.topbar .auth-mini .nickname { color: var(--teal); font-weight: 700; }

/* ---------- 하단 고정 탭 메뉴 ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg2); border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-bottom);
  height: var(--bottomnav-h);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500;
}
.bottomnav a .icon { font-size: 19px; line-height: 1; }
.bottomnav a.active { color: var(--teal); }

/* ---------- 하단 광고 (스크롤 맨 아래에서만 보임 = 문서 흐름상 맨 아래 배치) ---------- */
.ad-bottom-block {
  margin-top: 26px; padding: 16px; text-align: center; font-size: 12px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- 카드/버튼 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #072420; border: none; border-radius: 10px;
  padding: 12px 18px; font-size: 15px; font-weight: 700; width: 100%;
}
.btn:active { background: var(--teal-dark); }
.btn.secondary { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.sm { width: auto; padding: 8px 12px; font-size: 13px; }

/* 일부 브라우저는 <button>에 시스템 기본 글자색을 강제 적용해 다크테마에서 글자가 안 보일 수 있음 */
button.card, .type-pick-btn { color: var(--text); font-family: inherit; width: 100%; }
.type-pick-btn:active { border-color: var(--teal); }

input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--card2); color: var(--text);
}
input::placeholder, textarea::placeholder { color: #5C6771; }
/* PIN 입력칸: type="password"를 쓰지 않아 크롬의 "유출된 비밀번호" 오탐 경고를 피하면서,
   화면에는 점(●)으로 가려서 보이게 함 (크롬/사파리 지원, 파이어폭스는 일반 텍스트로 보임) */
.pin-input { letter-spacing: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
label { font-size: 13px; font-weight: 500; color: var(--muted); display: block; margin: 12px 0 6px; }
.field:first-child label { margin-top: 0; }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.35; color: var(--text); }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { line-height: 1.6; margin: 0 0 10px; color: var(--soft); }
.muted { color: var(--muted); font-size: 13px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin: 22px 0 10px; }

/* ---------- 히어로 통계 (코인앱 스타일 큰 숫자) ---------- */
.hero-stat { padding: 18px 0 4px; }
.hero-stat .label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hero-stat .score { font-size: 42px; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.hero-stat .score .unit { font-size: 16px; color: var(--muted); font-weight: 500; }
.hero-stat .diff { font-size: 13px; margin-top: 4px; }
.hero-stat .diff.up { color: var(--lv4); }
.hero-stat .diff.down { color: var(--lv1); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat-box .k { font-size: 11px; color: var(--muted); }
.stat-box .v { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ---------- 물색 단계 뱃지/슬라이더 ---------- */
.lv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0A0E13; }
.lv-badge.lv1 { background: var(--lv1); }
.lv-badge.lv2 { background: var(--lv2); }
.lv-badge.lv3 { background: var(--lv3); }
.lv-badge.lv4 { background: var(--lv4); }

.lv-slider-wrap { padding: 8px 4px 0; }
.lv-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--lv1) 0 25%, var(--lv2) 25% 50%, var(--lv3) 50% 75%, var(--lv4) 75% 100%); }
.lv-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--teal-dark); box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: pointer; }
.lv-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--teal-dark); }
.lv-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.lv-current { text-align: center; margin-top: 10px; font-size: 15px; font-weight: 700; }

/* ---------- 지도 ---------- */
#map { width: 100%; height: 33.6vh; min-height: 208px; border-radius: var(--radius); border: 1px solid var(--line);
  position: relative; z-index: 0; isolation: isolate; overflow: hidden; }
/* 기록 상세 팝업 안의 작은 지도도 동일하게 격리 */
#popup-map { position: relative; z-index: 0; isolation: isolate; overflow: hidden; }
.map-hint { font-size: 12px; color: var(--muted); margin: 8px 0 4px; text-align: center; }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 12px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- 랭킹 ---------- */
.rank-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.rank-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600;
}
.rank-tabs button.active { background: var(--teal); color: #072420; border-color: var(--teal); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-num { width: 28px; font-weight: 700; color: var(--teal); text-align: center; }
.rank-row:nth-child(1) .rank-num, .rank-row:nth-child(2) .rank-num, .rank-row:nth-child(3) .rank-num { color: var(--gold); }
.rank-name { flex: 1; font-weight: 500; }
.rank-pts { font-size: 13px; color: var(--muted); }

.list-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.helpful-btn {
  margin-top: 6px; font-size: 12px; background: var(--card2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.helpful-btn.voted { color: var(--teal); border-color: var(--teal); }

.btn-guide {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--gold);
  background: rgba(243, 193, 75, 0.10);
  border: 1px solid rgba(243, 193, 75, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  flex: 1;
}
.btn-guide strong { color: var(--gold); }
:root[data-theme="light"] .btn-guide { color: #8A6100; background: #FFF6E0; border-color: #F0D68A; }
:root[data-theme="light"] .btn-guide strong { color: #8A6100; }

/* 내 위치 쭈꾸미 마커 - 둥실둥실 떠있는 애니메이션 */
@keyframes jjukku-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.jjukku-marker { animation: jjukku-bob 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

.section-box {
  border-radius: 14px;
  padding: 16px 14px;
  margin: 18px 0;
  border: 1px solid var(--line);
}
.gps-section-box {
  background: rgba(243, 193, 75, 0.06);
  border: 1px solid rgba(243, 193, 75, 0.35);
}
.record-section-box {
  background: rgba(43, 217, 201, 0.05);
  border: 1px solid rgba(43, 217, 201, 0.3);
}

.gps-card {
  background: linear-gradient(135deg, rgba(243,193,75,.14), rgba(43,217,201,.10));
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}
.gps-card .gps-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold); color: #412402; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 6px;
}
.gps-card:active { transform: scale(0.99); }
.realcheck-locked { }

/* ---------- 조위 정보 ---------- */
.tide-box { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.tide-day { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.tide-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--text); }
.tide-row .t { color: var(--muted); }

/* ---------- 모달 ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: none; align-items: flex-end; z-index: 2000; }
.modal-backdrop.open { display: flex; }
.modal-sheet { background: var(--bg2); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + var(--safe-bottom)); max-height: 88vh; overflow-y: auto; border-top: 1px solid var(--line); }
.modal-sheet .close { float: right; background: none; border: none; font-size: 20px; color: var(--muted); }

/* ---------- 안내/알림 박스 ---------- */
.notice { background: var(--notice-bg); border: 1px solid var(--notice-border); color: var(--notice-text); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.notice.safety { background: var(--notice-safety-bg); border-color: var(--notice-safety-border); color: var(--notice-safety-text); }
.notice.gift { background: var(--notice-gift-bg); border-color: var(--notice-gift-border); color: var(--notice-gift-text); }
.error-msg { color: var(--lv1); font-size: 13px; margin-top: 8px; min-height: 18px; }

/* ---------- 테마 토글 버튼 ---------- */
.theme-toggle {
  background: var(--card2); border: 1px solid var(--line); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; font-size: 14px; padding: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 8px;
}

/* =========================================================
   라이트 테마 (버튼으로 전환)
   ========================================================= */
:root[data-theme="light"] {
  --bg: #F4F5F7;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --card2: #F0F2F4;
  --line: #E3E6EA;

  --text: #1E2124;
  --soft: #454B52;
  --muted: #6F767E;

  --teal: #1D7A85;
  --teal-dark: #145C64;
  --gold: #B8860B;

  --lv1: #B4523A;
  --lv2: #D98A2B;
  --lv3: #1D7A85;
  --lv4: #159E7A;

  --notice-bg: #FFF6E6; --notice-border: #F0DDAE; --notice-text: #7A5B12;
  --notice-safety-bg: #FDEDEA; --notice-safety-border: #F3C6BC; --notice-safety-text: #8C2E1C;
  --notice-gift-bg: #F1ECFB; --notice-gift-border: #D9CCF2; --notice-gift-text: #5B3FA0;

  --shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}
:root[data-theme="light"] .lv-badge { color: #fff; }
:root[data-theme="light"] .btn:not(.ghost):not(.secondary) { color: #fff; }  /* 채워진 버튼만 흰 글자 (투명 버튼은 본래 색 유지) */
:root[data-theme="light"] .rank-tabs button.active { color: #fff; }
:root[data-theme="light"] .gps-card .gps-tag { background: #F3C14B; color: #412402; }

footer.foot-links { text-align: center; padding: 20px 0 10px; font-size: 12px; color: var(--muted); }
footer.foot-links a { text-decoration: underline; margin: 0 6px; }

/* 눈에 확 띄는 노란색 안내 박스 (소라코인 안내 등) */
.notice-yellow {
  background: #FFE14D; color: #3A2B00; border: 2px solid #E0B400; border-radius: 12px;
  padding: 14px 16px; font-size: 14px; font-weight: 600; line-height: 1.6; margin: 14px 0; text-align: center;
}
.notice-yellow strong { color: #B00020; font-weight: 800; }
.gps-card .gps-tag.watch { background: #1F6F8B; color: #fff; }

/* 검색엔진용 포인트 링크 모음 (메인 하단 / 포인트 페이지) */
.seo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-links a { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text); text-decoration: none; background: var(--card, transparent); }
.seo-links a:active { transform: scale(0.97); }

/* 조과터짐! */
.catch-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.catch-card:active { transform: scale(0.99); }
.catch-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line); }
.catch-title { font-weight: 700; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12px; }
.catch-chip { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.catch-chip.blind { background: #FFE14D; color: #3A2B00; border-color: #E0B400; font-weight: 700; }
.blind-box { margin-top: 12px; padding: 18px 12px; text-align: center; border: 2px dashed var(--line); border-radius: 12px; }
#pick-map, #catch-map { position: relative; z-index: 0; isolation: isolate; overflow: hidden; width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* 물색 선택기: 10cm ~ 3m 이상, 좌우로 밀어서 선택 */
.cm-picker { margin: 4px 0 6px; }
.cm-current { text-align: center; margin-bottom: 4px; min-height: 34px; }
.cm-scroll { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 12px calc(50% - 40px); scrollbar-width: none; cursor: grab; }
.cm-scroll::-webkit-scrollbar { display: none; }
.cm-item { flex: 0 0 80px; scroll-snap-align: center; text-align: center; padding: 12px 0; border-radius: 12px; border: 2px solid var(--line);
  font-weight: 700; font-size: 15px; color: var(--muted); user-select: none; -webkit-user-select: none; transition: transform .12s, color .12s, border-color .12s; }
.cm-item.on { color: var(--text); transform: scale(1.1); border-color: var(--c, var(--teal)); }
.cm-hint { text-align: center; font-size: 12px; color: var(--muted); }


/* ---- 메인: 기록하기 큰 버튼 / 흐름 팝업 / 내 기록 ---- */
#map { cursor: grab; }
.cta-box { margin: 16px 0 6px; padding: 16px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--teal); }
.cta-desc { margin: 0 0 12px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--text); }
.cta-desc strong { color: var(--teal); }
.cta-btns { display: flex; flex-direction: column; gap: 10px; }
.cta-big { font-size: 18px; padding: 16px 12px; font-weight: 800; }
.flow-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flow-cand { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 8px 0; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.flow-cand.on { border-color: var(--teal); background: var(--card2); }
.flow-cand input { width: auto; flex: none; margin-top: 4px; }
.flow-cand > span { flex: 1; min-width: 0; }
.flow-tag { font-size: 11px; background: var(--teal); color: #05302c; padding: 2px 6px; border-radius: 8px; margin-left: 4px; }
.flow-opt { display: block; width: 100%; text-align: left; margin: 10px 0; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card2); color: var(--text); font-family: inherit; cursor: pointer; }
.flow-opt strong { display: block; font-size: 16px; margin-bottom: 4px; }
.flow-opt span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.flow-opt b { color: var(--gold); }
:root[data-theme="light"] .flow-opt b { color: #8A6100; }
.mine-media { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--text); }
.pick-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.6); position: relative; }
.pick-dot span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; color: #111; background: rgba(255,255,255,.9); padding: 1px 5px; border-radius: 6px; }
.trust-guide { margin: -4px 0 12px; padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--text); }
.trust-guide p { margin: 0 0 8px; color: var(--text); }
.trust-guide strong { color: var(--teal); }
:root[data-theme="light"] .trust-guide strong { color: #0E7F76; }

/* ---- 첫 방문 안내 ---- */
.guide-box { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.guide-x { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; font-family: inherit; }
.guide-steps { list-style: none; counter-reset: g; margin: 10px 0 8px; padding: 0; }
.guide-steps li { counter-increment: g; position: relative; padding: 6px 0 6px 34px; font-size: 14px; line-height: 1.45; }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #05302c; font-weight: 800; font-size: 13px; text-align: center; line-height: 24px; }
.guide-steps li b { display: block; }
.guide-steps li span { display: block; font-size: 12.5px; color: var(--muted); }
.guide-link { display: inline-block; font-size: 13px; color: var(--teal); font-weight: 700; text-decoration: none; }
:root[data-theme="light"] .guide-link { color: #0E7F76; }
.guide-reopen { display: block; margin: 12px auto 0; background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; font-family: inherit; }
.coin-guide h3 { margin: 12px 0 4px; font-size: 14px; color: var(--teal); }
:root[data-theme="light"] .coin-guide h3 { color: #0E7F76; }
.coin-guide ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--text); }

/* 메인 맨 아래 포인트 링크 모음: 제목만 보이게 접어둠 */
.seo-fold summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seo-fold summary::-webkit-details-marker { display: none; }
.seo-fold summary h2 { margin: 0; font-size: 16px; }
.seo-fold-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.seo-fold[open] .seo-fold-hint { display: none; }
/* 위치 확인 등 흐름 팝업 글씨 */
.flow-big-title { font-size: 21px; line-height: 1.35; margin: 4px 0 10px; color: var(--text); }
.flow-big-text { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 8px; }
.flow-count { font-size: 44px; font-weight: 800; text-align: center; margin: 12px 0; color: var(--teal); }
:root[data-theme="light"] .flow-count { color: #0E7F76; }
.flow-actions .btn { font-size: 15px; line-height: 1.4; }
/* 포인트별 한 줄 목록 */
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pt-name { font-size: 17px; font-weight: 800; color: var(--text); }
.pt-avg { font-size: 15px; font-weight: 800; white-space: nowrap; }
.pt-avg small { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 4px; }

.mine-has-hidden { cursor: pointer; }
.mine-hidden { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255,92,92,.12); border: 1px solid rgba(255,92,92,.45); font-size: 13.5px; color: var(--text); }
.mine-reason { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255,92,92,.45); line-height: 1.5; }
.catch-thumb-empty { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); border: 1px dashed var(--line); }

.gps-card .gps-line { font-size: 16px; font-weight: 800; color: var(--text); margin-top: 6px; line-height: 1.4; word-break: keep-all; }
.gps-card .gps-cost { font-size: 14px; font-weight: 700; color: var(--teal); margin-top: 4px; }

/* 닉네임 + 계급 */
.nick-wrap { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; max-width: 100%; }
.nick-wrap .rank-icon { width: 22px; height: 22px; flex: none; }
.nick-wrap .nick-name { font-size: 17px; font-weight: 900; color: var(--text); letter-spacing: -0.2px; }
.nick-wrap .nick-nim { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.nick-wrap .nick-crew { font-size: 12px; font-weight: 700; color: var(--teal); }
.nick-wrap.big .rank-icon { width: 28px; height: 28px; }
.nick-wrap.big .nick-name, .nick-wrap.big .nick-nim { font-size: 20px; }

.topbar .nickname .nick-name, .topbar .nickname .nick-nim { font-size: 15px; }
.topbar .nickname .rank-icon { width: 20px; height: 20px; }
.rank-name .nick-name, .rank-name .nick-nim { font-size: 18px; }
.guide-rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.guide-rank-row img { width: 28px; height: 28px; }

/* 물색 기록 단계 화면: 전체 화면 + 뒤로가기 (flow < pick < 입력 폼 순서로 겹쳐 쌓임) */
#flow-modal, #pick-modal, #record-modal, #watch-modal, #realcheck-modal, #suggest-modal, #mine-modal, #edit-cm-modal, #old-modal { align-items: stretch; background: var(--bg); }
#flow-modal, #mine-modal, #old-modal { z-index: 2001; } #record-popup-modal { z-index: 2010; } #pick-modal, #edit-cm-modal { z-index: 2002; }
#record-modal, #watch-modal, #realcheck-modal, #suggest-modal { z-index: 2003; }
#old-modal .modal-sheet, #edit-cm-modal .modal-sheet, #mine-modal .modal-sheet, #flow-modal .modal-sheet, #pick-modal .modal-sheet, #record-modal .modal-sheet, #watch-modal .modal-sheet, #realcheck-modal .modal-sheet, #suggest-modal .modal-sheet {
  max-width: 720px; width: 100%; height: 100%; max-height: none; border-radius: 0; overflow-y: auto; padding: 0 16px 28px; background: var(--bg);
}
#old-modal .modal-sheet > .close, #edit-cm-modal .modal-sheet > .close, #mine-modal .modal-sheet > .close, #flow-modal .modal-sheet > .close, #pick-modal .modal-sheet > .close, #record-modal .modal-sheet > .close,
#watch-modal .modal-sheet > .close, #realcheck-modal .modal-sheet > .close, #suggest-modal .modal-sheet > .close { display: none; }
.layer-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.layer-bar button { border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px; padding: 10px 16px; font-size: 16px; font-weight: 800; }
.layer-bar .layer-x { font-size: 13px; font-weight: 600; color: var(--muted); }
#pick-results { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.pick-result { text-align: left; padding: 12px 14px; font-size: 16px; border: 1px solid var(--teal); border-radius: 10px; background: var(--bg2); color: var(--text); }

/* 나의 기록 확인, 수정하기: 눈에 띄는 주황 버튼 */
.cta-mine { background: #FF8A1F; color: #fff; border: none; box-shadow: 0 2px 10px rgba(255,138,31,.45); }
.cta-mine:active { filter: brightness(.92); }
:root[data-theme="light"] .cta-mine { background: #F57C00; color: #fff; }
.topbar .auth-mini .nickname, .topbar .nick-wrap { white-space: nowrap; }

/* 물색 기분 캐릭터 카드 (신뢰도 높은 기록 팝업) */
.mood-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; margin: 4px 0 10px; border: 2px solid var(--line); background: var(--card2); }
.mood-card-sad { border-color: #6C94CF; background: rgba(108,148,207,.14); }
.mood-card-happy { border-color: #4CC98E; background: rgba(76,201,142,.14); }
.mood-card-great { border-color: #FFC83C; background: rgba(255,200,60,.16); }
.mood-svg { width: 104px; height: 124px; flex: none; overflow: visible; }
.mood-label { font-size: 30px; font-weight: 900; line-height: 1.15; color: var(--text); letter-spacing: -0.5px; }
.mood-sub { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.mood-sad .mood-tear { animation: moodTear 1.4s ease-in infinite; }
.mood-sad .mood-tear.t2 { animation-delay: .6s; }
.mood-sad { animation: moodSob 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
.mood-happy { animation: moodHop 1s ease-in-out infinite; transform-origin: 50% 100%; }
.mood-great { animation: moodHop .8s ease-in-out infinite; transform-origin: 50% 100%; }
.mood-great .mood-thumb { animation: moodThumb .8s ease-in-out infinite; transform-origin: 84px 70px; }
.mood-great .mood-spark { animation: moodSpark 1.2s ease-in-out infinite; transform-origin: 50px 20px; }
@keyframes moodTear { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes moodSob { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(3px) scaleY(.97); } }
@keyframes moodHop { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes moodThumb { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes moodSpark { 0%,100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .mood-svg, .mood-svg * { animation: none !important; } }

/* 신뢰도 높은 기록: 사진/동영상 인증 표시 */
.proof-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.proof-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; padding: 4px 11px; border-radius: 999px; line-height: 1.2; }
.proof-badge.photo { background: linear-gradient(135deg, #1fc27a, #12a366); color: #fff; box-shadow: 0 1px 6px rgba(31,194,122,.45); }
.proof-badge.video { background: linear-gradient(135deg, #ff7a45, #e8523a); color: #fff; box-shadow: 0 1px 6px rgba(232,82,58,.4); }
.proof-badge.none { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 600; font-size: 12px; }
.gps-card.has-proof { box-shadow: 0 0 0 1px rgba(31,194,122,.55), 0 2px 12px rgba(31,194,122,.22); }

/* 물색 예측: 영향 요인 칩 */
.pred-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pred-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pred-chip.down { color: #ff8a80; border-color: rgba(255,107,94,.5); background: rgba(255,107,94,.08); }
.pred-chip.up { color: var(--lv4); border-color: rgba(61,220,132,.5); background: rgba(61,220,132,.08); }

/* ---- 앞으로 3일 물색 예측: 파도=파랑 · 바람=회색 · 조류=노랑 (forecast-view.js) ---- */
:root { --fc-wave: #3D9BFF; --fc-wind: #A3ADB8; --fc-cur: #F3C14B; --fc-good: rgba(61,220,132,.16); --fc-plot: #10151C; --fc-grid: #1F2731; --fc-arrow: #D5DCE3; }
:root[data-theme="light"] { --fc-wave: #1E6FD9; --fc-wind: #7A8592; --fc-cur: #C99212; --fc-good: rgba(21,158,122,.14); --fc-plot: #F4F6F8; --fc-grid: #E3E6EA; --fc-arrow: #5B6672; }
.fc-best { padding: 10px 12px; border-radius: 10px; background: rgba(61,220,132,.09); border: 1px solid rgba(61,220,132,.35); font-size: 13.5px; margin-bottom: 10px; }
.fc-best b { color: var(--lv4); }
.fc-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); font-weight: 700; margin: 2px 0 2px; }
.fc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.fc-wave-bg { background: var(--fc-wave); } .fc-wind-bg { background: var(--fc-wind); } .fc-cur-bg { background: var(--fc-cur); } .fc-good-bg { background: rgba(61,220,132,.45); }
.fc-chart-wrap { position: relative; }
.fc-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc-chart svg.fc-axis { position: absolute; left: 0; top: 0; pointer-events: none; }
.fc-axisbg { fill: var(--card); opacity: .85; }
.fc-chart svg { display: block; max-width: none; }
.fc-pastbg { fill: var(--muted); opacity: .07; }
.fc-scroll-hint { font-size: 11px; text-align: right; margin-top: 2px; }
.fc-past { padding: 10px 12px; border-radius: 10px; background: var(--fc-plot); border: 1px solid var(--line); font-size: 13px; margin-bottom: 10px; }
.fc-past-h { font-weight: 800; margin-bottom: 4px; }
.fc-past-row { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fc-past-d { white-space: nowrap; }
.fc-past-note { margin-top: 6px; font-size: 12.5px; color: #FF8A7E; }
.fc-past-note.muted { color: var(--muted); }
:root[data-theme="light"] .fc-past-note { color: #B4523A; }
.fc-chart .fc-txt { fill: var(--text); } .fc-chart .fc-muted { fill: var(--muted); }
.fc-plot { fill: var(--fc-plot); } .fc-grid { stroke: var(--fc-grid); } .fc-grid2 { stroke: var(--line); } .fc-good { fill: var(--fc-good); }
.fc-wave-l { stroke: var(--fc-wave); } .fc-wave-f { fill: var(--fc-wave); opacity: .22; } .fc-wave-t { fill: var(--fc-wave); }
.fc-wind-l { stroke: var(--fc-wind); } .fc-wind-t { fill: var(--fc-wind); }
.fc-cur-l { stroke: var(--fc-cur); } .fc-cur-f { fill: var(--fc-cur); opacity: .22; } .fc-cur-t { fill: var(--fc-cur); color: var(--fc-cur); font-weight: 800; }
.fc-arrow { fill: var(--fc-arrow); }
.fc-slack { fill: var(--fc-cur); } .fc-slack-t { fill: #1B1405; }
.fc-slack-k { display: inline-block; width: 13px; height: 13px; line-height: 13px; border-radius: 50%; background: var(--fc-cur); color: #1B1405; font-size: 9px; text-align: center; margin-right: 4px; vertical-align: 0; }
.fc-now { stroke: var(--teal); } .fc-now-b { fill: var(--teal); } .fc-now-tx { fill: var(--bg); }
.fc-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fc-card { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fc-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.fc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-tile { background: var(--fc-plot); border-radius: 10px; padding: 8px 4px 7px; text-align: center; border-top: 3px solid; min-width: 0; }
.fc-tile .fc-anim { height: 38px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fc-tile .v { font-weight: 800; font-size: 15px; margin-top: 2px; } .fc-tile .s { font-size: 10.5px; color: var(--muted); }
.fc-tile.t-wave { border-color: var(--fc-wave); } .fc-tile.t-wave .v { color: var(--fc-wave); }
.fc-tile.t-wind { border-color: var(--fc-wind); } .fc-tile.t-wind .v { color: var(--fc-wind); }
.fc-tile.t-cur { border-color: var(--fc-cur); } .fc-tile.t-cur .v { color: var(--fc-cur); }
.fc-wave-f2 { fill: var(--fc-wave); fill-opacity: .3; stroke: var(--fc-wave); }
.fc-best-row, .fc-tide { font-size: 13px; margin-top: 8px; }
.fc-best-row b { color: var(--lv4); }
.fc-meta { font-size: 12px; margin-top: 6px; }
.fc-badge-wrap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .fc-badge-wrap small { font-size: 11px; font-weight: 700; }
.fc-low { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--fc-plot); border-left: 3px solid var(--line); font-size: 13px; }
.fc-low.best { border-left-color: var(--lv4); }
.fc-low.past { opacity: .5; }
.fc-low-v { margin-top: 3px; }
.fc-low-bad { color: #FF8A7E; }
:root[data-theme="light"] .fc-low-bad { color: #B4523A; }
.fc-anim-wave { animation: fcWave 2s linear infinite; }
.fc-anim-streak { animation: fcStreak 1s linear infinite; }
.fc-anim-flow { animation: fcFlow 1s linear infinite; }
@keyframes fcWave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes fcFlow { to { stroke-dashoffset: -24; } }
@keyframes fcStreak { 0% { transform: translateX(-18px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(18px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fc-anim-wave, .fc-anim-streak, .fc-anim-flow { animation: none; } }

/* 포인트 페이지: 구역별 색 구분 상자 */
.sec-box { border: 1.5px solid var(--sc); border-radius: 14px; margin: 18px 0; overflow: hidden; background: var(--bg2); }
.sec-head { background: var(--sc); color: var(--sc-text, #fff); padding: 11px 14px; font-size: 17px; font-weight: 800; display: flex; flex-direction: column; gap: 2px; }
.sec-head small { font-size: 12px; font-weight: 600; opacity: .9; }
.sec-body { padding: 12px 12px 8px; }
.sec-note { font-size: 12px; margin: 8px 2px 4px; line-height: 1.5; }
.sec-trend { --sc: #2f7fe0; }
.sec-pred { --sc: #8a5cf0; }
.sec-user { --sc: #0f9d8a; }
.sec-trust { --sc: #e0a21b; --sc-text: #3d2a00; }
.sec-trust .gps-card { margin-bottom: 10px; }
.trust-detail { margin-top: 8px; }

.gps-views { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
/* 열람 횟수(파랑)와 도움이 됐어요 횟수(주황)를 색으로 구분 */
.gps-views .gv-view { color: #1565C0; font-weight: 700; }
.gps-views .gv-thank { color: #E65100; font-weight: 700; }
[data-theme="dark"] .gps-views .gv-view { color: #6EB6FF; }
[data-theme="dark"] .gps-views .gv-thank { color: #FFA45C; }

/* 신뢰도 높은 기록(GPS·워치 카드)의 작성자 닉네임: 보라색으로 눈에 띄게 (열람 횟수=파랑, 도움이 됐어요=주황과 구분) */
.gps-card .nick-wrap .nick-name { color: #6A1B9A; }
.gps-card .nick-wrap .nick-nim { color: #8E5AB5; }
[data-theme="dark"] .gps-card .nick-wrap .nick-name { color: #D7A8FF; }
[data-theme="dark"] .gps-card .nick-wrap .nick-nim { color: #B98ADB; }

/* 포인트 페이지 목록 페이지 버튼 (5개씩) */
.pg-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.pg-btn { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border, #d0d7de); background: var(--card, #fff); color: var(--text, #222); font-weight: 700; font-size: 14px; cursor: pointer; }
.pg-btn.on { background: var(--teal, #00897B); border-color: var(--teal, #00897B); color: #fff; }

/* 메인 포인트별 물색: 기록 없는 포인트의 내일 AI 예측 배지 (점선 테두리로 실제 평균과 구분) */
.pt-fc-badge { opacity: .72; }
.pt-more { display: block; text-align: center; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }

/* 포인트 페이지: 회원 일반 물색 기록 (멘트가 잘 보이게 말풍선) */
.ur-item .ur-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ur-item .ur-nick { font-size: 15px; color: var(--text); }
.ur-item .ur-date { font-size: 12.5px; }
.ur-memo { margin: 8px 0 4px; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: rgba(15,157,138,.12); border-left: 4px solid #0f9d8a; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* 포인트 페이지: 지형 투표 */
.tv-box { margin: 12px 0; padding: 12px 12px 10px; border-radius: 14px; border: 2px dashed #e0a21b; background: rgba(224,162,27,.10); }
.tv-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.tv-title b { color: #c77d00; }
.tv-others { font-size: 14px; margin-top: 4px; }
.tv-others b { color: var(--teal); }
.tv-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.tv-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.tv-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.tv-opt.on { border-color: var(--teal); background: rgba(15,157,138,.14); box-shadow: 0 0 0 1px var(--teal) inset; }
.tv-opt.on span::before { content: '✓ '; color: var(--teal); }
.tv-photos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tv-photos .tv-opt { padding: 5px 5px 7px; gap: 2px; align-items: stretch; text-align: left; }
.tv-photos .tv-opt img { width: 100%; height: auto; border-radius: 9px; display: block; }
.tv-photos .tv-name { font-size: 13.5px; font-weight: 800; margin-top: 3px; }
.tv-photos .tv-desc { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.35; min-height: 30px; }
.tv-photos .tv-meter { font-size: 9px; letter-spacing: 1px; color: #e0a21b; }
.tv-photos .tv-meter i { font-style: normal; color: var(--line); }
.tv-photos .tv-opt.on img { outline: 3px solid var(--teal); outline-offset: -3px; }
.tv-scale { font-size: 11.5px; margin-top: 6px; text-align: center; }
.tv-photos .tv-opt.on span::before { content: none; }
.tv-photos .tv-opt.on .tv-name::before { content: '✓ '; color: var(--teal); }
.tv-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.tv-foot .tv-result { font-size: 12.5px; flex: 1; min-width: 160px; }

/* 지형 묻기: 이미 고른 회원에게는 접힌 한 줄만 (누르면 펼침) */
.tv-fold { display: none; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.tv-fold .muted { font-weight: 500; font-size: 12.5px; }
.tv-fold .muted b { color: var(--teal); }
.tv-fold .tv-fold-more { color: var(--teal); font-size: 12.5px; white-space: nowrap; }
.tv-box.folded { padding: 9px 12px; border-style: solid; border-width: 1.5px; }
.tv-box.folded .tv-fold { display: block; }
.tv-box.folded > :not(.tv-fold) { display: none; }

/* 물색 AI 예측 한 차트: 물색 선(청록) */
:root { --fc-cm: #19C3AE; } :root[data-theme="light"] { --fc-cm: #0f9d8a; }
.fc-cm-l { stroke: var(--fc-cm); } .fc-cm-f { fill: var(--fc-cm); opacity: .14; } .fc-cm-t { fill: var(--fc-cm); }
.fc-cm-bg { background: var(--fc-cm); }
.fc-legend .fc-cur-t { color: var(--fc-cur); }

/* 비회원 기록 안내: 놓치는 혜택 목록 */
.gn-miss { list-style: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(232,89,12,.08); border: 1px solid rgba(232,89,12,.3); font-size: 14px; line-height: 1.8; }

/* 15일 물색 분석 페이지 */
.fc-15btn { display: block; text-align: center; margin: 10px 0 12px; font-size: 15px; }
.f15-strip { display: flex; gap: 3px; align-items: flex-end; height: 150px; padding: 8px 4px 0; margin: 10px 0 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.f15-bar { flex: 1 0 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; text-decoration: none; color: var(--text); }
.f15-bar i { display: block; width: 72%; border-radius: 5px 5px 0 0; background: var(--lv2); max-height: 78px; }
.f15-bar i.lv1 { background: var(--lv1); } .f15-bar i.lv2 { background: var(--lv2); } .f15-bar i.lv3 { background: var(--lv3); } .f15-bar i.lv4 { background: var(--lv4); }
.f15-bar.t2 i { opacity: .65; } .f15-bar.t3 i { opacity: .35; }
.f15-bv { font-size: 9px; font-weight: 800; white-space: nowrap; margin-bottom: 2px; }
.f15-bd { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; padding: 3px 0 4px; }
.f15-bd small { font-size: 9px; color: var(--muted); font-weight: 600; }
.f15-bar.wk .f15-bd, .f15-wk { color: #e5484d; }
.f15-strip-note { font-size: 11.5px; margin-bottom: 4px; }
.f15-card, .f15-row { padding: 10px 2px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.f15-card:last-child, .f15-row:last-child { border-bottom: 0; }
.f15-top { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.f15-wx { font-size: 13px; margin-top: 4px; }
.f15-lows { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.f15-low { font-size: 12.5px; padding: 3px 8px; border-radius: 999px; background: var(--fc-plot, rgba(0,0,0,.04)); border: 1px solid var(--line); }
.f15-low .lvt1 { color: var(--lv1); } .f15-low .lvt2 { color: var(--lv2); } .f15-low .lvt3 { color: var(--lv3); } .f15-low .lvt4 { color: var(--lv4); }
.f15-fac { font-size: 12px; color: var(--muted); margin-top: 5px; }
.f15-ol { font-weight: 800; font-size: 14px; }
.f15-out.good .f15-ol { color: var(--lv4); } .f15-out.normal .f15-ol { color: var(--lv3); } .f15-out.bad .f15-ol { color: var(--lv1); }

/* 물색 AI 예측: 그래프/표 전환 + 3시간 예보표 */
.fc-tabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.fc-tab { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.fc-tab.on { border-color: #8a5cf0; background: rgba(138,92,240,.12); color: #8a5cf0; }
.ft-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ft { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ft td, .ft th { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ft th { font-size: 11.5px; color: var(--muted); font-weight: 700; background: var(--fc-plot); padding: 4px; }
.ft-day td { text-align: left; background: rgba(138,92,240,.10); font-size: 15px; padding: 9px 10px; }
.ft-mul { color: var(--muted); font-size: 13px; font-weight: 600; }
.ft-best { font-size: 12.5px; color: #0f9d8a; font-weight: 700; margin-top: 3px; }
.ft-t { font-weight: 800; white-space: nowrap; width: 58px; }
.ft-wind-in { display: flex; align-items: center; justify-content: center; gap: 4px; line-height: 1.15; }
.ft-wind-in div { text-align: left; }
.ft-arrow path { fill: var(--fc-wind); }
.ft small { font-size: 10.5px; color: var(--muted); margin-left: 1px; }
.ft b { font-size: 15px; }
.ft-wave b { color: var(--fc-wave); }
.ft .bad1 b { color: #e8590c; } .ft .bad2 b { color: #e5484d; }
.ft .bad1 .ft-arrow path { fill: #e8590c; } .ft .bad2 .ft-arrow path { fill: #e5484d; }
.ft-win td { background: rgba(21,158,122,.10); }
.ft-win .ft-t { box-shadow: inset 4px 0 0 #15a37a; }
.ft-now .ft-t { color: #8a5cf0; }
.ft-low td { background: rgba(240,180,40,.14); font-size: 13px; text-align: left; padding: 6px 10px; }
.ft-cm .lv-badge { font-size: 13px; }
.ft-note { font-size: 11.5px; margin: 6px 2px 10px; line-height: 1.5; }

/* 포인트 페이지: 물색 기록하기 버튼 (한 개로 단순하게) */
.pt-rec-btn { display: block; text-align: center; margin: 14px 0 6px; padding: 15px 12px; font-size: 17px; font-weight: 800; border-radius: 14px; }

/* 포인트 페이지 15일 1시간 예보표: 표 안에서 스크롤, 머리줄 고정 */
.ft-title { font-size: 16px; font-weight: 800; margin: 4px 2px 8px; }
.ft-scroll { max-height: 35vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ft-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--bg2); box-shadow: 0 1px 0 var(--line); padding: 6px 4px; }
.ft-day td { padding: 7px 10px; font-size: 14px; }
.ft td { padding: 5px 4px; }

/* 15일 물색 예측 표: 해루질타임 세로 글자 칸 + 단계별 글자 색 (하늘→파랑→보라→빨강) */
.ft th.ft-h, .ft td.ft-h { width: 26px; padding: 0; font-size: 14px; font-weight: 900; color: #fff; }
.ft td.ft-h.on { background: #15a37a; }
.ft-win td { background: rgba(21,158,122,.08); }
.ft-win td.ft-h { background: #15a37a; }
.ft-win .ft-t { box-shadow: none; }
.ft .c1 b, .ft-note .c1 { color: #4fb3e8; }
.ft .c2 b, .ft-note .c2 { color: #1e6fd9; }
.ft .c3 b, .ft-note .c3 { color: #8a3ffc; }
.ft .c4 b, .ft-note .c4 { color: #e5484d; }
.ft .c1 .ft-arrow path { fill: #4fb3e8; } .ft .c2 .ft-arrow path { fill: #1e6fd9; } .ft .c3 .ft-arrow path { fill: #8a3ffc; } .ft .c4 .ft-arrow path { fill: #e5484d; }
.ft-wave b { color: inherit; }
.ft-h-key { background: #15a37a; color: #fff; padding: 0 5px; border-radius: 4px; }

/* 포인트 페이지 하단 빠른 이동 메뉴 (하단 탭 바로 위) */
.pt-quick { position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + var(--safe-bottom)); z-index: 39; display: flex; gap: 6px; padding: 6px 10px; background: color-mix(in srgb, var(--bg2) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.pt-quick a, .pt-quick button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; color: #fff; background: #0f9d8a; }
.pt-quick [data-quick="ai"] { background: #8a5cf0; }
.pt-quick [data-quick="rec"] { background: #e0a21b; color: #3d2a00; }
.rec-sheet { max-height: 88vh; overflow-y: auto; }
.rec-sheet .sec-box { margin: 10px 0; }
@media (min-width: 900px) { .pt-quick { max-width: 640px; margin: 0 auto; border-radius: 14px 14px 0 0; } }

/* 예보표 물때 칸: 간조(물높이) / 시각 */
.ft-tide { line-height: 1.2; white-space: nowrap; font-size: 12px; }
.ft-tide b { font-size: 13px; }
.ft-tide .ft-lo { color: #e8590c; } .ft-tide .ft-hi { color: #1e6fd9; }
.ft td.ft-t { width: 40px; }

/* 동해 물색 3단계 입력 (안좋음 / 보통 / 좋음(청물)) */
.east-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.east-pick .east-btn { flex: 1 1 0; min-width: 0; padding: 12px 4px; border-radius: 12px; border: 2px solid var(--border, #ddd); background: var(--card, #fff); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.east-pick .east-btn small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.east-pick .east-btn.on { border-color: var(--teal, #0f9d8a); background: color-mix(in srgb, var(--teal, #0f9d8a) 12%, transparent); }
.east-pick .cm-hint { flex-basis: 100%; text-align: center; }
