/* 스튜디오 공통 사이트: 앱마다 색이 다르므로 사이트는 흰 바탕·시스템 글꼴로 중립적으로 둔다 (2026-11-05 결정).
   앱 고유의 색은 앱 아이콘으로만 보인다 */
:root {
  --bg: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea; --soft: #f5f5f7; --link: #0066cc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383a; --soft: #1c1c1e; --link: #4da3ff; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%;
}
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 30px; line-height: 1.3; margin: 32px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 20px; line-height: 1.4; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { margin: 6px 0; }
ul { padding-left: 1.2em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 14px; }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
nav .brand { font-weight: 600; color: var(--ink); margin-right: auto; }
.card { background: var(--soft); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.game { display: flex; gap: 16px; align-items: center; }
.icon { flex: none; width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); }
.game h1, .game h2 { margin: 0; }
.button {
  display: inline-block; background: var(--ink); color: var(--bg); border-radius: 10px;
  padding: 8px 16px; font-size: 15px;
}
.store-badge { display: inline-block; line-height: 0; }
/* Apple 배지는 원본 그대로, 화면 높이 40px 이상 (Apple 마케팅 가이드라인) */
.store-badge img { height: 48px; width: auto; }
/* 앱 소개 페이지 */
.play { margin: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.play video { width: 260px; max-width: 70vw; height: auto; border-radius: 28px; border: 1px solid var(--line); background: var(--soft); }
.play button { font: inherit; font-size: 14px; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; cursor: pointer; }
.hero { margin: 28px 0 12px; }
.hero h1 { margin: 0; }
.lead { font-size: 18px; color: var(--ink); margin: 2px 0; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 14px; margin: 8px 0;
  -webkit-overflow-scrolling: touch; }
.shots img { flex: none; width: 200px; height: auto; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; }
.steps, .chapters { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.steps li, .chapters li { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 0; }
.steps b, .chapters b { display: block; }
.steps span, .chapters span { color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }
.steps li::before { counter-increment: step; content: counter(step); float: left; width: 26px; height: 26px; margin: 2px 10px 0 0;
  border-radius: 50%; background: var(--ink); color: var(--bg); text-align: center; line-height: 26px; font-size: 14px; font-weight: 600; }
.chapters { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grid .card { margin: 0; }
.grid h3 { margin: 0 0 4px; }
.button.disabled { background: var(--line); color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
hr { border: none; border-top: 1px solid var(--line); margin: 56px 0 0; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
a.card { display: flex; color: inherit; }
a.card:hover { text-decoration: none; background: var(--line); }
.game.compact p { margin: 2px 0; }
@media (max-width: 520px) {
  nav { row-gap: 4px; }
  nav .brand { flex-basis: 100%; }
  h1 { font-size: 26px; }
  .game:not(.compact) { flex-direction: column; align-items: flex-start; gap: 12px; }
  .game.compact .icon { width: 60px; height: 60px; border-radius: 14px; }
}
