/* 트러블크루 웹페이지 (troublecrew.com). 이 파일은 손으로 고친다. 페이지 글은 Tools/site/build_site.py 가
   template.html + strings/<언어>.json 으로 만들고, 글꼴 "TC Text" (Pretendard JP 부분 글꼴, 이름만 바꿈 - OFL 예약 이름)는
   언어마다 페이지 head 의 <style> 이 fonts/tc-<묶음>-<굵기>.woff2 로 붙인다 (+ 캐릭터 도감 글자만 든 tc-<묶음>-dex-<굵기>.woff2,
   unicode-range 라 도감 글이 화면에 나올 때만 받음). 캐릭터 도감의 데이터·그림·스크립트 roster/ 도 그 빌드가 만든다 (손대지 않음).

   색: 남색 + 노랑 하나. 본문 바탕은 오프화이트 하나. 모서리는 12px 하나.
   글자: 제목 44 / 소제목 22 / 본문 17 / 작은 글 14 (휴대폰 30 / 19 / 16 / 13)
   --s = 화면 px / 게임 px (픽셀 그림은 정수배만) */
:root {
  --s: 3; --r: 12px;
  --navy: #2b3350; --navy-deep: #1f2540; --navy-up: #353e60; --line: rgba(244, 241, 232, .12);
  --paper: #faf7f0; --text: #2b3350; --muted: #5d6585;
  --light: #f4f1e8; --light-muted: #b9bdd0;
  --yellow: #ffc928; --yellow-d: #d99a00; --yellow-ink: #9a6a00; --grass: #33984b;
  --h2: 44px; --h3: 22px; --body: 17px; --small: 14px;
}
@media (max-width: 720px) { :root { --s: 2; --h2: 30px; --h3: 19px; --body: 16px; --small: 13px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--body)/1.65 "TC Text", system-ui, sans-serif;
  image-rendering: pixelated; word-break: keep-all; overflow-wrap: break-word;
}
/* 글꼴에 없는 글자는 그 언어의 시스템 글꼴로 (중국어 페이지는 라틴 글자만 TC Text, 한자는 전부 시스템 글꼴) */
/* keep-all 은 띄어쓰기 없는 일본어·중국어를 한 줄로 묶어 버리므로 그 언어들은 normal */
:lang(ja) { font-family: "TC Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif; word-break: normal; line-break: strict; }
:lang(zh-Hant) { font-family: "TC Text", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; word-break: normal; }
:lang(zh-Hans) { font-family: "TC Text", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; word-break: normal; }
/* 일본어는 strict: 작은 가나·장음(ー) 앞에서 줄을 바꾸지 않음. 큰 문구는 일본어·중국어도 쉼표에서만 줄바꿈 */
:lang(ja) .tagline, :lang(zh-Hant) .tagline, :lang(zh-Hans) .tagline { word-break: keep-all; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id] { scroll-margin-top: 64px; }
.flip { transform: scaleX(-1); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* Google Play 공식 배지: 파일 그대로, 크기만 줄임 (위아래 투명 여백 포함, 옆 여백은 margin) */
.gp { display: inline-block; flex: none; line-height: 0; margin: 0 6px; }
.gp img { height: 84px; width: auto; image-rendering: auto; }
.gp-s img { height: 52px; }
.gp-l img { height: 96px; }
/* 영어 배지만 옛 디자인이라 그림 안 투명 여백이 더 큼 (보이는 배지 564x168, 다른 언어 646x192, 비율 같음): 8/7배로 같은 크기.
   transform 이라 자리는 다른 언어와 같음. 지금 디자인 영어 배지로 바꾸면 이 줄을 지운다 */
.gp img[src$="gp_badge_en.png"] { transform: scale(1.1429); }

/* ---------- 위 줄 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 40px; padding: 6px 40px;
  background: var(--navy-deep); color: var(--light);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 19px; color: var(--light); }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 800; font-size: 16px; color: var(--light-muted); }
.nav a:hover { color: var(--light); }
.top-r { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--light-muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-top: 2px; }
.globe { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 14px); margin: 0; padding: 8px; list-style: none; min-width: 190px; background: var(--navy-deep); border: 1px solid var(--line); border-radius: var(--r); }
.lang li a { display: block; padding: 7px 12px; border-radius: var(--r); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--navy-up); }

/* ---------- 표지: 맵 그림 4장 (우리 집 마당 · 던전 · 화산 · 집 안), 왼쪽과 아래를 남색으로 깔아 글이 읽히게 ----------
   4장을 같은 자리에 겹쳐 두고 6초마다 다음 장이 위에서 1초 동안 나타난다 (24초 한 바퀴, CSS만).
   점을 누르면 (라디오) 그 장에 멈춘다. 움직임 줄이기 설정이면 첫 장 그대로. 장마다 값은 template.html 의 .slide style */
.hero { --vh: 248; position: relative; background: var(--navy-deep); color: var(--light); }
.scene { position: relative; z-index: 0; height: calc(var(--vh) * var(--s) * 1px); overflow: hidden; }
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: 500;
  background:
    linear-gradient(90deg, rgba(31, 37, 64, .94) 0, rgba(31, 37, 64, .86) 30%, rgba(31, 37, 64, 0) 54%),
    linear-gradient(0deg, var(--navy-deep) 0, rgba(31, 37, 64, 0) 18%);
}
.slide {
  --cx: var(--dx); --cy: var(--dy);
  position: absolute; inset: 0; overflow: hidden; background: var(--void); opacity: 0;
  animation: cover 24s calc(var(--i) * 6s - 1s) infinite both;
}
.slide:first-child { opacity: 1; }
/* 들어오는 장이 위 (z 2), 1초 동안 나타난 뒤 아래로 (z 1), 다음 장이 다 나타나면 사라짐 */
@keyframes cover {
  0% { opacity: 0; z-index: 2; }
  4.17% { opacity: 1; z-index: 2; }
  4.18% { z-index: 1; }
  29.17% { opacity: 1; }
  29.18% { opacity: 0; }
  100% { opacity: 0; z-index: 1; }
}
.stage {
  position: absolute; left: calc(50% - var(--cx) * var(--s) * 1px); top: calc(var(--cy) * var(--s) * -1px);
  width: calc(var(--iw) * var(--s) * 1px); height: calc(var(--ih) * var(--s) * 1px);
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--vh) * var(--s) * 1px - 44px); display: flex; justify-content: center; gap: 2px; }
.dots label { position: relative; width: 28px; height: 28px; cursor: pointer; }
.dots label::before, .dots label::after { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; }
.dots label::before { background: rgba(244, 241, 232, .4); }
.dots label:hover::before { background: rgba(244, 241, 232, .7); }
.dots label::after { background: var(--yellow); opacity: 0; animation: cover 24s calc(var(--i) * 6s - 1s) infinite both; }
.dots label:first-child::after { opacity: 1; }
.cv:checked ~ .scene .slide, .cv:checked ~ .dots label::after { animation: none; opacity: 0; }
#cv-1:checked ~ .scene .slide:nth-child(1), #cv-2:checked ~ .scene .slide:nth-child(2),
#cv-3:checked ~ .scene .slide:nth-child(3), #cv-4:checked ~ .scene .slide:nth-child(4),
#cv-1:checked ~ .dots label:nth-child(1)::after, #cv-2:checked ~ .dots label:nth-child(2)::after,
#cv-3:checked ~ .dots label:nth-child(3)::after, #cv-4:checked ~ .dots label:nth-child(4)::after { opacity: 1; }
.cv:focus-visible ~ .dots { outline: 2px dashed var(--yellow); outline-offset: 2px; border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .dots label::after { animation: none; }
}
/* 2560×1440 같은 큰 화면: 표지 그림만 4배 (3배면 오른쪽이 비어 보임) */
@media (min-width: 2200px) and (min-height: 1200px) { .hero { --s: 4; } }
.ch {
  position: absolute; width: calc(48px * var(--s)); height: calc(32px * var(--s));
  left: calc((var(--x) - 24) * var(--s) * 1px); top: calc((var(--y) - 32) * var(--s) * 1px); z-index: var(--y);
}
.hero-text {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  left: max(40px, calc(50% - 520px)); width: 500px;
}
.logo img { margin-left: -8px; }
.tagline { margin-top: 18px; font-weight: 800; font-size: 34px; line-height: 1.3; }
.sub { margin-top: 6px; font-size: 18px; color: var(--light-muted); }
.cta { display: flex; align-items: center; gap: 10px; margin: 28px 0 0 -6px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 26px;
  border-radius: var(--r); background: var(--yellow); color: var(--navy-deep);
  text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap;
}
.btn:hover { background: #ffd54f; }
.tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.only { margin-top: 12px; font-size: var(--small); color: var(--light-muted); }

.channels { display: flex; align-items: center; gap: 10px; }
.hero .channels { margin-top: 36px; }
.ch-label { margin-right: 6px; font-weight: 800; font-size: var(--small); color: var(--light-muted); }
.soc { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r); background: rgba(244, 241, 232, .1); color: var(--light); }
.soc svg { width: 20px; height: 20px; fill: currentColor; }
a.soc:hover { background: rgba(244, 241, 232, .2); }
/* 주소가 아직 없는 채널: 빈자리 (점선 + 흐리게) */
.soc.soon { background: none; box-shadow: inset 0 0 0 1px rgba(244, 241, 232, .22); color: rgba(244, 241, 232, .32); cursor: default; }

