/* 로컬픽 디자인 시스템 토큰 (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: #F4F4F2; --surface-200: #EDEDEA; --line: #E4E5E8;
  --ink: #17181C; --ink-muted: #5B5F68; --ink-subtle: #6B6F78; --lime: #C6F432;
  --kr-100: #E8EEFD; --kr-500: #1E44B8; --jp-100: #FCEDE4; --jp-500: #A33A0B; --jp-600: #B8430F;
  --event-100: #E3F2EE; --event-500: #0F6E5C; --ask-100: #F1ECFA; --ask-500: #5B3AA6;
  --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: var(--surface-200); 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(4, 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); }
.thumb.pf-ig { background: linear-gradient(160deg, #FEDA75 0%, #FA7E1E 30%, #D62976 60%, #4F5BD5 100%); }
.thumb.pf-tt { background: linear-gradient(160deg, #25F4EE 0%, #17181C 45%, #17181C 60%, #FE2C55 100%); }
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; }
