/* 미유 허브(미유/public/style.css)와 같은 색과 모양을 쓴다. 허브마다 다른 색은 카드의 --hub 로 받는다. */
:root {
  color-scheme: light;
  --bg: #f9f5ff;
  --glow-1: #ece0ff;
  --glow-2: #ffe1ef;
  --glow-3: #ffecd9;
  --surface: #ffffff;
  --surface-2: #f5effd;
  --surface-3: #ede4fa;
  --line: #ebe2f6;
  --ink: #2b2140;
  --ink-2: #594c6e;
  --muted: #76688d;
  --accent: #8a63d2;
  --accent-text: #6c45ba;
  --accent-soft: #efe7fd;
  --pink: #e0609a;
  --pink-soft: #fde7f1;
  --live: #ec3466;
  --live-soft: #ffe4eb;
  --shadow: 0 1px 2px rgb(60 30 90 / 0.04), 0 10px 30px -14px rgb(90 50 140 / 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-cute: 'Jua', var(--font);
  /* 플랫폼 색. 치지직은 검정 + 형광 초록(.btn-chzzk), SOOP 은 파랑 */
  --chzzk: #00ffa3;
  --chzzk-text: #00845e;
  --soop: #3a5ee8;
  --soop-text: #2f4fd0;
  --soop-soft: #e7ecff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141019;
    --glow-1: #2a1c3f;
    --glow-2: #35192b;
    --glow-3: #2c2016;
    --surface: #211a2b;
    --surface-2: #2a2236;
    --surface-3: #342a43;
    --line: #362c45;
    --ink: #f4eefc;
    --ink-2: #d0c4e0;
    --muted: #a99cbd;
    --accent: #9b78f0;
    --accent-text: #c5adff;
    --accent-soft: #2f2546;
    --pink: #db5590;
    --pink-soft: #3a2031;
    --live: #ff4d7a;
    --live-soft: #45202c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    --chzzk-text: #3cf0b0;
    --soop-text: #9db0ff;
    --soop-soft: #232a4a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -8%, var(--glow-1), transparent 70%),
    radial-gradient(700px 420px at 92% 2%, var(--glow-2), transparent 70%),
    radial-gradient(800px 500px at 50% 110%, var(--glow-3), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

.page { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cute); font-size: 26px; line-height: 1; color: var(--ink); }
.live-now {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--live) 35%, var(--line));
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.live-now span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-now:hover { border-color: var(--live); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- common ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chip.live { background: var(--live-soft); color: var(--live); }
.chip.live b { color: var(--live); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; box-shadow: 0 8px 20px -10px var(--pink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-text { display: inline-block; width: 120px; height: 1em; border-radius: 6px; background: var(--surface-3); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: center;
  padding: 28px 22px; margin-bottom: 36px;
}
.hero::before {
  content: ''; position: absolute; inset: auto -80px -120px auto; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pink) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; display: grid; gap: 14px; justify-items: start; }
.eyebrow { font-size: 13.5px; font-weight: 800; letter-spacing: .02em; color: var(--accent-text); }
.hero h1 { font-family: var(--font-cute); font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.lead { max-width: 520px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* 가운데 chub 로고 둘레를 허브 아바타가 천천히 도는 장식 */
.orbit { position: relative; justify-self: center; width: min(260px, 100%); aspect-ratio: 1; container-type: inline-size; --r: 40cqw; } /* --r: 궤도 반지름 = 폭의 40% */
.orbit-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px dashed var(--line); }
.ring-1 { width: 100%; height: 100%; }
.ring-2 { width: 62%; height: 62%; border-style: solid; border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  filter: drop-shadow(0 12px 20px rgb(138 99 210 / 0.35));
  animation: bob 3.4s ease-in-out infinite;
}
.orbit-spin { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.orbit-item {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit-item > * { animation: spin 60s linear infinite reverse; } /* 바퀴가 돌아도 아바타는 똑바로 */
.orbit-item img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--hub, var(--line)), var(--shadow);
}
.orbit-item.is-live img { box-shadow: 0 0 0 3px var(--live), 0 0 0 8px color-mix(in srgb, var(--live) 18%, transparent); }
.orbit-item .slot {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 6px;
  border-radius: 50%; border: 2px dashed var(--line); background: var(--surface);
  font-family: var(--font-cute); font-size: 20px; color: var(--muted);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; gap: 32px; }
  .hero h1 { font-size: 46px; }
  .orbit { width: 300px; }
}

/* ---------- sections ---------- */
.section { margin-bottom: 40px; scroll-margin-top: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.h-ico { font-size: 19px; }
.section-head h2 .dot { width: 10px; height: 10px; margin: 0 4px; } /* "지금 라이브 중" 앞의 깜빡이는 점 */

/* 허브 검색 (평소에는 새 허브만 보이고, 나머지는 검색으로 찾는다) */
.hub-search { position: relative; max-width: 560px; margin-bottom: 16px; }
.hub-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.hub-search input {
  -webkit-appearance: none; appearance: none; /* 사파리가 검색창 모양을 제멋대로 바꾸지 않게 */
  width: 100%; padding: 12px 48px 12px 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font: inherit; font-size: 16px; /* 16px 보다 작으면 아이폰이 화면을 확대한다 */
  transition: border-color .15s, box-shadow .15s;
}
.hub-search input::-webkit-search-cancel-button { -webkit-appearance: none; } /* 기본 ✕ 대신 .hub-clear */
.hub-search input::placeholder { color: var(--muted); }
/* outline 을 투명하게 남겨 두면 윈도우 고대비 모드에서는 테두리가 보인다 */
.hub-search input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hub-clear {
  position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: 15px;
}
.hub-clear:hover { background: var(--surface-2); color: var(--ink); }
.hub-hint { margin: -8px 4px 16px; }
.hub-hint:empty { display: none; }
.new-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 11px; font-weight: 800; letter-spacing: .03em; vertical-align: 3px;
}

/* ---------- hub cards (깔끔한 정보 카드. 허브 색은 이름 옆 점에만 쓴다) ---------- */
/* auto-fill: 라이브 칸이나 검색 결과에 카드가 한 장뿐이어도 화면 전체로 늘어나지 않게 빈 칸을 남겨 둔다 */
.hub-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }

.hub-card {
  --hub: var(--accent);
  display: flex; flex-direction: column; gap: 18px; padding: 22px;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
  scroll-margin-top: 16px;
}
.hub-card:hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); box-shadow: var(--shadow); }