/* ---------- 섹션: 상자 없이 여백과 큰 제목으로만 나눔 ---------- */
.sec { padding: 112px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.eyebrow { font-weight: 800; font-size: var(--small); letter-spacing: .14em; color: var(--yellow-ink); }
h2 { margin-top: 6px; font-weight: 800; font-size: var(--h2); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-weight: 800; font-size: var(--h3); line-height: 1.4; }
.lead { margin-top: 12px; color: var(--muted); }

/* 소식 3개: 그림 320x180 (64x36의 5배). 소식 글 페이지가 생기면 카드를 링크로 */
.news { display: grid; grid-template-columns: repeat(3, 320px); justify-content: space-between; }
.nw-th { width: 320px; height: 180px; border-radius: var(--r); }
.nw-th.photo { object-fit: cover; image-rendering: auto; }
.meta { margin-top: 18px; font-weight: 800; font-size: var(--small); color: var(--muted); }
.nw h3 { margin-top: 2px; }
.nw p:last-child { margin-top: 4px; color: var(--muted); }

/* 놀이 방법: 그림 480x336 (160x112의 3배) 두 줄 */
.modes { display: grid; grid-template-columns: repeat(2, 480px); justify-content: space-between; row-gap: 72px; }
.mode .art { width: calc(160px * var(--s)); height: calc(112px * var(--s)); border-radius: var(--r); }
.mode h3 { margin-top: 22px; }
.count { margin-left: 10px; font-size: var(--small); color: var(--muted); }
.mode p { margin-top: 6px; color: var(--muted); }
.keep { white-space: nowrap; }
.mode-home { grid-column: 1 / -1; display: grid; grid-template-columns: 480px 480px; justify-content: space-between; align-items: center; }
.mode-home h3 { margin-top: 0; }
.home-art { /* 집 + 그 앞의 파티, 잔디 바탕 (모두 --s배) */
  width: calc(160px * var(--s)); height: calc(112px * var(--s)); border-radius: var(--r); overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end; padding-bottom: calc(3px * var(--s));
  background: var(--grass) url(assets/grass.png) 0 0 / calc(128px * var(--s)) repeat;
}
.house { flex: none; width: calc(120px * var(--s)); height: calc(115px * var(--s)); margin-bottom: calc(-6px * var(--s)); }
.party { display: flex; margin-left: calc(-18px * var(--s)); }
.party img { flex: none; width: calc(48px * var(--s)); height: calc(32px * var(--s)); margin: 0 calc(-10px * var(--s)); }

/* ---------- 남색 무대: 캐릭터 도감 + 게임 화면 ---------- */
.band { margin-top: 128px; padding-bottom: 112px; background: var(--navy); color: var(--light); }
.band .eyebrow { color: var(--yellow); }
.band .lead { color: var(--light-muted); }
.band .sec { padding-top: 104px; }

/* 캐릭터 도감 (사용자 11-23 시안 ②): 위 거르기 칩 + 카드 격자 (PC 9열 · 태블릿 6열 · 휴대폰 4열; 잔디 칸 그림 · 근/원 아이콘 ·
   이름 2줄 칸 · 아래 무리 색 띠 --c) + 누른 카드의 줄 바로 아래 펼침 판 (휴대폰도 같음). 칸 안은 roster/dex.js 가 그린다.
   그림: roster/atlas.png (서 있는 모습 한 장씩) · roster/anim.png (제자리 움직임 프레임 한 줄씩), 게임 px 그대로 → 화면에서 --k배 (정수배).
   한 캐릭터의 값 (--x --y --w --h 상자, --dx --fy 발 맞춤, --n --g --fps 움직임) 과 시트 크기 (--aw --ah --nw --nh) 는 dex.js 가 넣는다.
   글·그림은 도감 칸이 화면 가까이 올 때 불러온다: 그 전에는 칸 자리만 잡아 둠 (55명 기준 높이, 줄 수가 바뀌면 여기 숫자도) */
.dex { --k: 2; }
.js .dex:not(.on) { min-height: 1300px; }
.js .dex-static { display: none; }
/* 스크립트가 없을 때 (검색엔진 포함): 빌드가 쓴 이름 목록 */
.dex-static { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dex-static li { padding: 4px 12px; border-radius: var(--r); background: var(--navy-up); font-weight: 800; font-size: var(--small); }
:where(.dex) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.dex button:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 3px; }
.spr {
  display: block; flex: none; position: relative;
  width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px);
  left: calc(var(--dx) * var(--k) * 1px); margin-bottom: calc(var(--fy) * var(--k) * 1px);
  background: url(roster/atlas.png) calc(var(--x) * var(--k) * -1px) calc(var(--y) * var(--k) * -1px) / calc(var(--aw) * var(--k) * 1px) calc(var(--ah) * var(--k) * 1px) no-repeat;
}
.spr.anim {
  background-image: url(roster/anim.png); background-size: calc(var(--nw) * var(--k) * 1px) calc(var(--nh) * var(--k) * 1px);
  animation: dex-idle calc(var(--n) / var(--fps) * 1s) steps(var(--n)) infinite;
}
@keyframes dex-idle { to { background-position-x: calc((var(--x) + var(--n) * (var(--w) + var(--g))) * var(--k) * -1px); } }
@media (prefers-reduced-motion: reduce) { .spr.anim { animation: none; } }
/* 거르기 칩: 전체 / 근접 / 원거리 + 수 (고른 칩은 노랑) */
.dex-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dex-filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r); background: var(--navy-up); font-weight: 800; font-size: 15px; color: var(--light); }
.dex-filter b { font-weight: 400; color: var(--light-muted); }
.dex-filter:hover { background: #3e4870; }
.dex-filter[aria-pressed="true"] { background: var(--yellow); color: var(--navy-deep); }
.dex-filter[aria-pressed="true"] b { color: var(--navy); }
.dex-filter[aria-pressed="true"] .hand { filter: brightness(.2); }
/* 카드 격자 */
.dex-grid { --k: 3; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 22px 12px; align-items: start; }
.dex-card { display: block; min-width: 0; text-align: center; scroll-margin-top: 84px; }
.dex-card[hidden] { display: none; }
.dex-pic {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 112px; padding-bottom: 12px; border-radius: var(--r); overflow: hidden;
  background: url(assets/grass.png) calc(-24px * var(--k)) calc(-20px * var(--k)) / calc(128px * var(--k)) repeat, var(--grass); /* 풀 포기 없는 자리 */
  box-shadow: inset 0 -6px 0 var(--c);
}
.dex-card:hover .dex-pic { box-shadow: inset 0 -6px 0 var(--c), 0 0 0 3px rgba(244, 241, 232, .35); }
.dex-card[aria-expanded="true"] .dex-pic { box-shadow: inset 0 -6px 0 var(--c), 0 0 0 3px var(--yellow); }
.dex-name { display: block; margin-top: 8px; font-weight: 800; font-size: 14px; line-height: 1.35; min-height: 2.7em; }
/* 긴 일본어 이름은 빌드가 나눈 낱말 조각 사이에서만 줄을 바꿈 (조각은 통째로) */
.nb { display: inline-block; max-width: 100%; }
.dex-hands { position: absolute; left: 6px; top: 6px; display: flex; gap: 3px; } /* 근/원 표시는 그림 왼쪽 위 (이름 줄 폭을 다 쓰게) */
.dex-hands .hand { width: 22px; height: 22px; border-radius: 6px; background-color: rgba(31, 37, 64, .78); background-size: 14px 14px; background-position: 4px 4px; background-repeat: no-repeat; }
/* 근접 = 칼, 원거리 = 화살 (8x8 픽셀, 2배) */
.hand {
  display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23f4f1e8' d='M7 0h1v1h-1zM6 1h1v1h-1zM5 2h1v1h-1zM4 3h1v1h-1zM3 4h1v1h-1zM1 4h1v1h-1zM2 5h1v1h-1zM3 6h1v1h-1zM1 6h1v1h-1zM0 7h1v1h-1z'/%3E%3C/svg%3E") 0 0 / 16px 16px;
}
.hand.ranged {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23f4f1e8' d='M5 0h3v3h-1v-2h-2zM6 1h1v1h-1zM5 2h1v1h-1zM4 3h1v1h-1zM3 4h1v1h-1zM2 5h1v1h-1zM1 6h1v1h-1zM0 7h1v1h-1zM0 5h2v1h-2zM2 6h1v2h-1z'/%3E%3C/svg%3E");
}
/* 펼침 판: 무대 (잔디 + 돌길, 움직이는 그림) + 글. 위 꼭지 (--cx) 가 누른 카드를 가리킴 */
.dex-panel {
  --cx: 50%; grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center;
  margin: 2px 0 6px; padding: 28px; border-radius: var(--r); background: var(--navy-deep);
}
.dex-panel::before { content: ""; position: absolute; left: calc(var(--cx) - 11px); top: -11px; border: 11px solid transparent; border-top: 0; border-bottom-color: var(--navy-deep); }
.dex-stage { /* --k: 길과 캐릭터 같은 배율 */
  --k: 4; height: 264px; border-radius: var(--r); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(20px * var(--k));
  background: url(assets/cobble.png) 0 100% / calc(16px * var(--k)) calc(64px * var(--k)) repeat-x,
              url(assets/grass.png) 0 0 / calc(128px * var(--k)) repeat, var(--grass);
}
.dex-info h3 { font-size: 30px; line-height: 1.25; padding-right: 52px; }
.dex-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dex-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 12px; border-radius: var(--r);
  background: var(--navy-up); font-weight: 800; font-size: var(--small); line-height: 1.3; color: var(--light);
}
.dex-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: center; margin: 16px 0; }
.dex-info dt { font-size: var(--small); color: var(--light-muted); }
.dex-info dd { font-weight: 800; }
.dex-info p { color: var(--light-muted); }
.hearts { /* 8x6 픽셀 하트, 3배 */
  display: inline-block; vertical-align: middle; height: 18px; width: calc(var(--n) * 24px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8413c' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3Cpath fill='%23fff' d='M1 1h1v1H1z'/%3E%3C/svg%3E") 0 0 / 24px 18px repeat-x;
}
/* 이전 / 다음 / 닫기 단추 */
.dex-nav { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.dex-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--navy-up); color: var(--light); }
.dex-btn:hover { background: #3e4870; }
.dex-btn::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 3px 3px; }
.dex-btn.prev::before { transform: translateX(2px) rotate(45deg); }
.dex-btn.next::before { transform: translateX(-2px) rotate(-135deg); }
.dex-btn.close::before { width: 18px; height: 18px; border: 0; background: linear-gradient(45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%); }
.dex-panel .close { position: absolute; right: 16px; top: 16px; }
.dex-count { min-width: 64px; text-align: center; font-weight: 800; font-size: var(--small); color: var(--light-muted); font-variant-numeric: tabular-nums; }
.dex-more { margin-top: 16px; font-size: var(--small); color: var(--light-muted); }

