/* 스튜디오 차안 공통 스타일 — 메인 · 게임 페이지가 함께 씀.
   색은 로고(짙은 청록 · 주황)에서 가져옴. 밝은 화면이 기본, 기기가 다크 모드면 어둡게. */
:root {
  color-scheme: light dark;
  --bg: #f6f4ef; --surface: #ffffff; --surface2: #efece5; --line: #e2ddd3;
  --ink: #13232c; --muted: #5d6b73; --soft: #3a4a53;
  --brand: #0f4c63; --brand-ink: #ffffff; --orange: #ee6a17; --teal: #138a80;
  --shadow: 0 1px 2px rgba(19,35,44,.06), 0 8px 24px rgba(19,35,44,.06);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1115; --surface: #131c22; --surface2: #18232a; --line: #24323b;
    --ink: #e9eff2; --muted: #8b9ba4; --soft: #c3cfd5;
    --brand: #6cc0d8; --brand-ink: #0b1115; --orange: #ff8a3d; --teal: #4fc7bb;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  font-family: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.en { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 상단 바 */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand .mark { display: block; background: #fff; border-radius: 9px; padding: 3px 6px; box-shadow: 0 0 0 1px var(--line); }
.brand .mark img { display: block; height: 24px; width: auto; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.site-head nav { display: flex; gap: 4px; }
.site-head nav a { text-decoration: none; font-size: 14px; color: var(--soft); padding: 6px 12px; border-radius: 999px; }
.site-head nav a:hover { background: var(--surface2); color: var(--ink); }

/* 섹션 제목 */
.sec { padding: 56px 0 8px; scroll-margin-top: 60px; }
.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font-size: 24px; letter-spacing: -0.02em; }
.sec-title::before { content: ""; align-self: center; width: 6px; height: 22px; border-radius: 3px; background: var(--orange); }
.sec-title .en { font-size: 14px; font-weight: 500; letter-spacing: .04em; }

/* 배지 */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--surface2); color: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.badge.live { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.badge.live::before { opacity: 1; }
.badge.soon { color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); border-color: color-mix(in srgb, var(--orange) 30%, transparent); }
.badge.soon::before { opacity: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 18px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); border: 0; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.store { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #0d0f12; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); line-height: 1.15; transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex: 0 0 auto; }
.store small { display: block; font-size: 11px; opacity: .8; }
.store b { font-size: 16px; }
.store.off { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); pointer-events: none; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stores .store { width: 224px; box-sizing: border-box; justify-content: flex-start; padding-left: 18px; } /* 두 버튼 폭 같게, 로고는 같은 자리 */
.stores .store span { flex: 1; text-align: center; white-space: nowrap; } /* 글자는 로고 오른쪽 남은 공간의 가운데 */

/* 카드 공통 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 하단 사업자 정보 */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface2); color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.site-foot .wrap { padding-top: 28px; padding-bottom: 44px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; font-size: 13.5px; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .biz p { margin: 0; display: flex; flex-wrap: wrap; }
.site-foot .biz span { white-space: nowrap; }
.site-foot .biz span + span::before { content: "|"; margin: 0 8px; color: var(--line); }
.site-foot a { color: var(--muted); text-underline-offset: 2px; }
.site-foot a:hover { color: var(--ink); }
.site-foot .copy { margin-top: 10px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-head nav a { padding: 6px 8px; font-size: 13px; }
  .brand > span:last-child { display: none; }
  .sec { padding-top: 44px; }
  .sec-title { font-size: 21px; }
  /* 좁은 화면: 줄 앞에 '|' 가 남지 않게 항목마다 한 줄 */
  .site-foot .biz p { display: block; }
  .site-foot .biz span { display: block; white-space: normal; }
  .site-foot .biz span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