.hub-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hub-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.is-live .hub-avatar { border-color: transparent; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--live); }
.hub-title { min-width: 0; }
.hub-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.hub-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.hub-sub::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--hub); vertical-align: 1px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.status.live { border-color: color-mix(in srgb, var(--live) 35%, transparent); background: var(--live-soft); color: var(--live); }
.status.live i { opacity: 1; animation: blink 1.2s infinite; }

.hub-preview { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.hub-preview img.thumb { width: 100%; height: 100%; object-fit: cover; }
.hub-preview .watch {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgb(20 10 30 / 0.72); backdrop-filter: blur(4px); color: #fff; font-size: 12.5px; font-weight: 700;
}
.no-preview { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; color: var(--muted); font-size: 13px; }
.no-preview img { width: 44px; height: 44px; opacity: .8; }

.hub-text { display: grid; gap: 2px; }
.hub-tagline { font-size: 15px; color: var(--ink-2); }
.hub-live-title { font-size: 16px; font-weight: 750; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-cat { font-size: 13px; color: var(--muted); }

.hub-metrics {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  margin: 0; padding: 14px 0; border-block: 1px solid var(--line);
}
.hub-metrics div { min-width: 0; padding: 0 14px; border-left: 1px solid var(--line); }
.hub-metrics div:first-child { padding-left: 0; border-left: 0; }
.hub-metrics dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.hub-metrics dd {
  margin: 2px 0 0; font-size: 17px; font-weight: 750; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 480px) { /* 휴대폰에서 "12시간 전"이 잘리지 않게 */
  .hub-card { padding: 20px 18px; }
  .hub-metrics div { padding: 0 10px; }
  .hub-metrics dd { font-size: 15.5px; }
}
.hub-features { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 그룹 허브의 멤버 목록 (멤버마다 허브 페이지로 가는 링크) */
/* auto-fill: 라이브 칸에서 방송 중인 멤버만 한두 명 남아도 칸이 카드 폭만큼 늘어나지 않게 */
.hub-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hub-member {
  display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: var(--radius-sm);
  background: var(--surface-2); text-align: center; transition: background .15s;
}
.hub-member:hover { background: color-mix(in srgb, var(--hub) 14%, var(--surface-2)); }
.hub-member-avatar { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.hub-member.is-live .hub-member-avatar { border-color: transparent; box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--live); }
.hub-member-name { font-size: 14px; font-weight: 750; }
.hub-member-state { font-size: 12px; color: var(--muted); }
.hub-member.is-live .hub-member-state { color: var(--live); font-weight: 700; }

.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.hub-go {
  flex: 1 1 180px; justify-content: space-between; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--surface); transition: background .15s;
}
.hub-go:hover { transform: none; filter: none; background: color-mix(in srgb, var(--ink) 82%, var(--hub)); }
.icon-links { display: flex; gap: 6px; }
.icon-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ink-2); transition: color .15s, border-color .15s;
}
.icon-link:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.icon-link svg { width: 18px; height: 18px; }
.icon-link.chzzk:hover { color: #00b47e; }
.icon-link.cafe:hover { color: #03c75a; }
.icon-link.berriz:hover { color: #e8375b; }
.icon-link.youtube:hover { color: #ff2d2d; }
.icon-link.x:hover { color: var(--ink); }

/* 아직 없는 허브 자리 */
.hub-soon {
  align-self: stretch; display: grid; place-items: center; align-content: center; gap: 8px;
  min-height: 220px; padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  text-align: center; color: var(--muted);
}
.soon-plus {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px;
  border-radius: 12px; border: 1px solid var(--line); font-size: 22px; line-height: 1;
}
.hub-soon strong { font-size: 15.5px; color: var(--ink); }
.hub-soon p { max-width: 260px; font-size: 13.5px; }

/* ---------- features ---------- */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } /* 6칸이 데스크톱에서 3+3으로 */
.feature { display: grid; gap: 6px; align-content: start; padding: 20px; }
.f-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; background: var(--surface-2); font-size: 21px; }
.feature h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.feature p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.feature a { color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.feature a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { margin-top: 8px; text-align: center; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.footer-hubs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-bottom: 4px; }
.footer-hubs span { color: var(--muted); }
.footer-hubs a { color: var(--accent-text); font-weight: 600; }
.footer-hubs a:hover { text-decoration: underline; }
.footer p a { color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.footer p a:hover { text-decoration: underline; }

/* ---------- 방송 알림 (alerts.html) ---------- */
.topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.top-link:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 420px) { .top-link .label { display: none; } } /* 좁은 휴대폰에서는 🔔 만 */

.alerts-hero { position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: start; padding: 28px 22px; margin-bottom: 36px; }
.alerts-hero h1 { font-family: var(--font-cute); font-weight: 400; font-size: 30px; line-height: 1.25; letter-spacing: 0; }
@media (min-width: 760px) {
  .alerts-hero { padding: 40px 44px; }
  .alerts-hero h1 { font-size: 40px; }
}
.account { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.account-skeleton { display: block; width: 220px; height: 48px; border-radius: 999px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hello { font-size: 16px; color: var(--ink-2); }
.hello b { color: var(--ink); }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; }

.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; filter: none; }
/* 치지직 로그인 버튼: 치지직의 검정 + 형광 초록 */
.btn-chzzk { background: #111; color: #00ffa3; padding: 13px 22px; font-size: 16px; }
.btn-chzzk svg { width: 18px; height: 18px; }
.btn-text {
  padding: 8px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.btn-text:hover { color: var(--ink); }
.btn-text.small { font-size: 13px; padding: 4px 6px; }

/* ---------- 로그인 (login.html). 방송 알림과 노래책 관리자가 같이 쓴다 ---------- */
.login-card { max-width: 560px; margin: 8px auto 36px; }
@media (min-width: 760px) { .login-card .lead { font-size: 16px; } }
.white-help { max-width: 440px; padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.7; }
.white-help a { color: var(--accent-text); font-weight: 700; }
.white-help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-uses { justify-self: stretch; display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.login-uses li { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.login-uses b { margin-right: 6px; color: var(--ink); }

.alert-card { display: grid; gap: 10px; padding: 22px; }
.device-state { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; }
.state-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .6; }
.state-dot.on { background: #12b886; opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, #12b886 20%, transparent); }
.alert-card .muted { font-size: 14px; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.device-msg { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }

.pick-hint { display: none; margin: -4px 4px 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--pink-soft); color: var(--pink); font-size: 14px; font-weight: 600; }
.needs-device .pick-hint { display: block; }
.pick-groups { display: grid; gap: 14px; }
.pick-group { --hub: var(--accent); display: grid; gap: 12px; padding: 18px 20px; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.pick-title.hub-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--hub); vertical-align: 2px; }
.pick-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 8px 40px 8px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.pick:hover { border-color: color-mix(in srgb, var(--hub) 45%, var(--line)); }
.pick input { position: absolute; opacity: 0; pointer-events: none; } /* 체크박스는 숨기고 카드 전체를 누르게 한다 (키보드로는 그대로 쓸 수 있다) */
.pick:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.pick:has(input:checked) { border-color: var(--hub); background: color-mix(in srgb, var(--hub) 10%, var(--surface)); }
.pick-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.pick-live { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--live-soft); color: var(--live); font-size: 11.5px; font-weight: 800; }
.pick-check {
  position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px; border: 2px solid var(--line); background: var(--surface);
}
.pick:has(input:checked) .pick-check { border-color: var(--hub); background: var(--hub); }
.pick:has(input:checked) .pick-check::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* 한 기기는 치지직 알림과 SOOP 알림 중 한쪽만: 다른 쪽을 쓰고 있을 때의 안내 (alerts.js, soop-alerts.js) */
.mode-conflict { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.mode-conflict b { color: var(--accent-text); }
.mode-hint { max-width: 560px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pick-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 18px; text-align: center; }
.pick-empty strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.pick-empty p { max-width: 420px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.pick-group.locked .pick { cursor: not-allowed; opacity: .6; }

/* SOOP 방송 알림 (soop-alerts.html): 같은 모양에 SOOP 파랑 */
body.soop-alerts {
  --accent: var(--soop); --accent-text: var(--soop-text); --accent-soft: var(--soop-soft);
  --pink: #5b7cf0; --pink-soft: var(--soop-soft);
}

/* ---------- 플랫폼 페이지(chzzk.html, soop.html)의 홈으로 가기 + 치지직 / SOOP 전환 탭 ---------- */
.platform-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -4px 0 16px; }
.platform-back { padding: 6px 2px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.platform-back:hover { color: var(--ink); }
.platform-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.platform-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 750; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s;
}
.platform-tab:hover { background: var(--surface-2); color: var(--ink); }
.platform-tab[aria-current="page"] { background: var(--ink); color: var(--surface); }
.pf-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.platform-tab.chzzk .pf-mark { background: #00d68f; }
.platform-tab.soop .pf-mark { background: var(--soop); }
.platform-tab[aria-current="page"].soop .pf-mark { background: #7d97ff; }

/* 플랫폼에 공개된 허브가 아직 없을 때 (soop.html, app.js 의 comingSoonCard) */
.chip.soon { background: var(--soop-soft); color: var(--soop-text); }
.chip.soon b { color: var(--soop-text); }
.coming-soon {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px;
  padding: 40px 24px; text-align: center;
}
.coming-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 18px; background: var(--soop-soft); font-size: 28px; }
.coming-soon strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.coming-soon p { max-width: 420px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.coming-soon .btn { margin-top: 6px; }

/* ---------- 홈: 플랫폼 고르기 (index.html, landing.js) ---------- */
.landing-hero { display: grid; justify-items: center; gap: 12px; padding: 12px 4px 28px; text-align: center; }
.landing-hero h1 { font-family: var(--font-cute); font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.landing-hero .lead { max-width: 560px; }

.platform-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
.platform-card {
  --pf: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
/* 카드 오른쪽 위에 플랫폼 색으로 은은하게 번지는 빛 */
.platform-card::before {
  content: ''; position: absolute; z-index: -1; top: -140px; right: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pf) 22%, transparent), transparent 68%);
  pointer-events: none;
}
.platform-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pf) 55%, var(--line)); box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--pf) 70%, transparent); }
.platform-card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.platform-card.chzzk { --pf: #00d68f; }
.platform-card.soop { --pf: var(--soop); }

.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.pf-logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; box-shadow: var(--shadow); }
.pf-logo svg { width: 28px; height: 28px; }
.chzzk .pf-logo { background: #111; color: var(--chzzk); }
.soop .pf-logo { background: var(--soop); color: #fff; }
.pf-badge {
  padding: 5px 12px; border-radius: 999px; background: var(--soop-soft); color: var(--soop-text);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.pf-live {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--live-soft); color: var(--live); font-size: 13px; font-weight: 750;
}
.pf-live span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-body { display: grid; gap: 6px; }
.pf-name { font-family: var(--font-cute); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: 0; }
.pf-desc { max-width: 440px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* 대표 스트리머 아바타를 겹쳐 놓는다 */
.pf-avatars { display: flex; align-items: center; min-height: 52px; padding-left: 10px; }
.pf-avatars > * {
  flex: none; width: 48px; height: 48px; margin-left: -10px; border-radius: 50%;
  border: 3px solid var(--surface); background: var(--surface-2);
}
.pf-avatars img { object-fit: cover; box-shadow: 0 0 0 1.5px var(--hub, var(--line)); }
.pf-avatars img.is-live { box-shadow: 0 0 0 2.5px var(--live); }
.pf-avatars .more { display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pf-avatars .slot {
  display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--pf) 45%, var(--line));
  background: var(--surface); font-family: var(--font-cute); font-size: 18px; color: var(--muted);
}
.pf-avatars .slot + .slot { margin-left: 4px; }

.pf-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-go {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
  padding: 14px 18px; border-radius: 14px; font-size: 15.5px; font-weight: 750;
}
.chzzk .pf-go { background: #111; color: var(--chzzk); }
.soop .pf-go { background: var(--soop); color: #fff; }
.platform-card.is-soon .pf-go { background: var(--soop-soft); color: var(--soop-text); }
.pf-arrow { transition: transform .2s; }
.platform-card:hover .pf-arrow { transform: translateX(4px); }

.landing-points { margin-bottom: 36px; }
.landing-points ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.landing-points .chip { padding: 6px 13px; background: var(--surface); border: 1px solid var(--line); }

@media (min-width: 760px) {
  .landing-hero { padding: 28px 0 40px; }
  .landing-hero h1 { font-size: 46px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
  .platform-card { min-height: 360px; padding: 30px 30px 26px; }
  .pf-name { font-size: 40px; }
}

/* ---------- 공지 팝업 (index.html, chzzk.html, soop.html 의 #notice. 띄우는 건 notice.js 의 showNotice) ---------- */
/* 여백과 배경은 안쪽 .notice-body 에 둔다. 그래야 바깥을 눌렀는지 dialog 자체로 알 수 있다 */
/* 방송 알림 페이지의 안내문(p.notice)과 클래스 이름이 같아서, 팝업 규칙은 dialog.notice 에만 건다 */
dialog.notice { width: min(400px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog.notice:not([open]) { display: none; } /* <dialog> 를 모르는 옛 브라우저에서 페이지 아래에 그냥 보이지 않게 */
dialog.notice::backdrop { background: rgb(20 10 30 / 0.5); backdrop-filter: blur(3px); }
.notice-body { display: grid; justify-items: center; gap: 8px; padding: 28px 20px 20px; text-align: center; animation: notice-in .2s ease-out; }
.notice-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 16px; background: var(--accent-soft); font-size: 26px; }
dialog.notice h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
dialog.notice p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.notice-actions { display: flex; gap: 8px; width: 100%; margin-top: 12px; }
.notice-actions .btn { flex: 1; padding: 12px 8px; font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
@keyframes notice-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .platform-card:hover, .platform-card:hover .pf-arrow, .btn:hover { transform: none; }
}