.trailer { position: relative; display: block; border-radius: var(--r); overflow: hidden; }
.trailer img { width: 100%; height: auto; image-rendering: auto; }
.play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  display: flex; align-items: center; justify-content: center; padding-left: 6px;
  border-radius: 50%; background: var(--yellow); color: var(--navy-deep);
  box-shadow: 0 0 0 10px rgba(255, 201, 40, .25);
}
.play .tri { border-width: 15px 0 15px 24px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.shots img { width: 100%; height: auto; border-radius: var(--r); image-rendering: auto; }

/* ---------- 받기 ---------- */
.get { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 80px 16px 88px; }
.get-mid { text-align: center; }
.get .only { margin-top: 6px; color: var(--muted); }
.cast { display: flex; }
.cast img { width: calc(48px * 4); height: calc(32px * 4); margin: 0 -36px; }

/* ---------- 바닥줄 ---------- */
.foot { padding: 48px 0 56px; background: var(--navy-deep); color: var(--light-muted); font-size: var(--small); }
.foot a { text-decoration: none; }
.foot-row { display: flex; align-items: center; gap: 40px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 800; font-size: 15px; color: var(--light); }
.links a:hover, .langs a:hover, .foot-mid p a:hover { text-decoration: underline; }
.channels-foot { margin-left: auto; }
.foot-mid { justify-content: space-between; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-mid p a { color: var(--light); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.langs a[aria-current] { color: var(--light); font-weight: 800; }
.legal { margin-top: 24px; line-height: 1.75; }

/* ---------- 태블릿·좁은 PC 창 (721~1039): 고정 폭 격자 (960 + 양옆 40) 가 가로로 넘치지 않게.
   메뉴는 휴대폰처럼 숨기고, 그림은 한 단계 작은 정수배 (소식 3배, 놀이 방법 2배, 도감 판 무대 3배). 도감 격자는 6열. PC·휴대폰 모습은 그대로 ---------- */
@media (min-width: 721px) and (max-width: 1039px) {
  .nav { display: none; }
  .brand { flex: none; }
  .news { grid-template-columns: 1fr; gap: 28px; }
  .nw { display: flex; gap: 24px; align-items: center; }
  .nw-th { flex: none; width: 192px; height: 108px; }
  .meta { margin-top: 0; }
  .modes { --s: 2; grid-template-columns: repeat(2, 320px); }
  .mode-home { grid-template-columns: 320px 320px; }
  .party .extra { display: none; }
  .js .dex:not(.on) { min-height: 1840px; }
  .dex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dex-panel { grid-template-columns: 280px 1fr; gap: 28px; }
  .dex-stage { --k: 3; height: 200px; }
  .cast .extra { display: none; }
}

/* ---------- 좁은 PC 창 (1040~1239): 위 메뉴 5칸 (팀 소개를 더함, 12-04) 이 한 줄에 들게 사이를 좁히고 언어 이름은 휴대폰처럼 지구본만.
   기본 사이로 한 줄이 되려면 en 1080 · ja 1070 · id 1215 px 가 든다 (이보다 좁으면 메뉴 글이 두 줄로 꺾였다) ---------- */
@media (min-width: 1040px) and (max-width: 1239px) {
  .top { gap: 24px; }
  .nav { gap: 20px; }
  .lang-name { display: none; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 720px) {
  section[id] { scroll-margin-top: 56px; }
  .wrap { padding: 0 16px; }
  .top { gap: 12px; padding: 4px 12px 4px 16px; }
  .nav { display: none; }
  .brand { font-size: 17px; gap: 10px; }
  .top-r { gap: 8px; }
  .lang-name { display: none; }
  .lang ul { right: auto; left: 0; } /* 오른쪽 맞춤이면 지구본이 좁아 왼쪽 8px 이 화면 밖 */
  .globe { width: 20px; height: 20px; }
  .gp-s img { height: 46px; }

  .hero { --vh: 200; }
  .slide { --cx: var(--px); --cy: var(--py); }
  .scene::after { background: linear-gradient(0deg, var(--navy-deep) 0, rgba(31, 37, 64, 0) 16%); }
  .hero-text { position: relative; top: auto; left: auto; width: auto; transform: none; margin-top: -8px; padding: 0 16px; text-align: center; }
  .logo img { margin: 0 auto; }
  .tagline { margin-top: 14px; font-size: 26px; }
  .sub { font-size: 16px; }
  .cta { justify-content: center; gap: 8px; margin: 22px 0 0; }
  .gp img { height: 68px; }
  .btn { height: 52px; padding: 0 16px; gap: 9px; font-size: 16px; }
  .btn .tri { border-width: 7px 0 7px 11px; }
  .hero .channels { justify-content: center; margin: 0; padding: 24px 0 36px; }

  .sec { padding-top: 64px; }
  .sec-head { margin-bottom: 28px; }
  #news .sec-head { display: block; }
  .news { grid-template-columns: 1fr; gap: 24px; }
  .nw { display: flex; gap: 16px; align-items: center; }
  .nw-th { flex: none; width: 128px; height: 72px; }
  .meta { margin-top: 0; }
  .nw p:last-child { font-size: 15px; line-height: 1.55; }

  .modes { grid-template-columns: 1fr; row-gap: 36px; }
  .mode .art, .home-art { margin: 0 auto; }
  .mode h3 { margin-top: 16px; }
  .mode-home { grid-template-columns: 1fr; gap: 16px; }
  .party { margin-left: -36px; }
  .party .extra { display: none; }

  .band { margin-top: 64px; padding-bottom: 64px; }
  .band .sec { padding-top: 56px; }
  .js .dex:not(.on) { min-height: 1920px; }
  .dex-bar { margin-bottom: 18px; }
  .dex-filter { height: 38px; padding: 0 13px; font-size: 14px; }
  .dex-grid { --k: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
  .dex-pic { height: 80px; padding-bottom: 9px; box-shadow: inset 0 -5px 0 var(--c); }
  .dex-card:hover .dex-pic { box-shadow: inset 0 -5px 0 var(--c), 0 0 0 3px rgba(244, 241, 232, .35); }
  .dex-card[aria-expanded="true"] .dex-pic { box-shadow: inset 0 -5px 0 var(--c), 0 0 0 3px var(--yellow); }
  .dex-name { margin-top: 6px; font-size: 12px; }
  .dex-hands { left: 4px; top: 4px; }
  .dex-hands .hand { width: 20px; height: 20px; background-size: 12px 12px; }
  .dex-panel { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 18px; }
  .dex-stage { --k: 3; height: 192px; }
  .dex-info h3 { font-size: 22px; padding-right: 0; }
  .dex-panel .close { right: 22px; top: 22px; } /* 휴대폰: 무대 오른쪽 위 */
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; padding-left: 4px; box-shadow: 0 0 0 6px rgba(255, 201, 40, .25); }
  .play .tri { border-width: 11px 0 11px 17px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

  .get { gap: 0; padding: 52px 0 60px; }
  .cast .extra { display: none; }
  .cast img { width: calc(48px * 2); height: calc(32px * 2); margin: 0 -10px; }
  .gp-l img { height: 72px; }
  .get .only { font-size: 13px; }

  .foot { padding: 32px 0 40px; }
  .foot-row { flex-wrap: wrap; gap: 20px; }
  .links { width: 100%; order: 3; gap: 6px 22px; }
  .channels-foot { margin-left: auto; }
  .foot-mid { flex-direction: column; align-items: flex-start; }
}

/* ---------- About (/about/, 사용자 12-04 시안 ①, 영어로만): 남색 띠 + 그 위에 걸친 창업자 카드, 회사 정보 표, 링크 줄.
   여기 줄은 About 페이지에만 있는 class 와 aria-current (첫 페이지의 메뉴에는 없음) 만 고른다: 첫 페이지 모습은 그대로 ---------- */
.nav a[aria-current="page"] { color: var(--light); text-decoration: underline 3px var(--yellow); text-underline-offset: 10px; }
.links a[aria-current="page"] { color: var(--yellow); }
/* 진짜 사진 (픽셀 그림 아님): 부드럽게 줄임. founder.jpg 는 정사각형으로 잘라 둠 */
.photo-real { image-rendering: auto; object-fit: cover; }
/* 공식 채널 단추 (아이콘 + 이름) · LinkedIn 단추 */
.chb { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: var(--r); background: var(--navy); color: var(--light); text-decoration: none; font-weight: 800; font-size: 16px; }
.chb:hover { background: var(--navy-up); }
.chb svg { width: 20px; height: 20px; fill: currentColor; }
.in-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: var(--r); background: var(--yellow); color: var(--navy-deep); text-decoration: none; font-weight: 800; font-size: 17px; white-space: nowrap; }
.in-btn:hover { background: #ffd54f; }
.in-btn svg { width: 20px; height: 20px; fill: currentColor; }
/* 회사 정보: 이름 | 값 줄 (휴대폰은 이름 위, 값 아래) */
.info { display: grid; grid-template-columns: 240px 1fr; margin: 0; }
.info dt, .info dd { margin: 0; padding: 16px 0; border-top: 1px solid rgba(43, 51, 80, .14); }
.info dt { font-weight: 800; font-size: 15px; color: var(--muted); }
.info dd { font-weight: 800; }
.info dd small { font-weight: 400; font-size: 15px; color: var(--muted); }
.info dd a { color: inherit; text-decoration: underline; text-decoration-color: rgba(43, 51, 80, .3); text-underline-offset: 4px; }
.info .num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ab-head { background: var(--navy-deep); color: var(--light); text-align: center; padding: 88px 40px 224px; }
.ab-head .eyebrow { color: var(--yellow); }
.ab-head h1 { margin-top: 8px; font-weight: 800; font-size: 52px; line-height: 1.2; letter-spacing: -.01em; }
.ab-head .lead { max-width: 800px; margin: 18px auto 0; font-size: 18px; color: var(--light-muted); }
.ab-card { position: relative; max-width: 720px; margin: -120px auto 0; padding: 0 48px 44px; border-radius: var(--r); background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(31, 37, 64, .14); }
.ab-photo { width: 184px; height: 184px; margin: 0 auto; transform: translateY(-64px); margin-bottom: -40px; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 12px var(--yellow); overflow: hidden; background: #ddd; }
.ab-photo img { width: 100%; height: 100%; }
.ab-card .eyebrow { margin-top: 0; }
.ab-name { margin-top: 6px; font-weight: 800; font-size: 38px; line-height: 1.25; }
.ab-role { margin-top: 10px; font-weight: 800; font-size: 19px; }
.ab-role2 { margin-top: 2px; color: var(--muted); }
.ab-bio { max-width: 540px; margin: 20px auto 0; padding-top: 20px; border-top: 1px solid rgba(43, 51, 80, .12); }
.ab-card .in-btn { margin-top: 26px; }
.ab-sec { padding: 104px 0 0; }
.ab-narrow { max-width: 800px; }
.ab-sec .sec-head { margin-bottom: 28px; }
.ab-links { margin-top: 104px; padding: 72px 16px 84px; background: var(--light); display: flex; align-items: center; justify-content: center; gap: 40px; }
.ab-links .get-mid { text-align: center; }
.ab-links h2 { margin: 6px 0 24px; font-size: 30px; }
.ab-links .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.ab-links .gp img { height: 72px; }
@media (max-width: 720px) {
  .info { display: block; }
  .info dt { padding: 12px 0 0; font-size: 13px; }
  .info dd { padding: 0 0 12px; border-top: 0; font-size: 16px; }
  .info dd small { font-size: 14px; }
  .chb { height: 46px; padding: 0 16px; font-size: 15px; }
  .ab-head { padding: 56px 16px 176px; }
  .ab-head h1 { font-size: 36px; }
  .ab-head .lead { font-size: 16px; }
  .ab-card { margin: -96px 0 0; padding: 0 20px 30px; }
  .ab-photo { width: 144px; height: 144px; transform: translateY(-48px); margin-bottom: -28px; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--yellow); }
  .ab-name { font-size: 30px; }
  .ab-role { font-size: 17px; }
  .ab-bio { font-size: 15px; }
  .in-btn { height: 50px; font-size: 16px; }
  .ab-sec { padding-top: 64px; }
  .ab-links { margin-top: 64px; padding: 52px 0 60px; gap: 0; }
  .ab-links h2 { font-size: 24px; margin-bottom: 18px; }
  .ab-links .gp img { height: 64px; }
  .ab-links .row { padding: 0 8px; }
  .ab-links .cast { display: none; }
}
