/* 스튜디오강나리 회사 첫 화면·도움말 전용 스타일 (site.css 뒤에 읽는다)
   - 제목: Gowun Batang 700(fonts/gowun-batang.css, OFL), 본문: Noto Sans KR
   - 첫 화면 중심은 로고와 같은 5×5 전장판. 열릴 때 한 번 칸이 번진다(움직임 줄이기 설정이면 바로 완성). */

.theme-home{--bg:#eef1ef;--surface:#f8faf9;--text:#1b2229;--muted:#4f5a63;--line:#d3dad8;--accent:#1f5a85;
  --plate:#131416;--cell:#1e2d3a;--wei:#7db6ea;--yuan:#e8c468;--shu:#85ca98;--wu:#ee9697;--han:#ebd9a4}
@media (prefers-color-scheme:dark){
  .theme-home{--bg:#11161a;--surface:#182026;--text:#e6ebee;--muted:#a3adb5;--line:#2a333a;--accent:#9cc6ec;--plate:#0b0d0f}
}
.theme-home{--maxw:60rem}
.theme-home .wrap{max-width:calc(var(--maxw) + 40px);padding:0 20px}
.serif,.theme-home h1,.theme-home h2{font-family:"Gowun Batang","Noto Serif KR",serif;font-weight:700;letter-spacing:0}

/* 머리줄에 도움말 링크 */
.nav{display:flex;align-items:center;gap:14px}
.nav > a{padding:6px 2px}

/* ── 첫 화면 머리 ── */
.hero{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:56px;padding:64px 0 56px}
.hero h1{font-size:44px;line-height:1.28;margin:0 0 20px;max-width:13em;text-wrap:balance}
.hero p{font-size:18px;line-height:1.75;color:var(--muted);max-width:32em;margin:0 0 10px}

/* 5×5 전장판 */
.board{--s:44px;--g:6px;display:grid;grid-template-columns:repeat(5,var(--s));gap:var(--g);padding:18px;background:var(--plate);border-radius:10px;justify-self:start}
.board i{display:block;width:var(--s);height:var(--s);border-radius:5px;background:var(--cell)}
.board i[data-c]{animation:take .35s ease-out both;animation-delay:calc(var(--d,0) * 140ms + 200ms)}
.board i[data-c="wei"]{--to:var(--wei)}.board i[data-c="yuan"]{--to:var(--yuan)}.board i[data-c="shu"]{--to:var(--shu)}
.board i[data-c="wu"]{--to:var(--wu)}.board i[data-c="han"]{--to:var(--han)}
@keyframes take{from{background:var(--cell);transform:scale(.86)}to{background:var(--to);transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.board i[data-c]{animation:none;background:var(--to)}}

/* ── 구역 제목 ── */
.sec{padding:8px 0 0;border-top:1px solid var(--line)}
.sec > h2{font-size:30px;margin:40px 0 8px}
.sec > .lead{color:var(--muted);margin:0 0 8px}

/* ── 게임 줄: 그림 | 설명 ── */
.games{list-style:none;margin:0;padding:0}
.games > li{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:36px;align-items:center;margin:0;padding:32px 0}
.games > li + li{border-top:1px solid var(--line)}
.games figure{margin:0}
.games .shot{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:var(--surface)}
.games h3{font-family:"Gowun Batang","Noto Serif KR",serif;font-size:26px;line-height:1.3;margin:0}
.games .en{margin:2px 0 14px;color:var(--muted);font-size:16px}
.games .desc{margin:0 0 14px}
.games dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0 0 18px;font-size:15px;line-height:1.55}
.games dt{color:var(--muted)}
.games dd{margin:0}
.games figcaption{margin-top:8px;font-size:14px;color:var(--muted)}
.games .tag{display:inline-block;vertical-align:middle;margin-left:6px;padding:1px 8px;border:1px solid var(--line);border-radius:4px;font-family:"Noto Sans KR",sans-serif;font-size:13px;font-weight:500;line-height:1.6;color:var(--muted)}
.games .note{margin:0;font-size:14px;color:var(--muted)}
.games h3 + .desc{margin-top:12px}
.games .shots{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;list-style:none;margin:6px 0 0;padding:0}
.games .shots li{margin:0}
.games .shots a{display:block;border-radius:6px}
.games .shots img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:6px;border:1px solid var(--line);background:var(--surface)}
.games .shots a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acts{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);text-decoration:none;font-size:15px}
.btn:hover{border-color:var(--accent)}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn.wait{color:var(--muted);cursor:default}
.btn.wait:hover{border-color:var(--line)}

/* ── 문의 ── */
.contact{padding-bottom:8px}
.contact p{max-width:36em}

/* ── 도움말(FAQ) ── */
.faq h2{font-size:22px;margin:40px 0 6px}
.faq details{border-bottom:1px solid var(--line)}
.faq details:first-of-type{border-top:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:14px 2px;font-weight:700;font-size:17px;line-height:1.5}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:10px;height:10px;margin-top:.45em;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg)}
.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.faq .a{padding:0 2px 16px;color:var(--text);max-width:40em}
.faq .a p:last-child,.faq .a ul:last-child{margin-bottom:0}
@media (prefers-reduced-motion:reduce){.faq summary::after{transition:none}}
.page-head{padding:48px 0 8px}
.page-head h1{font-size:36px;line-height:1.3;margin:0 0 12px}
.page-head p{color:var(--muted);margin:0;max-width:34em}

/* ── 없는 주소 ── */
.lost{padding:80px 0 40px;display:grid;grid-template-columns:auto 1fr;gap:40px;align-items:center}
.lost .board{--s:26px;--g:4px;padding:12px}
.lost h1{font-size:30px;margin:0 0 10px}

/* ── 좁은 화면 ── */
@media (max-width:820px){
  .hero{grid-template-columns:1fr;gap:32px;padding:40px 0 40px}
  .hero h1{font-size:34px}
  .board{--s:clamp(36px,11vw,48px)}
  .games > li{grid-template-columns:1fr;gap:18px;padding:26px 0}
  .games .shots{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .games .shots li{flex:0 0 72%;scroll-snap-align:start}
  .games h3{font-size:23px}
  .lost{grid-template-columns:1fr;gap:24px;padding-top:48px}
}
@media (max-width:480px){
  .theme-home .wrap{padding:0 16px}
  .hero h1{font-size:30px}
  .hero{gap:26px;padding-top:28px}
  .board{--s:34px;--g:5px;padding:14px}
  .brand .bt small{display:none}
  .hero p{font-size:17px}
  .sec > h2{font-size:26px}
  .page-head h1{font-size:30px}
  .nav{gap:8px}
}
@media print{.theme-home{--bg:#fff;--surface:#fff;--text:#000;--muted:#333;--line:#999;--accent:#000}.board,.acts{display:none}}
/* 줄바꿈: 문장(뜻 덩어리)마다 새 줄, 남는 줄은 어절 단위로 고르게 (2026-11-28 사용자 '가독성') */
.theme-home p{text-wrap:pretty}
.theme-home .ln{display:block}
@media (max-width:820px){.hero .ln{display:inline}.hero .ln::after{content:' '}}
