/* 스튜디오·게임 소개 페이지 공통 스타일. 외부 글꼴·스크립트 없이 동작한다. */
:root {
  --bg: #241c29; --bg2: #2e2434; --card: #352a3c; --line: #4c3f55;
  --fg: #f4eef6; --muted: #bfb3c7; --cream: #f1e4cd; --ink: #2b2230;
  --coral: #f59a7c; --mint: #86dbb0; --lav: #c39bf0; --sky: #7fd3ee;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.7 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.35; margin-bottom: 14px; }
h3 { font-size: 1.08rem; line-height: 1.4; }
section { padding: 36px 0; border-top: 1px solid var(--line); }
.lead { color: var(--muted); margin-bottom: 18px; }

/* 맨 위 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: .92rem; }
.top .brand { color: var(--fg); font-weight: 700; text-decoration: none; }
.top nav { display: flex; gap: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--cream); font-weight: 700; }

/* 게임 첫 화면: 제목·한 줄 소개·실제 화면이 한 화면에 */
.hero { display: grid; gap: 14px; padding: 6px 0 30px; justify-items: center; text-align: center; }
.hero .id { display: flex; align-items: center; gap: 12px; text-align: left; }
.hero .id img { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.hero .one { max-width: 34em; font-size: 1rem; line-height: 1.6; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .82rem; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--cream); }
.chips li.on { background: var(--cream); border-color: var(--cream); color: var(--ink); font-weight: 700; }
.phone { margin: 0; border-radius: 18px; overflow: hidden; border: 3px solid #17111b; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #17111b; aspect-ratio: 9 / 16; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { height: min(54svh, 560px); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; column-gap: 40px; justify-items: start; text-align: left; align-items: center; padding: 28px 0 48px; }
  .hero .text { display: grid; gap: 16px; }
  .hero .chips { justify-content: flex-start; }
  .hero .phone { height: min(70svh, 600px); grid-row: 1; grid-column: 2; }
  h1 { font-size: 2.3rem; }
  .hero .one { font-size: 1.12rem; }
}
.hero .text { display: grid; gap: 12px; justify-items: inherit; }

/* 정보 표 */
dl.info { margin: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); }
dl.info > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
dl.info > div:first-child { border-top: 0; }
dl.info dt { color: var(--muted); font-size: .93rem; }
dl.info dd { margin: 0; font-weight: 600; }
dl.info dd small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }

/* 핵심 플레이 단계 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.step .phone { border-radius: 12px; border-width: 2px; box-shadow: none; }
.step .num { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: var(--ink); margin-bottom: 6px; }
.step:nth-child(1) .num { background: var(--coral); }
.step:nth-child(2) .num { background: var(--mint); }
.step:nth-child(3) .num { background: var(--lav); }
.step:nth-child(4) .num { background: var(--cream); }
.step p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.step .strip { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 2px solid #17111b; }
.step figcaption, .cap { font-size: .8rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 170px 1fr; padding: 18px; gap: 18px; }
}

/* 목록·카드 */
ul.plain { margin: 0; padding-left: 1.15em; }
ul.plain li { margin: 6px 0; }
.card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card img { width: 64px; height: 64px; border-radius: 14px; }
.card p { color: var(--muted); font-size: .95rem; }
.btn { display: inline-block; margin-top: 16px; padding: 12px 20px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 700; text-decoration: none; }
.studio-head { padding: 22px 0 34px; }
.studio-head .en { color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
.studio-head p.one { margin-top: 10px; font-size: 1.05rem; }

/* 게시 전 확인이 필요한 값. 이 표시가 남아 있으면 predeploy 검사가 배포를 멈춘다. */
.fill { background: #ffe08a; color: #3b2f00; padding: 1px 6px; border-radius: 5px; font-weight: 700; font-size: .88em; }

footer { border-top: 1px solid var(--line); padding: 22px 0 44px; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }

/* 누르기 쉬운 크기 */
.top a, footer a { display: inline-block; padding: 10px 0; }
footer { align-items: center; }
/* 웹 체험판 연결 버튼(/game, /join) */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: inherit; }
.cta { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--cream); font-weight: 700; text-decoration: none; line-height: 1.2; }
.cta.primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.join-steps .step { grid-template-columns: 1fr; }
.join-hero { grid-template-columns: 1fr; justify-items: start; text-align: left; }
