/* 코코요기 디자인 시스템 토큰 (tokens.json 기준) */
@font-face { font-family: "LINE Seed KR"; src: url(/fonts/LINESeedKR-Rg.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LINE Seed KR"; src: url(/fonts/LINESeedKR-Bd.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pretendard Variable"; src: url(/fonts/PretendardVariable.woff2) format("woff2-variations"); font-weight: 45 920; font-display: swap; }

:root {
  /* 무드: 코발트 블루 + 연하늘 + 아이스블루그레이, 스티커형 */
  --surface-0: #FFFFFF; --surface-100: #F3F7FA; --surface-200: #E6EEF4; --line: #D8E3EC;
  --ink: #142036; --ink-muted: #4B586D; --ink-subtle: #627087;
  --cobalt-500: #2350D8; --cobalt-700: #1A3BA6; --sky-100: #E2F1FB; --sky-300: #A9D6F2; --ice: #DCE7F0;
  --lime: #FFE45C; /* 포인트(스티커 옐로) — 변수명은 호환용 */
  --kr-100: #E1EAFF; --kr-500: #1F49C9; --jp-100: #FFE6EF; --jp-500: #C2335F; --jp-600: #2350D8;
  --event-100: #DDF3F1; --event-500: #0B6F66; --ask-100: #ECE8FB; --ask-500: #5038A8;
  --sticker-shadow: 0 2px 0 rgba(20, 32, 54, .10), 0 6px 14px rgba(35, 80, 216, .10);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px; --radius-pill: 999px;
  --font-display: "LINE Seed KR", "LINE Seed JP", "Pretendard Variable", sans-serif;
  --font-text: "Pretendard Variable", "Pretendard", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
html[lang="ja"] .body-text { line-height: 1.7; }
a { color: var(--kr-500); }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
h1, h2, .display { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: 20px; } h2 { font-size: 17px; }
img { max-width: 100%; display: block; }

#shell { max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--surface-0); display: flex; flex-direction: column; position: relative; }
#topbar { position: sticky; top: 0; z-index: 10; background: var(--surface-0); border-bottom: 1px solid var(--line); padding: 10px var(--space-4); display: flex; align-items: center; gap: var(--space-2); }
#app { flex: 1; padding-bottom: 88px; }
#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--surface-0); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }

.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.region-btn { flex: 1; max-width: 160px; margin-left: auto; height: 36px; border: 1px solid #D5D7DB; border-radius: var(--radius-pill); background: var(--surface-0); font-weight: 700; cursor: pointer; }
.lang { display: flex; background: #EFEFEC; border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.lang button { border: 0; border-radius: var(--radius-pill); min-width: 44px; height: 32px; font-size: 12px; font-weight: 700; background: transparent; color: var(--ink-muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tab { border: 0; background: none; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-subtle); text-decoration: none; font-size: 11px; font-weight: 700; }
.tab[aria-current="page"] { color: var(--ink); }
.tab svg { width: 22px; height: 22px; }

.hero { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 260px; padding: 24px 20px 28px; color: #fff; position: relative; text-decoration: none; overflow: hidden; }
.hero .tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--lime); color: var(--ink); }
.hero .title { font-family: var(--font-display); font-size: 26px; line-height: 1.3; white-space: pre-line; }
.hero .sub { font-size: 14px; color: #E6E7EA; }
.hero-wrap { position: relative; }
.hero-ctrl { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; background: rgba(0,0,0,.4); border-radius: var(--radius-pill); padding: 0 2px; color: #fff; font-size: 12px; font-weight: 700; }
.hero-ctrl button { width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; padding: 18px 12px; }
.cat { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 12px; cursor: pointer; position: relative; }
.cat .ico { width: 56px; height: 56px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; }
.cat .ico svg { width: 26px; height: 26px; }
.cat .soon { position: absolute; top: -6px; right: 4px; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: var(--radius-pill); background: var(--lime); }
.band { height: 8px; background: var(--surface-200); }

.section { padding: 20px var(--space-4) 4px; display: flex; flex-direction: column; gap: var(--space-3); }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.more { font-size: 13px; font-weight: 700; color: var(--ink-muted); text-decoration: none; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4) 4px; scrollbar-width: none; }

.thumb { border-radius: var(--radius-lg); background: #24262B; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .plat { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.5); padding: 3px 6px; border-radius: var(--radius-sm); }
.thumb .badge { position: absolute; left: 8px; bottom: 8px; }
.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.card .name { font-size: 15px; font-weight: 700; margin-top: 8px; }
.meta { font-size: 12px; color: var(--ink-muted); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-sm); }
.badge.kr { background: var(--kr-100); color: var(--kr-500); }
.badge.jp { background: var(--jp-100); color: var(--jp-500); }
.badge.ev { background: var(--event-100); color: var(--event-500); }

.block { background: var(--surface-100); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.row { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.empty { text-align: center; color: var(--ink-muted); font-size: 13px; padding: 24px 0; line-height: 1.6; white-space: pre-line; }

.btn { height: 48px; border: 0; border-radius: var(--radius-md); background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: var(--surface-0); color: var(--ink); border: 1px solid #D5D7DB; }
.btn.sm { height: 36px; font-size: 12px; border-radius: var(--radius-pill); padding: 0 14px; }
.btn[disabled] { opacity: .5; cursor: default; }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tabs a { height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-subtle); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #EFEFEC; border-radius: var(--radius-md); padding: 3px; gap: 3px; margin: 12px var(--space-4) 0; }
.seg button { border: 0; border-radius: 8px; height: 36px; font-size: 12px; font-weight: 700; background: transparent; color: var(--ink-muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { border: 1px solid #D5D7DB; border-radius: var(--radius-md); padding: 10px 12px; min-height: 44px; background: #fff; }
.form { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.note { font-size: 12px; color: var(--ink-muted); line-height: 1.6; }

.back { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.embed { width: 100%; aspect-ratio: 9 / 16; max-height: 560px; border: 0; background: #24262B; display: block; }
.embed.ig { aspect-ratio: auto; height: 600px; max-height: none; background: var(--surface-0); }
details summary { font-size: 11px; color: var(--ink-muted); cursor: pointer; }

#sheet { position: fixed; inset: 0; background: rgba(23,24,28,.45); z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
#sheet .panel { width: 100%; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 8px; }
#sheet .opt { height: 48px; border: 1px solid #D5D7DB; border-radius: 12px; background: #fff; font-weight: 700; text-align: left; padding: 0 16px; cursor: pointer; }
#sheet .opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); font-size: 13px; z-index: 40; max-width: 90%; }
.admin-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-item .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* 카드: 썸네일 없는 영상은 중립 배경 + 재생 표시 */
.thumb.blank { background: var(--surface-200); }
.thumb .playdot { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 999px; background: rgba(23,24,28,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.thumb .playdot svg { width: 14px; height: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }

/* 히어로 이미지 */
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); z-index: 1; }
.hero > span { position: relative; z-index: 2; }

/* 릴스 피드 */
body.reels-mode { background: #0E0F12; }
.reels-wrap { position: relative; background: #0E0F12; }
.reels-seg { display: flex; margin: 0; padding: 8px 16px; background: #0E0F12; border-radius: 0; gap: 6px; justify-content: flex-start; }
.reels-seg button { flex: none; white-space: nowrap; color: #C9CBD1; background: #24262B; border-radius: 999px; padding: 6px 12px; height: 32px; font-size: 13px; }
.reels-seg button[aria-pressed="true"] { color: var(--ink); }
.reels { overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; color: #fff; }
.reel .stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; background: #0E0F12; }
.reel .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.reel .stage iframe { position: relative; width: 100%; height: 100%; border: 0; }
.reel .stage iframe.ig { margin-top: -54px; background: #fff; }
.reel .info { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; background: #0E0F12; }
.reel .who { display: flex; gap: 6px; align-items: center; }
.reel .plat-s { font-size: 11px; color: #9DA0A8; }
.reel .pname { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.reel .pname span { color: var(--lime); }
.reel .pmeta { font-size: 13px; color: #C9CBD1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.reel .shield { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.reel .shield .snd { width: 36px; height: 36px; border-radius: 999px; background: rgba(23,24,28,.55); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.reel .shield .hint { align-self: center; margin: 0 auto; background: rgba(23,24,28,.7); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.reel .shield[hidden] { display: none !important; }

/* ===== 무드 레이어: 스티커형 ===== */
a { color: var(--cobalt-500); }
#topbar { border-bottom-color: var(--line); }
.logo { color: var(--cobalt-500); }
.region-btn { border: 2px solid var(--line); background: var(--surface-100); }
.lang { background: var(--surface-200); }
.lang button[aria-pressed="true"] { background: var(--cobalt-500); }
.tab[aria-current="page"] { color: var(--cobalt-500); }
#tabbar { border-top-color: var(--line); }

/* 히어로: 이미지 없을 땐 블루 그라데이션 + 반짝이(캐릭터 눈 모티프) 스티커 */
.hero-wrap { padding: 12px 12px 0; }
.hero { border-radius: 24px; height: 248px; box-shadow: var(--sticker-shadow); }
.hero .tag { border: 2px solid #fff; transform: rotate(-3deg); box-shadow: 0 2px 0 rgba(20,32,54,.15); }
.hero .spark { position: absolute; z-index: 1; color: #fff; }
.hero .spark svg { width: 100%; height: 100%; }
.hero .s1 { width: 46px; height: 46px; top: 26px; right: 34px; transform: rotate(8deg); }
.hero .s2 { width: 22px; height: 22px; top: 84px; right: 96px; opacity: .85; }
.hero .s3 { width: 64px; height: 64px; top: 92px; right: -10px; color: var(--sky-300); opacity: .9; }
.hero-ctrl { right: 26px; bottom: 14px; background: rgba(20,32,54,.35); backdrop-filter: blur(6px); }

/* 카테고리 아이콘 = 스티커 */
.cat .ico { border-radius: 20px; border: 3px solid #fff; box-shadow: var(--sticker-shadow); }
.cat .soon { border: 2px solid #fff; transform: rotate(6deg); }
.band { background: var(--ice); }

/* 뱃지 = 스티커 칩 */
.badge { border: 2px solid #fff; box-shadow: 0 1px 0 rgba(20,32,54,.12); }

/* 카드 */
.thumb { border-radius: 20px; }
.thumb.blank { background: linear-gradient(160deg, var(--sky-100), var(--ice)); }
.thumb .playdot { background: var(--cobalt-500); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(35,80,216,.3); }
.block { border-radius: 20px; }

/* 버튼 */
.btn.lime { background: var(--cobalt-500); color: #fff; }
.btn.ghost { border-color: var(--line); }

/* 릴스: 네이비 톤 */
body.reels-mode, .reels-wrap, .reels-seg, .reel .stage, .reel .info { background: #0C1730; }
.reels-seg button { background: #1B2A4C; }
.reel .pname span { color: var(--sky-300); }

/* ===== 지도 ===== */
body.map-mode #app { padding-bottom: 0; }
.mapv { position: relative; overflow: hidden; background: var(--ice); }
#map { position: absolute; inset: 0; z-index: 0; background: var(--ice); }
.map-chips { position: absolute; top: 12px; left: 12px; right: 56px; z-index: 500; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.map-chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid #fff; background: var(--surface-0); color: var(--ink); font-weight: 700; font-size: 13px; box-shadow: var(--sticker-shadow); cursor: pointer; }
.map-chips button[aria-pressed="true"] { background: var(--cobalt-500); color: #fff; }
.bubble-wrap { background: none; border: 0; }
.bubble { transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--cobalt-500); color: #fff; font-weight: 700; font-size: 13px; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(20,32,54,.15), 0 8px 18px rgba(35,80,216,.25); position: relative; cursor: pointer; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.bubble b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--cobalt-500); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.bubble.zero { background: var(--ink-subtle); }
.bubble.zero b { color: var(--ink-subtle); }
.bubble.on { background: var(--lime); color: var(--ink); transform: translate(-50%, -100%) scale(1.08); }
.bubble.on b { color: var(--ink); }
.msheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--surface-0); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 24px rgba(20,32,54,.12); max-height: 132px; overflow: hidden; transition: max-height .25s ease; }
.msheet.open { max-height: 55%; overflow-y: auto; }
.msheet .grab { display: block; width: 100%; height: 22px; border: 0; background: none; position: relative; cursor: pointer; }
.msheet .grab::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--line); }
.msheet-hint { margin: 4px 20px 20px; color: var(--ink-muted); font-size: 14px; text-align: center; }
.msheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 12px; }
.msheet-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.msec h2 { font-size: 15px; margin-bottom: 8px; }
.msec h2 span { color: var(--cobalt-500); }
.leaflet-control-zoom a { border-radius: 10px !important; }
.leaflet-control-attribution { font-size: 9px; }

.leaflet-tile-pane { filter: grayscale(.85) sepia(.15) hue-rotate(160deg) saturate(1.3) brightness(1.04) contrast(.92); }

/* 지도 마커(구글/Leaflet 공통) */
.mk { position: absolute; transform: translate(-50%, -100%); cursor: pointer; }
.mk-leaf { background: none; border: 0; }
.mk-leaf .mk { position: relative; }
.mk .bubble { transform: none; }
.mk .bubble.on { transform: scale(1.08); }
.fpin { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 4px 8px 4px 4px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; border: 2px solid var(--sky-300); box-shadow: 0 2px 6px rgba(20,32,54,.18); position: relative; }
.fpin::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--sky-300); }
.fpin i { font-style: normal; min-width: 18px; height: 18px; border-radius: 999px; background: var(--sky-100); color: var(--cobalt-500); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.fpin.local { border-color: var(--cobalt-500); }
.fpin.local::after { border-top-color: var(--cobalt-500); }
.fpin.on { background: var(--lime); border-color: #fff; transform: scale(1.12); }
.map-research { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 550; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid #fff; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--sticker-shadow); cursor: pointer; }
.map-research svg { width: 16px; height: 16px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 12px; }
.frow.on { background: var(--sky-100); }
.frow i { font-style: normal; width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--sky-100); color: var(--cobalt-500); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.frow div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.frow b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .star { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.frow .star small { color: var(--ink-subtle); font-weight: 400; margin-left: 2px; }
.gattr { font-size: 11px; color: var(--ink-subtle); margin: 8px 0 0; }

.mk.kk { position: relative; transform: none; }
.tapcard { display: flex; flex-direction: column; gap: 2px; min-width: 180px; max-width: 260px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(20,32,54,.12), 0 10px 24px rgba(35,80,216,.2); position: relative; margin-bottom: 10px; }
.tapcard::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #fff; }
.tapcard .main { font-weight: 700; font-size: 14px; color: var(--ink); }
.tapcard .sub { font-size: 12px; color: var(--ink-muted); }
.tapcard a { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--cobalt-500); text-decoration: none; }

.fdot { width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--cobalt-500); border: 2px solid var(--sky-300); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(20,32,54,.2); }
.fdot.local { background: var(--cobalt-500); color: #fff; border-color: #fff; }

/* 카테고리 일러스트 스티커 */
.cat .ico.img { width: 44px; height: 44px; background: none; border: 0; box-shadow: none; border-radius: 0; transition: transform .15s ease; }
.cat .ico.img img { width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(20,32,54,.12)); }
.cat:hover .ico.img, .cat:active .ico.img { transform: rotate(-4deg) scale(1.06); }
.cat .ico.img.off { opacity: .55; filter: grayscale(.4); }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }

/* 서포터즈픽 */
.spark-i { color: var(--cobalt-500); font-size: 14px; }
.pick { flex: none; width: 220px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.pick-thumbs { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 150px; border-radius: 20px; overflow: hidden; background: var(--sky-100); }
.pick-thumbs img, .pick-thumbs span { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(160deg, var(--sky-100), var(--ice)); }
.pick-thumbs > :first-child { grid-row: span 2; }
.pick-n { position: absolute; right: 8px; bottom: 8px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--cobalt-500); color: #fff; border: 2px solid #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pick-title { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-by { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.pick-row { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-row > i { font-style: normal; font-weight: 700; color: var(--cobalt-500); width: 18px; flex: none; padding-top: 4px; }
.pick-opt { display: grid; grid-template-columns: 22px 1fr; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pick-opt input[type=checkbox] { width: 20px; height: 20px; }
.pick-opt input[name^=note_] { grid-column: 2; min-height: 36px; border: 1px solid #D5D7DB; border-radius: 8px; padding: 0 8px; }
.cand-match { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }

.badge.ed { background: var(--sky-100); color: var(--cobalt-700); }

.badge { white-space: nowrap; }
.badge-wrap { right: 8px; }

/* 지역 시트: 도시별 칩 */
#sheet .panel { max-height: 75vh; overflow-y: auto; }
.rcity { font-size: 12px; font-weight: 700; color: var(--ink-subtle); margin: 12px 0 6px; }
.rgroup { display: flex; flex-wrap: wrap; gap: 6px; }
.rchip { height: 34px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-0); font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer; }
.rchip[aria-pressed="true"] { background: var(--cobalt-500); border-color: var(--cobalt-500); color: #fff; }
.bubble.city { background: var(--ink); }
/* 일정 달력 */
.cal { background: var(--surface-0); border: 2px solid var(--line); border-radius: 20px; padding: 10px 10px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.cal-head b { font-family: var(--font-display); font-size: 16px; }
.cal-head button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--surface-100); font-size: 18px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wk { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-subtle); padding: 4px 0; }
.cal-wk.sun { color: #C2335F; } .cal-wk.sat { color: var(--cobalt-500); }
.cal-cell { aspect-ratio: 1 / 1.05; border: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; gap: 3px; cursor: pointer; font: inherit; }
.cal-cell.empty { cursor: default; }
.cal-cell .dnum { font-size: 13px; font-weight: 600; width: 26px; height: 26px; line-height: 26px; border-radius: 999px; text-align: center; }
.cal-cell.today .dnum { box-shadow: inset 0 0 0 2px var(--cobalt-500); }
.cal-cell.sel .dnum { background: var(--cobalt-500); color: #fff; }
.cal-cell.has { background: var(--sky-100); }
.cal-cell .dots { display: flex; gap: 2px; }
.cal-cell .dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--cobalt-500); }
.cal.popup .cal-cell .dots i { background: #E8618C; }
.cal.event .cal-cell .dots i { background: var(--event-500); }

.bubble.mini { padding: 3px 8px; font-size: 11px; background: rgba(98,112,135,.88); border-width: 2px; box-shadow: 0 2px 4px rgba(20,32,54,.15); }
.bubble.mini::after { display: none; }

.map-country { position: absolute; top: 12px; left: 12px; z-index: 520; display: flex; gap: 4px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px; box-shadow: var(--sticker-shadow); }
.map-country button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 12px; cursor: pointer; }
.map-country button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-chips { top: 56px; }
.map-research { top: 100px; }
.ctabs { display: flex; gap: 6px; }
.ctabs button { flex: 1; height: 38px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-0); font-weight: 700; cursor: pointer; }
.ctabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.rchip b { margin-left: 4px; color: var(--cobalt-500); }
.rchip[aria-pressed="true"] b { color: #fff; }
.rmore { margin-top: 12px; } .rmore summary { font-size: 13px; color: var(--ink-subtle); cursor: pointer; margin-bottom: 8px; }
.tapcard .osm { font-size: 9px; color: var(--ink-subtle); }

#sheet { z-index: 1000 !important; }

/* 탐색 릴스: 국적 + 카테고리 칩을 한 줄 가로 스크롤로 */
.reels-seg { overflow-x: auto; scrollbar-width: none; }
.reels-seg::-webkit-scrollbar { display: none; }
.reels-seg .seg-div { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: rgba(255,255,255,.18); }
.bubble b { min-width: 0; }

/* 가로 줄: 터치 가로 스와이프 허용 + 데스크톱 드래그 표시 */
.reels-seg, .map-chips, .hscroll, .pick-thumbs { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.reels-seg.dragging, .map-chips.dragging, .hscroll.dragging { cursor: grabbing; user-select: none; }
.reels-seg.dragging *, .map-chips.dragging *, .hscroll.dragging * { pointer-events: none; }

/* 히어로 캐러셀: 화면 꽉 찬 배너(박스 안 박스 없음) + 스와이프 + 점 인디케이터 (올리브영·인스타 패턴) */
.hero-wrap { position: relative; padding: 0 !important; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none; overflow: hidden; background: var(--ink); }
.hero-slide .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide .split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.hero-slide .split > span { position: relative; overflow: hidden; }
.hero-slide .split .hero-img { position: absolute; }
.hero-slide .split .badge { position: absolute; top: 14px; left: 12px; z-index: 2; border: 2px solid #fff; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%); z-index: 1; pointer-events: none; }
.hero-slide.popup::after, .hero-slide.event::after, .hero-slide.none::after { display: none; }
.hero-slide .txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 0 20px 34px; }
.hero-slide .tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); border: 2px solid #fff; transform: rotate(-3deg); }
.hero-slide .tag .badge { border: 0; padding: 0; background: none; }
.hero-slide .title { font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.hero-slide .sub { font-size: 13px; color: rgba(255,255,255,.86); }
.hero-slide .spark { z-index: 1; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.hero-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .25s, background .25s; cursor: pointer; }
.hero-dots i.on { width: 18px; background: #fff; }
.hero-dots i::before { content: ""; position: absolute; } 
/* 레일: peek + 스냅 */
.hscroll.snap { scroll-snap-type: x mandatory; scroll-padding-left: var(--space-4); }
.hscroll.snap > * { scroll-snap-align: start; }
.section.rail { padding-top: 14px; }
/* 팝업 D-day 스티커 */
.thumb { position: relative; }
.dday { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(20,32,54,.15); transform: rotate(-3deg); }
.hero-slide .spark { position: absolute; color: #fff; }
.hero-slide .spark svg { width: 100%; height: 100%; }
.hero-slide .s1 { width: 46px; height: 46px; top: 30px; right: 34px; transform: rotate(8deg); }
.hero-slide .s2 { width: 22px; height: 22px; top: 92px; right: 96px; opacity: .85; }
.hero-slide .s3 { width: 64px; height: 64px; top: 100px; right: -10px; color: var(--sky-300); opacity: .9; }

/* 히어로 텍스트: 기울어진 태그 대신 작은 키커 한 줄 */
.hero-slide .kicker { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.92); }
.hero-slide .hero-img { object-position: center 38%; }
.hero-slide .title { font-size: 23px; white-space: pre-line; }
/* 쇼츠에 박힌 자막과 겹쳐도 제목이 읽히게: 하단을 더 진하게 + 글자 그림자 */
.hero-slide.pick::after { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(8,14,28,.55) 62%, rgba(8,14,28,.88) 100%); }
.hero-slide .txt { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
/* 팝업 타이포 커버 (포스터 없을 때) */
.thumb.cover { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 14px 12px 40px; box-sizing: border-box; overflow: hidden; }
.thumb.cover .cv-title { font-family: var(--font-display); font-size: 17px; line-height: 1.3; font-weight: 800; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 22px; }
.thumb.cover .cv-where { font-size: 11px; font-weight: 700; opacity: .8; }
.thumb.cover .cv-spark { position: absolute; right: -12px; top: 38%; width: 84px; height: 84px; opacity: .22; transform: rotate(12deg); }
.thumb.cover .cv-spark svg { width: 100%; height: 100%; }
.thumb.cover.t-cobalt { background: #2350D8; color: #fff; }
.thumb.cover.t-sky { background: #A9D6F2; color: #142036; }
.thumb.cover.t-lemon { background: #FFE45C; color: #142036; }
.thumb.cover.t-pink { background: #FFD6E4; color: #142036; }
.thumb.cover.t-ink { background: #142036; color: #fff; }
.thumb.cover.t-cobalt .cv-spark, .thumb.cover.t-ink .cv-spark { color: #fff; opacity: .28; }
.thumb.cover .dday { z-index: 2; }
.thumb.cover { align-items: flex-start; text-align: left; }

/* 소셜 로그인 */
.login .btn.social { height: 50px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 0; }
.login-more summary { font-size: 13px; color: var(--ink-muted); cursor: pointer; margin-top: 6px; }
.login .btn.social { position: relative; display: flex; align-items: center; justify-content: center; }
.login .btn.social img { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.login .btn.social span { color: inherit; }
/* 레퍼런스(카카오 '카카오로 시작하기' 표준, 국내 앱 간편로그인): 심볼과 레이블을 한 덩어리로 가운데 정렬 */
.login .btn.social { gap: 8px; }
.login .btn.social img { position: static; transform: none; flex: none; }
.login .btn.social[data-v="kakao"] img { opacity: .9; }

/* ---------- 소셜: 마이페이지 · 피드 · 모먼트 ---------- */
.me-btn { display: inline-flex; flex: none; text-decoration: none; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 800; color: var(--ink-muted); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av svg { width: 60%; height: 60%; }
.av.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cobalt-500); }
.av-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.who { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.who.sm b { font-size: 13px; }
.linkbtn { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--ink-subtle); cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.linkbtn.danger[data-armed="1"] { color: #D33; }
.btn.danger { background: #D33; color: #fff; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.qcats { margin: 10px calc(-1 * var(--space-4)) 6px; gap: 6px; }
.qcats .rchip { flex: none; }
.moments { gap: 14px; padding-top: 6px; padding-bottom: 8px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; flex: none; text-decoration: none; color: inherit; position: relative; }
.mo span:last-child { font-size: 11px; font-weight: 700; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-plus { position: absolute; right: 0; top: 42px; width: 20px; height: 20px; border-radius: 50%; background: var(--cobalt-500); color: #fff; font-size: 14px; line-height: 18px; text-align: center; border: 2px solid #fff; }
.ctabs .ctab { flex: 1; height: 38px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-0); font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.ctabs .ctab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.post { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.post header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.post .body-text { margin: 0; white-space: pre-wrap; }
.post-imgs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; scrollbar-width: none; }
.post-imgs img { width: 100%; flex: none; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }
.post-imgs.multi img { width: 86%; }
.orig summary { font-size: 12px; color: var(--ink-subtle); cursor: pointer; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.profile { display: flex; flex-direction: column; gap: 10px; }
.profile .ph { display: flex; align-items: center; gap: 18px; }
.profile .stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.profile .stats > * { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.profile .stats b { font-size: 18px; }
.profile .stats span { font-size: 12px; color: var(--ink-muted); }
.pacts { display: flex; gap: 6px; flex-wrap: wrap; }
.pacts .btn { flex: 1; }
.menu { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--line); }
.menu .row { font-weight: 700; font-size: 14px; }
.menu button.row { border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-family: inherit; color: inherit; width: 100%; }
.danger-zone { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { font-size: 13px; color: var(--ink-subtle); cursor: pointer; }
.danger-zone[open] { display: flex; flex-direction: column; gap: 10px; }
body.moment-mode #tabbar, body.moment-mode #topbar { display: none; }
.moment-view { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; background: #000; z-index: 30; display: flex; align-items: center; justify-content: center; }
.moment-view header { position: absolute; top: 18px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; color: #fff; }
.moment-view header .who { color: #fff; }
.moment-view .mv-time { color: rgba(255,255,255,.7); }
.mv-x { margin-left: auto; color: #fff; text-decoration: none; font-size: 20px; padding: 4px 8px; }
.mv-bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.mv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.mv-bars i.on { background: #fff; }
.mv-slide { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.mv-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mv-slide figcaption { position: absolute; left: 16px; right: 16px; bottom: 60px; color: #fff; font-weight: 700; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mv-del { position: absolute; right: 12px; bottom: 16px; z-index: 4; }
.mv-del .linkbtn { color: #fff; background: rgba(0,0,0,.4); border-radius: 999px; padding: 6px 12px; }
.mv-prev, .mv-next { position: absolute; top: 70px; bottom: 70px; width: 40%; border: 0; background: transparent; z-index: 2; cursor: pointer; }
.mv-prev { left: 0; } .mv-next { right: 0; }

/* ---------- IA 정리: 하위 화면 바 · 첨부 · 위치 · 모션 ---------- */
.cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#topbar.sub { gap: 4px; padding-left: 4px; }
#topbar.sub .back { width: 44px; height: 44px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); border-radius: 12px; }
#topbar.sub .back svg { width: 24px; height: 24px; }
#topbar.sub .back:active { background: var(--surface-200); }
.tb-title { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-right { flex: none; display: inline-flex; gap: 6px; }

.attach { display: flex; flex-direction: column; gap: 8px; }
.attach-btn { position: relative; gap: 8px; align-self: flex-start; border-style: dashed !important; border-width: 2px !important; height: 48px; padding: 0 16px; cursor: pointer; }
.attach-btn svg { width: 20px; height: 20px; }
.attach-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.attach-n { font-size: 12px; color: var(--ink-subtle); }
.attach.has .attach-btn { border-style: solid !important; }
.thumbs .th { position: relative; display: inline-block; animation: pop .22s ease-out; }
.thumbs .th img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; display: block; }
.thumbs .th button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; }
.locf { display: flex; align-items: center; gap: 8px; }
.loc-chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--sky-100, #E2F1FB); font-weight: 700; font-size: 13px; animation: pop .22s ease-out; }
.loc-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-muted); flex-wrap: wrap; }
.loc-line svg { width: 16px; height: 16px; flex: none; }
.dir-btn { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 999px; background: #FEE500; color: #191919; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; text-decoration: none; }
.loc-line.light { color: #fff; justify-content: center; margin-top: 8px; }
.loc-line.light .dir-btn { margin-left: 6px; }
.tapcard .dir { font-weight: 800; }
#sheet .opt.loc-opt, #sheet .opt.create-opt { height: auto; min-height: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 10px 16px; text-decoration: none; color: inherit; }
.mv-bars i { position: relative; overflow: hidden; }
.mv-bars i.done { background: #fff; }
.mv-bars i.on { background: rgba(255,255,255,.35); }
.mv-bars i.on::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: mvfill 5s linear forwards; }
.mv-slide figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* 모션: 화면 전환 · 시트 · 토스트 · 버튼 반응 */
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes mvfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes toastup { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
#app.enter { animation: enter .22s ease-out; }
#sheet:not([hidden]) { animation: fadein .18s ease-out; }
#sheet:not([hidden]) .panel { animation: sheetup .26s cubic-bezier(.2, .8, .2, 1); }
#toast:not([hidden]) { animation: toastup .2s ease-out; }
.btn, .rchip, .tab, .cat, .mo { transition: transform .12s ease, background-color .15s ease, color .15s ease; }
.btn:active, .rchip:active, .cat:active, .mo:active { transform: scale(.96); }
[data-act="follow"], [data-act="unfollow"] { animation: pop .25s ease-out; }
.linkbtn.danger[data-armed="1"] { animation: shake .3s ease; }
.post { animation: enter .25s ease-out both; }
.mv-slide:not([hidden]) img { animation: fadein .2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mv-bars i.on::after { animation: none; transform: scaleX(1); }
}

/* 마이페이지: 숫자 3단 대신 조용한 한 줄, 메뉴는 ☰ 시트로 */
.iconbtn { width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:active { background: var(--surface-200); }
.profile .ph { gap: 14px; }
.pinfo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fline { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.fline a { color: inherit; text-decoration: none; }
.fline b { color: var(--ink); }
.ptitle { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
#sheet .panel a.opt { display: flex; align-items: center; text-decoration: none; color: var(--ink); }

/* 코코요기 고양이 */
.kcat { display: block; filter: drop-shadow(0 4px 6px rgba(20,32,54,.12)); user-select: none; -webkit-user-drag: none; }
.cat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0; }
.cat-empty p { margin: 0; white-space: pre-line; }
.cat-empty .kcat { animation: catin .5s cubic-bezier(.2,.9,.3,1.3) both, float 3.2s ease-in-out .5s infinite; }
.login .kcat { margin: 6px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; }
.cat-tip { display: flex; align-items: center; gap: 10px; background: var(--sky-100); border-radius: 16px; padding: 8px 12px; }
.cat-tip .note { margin: 0; }
.cat-title { display: flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 58px; }
.cat-title .kcat { flex: none; margin: -6px 0; }
.cat-title h1 { margin: 0; }
.kcat.bob { animation: float 3s ease-in-out infinite; }
.kcat.tilt { transform-origin: 50% 90%; animation: tilt 3.6s ease-in-out infinite; }
.kcat.wave { transform-origin: 50% 90%; animation: catin .5s cubic-bezier(.2,.9,.3,1.3) both, wave 2.4s ease-in-out .6s infinite; }
@keyframes catin { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } }
.dark-empty .cat-empty p { color: #C9CBD1; }
.dir-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.dir-row .kcat { flex: none; animation: float 3s ease-in-out infinite; }

/* 팝업 타이포 커버: 선 없는 '면' 고양이(카드 톤에 맞춘 단색) */
.thumb.cover .cv-cat { position: absolute; right: -8%; bottom: -6%; width: 62%; aspect-ratio: 1; background: var(--cv-c, #A9D6F2);
  -webkit-mask: var(--cv-cat) no-repeat right bottom / contain; mask: var(--cv-cat) no-repeat right bottom / contain; z-index: 0; pointer-events: none;
  transform-origin: 70% 100%; transition: transform .25s cubic-bezier(.2,.9,.3,1.3); }
.thumb.cover .cv-title, .thumb.cover .cv-where { position: relative; z-index: 1; }
.thumb.cover .cv-spark { top: 10px; right: 10px; width: 34px; height: 34px; transform: rotate(12deg); }
.thumb.cover.t-cobalt { --cv-c: #A9D6F2; }
.thumb.cover.t-sky { --cv-c: #2350D8; }
.thumb.cover.t-lemon { --cv-c: #2350D8; }
.thumb.cover.t-pink { --cv-c: #2350D8; }
.thumb.cover.t-ink { --cv-c: #A9D6F2; }
.card:hover .thumb.cover .cv-cat, .card:active .thumb.cover .cv-cat { transform: rotate(-4deg) translateY(-3px); }
.logout-btn { width: 100%; margin-top: 18px; gap: 8px; color: #C23A3A; border-color: #F1C9C9 !important; }
.logout-btn svg { width: 18px; height: 18px; }
.thumb.cover .cv-cat { right: 4%; bottom: 3%; width: 60%; }

/* 히어로 기본 슬라이드: 선 없는 면 고양이 */
.hero-slide .hero-cat { position: absolute; right: 14px; bottom: 0; width: 46%; height: 78%; background: #A9D6F2; z-index: 1; pointer-events: none;
  -webkit-mask: var(--cv-cat) no-repeat right bottom / contain; mask: var(--cv-cat) no-repeat right bottom / contain;
  transform-origin: 80% 100%; animation: herocat 4s ease-in-out infinite; }
.hero-slide.event .hero-cat { background: #E2F1FB; }
.hero-slide:has(.hero-cat) .s3 { display: none; }
.hero-slide:has(.hero-cat) .s1 { right: auto; left: 52%; top: 26px; }
.hero-slide:has(.hero-cat) .s2 { right: auto; left: 44%; top: 78px; }
.hero-slide:has(.hero-cat) .txt { max-width: 62%; }
@keyframes herocat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }

/* 랭킹 */
.rank-note { margin: 4px 0 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; animation: enter .3s ease-out both; }
.rank-n { width: 28px; flex: none; text-align: center; font-family: var(--font-display); font-size: 18px; color: var(--ink-subtle); }
.rank-row.top .rank-n { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; font-size: 15px; color: var(--ink); }
.rank-n.r1 { background: #FFE45C; } .rank-n.r2 { background: #A9D6F2; } .rank-n.r3 { background: #FFD6E4; }
.rank-th { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--sky-100), var(--ice)); }
.rank-th img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-info b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-why { display: flex; gap: 4px; flex-wrap: wrap; }
.rank-why i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--sky-100); color: var(--cobalt-700); }

/* 온보딩 · 닉네임 · 관심사 */
.onb fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; animation: enter .25s ease-out; }
.onb-bar { display: flex; gap: 6px; }
.onb-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-200); transition: background .25s; }
.onb-bar i.on { background: var(--cobalt-500); }
.onb-nav { display: flex; gap: 8px; }
.onb-nav .btn { flex: 1; }
.nick-msg.ok { color: #0B7A4B; font-weight: 700; }
.nick-msg.bad { color: #C23A3A; font-weight: 700; }
.ichips { display: flex; flex-wrap: wrap; gap: 8px; }
.ichip input { position: absolute; opacity: 0; pointer-events: none; }
.ichip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; }
.ichip input:checked + span { background: var(--cobalt-500); border-color: var(--cobalt-500); color: #fff; animation: pop .22s ease-out; }
.ichip input:focus-visible + span { outline: 2px solid var(--cobalt-500); outline-offset: 2px; }
.tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#topbar.sub .lang.sm { flex: none; margin-left: 4px; }
#topbar.sub .lang.sm button { min-width: 34px; height: 30px; font-size: 12px; }

/* 프로필 그리드(인스타식) · 사람 찾기 */
.ptabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 6px; }
.ptabs button { height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink-subtle); border-top: 2px solid transparent; margin-top: -1px; cursor: pointer; font-family: inherit; }
.ptabs button svg { width: 18px; height: 18px; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-top-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 calc(-1 * var(--space-4)); }
.pg-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sky-100); display: flex; align-items: center; justify-content: center; animation: fadein .3s ease-out both; }
.pg-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pg-cell:active img { transform: scale(.96); }
.pg-txt { padding: 10px; font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pg-multi { position: absolute; top: 6px; right: 6px; color: #fff; width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.pg-multi svg { width: 16px; height: 16px; }
.pg-cell.live::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--cobalt-500); }
.pg-old { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: rgba(20,32,54,.55); padding: 2px 6px; border-radius: 999px; }
.people-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface-100); border: 2px solid var(--line); margin-bottom: 8px; }
.people-search span { display: inline-flex; color: var(--ink-subtle); }
.people-search svg { width: 18px; height: 18px; }
.people-search input { flex: 1; border: 0; background: none; font-size: 15px; outline: none; font-family: inherit; }
.section-head .tb-right { display: inline-flex; align-items: center; gap: 4px; }

/* 피드+마이 통합 · 그리드 빈칸 */
.mecard { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.ptabs.three { grid-template-columns: repeat(3, 1fr); }
.pg-cell { background: #EEF1F4; }
.pg-empty { background: #EEF1F4; animation: none; }
.pg-add { border: 0; cursor: pointer; background: #E6EBF0; color: var(--ink-subtle); font-family: inherit; }
.pg-add span { font-size: 30px; font-weight: 300; line-height: 1; }
.pg-add:hover, .pg-add:active { background: var(--sky-100); color: var(--cobalt-500); }

/* 세부 분류 칩 줄 */
.subrow { gap: 6px; margin: 4px calc(-1 * var(--space-4)) 6px; padding: 2px var(--space-4); animation: enter .2s ease-out; }
.subrow .rchip.sm { flex: none; height: 30px; padding: 0 12px; font-size: 12px; }
.subrow .seg-div { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }
.reels-sub { background: #0C1730; padding: 0 0 6px; }
.reels-sub .subrow { margin: 0; padding: 0 16px; }
.reels-sub .rchip { background: #1B2A4C; color: #C9CBD1; border-color: transparent; }
.reels-sub .rchip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.reels-sub .seg-div { background: rgba(255,255,255,.18); }

/* 탐색 필터 정리: 국적 토글(고정) + 카테고리 칩(스크롤) + 세부 텍스트 탭 */
.reels-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0 8px 12px; background: #0C1730; }
.natseg { flex: none; display: flex; background: #1B2A4C; border-radius: 999px; padding: 3px; }
.natseg button { border: 0; background: transparent; color: #9FB0D0; font-size: 11px; font-weight: 800; height: 26px; padding: 0 9px; border-radius: 999px; cursor: pointer; }
.natseg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.reels-bar .reels-seg { flex: 1; min-width: 0; margin: 0; padding: 0 12px 0 0; background: transparent; }
.subrow { gap: 2px; }
.subrow .rchip.sm { height: 28px; padding: 0 8px; border: 0; background: transparent; color: var(--ink-muted); font-weight: 600; border-radius: 0; box-shadow: none; }
.subrow .rchip.sm[aria-pressed="true"] { background: transparent; color: var(--cobalt-500); font-weight: 800; box-shadow: inset 0 -2px 0 currentColor; }
.reels-sub .rchip.sm { background: transparent; color: #9FB0D0; }
.reels-sub .rchip.sm[aria-pressed="true"] { background: transparent; color: #fff; }

/* 한줄 리뷰 목록 + 릴스 저장 버튼 */
.revs { gap: 0; }
.rev { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rev:last-child { border-bottom: 0; }
.rev-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pname-row { display: flex; align-items: center; gap: 8px; }
.pname-row .pname { flex: 1; min-width: 0; }
.reel-save { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; position: relative; z-index: 3; }
.reel-save[aria-pressed="true"] { background: var(--lemon, #FFE45C); color: var(--ink); }

/* 즐겨찾기 아이콘 + 릴스 CTA + 내 리뷰 */
.fav { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 0; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.fav-reel { background: rgba(255,255,255,.14); color: #fff; position: relative; z-index: 3; }
.fav-reel[aria-pressed="true"] { background: var(--lemon, #FFE45C); color: var(--ink); }
.fav-head { width: 36px; height: 36px; background: var(--surface-100, #F1F4F8); color: var(--ink); }
.fav-head[aria-pressed="true"] { background: var(--lemon, #FFE45C); }
.reel .pname { font-weight: 800; font-size: 17px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-cta { margin-top: 8px; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; position: relative; z-index: 3; }
.reel-cta::after { content: '→'; margin-left: 6px; }
.myrev { align-items: flex-start; gap: 10px; }
.myrev-body { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }

/* 교류 탭 */
.badge.sp { background: #FFF1D6; color: #8A5A00; }
.badge.safe { background: #E3F6EA; color: #1C6B3A; }
.badge.soft { background: var(--surface-200); color: var(--ink); }
.guide { background: #fff; border: 1px solid var(--line); }
.guide summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.guide summary::after { content: '＋'; color: var(--ink-muted); }
.guide[open] summary::after { content: '－'; }
.guide ul { margin: 8px 0 4px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; }
.comms { display: flex; flex-direction: column; gap: 10px; }
.comm { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.comm h3 { margin: 0; font-size: 16px; }
.comm .body-text { margin: 0; font-size: 14px; }
.comm .btn { align-self: flex-start; margin-top: 4px; }
.comm-top { display: flex; gap: 6px; flex-wrap: wrap; }
.comm-top .badge, .info .who .badge.sp { border: 0; box-shadow: none; }
.tip-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; margin-top: 18px; background: var(--sky-100); }
.me-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.me-links .opt { display: flex; align-items: center; height: 48px; border: 1px solid #D5D7DB; border-radius: 12px; background: #fff; font-weight: 700; padding: 0 16px; text-decoration: none; color: inherit; }

/* 코코요기 모임 */
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mcard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; margin-bottom: 10px; }
.mlist .mcard { margin-bottom: 0; }
.mdate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--cobalt-700, #2350D8); }
.mdate .badge { border: 0; box-shadow: none; }
.mtitle { font-weight: 800; font-size: 16px; line-height: 1.35; }
.seats { font-size: 13px; color: var(--ink-muted); }
.seats b { color: var(--ink); }
.seats .full { color: #D33; }
.meetup { display: flex; flex-direction: column; gap: 12px; }
.meetup h1 { margin: 0; }
.meetup .host { display: flex; align-items: center; gap: 8px; }
.meetup .host .meta { margin-left: auto; }
.meetup .block { display: flex; flex-direction: column; gap: 10px; }
.rules ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.meet-foot { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 20px; }
.section-head .btn.sm { text-decoration: none; }

/* 알림 · 약관 · 리뷰 댓글 */
.bell { position: relative; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: var(--ink); border-radius: 50%; }
.bell svg { width: 22px; height: 22px; }
.bell.on::after { content: ''; position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #FF4D6D; border: 2px solid #fff; }
.push-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sky-100); }
.push-card > div { display: flex; flex-direction: column; gap: 2px; }
.nlist { display: flex; flex-direction: column; }
.nitem { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 14px; line-height: 1.45; }
.nitem.new { font-weight: 700; }
.nitem.new::before { content: '●'; color: #FF4D6D; font-size: 8px; }
.legal { line-height: 1.7; font-size: 14px; }
.legal h2 { font-size: 15px; margin: 18px 0 6px; }
.legal ul, .legal ol { padding-left: 18px; margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; min-width: 90px; }
.legal th { background: var(--surface-200); }
.legal-links { font-size: 12px; color: var(--ink-muted); text-align: center; margin: 10px 0 0; }
.legal-links a { color: inherit; }
.rcs { margin-top: 6px; font-size: 13px; }
.rcs summary { cursor: pointer; color: var(--ink-muted); font-size: 12px; }
.rc { padding: 8px 0 0 10px; border-left: 2px solid var(--line); margin: 6px 0 0 2px; }
.rc-who { display: flex; align-items: center; gap: 6px; }
.rc .body-text { margin: 2px 0 0; font-size: 13px; }
.rc-form { display: flex; gap: 6px; margin-top: 8px; }
.rc-form input { flex: 1; min-height: 36px; border: 1px solid #D5D7DB; border-radius: 10px; padding: 0 10px; font-size: 13px; }

/* 모임 신청 · 호스트 관리 · 채팅 */
.status-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-200); }
.status-box.ok { background: #E3F6EA; }
.status-box .linkbtn { align-self: flex-start; }
.apply-form { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); }
.apply-form textarea, .apply-form input { border: 1px solid #D5D7DB; border-radius: 10px; padding: 10px; font: inherit; }
.note.warn { color: #B45309; }
.host-panel { background: #fff; border: 1px solid var(--line); }
.host-panel h2 { margin: 0; font-size: 16px; }
.app { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.app-who { display: flex; gap: 8px; align-items: center; }
.app .body-text { margin: 0; font-size: 14px; }
.app-acts { display: flex; gap: 6px; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 12px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.cmsg { max-width: 80%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.cmsg.me { align-self: flex-end; align-items: flex-end; }
.b-who { font-size: 12px; color: var(--ink-muted); display: flex; gap: 4px; align-items: center; }
.b-who .badge { border: 0; box-shadow: none; padding: 1px 6px; font-size: 10px; }
.b-body { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 16px 16px 16px 4px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cmsg.me .b-body { background: var(--cobalt-700, #2350D8); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.b-orig { font-size: 11px; color: var(--ink-muted); padding: 0 6px; }
.b-tr { font-size: 12px; line-height: 1.45; color: var(--ink-muted); padding: 4px 6px 0; max-width: 100%; word-break: break-word; }
.b-tr span { display: block; font-size: 10px; font-weight: 700; color: var(--cobalt-700, #2350D8); opacity: .8; }
.b-tr.pending { font-size: 11px; opacity: .7; }
.cmsg.me .b-tr { text-align: right; }
.b-meta { font-size: 11px; color: var(--ink-muted); padding: 0 4px; }
.b-meta .linkbtn { font-size: 11px; padding: 0; }
.chat-form { display: flex; gap: 6px; padding: 8px 0; }
.chat-form input { flex: 1; min-height: 42px; border: 1px solid #D5D7DB; border-radius: 21px; padding: 0 14px; font: inherit; }
.chat-safe { text-align: center; font-size: 11px; margin: 0 0 6px; }

/* 채팅 화면: 탭바 없이 화면 높이에 꼭 맞춤(입력창이 가리지 않게) */
body.chat-mode #tabbar { display: none; }
body.chat-mode #shell { height: 100dvh; min-height: 0; overflow: hidden; }
body.chat-mode #app { padding-bottom: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.chat-mode #app.enter { animation: none; }
.chat-list { min-height: 0; overscroll-behavior: contain; }
.chat-form { padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--surface-0); }
.chat-form input { font-size: 16px; }

/* 호스트 패널: 프로필 동그라미 */
.host-panel { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.hp-head { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hp-head h2 { margin: 0; font-size: 15px; }
.hp-head .meta { margin-left: auto; }
.pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #FF4D6D; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ava-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.ava-row::-webkit-scrollbar { display: none; }
.ava-btn { position: relative; flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.ava-btn .av { border-radius: 50%; }
.ava-btn.pending .av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #FF4D6D; }
.ava-btn.accepted .av, .ava-btn.attended .av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cobalt-700, #2350D8); }
.ava-btn.noshow .av { opacity: .45; }
.ava-btn.host { cursor: default; }
.ava-flag { position: absolute; top: 38px; left: 36px; font-size: 9px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 6px; border: 2px solid #fff; }
.ava-flag.kr { background: var(--kr-100); color: var(--kr-500); } .ava-flag.jp { background: var(--jp-100); color: var(--jp-500); }
.ava-mark { position: absolute; top: -2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; border: 2px solid #fff; }
.ava-mark.ok { background: #1C9B55; } .ava-mark.no { background: #D33; }
.ava-name { font-size: 11px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ava-empty { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #CBD2DC; }
.ava-btn.empty { cursor: default; }

/* 신청자 시트 */
.app-sheet { display: flex; flex-direction: column; gap: 14px; }
.as-top { display: flex; gap: 14px; align-items: center; }
.as-name { font-size: 18px; }
.as-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--ink-muted); }
.as-trust .bad b { color: #D33; } .as-trust .ok { color: #1C9B55; font-weight: 700; }
.as-block { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-200); }
.as-block .body-text { margin: 0; font-size: 15px; line-height: 1.55; }
.as-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.as-acts .badge { grid-column: 1 / -1; justify-self: center; }

/* 모임 네모 타일 (2열 그리드) */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.mtile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.mtile .art { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mtile .art .kcat { width: 58% !important; height: auto; filter: drop-shadow(0 6px 10px rgba(20,32,54,.12)); transition: transform .2s; }
.mtile:active .art .kcat { transform: scale(.96); }
.art.k-cafe { background: #FFE7EF; } .art.k-food { background: #FFF4C2; } .art.k-walk { background: #DDF3E6; }
.art.k-language { background: #E2F1FB; } .art.k-culture { background: #ECE6FF; } .art.k-activity { background: #FFE9D6; }
.mtile .chip { position: absolute; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }
.mtile .chip.date { top: 8px; left: 8px; }
.mtile .chip.seats { bottom: 8px; right: 8px; }
.mtile .chip.seats.full { background: var(--ink); color: #fff; }
.mtile .chip.sp { top: 8px; right: 8px; background: #FFF1D6; color: #8A5A00; }
.mt-title { font-weight: 800; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.mt-meta { font-size: 12px; color: var(--ink-muted); }
.mt-nat { display: flex; gap: 4px; flex-wrap: wrap; font-size: 10px; font-weight: 800; }
.mt-nat span { padding: 2px 6px; border-radius: 6px; }
.mt-nat .kr { background: var(--kr-100); color: var(--kr-500); } .mt-nat .jp { background: var(--jp-100); color: var(--jp-500); }
.mt-nat .kind { background: var(--surface-200); color: var(--ink-muted); }
.more-all { margin-top: 12px; width: 100%; }

/* 채팅: 흰 배경 + 연한 고양이 */
.chat { position: relative; background: #fff; }
.chat::before { content: ''; position: absolute; inset: 60px 0 90px; background: url(/assets/cat/flat/hello.png) center 45% / 170px auto no-repeat; opacity: .07; pointer-events: none; }
.chat > * { position: relative; }
.chat-head .ch-acts { display: flex; gap: 10px; align-items: center; }
.tr-toggle { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.tr-toggle[aria-pressed="true"] { background: var(--sky-100); color: var(--cobalt-700, #2350D8); border-color: transparent; }
.tr-chip { border: 0; background: var(--sky-100); color: var(--cobalt-700, #2350D8); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* 운영자 신고함 */
.rep { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rep-body { font-size: 14px; background: var(--surface-200); border-radius: 10px; padding: 8px 10px; }
.rep-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* 홈 캐러셀: 여백 + 둥근 카드 + 옆 카드 살짝 보이기 (4:3) */
.hero-wrap { padding: 12px 0 4px !important; }
.hero-track { position: relative; gap: 10px; padding: 0 20px; scroll-padding: 0 20px; }
.hero-slide { flex: 0 0 calc(100% - 40px) !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 24px; box-shadow: 0 6px 18px rgba(20,32,54,.12); }
.hero-track > .hero-slide:only-child { flex-basis: 100% !important; }
.hero-slide .txt { padding: 0 18px 30px !important; }
.hero-dots { bottom: 16px !important; }
.hero-slide.meetup { color: var(--ink); text-shadow: none; }
.hero-slide.meetup .txt { text-shadow: none !important; }
.hero-slide.meetup .kicker { color: var(--cobalt-700, #2350D8); }
.hero-slide.meetup .sub { color: var(--ink-muted); }
.hero-slide.meetup::after { display: none; }
.hero-slide.meetup.k-cafe { background: #FFE7EF; } .hero-slide.meetup.k-food { background: #FFF4C2; } .hero-slide.meetup.k-walk { background: #DDF3E6; }
.hero-slide.meetup.k-language { background: #E2F1FB; } .hero-slide.meetup.k-culture { background: #ECE6FF; } .hero-slide.meetup.k-activity { background: #FFE9D6; }
.hero-meet-cat { position: absolute; right: 10px; top: 12px; z-index: 1; }
.hero-meet-cat .kcat { width: 42% !important; min-width: 120px; float: right; filter: drop-shadow(0 8px 14px rgba(20,32,54,.15)); }
.hero-slide.meetup .hero-dots i { background: rgba(20,32,54,.25); }
.mt-nat .lv { background: #FFF4C2; color: #7A5B00; }

/* 캐러셀: 카드 폭을 트랙 안쪽 폭 100%로 → 첫 장부터 정확히 가운데, 옆 카드 14px 살짝 */
.hero-track { padding: 0 24px !important; gap: 10px !important; scroll-padding: 0 24px; }
.hero-slide { flex: 0 0 100% !important; aspect-ratio: 16 / 11 !important; scroll-snap-align: center; }
/* 모임 배너: 큰 고양이 + 날짜 스티커 + 인원·신청 버튼 */
.hero-slide.meetup { justify-content: flex-end; }
.hero-meet-cat { position: absolute; right: -6px; top: 4px; bottom: auto; z-index: 1; width: 58%; }
.hero-meet-cat .kcat { width: 100% !important; min-width: 0 !important; float: none; }
.hm-date { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; background: #fff; border-radius: 14px; box-shadow: 0 3px 0 rgba(20,32,54,.08); font-size: 11px; font-weight: 700; color: var(--ink-muted); line-height: 1.2; }
.hm-date b { font-size: 14px; color: var(--ink); }
.hero-slide.meetup .txt { padding: 0 16px 34px !important; gap: 4px; max-width: 100%; }
.hero-slide.meetup .title { font-size: 20px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 78%; }
.hm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.hm-seats { font-size: 12px; font-weight: 700; color: var(--ink-muted); background: rgba(255,255,255,.7); padding: 4px 8px; border-radius: 999px; }
.hm-cta { font-size: 13px; font-weight: 800; color: #fff; background: var(--cobalt-700, #2350D8); padding: 7px 12px; border-radius: 999px; }

/* 대기 신청 카드 */
.watch-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #E2F1FB, #FFF1F6); margin-bottom: 14px; }
.wc-head { display: flex; gap: 10px; align-items: center; }
.wc-head > div { display: flex; flex-direction: column; gap: 2px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { border: 1px solid #fff; background: rgba(255,255,255,.85); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.wchip small { background: var(--cobalt-700, #2350D8); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.wchip[aria-pressed="true"] { background: var(--cobalt-700, #2350D8); color: #fff; }
.wchip[aria-pressed="true"] small { background: #fff; color: var(--cobalt-700, #2350D8); }

/* 모임 템플릿 */
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tpl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tpl.on { border-color: var(--cobalt-700, #2350D8); background: var(--sky-100); }
.hero-meet-cat { width: 46% !important; right: 2px !important; top: 6px !important; }
.hero-slide.meetup .txt { position: relative; z-index: 3 !important; }
.hero-slide.meetup .title { max-width: 60% !important; }
.hero-slide.meetup .kicker { max-width: 62%; }

/* 알림 켜기: 한 줄(아이콘 · 글 · 오른쪽 버튼) */
.push-card { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: left; }
.pc-ico { font-size: 20px; flex: none; }
.pc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-txt b { font-size: 14px; }
.pc-txt .note { font-size: 12px; line-height: 1.4; margin: 0; }
.pc-btn { flex: none; align-self: center; white-space: nowrap; }
.watch-card .push-card { background: rgba(255,255,255,.9); border-color: transparent; }

/* 히어로 제목: 한국어는 단어 단위로 줄바꿈(“가/요” 같은 끊김 방지), 두 줄로 균형 있게, 넘치면 말줄임 */
.hero-slide .title { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(18px, 5.2vw, 23px) !important; }
.hero-slide .kicker, .hero-slide .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 430px) {
  .hero-meet-cat { width: 40% !important; top: 4px !important; }
  .hero-slide.meetup .title { max-width: 64% !important; font-size: 18px !important; }
  .hero-slide.meetup .kicker { max-width: 64%; }
  .hero-slide:has(.hero-cat) .txt { max-width: 64%; }
  .hero-slide .hero-cat { width: 40%; height: 70%; }
}

/* 픽 만들기: 숏폼 한 개 = 링크 + 장소 + 한 줄 코멘트 */
#pick-items { display: flex; flex-direction: column; gap: 10px; }
.pick-item { display: grid; grid-template-columns: 26px 1fr; gap: 6px 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pick-item .pi-n { grid-row: span 3; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-100); color: var(--cobalt-700, #2350D8); font-size: 12px; display: grid; place-items: center; }
.pick-item input[type="url"], .pick-item input[name="pi_note"] { width: 100%; border: 1px solid #D5D7DB; border-radius: 10px; padding: 0 10px; min-height: 42px; font-size: 14px; }
.pick-item .locf { min-width: 0; }

/* 모임 장소: 카카오맵 검색 */
.kk-search { display: flex; gap: 6px; }
.kk-search input { flex: 1; min-width: 0; border: 1px solid #D5D7DB; border-radius: 10px; padding: 0 12px; min-height: 44px; }
.kk-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--sky-100); font-weight: 700; font-size: 14px; }
.kk-chip .kk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#kk-results { display: flex; flex-direction: column; gap: 4px; }
#kk-results:empty { display: none; }

/* 한·일 외 외국인 */
.badge.ot { background: #ECE6FF; color: #5B3FC4; }
.ava-flag.ot { background: #ECE6FF; color: #5B3FC4; }
.mt-nat .nat.ot { background: #ECE6FF; color: #5B3FC4; }

/* 채팅: 상단 고정 공지 · 권한 */
.chat-pin { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: start; margin: 0 0 6px; padding: 10px 12px; border-radius: 14px; background: #FFF6D6; border: 1px solid #F2E2A6; }
.chat-pin .pin-ic { grid-column: 1; font-size: 11px; font-weight: 800; color: #8A6A00; }
.chat-pin p { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.chat-pin small { grid-column: 1; font-size: 11px; color: var(--ink-muted); }
.chat-pin .linkbtn { grid-column: 2; grid-row: 1; font-size: 12px; }
.chat-ro { text-align: center; padding: 12px 0; margin: 0; }
.cp-list { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow: auto; margin: 6px 0 12px; }

/* 히어로 그림자 잘림 방지: 가로 스크롤 영역은 세로로도 잘라내므로 위아래에 그림자 자리를 두고 같은 만큼 당겨 둔다 */
.hero-track { padding-top: 6px !important; padding-bottom: 22px !important; margin-bottom: -16px; }
.hero-slide { box-shadow: 0 6px 14px rgba(20,32,54,.10) !important; }

/* 교류 게임 */
.game-entry { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #FFF4C2, #FFE7EF); color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 rgba(20,32,54,.06); }
.game-entry span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.game-entry small { font-size: 12px; color: var(--ink-muted); }
.game-entry .ge-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cobalt-700, #2350D8); color: #fff; display: grid; place-items: center; font-size: 12px; }
.game-tabs { margin: 8px 0 12px; }
.game-tabs a { text-decoration: none; }
.gcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-height: 340px; justify-content: center; padding: 28px 20px 22px; border-radius: 28px; background: #fff; border: 2px solid var(--line); box-shadow: 0 10px 24px rgba(20,32,54,.08); word-break: keep-all; }
.gcard.balance { background: linear-gradient(180deg, #F3F8FF, #FFF); }
.gcard.pick { background: linear-gradient(180deg, #FFF6E8, #FFF); }
.gcard.talk { background: linear-gradient(180deg, #F1FBF4, #FFF); }
.gc-n { position: absolute; top: 14px; right: 16px; font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.gc-k { font-size: 12px; font-weight: 800; color: var(--cobalt-700, #2350D8); letter-spacing: .02em; }
.gc-main { font-family: var(--font-display); font-size: 24px; line-height: 1.35; text-wrap: balance; }
.gcard small { font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.gb-opt { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.gb-opt b { font-size: 19px; }
.gb-opt.a.on { border-color: #4F86F0; background: #EAF2FF; transform: scale(1.02); }
.gb-opt.b.on { border-color: #F26B8A; background: #FFEAF0; transform: scale(1.02); }
.gb-vs { font-family: var(--font-display); font-size: 18px; color: var(--ink-muted); }
.gp-count { min-width: 160px; font-size: 18px; }
.gp-count.boom { animation: boom .5s ease; background: #F26B8A; }
@keyframes boom { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.flip-in { animation: flipin .35s ease; }
@keyframes flipin { from { opacity: 0; transform: translateY(12px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.game-acts { display: flex; gap: 8px; margin-top: 14px; }
.game-acts .btn { flex: 1; }
.game-share { display: block; margin: 10px auto 0; }
.mt-nat .kind.open { background: #ECE6FF; color: #5B3FC4; }
@media (prefers-reduced-motion: reduce) { .flip-in, .gp-count.boom { animation: none; } }
.game-tabs { display: flex; gap: 6px; background: var(--surface-200, #EEF2F7); padding: 4px; border-radius: 999px; }
.game-tabs a { flex: 1; text-align: center; padding: 9px 4px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.game-tabs a[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20,32,54,.10); }

/* 채팅 속 게임 카드 */
.chat-game-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #FFF4C2; font-size: 20px; cursor: pointer; }
.cmsg.cgame { align-self: center; width: min(100%, 360px); max-width: 100%; margin: 8px auto; padding: 12px; border-radius: 20px; background: #fff; border: 2px solid #F2E2A6; box-shadow: 0 4px 12px rgba(20,32,54,.06); }
.cg-head { font-size: 12px; font-weight: 800; color: #8A6A00; margin-bottom: 8px; }
.cg-body { display: flex; flex-direction: column; gap: 6px; text-align: center; word-break: keep-all; }
.cg-body small { font-size: 12px; color: var(--ink-muted); }
.cg-q { font-size: 16px; line-height: 1.4; }
.cg-opt { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.cg-opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); opacity: .18; transition: width .3s; }
.cg-opt.a::before { background: #4F86F0; } .cg-opt.b::before { background: #F26B8A; }
.cg-opt > * { position: relative; }
.cg-opt.a.on { border-color: #4F86F0; } .cg-opt.b.on { border-color: #F26B8A; }
.cg-opt em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; font-size: 13px; }
.cg-vs { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.cg-people { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.cg-pp { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cg-pp.on { border-color: var(--cobalt-700, #2350D8); background: var(--sky-100); }
.cg-pp.top { border-color: #F2A900; background: #FFF4C2; }
.cg-pp em { font-style: normal; color: var(--cobalt-700, #2350D8); }
.cg-foot { text-align: center; margin-top: 8px; font-size: 11px; }
.cg-pick { display: flex; flex-direction: column; gap: 8px; }
/* 커뮤니티 */
.topic-chips { display: flex; gap: 6px; margin: 0 0 8px; padding-bottom: 2px; }
.tchip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-0); color: var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.tchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cposts { display: flex; flex-direction: column; }
.cpost { display: flex; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; animation: enter .25s ease-out both; }
.cpost.official { background: var(--surface-100, #f6f7fb); border-radius: 14px; padding: 14px 12px; border-bottom: 0; margin-bottom: 6px; }
.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.cp-tags:empty { display: none; }
.cp-body { margin: 0; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-line; }
.cp-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.badge.off { background: var(--cobalt-500); color: #fff; }
.post-acts { display: flex; justify-content: flex-end; margin-top: -6px; }
.pc-h { font-size: 16px; margin: 14px 0 6px; }
.pcomments { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.pc { display: flex; gap: 10px; }
.pc-b { flex: 1; min-width: 0; }
.pc-b .body-text { margin: 2px 0 0; }
.pc-acts { display: flex; gap: 10px; }
.pc-form { position: sticky; bottom: calc(var(--tabbar-h, 64px) + 8px); background: var(--surface-0); padding: 6px 0; }
/* 내 모임 내역 숨기기 */
.mh-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mh-btn { align-self: flex-start; border: 0; background: none; padding: 4px 2px; font-size: 13px; color: var(--ink-500, #6b7280); text-decoration: underline; cursor: pointer; }
.mh-toggle { margin-top: 16px; align-self: flex-start; }
.cg-who { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--cobalt-500); }
.cg-who-list { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--ink-500, #6b7280); }
/* 모임 만들기: 종류 = 템플릿 하나로 */
.tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label.tpl { position: relative; text-align: center; font-size: 13px; padding: 10px 4px; transition: all .15s; }
label.tpl input { position: absolute; opacity: 0; pointer-events: none; }
label.tpl:has(input:checked) { border-color: var(--cobalt-500); background: #EAF1FF; box-shadow: 0 0 0 1px var(--cobalt-500) inset; }
label.tpl:has(input:focus-visible) { outline: 2px solid var(--cobalt-500); outline-offset: 2px; }
/* 필드 안 체크박스가 굵은 라벨 스타일을 물려받아 어긋나던 문제 */
.field label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; margin-top: 8px; }
.field label.check input { width: 18px; height: 18px; margin-top: 2px; }
/* 교류 탭: 내 모임 바로가기 */
.mymeets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mym { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--cobalt-500); border-radius: 16px; background: #F3F7FF; }
.mym-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.mym-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mym .btn { flex: none; }
/* 채팅 헤더: 작은 폰에서 줄바꿈·세로깨짐 방지 */
.chat-head { gap: 8px; }
.chat-head > .meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .ch-acts { flex: none; gap: 4px; }
.tr-toggle { white-space: nowrap; flex: none; }
.ch-more { width: 36px; height: 36px; font-size: 22px; font-weight: 700; line-height: 1; }
/* 홈 관심사 섹션 */
.hcat-chips { margin-bottom: 10px; }
.more-line { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--cobalt-500); text-decoration: none; }
.hcat-chips .rchip, .section .hscroll > .rchip { flex: none; white-space: nowrap; }
/* 친구 · 1대1 메시지 */
.pacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.dm-row { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-mid .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.dm-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cobalt-500); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cmsg.blocked-msg { opacity: .6; font-style: italic; }
.cmsg a.b-who { color: var(--ink-muted); text-decoration: none; }
/* keep-all 은 한국어 띄어쓰기 단위 줄바꿈용 — 일본어(띄어쓰기 없음)는 문장 전체가 한 덩어리가 되어 카드 밖으로 튀어나감.
   어디서든 넘치면 끊기게 하고, 일본어 문장(small·번역줄)은 일반 줄바꿈으로 */
.gcard, .gcard *, .cg-body, .cg-body *, .thumb.cover .cv-title, .cp-body, .cmsg, .cmsg * { overflow-wrap: anywhere; min-width: 0; }
.gcard small, .cg-body small, .cg-who, .cg-who-list, .b-tr, html[lang="ja"] .gcard, html[lang="ja"] .cg-body, html[lang="ja"] .thumb.cover .cv-title, html[lang="ja"] .cp-body, html[lang="ja"] .hero-slide .title { word-break: normal; line-break: strict; }
/* 지도: 헤더~탭바 사이에 고정(페이지가 스크롤돼 헤더 밑으로 밀리던 문제), 지도 위 버튼이 헤더를 덮지 않게 */
body.map-mode { overflow: hidden; overscroll-behavior: none; }
body.map-mode .mapv { position: fixed; z-index: 1; isolation: isolate; }

/* ===== PC 반응형 (960px 이상): 탭바 → 왼쪽 사이드 메뉴, 본문 넓게 ===== */
@media (min-width: 960px) {
  body { background: #fff; }
  #shell { max-width: 1240px; display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr; background: #fff; }
  #topbar { grid-column: 1 / -1; padding: 12px 24px; }
  #tabbar { grid-column: 1; grid-row: 2; position: sticky; top: 65px; bottom: auto; left: auto; transform: none; width: auto; max-width: none; height: calc(100dvh - 65px); align-self: start;
    display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-top: 0; border-right: 1px solid var(--line); }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; font-size: 15px; }
  .tab:hover { background: var(--surface-200); }
  .tab[aria-current="page"] { background: var(--sky-100, #EAF1FF); }
  #app { grid-column: 2; grid-row: 2; min-width: 0; padding: 8px 24px 48px; }
  body.chat-mode #tabbar { display: flex; }
  body.chat-mode #shell { height: 100dvh; }
  /* 카드 목록은 여러 열로 */
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .tpls { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* 히어로: 한 장이 화면을 다 덮지 않게 두 장씩 */
  .hero-track { padding: 0 !important; scroll-padding: 0 !important; }
  .hero-slide { flex: 0 0 calc(50% - 5px) !important; aspect-ratio: 16 / 10 !important; scroll-snap-align: start; }
  /* 읽고 쓰는 화면은 읽기 좋은 폭으로 */
  .form, .chat, .cposts, .pcomments, .pc-form, .profile, .nlist, .dm-row, .mymeets, .people-search { max-width: 760px; }
  .chat { width: 100%; margin: 0 auto; }
  /* 세로 숏폼·모먼트는 폰 비율 유지 */
  .reels-wrap { max-width: 480px; margin: 0 auto; }
  .moment-view { max-width: 480px; }
  #sheet .panel { border-radius: 20px; margin-bottom: 24px; }
  #toast { bottom: 40px; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
.chat-closed { text-align: center; padding: 10px 4px; display: flex; flex-direction: column; gap: 6px; }
.cc-people { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cc-people .cg-pp { text-decoration: none; color: var(--ink); }
/* 크루 */
.crew-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.crew-list.mine .crew-card { border-color: var(--cobalt-500); background: #F3F7FF; }
.crew-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; }
.crew-art { width: 64px; height: 64px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--sky-100, #EAF1FF); overflow: hidden; }
.crew-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crew-mid b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-seats { font-size: 12px; font-weight: 700; color: var(--cobalt-500); }
.crew-page { gap: 12px; }
.crew-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: var(--sky-100, #EAF1FF); }
.crew-hero h1 { font-size: 20px; margin: 0 0 4px; overflow-wrap: anywhere; }
.crew-write textarea { width: 100%; }
.cw-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crew-badge { display: inline-flex; align-self: flex-start; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #FFF4C2; color: #7A5A00; font-weight: 800; font-size: 13px; text-decoration: none; margin-bottom: 6px; }
#sheet form.panel input, #sheet form.panel textarea, #sheet form.panel select { width: 100%; }
:is(.crew-art, .crew-hero).k-cafe { background: #FFE7EF; } :is(.crew-art, .crew-hero).k-food { background: #FFF4C2; } :is(.crew-art, .crew-hero).k-walk { background: #DDF3E6; }
:is(.crew-art, .crew-hero).k-language { background: #E2F1FB; } :is(.crew-art, .crew-hero).k-culture { background: #ECE6FF; } :is(.crew-art, .crew-hero).k-activity { background: #FFE9D6; }
/* 교류 탭: 모임 | 크루 전환 */
.meet-seg { margin: 4px 0 10px; }
/* 내 크루 바로가기(가로) */
.crew-minis { gap: 10px; padding-bottom: 6px; margin-bottom: 6px; }
.crew-mini { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; color: var(--ink); text-decoration: none; text-align: center; background: var(--sky-100, #EAF1FF); }
.crew-mini b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.crew-mini.add { background: #fff; border: 2px dashed var(--line); justify-content: center; }
.cm-plus { width: 44px; height: 44px; border-radius: 999px; background: var(--surface-200); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--cobalt-500); }
.crew-mini.k-cafe { background: #FFE7EF; } .crew-mini.k-food { background: #FFF4C2; } .crew-mini.k-walk { background: #DDF3E6; } .crew-mini.k-language { background: #E2F1FB; } .crew-mini.k-culture { background: #ECE6FF; } .crew-mini.k-activity { background: #FFE9D6; }
/* 게시판 글쓰기 컴포저 */
.composer { border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; transition: border-color .15s; }
.composer:focus-within { border-color: var(--cobalt-500); }
.cmp-top { display: flex; gap: 10px; align-items: flex-start; }
.cmp-top textarea { flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.5; padding: 7px 0; min-height: 36px; max-height: 240px; background: transparent; }
.cmp-bar { display: none; align-items: center; gap: 8px; padding-left: 46px; }
.composer:focus-within .cmp-bar, .composer.typing .cmp-bar { display: flex; }
.cmp-bar .btn { margin-left: auto; }
.cmp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; cursor: pointer; }
.cmp-chip input:checked + span { background: #FFF4C2; border-color: #F2A900; color: #7A5A00; }
.cmp-count { font-size: 11px; }
/* 헤더 압축: 지역 버튼은 말줄임, 언어는 버튼 하나 */
.region-btn { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0 10px; flex: 0 1 auto; max-width: 150px; margin-left: auto; }
.region-btn svg { width: 15px; height: 15px; flex: none; color: var(--cobalt-500); }
.region-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.region-btn i { font-style: normal; font-size: 10px; flex: none; color: var(--ink-muted); }
.lang-one { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-0); font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.lang-one b { font-weight: 800; color: var(--cobalt-500); }
.lang-one span { color: var(--ink-muted); font-size: 12px; }
#topbar.sub .lang-one { margin-left: 4px; }
#topbar { gap: 6px; }
@media (max-width: 359px) { .logo img { height: 28px; } .region-btn { max-width: 110px; } }
